/* ============================================================
   Hypomeister Landing — base tokens & primitives
   Dark theme, electric-blue accent, on the Hypomeister DS
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

@font-face {
  font-family: "Poppins";
  font-weight: 400;
  font-style: normal;
  src: url("./fonts/Poppins-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  font-weight: 600 800;
  font-style: normal;
  src: url("./fonts/Poppins-Bold.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  font-weight: 900;
  font-style: normal;
  src: url("./fonts/Poppins-Black.ttf") format("truetype");
  font-display: swap;
}

:root {
  /* Brand */
  --primary:       #3B82F6;
  --primary-600:   #2563EB;
  --primary-300:   #60A5FA;
  --primary-100:   #BEDBFF;
  --cyan:          #00D3F2;
  --cyan-soft:     #38D7EE;
  --green:         #5EE9B5;
  --green-strong:  #00D492;

  /* Canvas — deep navy */
  --bg-0:          #070C16;
  --bg-1:          #0B1120;
  --bg-2:          #0F1A2E;
  --surface:       #141E33;
  --surface-2:     #1B2740;
  --surface-glass: rgba(20, 30, 51, 0.55);

  /* Text */
  --fg-1:          #F1F5F9;
  --fg-2:          #CBD5E1;
  --fg-3:          #94A3B8;
  --fg-4:          #64748B;
  --fg-5:          #64748B;
  --fg-on-primary: #FFFFFF;

  /* Lines */
  --border-1:      rgba(148, 163, 184, 0.14);
  --border-2:      rgba(148, 163, 184, 0.22);
  --border-glow:   rgba(59, 130, 246, 0.45);

  /* Gradients */
  --grad-blue:     linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  --grad-brand:    linear-gradient(120deg, #60A5FA 0%, #3B82F6 42%, #22D3EE 100%);

  --shadow-phone:  0 40px 80px -24px rgba(0,0,0,0.75), 0 12px 32px -12px rgba(2,8,23,0.7);
  --shadow-float:  0 18px 40px -16px rgba(0,0,0,0.6);

  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 9999px;

  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--fg-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Brand wordmark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; display: block; }
.brand b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--fg-1);
}
.brand b span { color: var(--primary-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; letter-spacing: 0.1px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(59,130,246,0.8), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(59,130,246,0.95), inset 0 1px 0 rgba(255,255,255,0.22); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--fg-1);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--border-glow); }

/* ---------- Device frame ---------- */
.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 1290 / 2796;
  border-radius: 46px;
  background: linear-gradient(160deg, #1c2333 0%, #05080f 60%);
  padding: 10px;
  box-shadow: var(--shadow-phone);
  border: 1px solid rgba(255,255,255,0.06);
}
.phone::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 46px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.10) 0%, transparent 22%, transparent 80%, rgba(255,255,255,0.05) 100%);
}
.phone .screen {
  position: relative; height: 100%; width: 100%;
  border-radius: 37px; overflow: hidden;
  background: #0b1322;
  border: 1px solid rgba(0,0,0,0.5);
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.phone .screen.inset img { transform: scale(1.085); transform-origin: center 46%; }

/* ---------- Floating chips ---------- */
.chip-card {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 15px;
  background: var(--surface-glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  box-shadow: var(--shadow-float);
  white-space: nowrap;
}
.chip-card .ic {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; flex: none;
}
.chip-card .k { font-size: 11px; color: var(--fg-3); letter-spacing: 0.2px; }
.chip-card .v { font-size: 15px; font-weight: 700; color: var(--fg-1); letter-spacing: -0.2px; }

/* ---------- Pills / eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: var(--r-pill);
  background: rgba(59,130,246,0.10);
  border: 1px solid rgba(59,130,246,0.28);
  color: var(--primary-300);
  font-size: 13px; font-weight: 600; letter-spacing: 0.2px;
  white-space: nowrap;
}

/* ---------- Email capture ---------- */
.capture { display: flex; gap: 10px; max-width: 460px; }
.capture .field {
  flex: 1; display: flex; align-items: center;
  height: 52px; padding: 0 8px 0 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  transition: border-color .2s, background .2s;
}
.capture .field:focus-within { border-color: var(--border-glow); background: rgba(59,130,246,0.06); }
.capture input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--fg-1); font-size: 15px; font-family: inherit;
}
.capture input::placeholder { color: var(--fg-4); }
.capture .btn { height: 52px; flex: none; border-radius: var(--r-lg); }

/* ---------- Lang toggle ---------- */
.lang {
  display: inline-flex; padding: 3px; gap: 2px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-1);
  border-radius: var(--r-pill);
}
.lang button {
  border: none; background: none; color: var(--fg-3);
  font-size: 12px; font-weight: 700; letter-spacing: 0.4px;
  padding: 6px 12px; border-radius: var(--r-pill);
  transition: background .2s, color .2s;
}
.lang button.on { background: var(--primary); color: #fff; }

/* ---------- Rating row ---------- */
.rating { display: flex; align-items: center; gap: 10px; color: var(--fg-3); font-size: 13px; }
.stars { display: inline-flex; gap: 2px; color: #FBBF24; }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
