:root {
  --bg: #070708;
  --bg-elev: #0c0c0e;
  --bg-panel: #0c0c0e;
  --bg-input: #121214;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: #f2f3f5;
  --mute: #8b939e;
  --dim: #5c6570;
  --blue: #4aa8ff;
  --blue-bright: #7cc4ff;
  --blue-soft: rgba(74, 168, 255, 0.1);
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Syne", "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
  --space: clamp(24px, 5vw, 80px);
  --ctrl: 44px;
  --ctrl-lg: 48px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select {
  font: inherit;
}

::selection {
  background: rgba(74, 168, 255, 0.28);
  color: #fff;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.wordmark .lambda {
  letter-spacing: 0.28em;
  color: var(--blue-bright);
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ken {
  from {
    transform: scale(1.01);
  }
  to {
    transform: scale(1.04);
  }
}

/* ��� Auth ��� */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--bg);
}

.auth-card {
  width: min(1080px, 100%);
  min-height: min(680px, calc(100vh - 40px));
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  animation: rise 0.55s var(--ease) both;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  background: #000;
  min-height: 480px;
}

.auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center left;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 40%, rgba(7, 7, 8, 0.55) 100%),
    linear-gradient(0deg, rgba(7, 7, 8, 0.72) 0%, transparent 42%);
  pointer-events: none;
}

.auth-copy {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  z-index: 2;
  max-width: 380px;
}

.auth-kicker {
  color: var(--blue-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.auth-copy h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 10px;
}

.auth-copy p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 32ch;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  padding: 36px 36px 28px;
  background: var(--bg-elev);
}

.auth-panel-top {
  margin-bottom: 28px;
}

.auth-panel h2 {
  font-family: var(--display);
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 22px 0 6px;
}

.auth-panel .sub {
  color: var(--mute);
  font-size: 0.92rem;
}

.auth-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}

.last-used {
  font-size: 0.7rem;
  color: var(--dim);
  margin-bottom: -4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--ctrl-lg);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg-input);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: #18181c;
}

.btn-google {
  width: 100%;
}

.sso-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sso-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 600;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--dim);
}

.field input {
  height: var(--ctrl-lg);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg-input);
  color: var(--ink);
  padding: 0 14px;
  transition: border-color 0.15s;
}

.field input:focus {
  outline: none;
  border-color: rgba(74, 168, 255, 0.55);
}

.field-wrap {
  position: relative;
}

.field-wrap input {
  width: 100%;
  padding-right: 48px;
}

.eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--mute);
  cursor: pointer;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.eye:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
  width: 100%;
  height: var(--ctrl-lg);
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #070708;
  font-weight: 750;
}

.btn-primary:hover {
  opacity: 0.92;
}

.auth-switch {
  text-align: center;
  color: var(--mute);
  font-size: 0.88rem;
}

.auth-switch a {
  color: var(--blue-bright);
  font-weight: 650;
}

.auth-legal {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  color: var(--dim);
  font-size: 0.74rem;
  line-height: 1.5;
}

.auth-legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.icon-svg {
  width: 18px;
  height: 18px;
}

/* ��� Site nav ��� */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--space);
  background: rgba(7, 7, 8, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  color: var(--mute);
  font-size: 0.88rem;
  font-weight: 550;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  transition: 0.15s;
}

.btn-nav.ghost {
  color: var(--mute);
}

.btn-nav.ghost:hover {
  color: var(--ink);
}

.btn-nav.solid {
  background: var(--ink);
  color: #070708;
}

.btn-nav.solid:hover {
  opacity: 0.9;
}

/* ��� Landing hero ��� */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% center;
  animation: ken 28s ease-in-out infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(7, 7, 8, 0.88) 0%, rgba(7, 7, 8, 0.45) 48%, rgba(7, 7, 8, 0.55) 100%),
    linear-gradient(0deg, rgba(7, 7, 8, 0.92) 0%, transparent 36%);
}

.hero-inner {
  padding: calc(var(--nav-h) + 48px) var(--space) 72px;
  max-width: 720px;
  animation: rise 0.7s var(--ease) both;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-brand img.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.hero-brand .wordmark {
  font-size: 1.05rem;
  letter-spacing: 0.34em;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin-bottom: 16px;
  max-width: 11ch;
  text-wrap: balance;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.55;
  max-width: 34ch;
  margin-bottom: 28px;
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-hero {
  height: var(--ctrl-lg);
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}

.btn-hero.primary {
  background: var(--ink);
  color: #070708;
  border: 0;
}

.btn-hero.primary:hover {
  opacity: 0.9;
}

.btn-hero.ghost {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-hero.ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

/* ��� Sections ��� */
.section {
  padding: clamp(64px, 10vw, 120px) var(--space);
}

.section-label {
  color: var(--mute);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 16ch;
  margin-bottom: 12px;
  font-weight: 700;
  text-wrap: balance;
}

.section .lead {
  color: var(--mute);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 44ch;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-strip .feature {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 28px 0;
  border-right: 1px solid var(--line);
}

.stats-strip .feature:last-child {
  border-right: 0;
}

.stats-strip .feature strong {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 700;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.product {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: transparent;
  transition: border-color 0.2s, background 0.2s;
}

.product:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

.product h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
  font-weight: 700;
}

.product p {
  color: var(--mute);
  line-height: 1.55;
  font-size: 0.94rem;
}

.product .tag {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.feature {
  padding: 28px 24px 28px 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
}

.feature:last-child {
  border-right: 0;
  padding-right: 0;
}

.feature:first-child {
  padding-left: 0;
}

.feature strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.feature span {
  color: var(--mute);
  font-size: 0.92rem;
  line-height: 1.55;
}

.cta-band {
  margin: 0 var(--space) 72px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: clamp(36px, 6vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--space) 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  color: var(--dim);
  font-size: 0.84rem;
}

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

@media (max-width: 920px) {
  .auth-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-visual {
    min-height: 240px;
  }

  .auth-panel {
    padding: 28px 22px 22px;
  }

  .nav-links {
    display: none;
  }

  .products,
  .features,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stats-strip .feature,
  .feature {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }

  .stats-strip .feature:last-child,
  .feature:last-child {
    border-bottom: 0;
  }

  .hero-inner {
    padding-bottom: 48px;
  }

  .hero h1 {
    max-width: none;
  }
}
