/* Rescaler theme — tokens synced from plentyy/website/src/index.css */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --background: 225 47% 7%;
  --foreground: 210 40% 96%;
  --card: 222 35% 11%;
  --muted-foreground: 215 18% 50%;
  --primary: 160 84% 39%;
  --accent: 38 92% 50%;
  --border: 220 18% 18%;
  --radius: 1rem;
  --page-max: 1120px;
  --gutter: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.12;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px hsl(var(--background)),
    0 0 0 4px hsla(160, 84%, 39%, 0.6);
  border-radius: 999px;
}

/* --- layout helpers --- */

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: hsla(160, 84%, 39%, 0.85);
}

.eyebrow::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: hsl(var(--primary));
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 500;
}

.lead {
  margin-top: 0.9rem;
  max-width: 62ch;
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
}

/* --- surfaces (from plentyy glass-card / gradient-mesh) --- */

.gradient-mesh {
  background-color: hsl(225 47% 7%);
  background-image:
    radial-gradient(ellipse 88% 58% at 22% 46%, hsla(160, 84%, 39%, 0.13) 0%, transparent 56%),
    radial-gradient(ellipse 74% 52% at 80% 18%, hsla(38, 92%, 50%, 0.1) 0%, transparent 54%),
    radial-gradient(ellipse 96% 50% at 50% 86%, hsla(220, 60%, 52%, 0.075) 0%, transparent 58%),
    linear-gradient(168deg, hsl(225 42% 6.4%) 0%, hsl(217 28% 9.8%) 48%, hsl(222 32% 7.6%) 100%);
}

.blueprint-grid {
  background-image:
    linear-gradient(hsla(160, 84%, 39%, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, hsla(160, 84%, 39%, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.glass-card {
  background: hsla(217, 33%, 17%, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsla(215, 20%, 40%, 0.15);
  border-radius: var(--radius);
}

.text-gradient-brand {
  background-image: linear-gradient(110deg, hsl(160 84% 60%), hsl(160 70% 70%) 50%, hsl(43 96% 65%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 15px hsla(160, 84%, 39%, 0.2));
  display: inline-block;
  padding-right: 0.14em;
  padding-bottom: 0.04em;
}

/* --- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsla(225, 47%, 7%, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid hsla(220, 18%, 18%, 0.8);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo svg {
  color: hsl(var(--primary));
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 13px;
  font-weight: 500;
}

.nav a {
  color: hsla(210, 40%, 96%, 0.72);
  transition: color 0.15s ease;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: hsl(var(--foreground));
}

/* --- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: hsla(160, 84%, 39%, 0.16);
  border-color: hsla(160, 84%, 39%, 0.4);
  color: hsl(var(--foreground));
  box-shadow: 0 0 40px -10px hsla(160, 84%, 39%, 0.3);
}

.btn-primary:hover {
  background: hsla(160, 84%, 39%, 0.28);
}

.btn-ghost {
  background: hsla(217, 33%, 17%, 0.5);
  border-color: hsla(215, 20%, 40%, 0.2);
  color: hsla(210, 40%, 96%, 0.85);
}

.btn-ghost:hover {
  border-color: hsla(215, 20%, 40%, 0.4);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* --- hero --- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 11vw, 7.5rem);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(hsla(160, 84%, 39%, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, hsla(160, 84%, 39%, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 500;
  max-width: 18ch;
}

.hero .lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 56ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* --- grids & cards --- */

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  border-radius: var(--radius);
  border: 1px solid hsla(215, 20%, 40%, 0.15);
  background: linear-gradient(135deg, hsla(217, 33%, 17%, 0.7), hsla(217, 33%, 12%, 0.8));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.card p {
  color: hsl(var(--muted-foreground));
  font-size: 0.925rem;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsla(160, 84%, 39%, 0.12);
  border: 1px solid hsla(160, 84%, 39%, 0.28);
  color: hsl(var(--primary));
  margin-bottom: 0.3rem;
}

.card-icon.gold {
  background: hsla(38, 92%, 50%, 0.12);
  border-color: hsla(38, 92%, 50%, 0.28);
  color: hsl(var(--accent));
}

/* product cards */

.product-card {
  border: 1px solid hsla(160, 84%, 39%, 0.28);
  box-shadow:
    0 8px 32px -12px hsla(160, 84%, 39%, 0.38),
    inset 0 1px 0 0 hsla(160, 84%, 39%, 0.15);
}

.product-card.upcoming {
  border-color: hsla(215, 20%, 40%, 0.18);
  box-shadow: none;
}

.badge {
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.badge-live {
  background: hsla(160, 84%, 39%, 0.14);
  border: 1px solid hsla(160, 84%, 39%, 0.35);
  color: hsl(160 70% 68%);
}

.badge-soon {
  background: hsla(38, 92%, 50%, 0.12);
  border: 1px solid hsla(38, 92%, 50%, 0.3);
  color: hsl(43 96% 68%);
}

.card-link {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 13px;
  font-weight: 600;
  color: hsl(160 70% 65%);
}

.card-link:hover {
  color: hsl(160 70% 78%);
}

/* --- principles / list --- */

.principles {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.principle {
  border-radius: var(--radius);
  border: 1px solid hsla(220, 18%, 18%, 0.9);
  background: hsla(222, 35%, 11%, 0.55);
  padding: 1.1rem 1.25rem;
}

.principle strong {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.principle span {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

/* --- contact --- */

.contact-panel {
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.contact-panel a.email {
  color: hsl(160 70% 68%);
  font-weight: 500;
}

/* --- footer --- */

.site-footer {
  margin-top: auto;
  border-top: 1px solid hsla(220, 18%, 18%, 0.8);
  padding-block: 2rem;
  font-size: 13px;
  color: hsl(var(--muted-foreground));
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.site-footer a:hover {
  color: hsl(var(--foreground));
}

@media (max-width: 560px) {
  .nav {
    gap: 0.9rem;
    font-size: 12px;
  }

  .nav .nav-hide-sm {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }
}
