/* ============================================================
   TaskMine — Landing page styles
   Indigo UI · Red ruby accents · Outfit
   ============================================================ */

:root {
  /* Brand */
  --indigo: #6366F1;
  --indigo-light: #818CF8;
  --indigo-600: #5457E5;
  --indigo-700: #4338CA;
  --indigo-050: #EEF0FE;
  --indigo-100: #E0E2FD;

  --ruby: #E8202A;
  --ruby-light: #FF5A5F;
  --ruby-deep: #B3121B;

  /* Dark base */
  --dark: #1D2231;
  --dark-900: #161A26;
  --dark-800: #232A3D;
  --dark-700: #2E3650;
  --dark-line: rgba(255, 255, 255, 0.08);

  /* Neutral / light */
  --ink: #1A1E2C;
  --ink-2: #4A5168;
  --ink-3: #6B7390;
  --paper: #FFFFFF;
  --paper-2: #F6F7FB;
  --paper-3: #EEF0F6;
  --line: #E5E8F0;

  /* Status (mock UI) */
  --st-new: #6366F1;
  --st-progress: #F59E0B;
  --st-resolved: #10B981;
  --st-closed: #94A3B8;
  --st-urgent: #E8202A;

  /* Type */
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadow / elevation (Material 3 feel) */
  --e1: 0 1px 2px rgba(20, 26, 44, 0.06), 0 1px 3px rgba(20, 26, 44, 0.05);
  --e2: 0 4px 12px rgba(20, 26, 44, 0.07), 0 2px 4px rgba(20, 26, 44, 0.05);
  --e3: 0 14px 32px rgba(20, 26, 44, 0.10), 0 4px 10px rgba(20, 26, 44, 0.06);
  --e-indigo: 0 18px 50px rgba(99, 102, 241, 0.28);

  --maxw: 1200px;
}

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

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--indigo); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo);
  padding: 6px 14px;
  background: var(--indigo-050);
  border-radius: var(--r-pill);
}
.section-dark .eyebrow {
  color: var(--indigo-light);
  background: rgba(99, 102, 241, 0.14);
}

.section-head { max-width: 660px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.02em;
  margin: 18px 0 14px;
  text-wrap: balance;
}
.section-head p {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-2);
  text-wrap: pretty;
}
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: rgba(255,255,255,0.66); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--indigo); color: #fff; box-shadow: var(--e-indigo); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 56px rgba(99,102,241,0.36); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.section-dark .btn-ghost { color: #fff; border-color: var(--dark-line); }
.section-dark .btn-ghost:hover { border-color: var(--indigo-light); color: var(--indigo-light); }

/* ---------- Store badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  width: 160px; height: 52px;
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px;
  flex: none;
  padding: 8px 13px;
  border-radius: 12px;
  background: #05070D;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.14);
  text-decoration: none;
  line-height: 1;
  overflow: hidden;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.store-badge:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.24));
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 14px 30px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}
.store-badge:focus-visible {
  outline: 3px solid rgba(129,140,248,0.7);
  outline-offset: 3px;
}
.store-badge-icon {
  width: 27px; height: 27px;
  flex: 0 0 27px;
  fill: currentColor;
}
.store-badge-copy {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0;
  text-align: left;
}
.store-badge-small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
  color: rgba(255,255,255,0.76);
  white-space: nowrap;
}
.store-badge-main {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  color: #fff;
  white-space: nowrap;
}
.store-badge-play { fill: none; }
.store-badge-play .play-blue { fill: #5FB2FF; }
.store-badge-play .play-green { fill: #39D98A; }
.store-badge-play .play-yellow { fill: #FFD166; }
.store-badge-play .play-red { fill: #FF5A5F; }
.store-badge-google .store-badge-main { font-size: 17px; }
.store-badge-app .store-badge-icon {
  width: 29px; height: 29px;
  flex-basis: 29px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(20,26,44,0.02);
}
.nav-inner {
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 4px 10px rgba(232,32,42,0.28)); }
.brand .tm-task { color: var(--ink); }
.nav.at-top .brand .tm-task { color: #fff; }
.brand .tm-mine { color: var(--indigo); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px; border-radius: var(--r-pill); transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--indigo); background: var(--indigo-050); }
.nav.at-top .nav-links a { color: rgba(255,255,255,0.78); }
.nav.at-top .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.10); }

.nav-right { display: flex; align-items: center; gap: 14px; }

/* Language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font); font-weight: 500; font-size: 14px;
  padding: 8px 13px; border-radius: var(--r-pill);
  background: var(--paper-2); color: var(--ink); border: 1px solid var(--line);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.lang-btn:hover { border-color: var(--indigo); }
.lang-btn svg.globe { width: 16px; height: 16px; opacity: .7; }
.lang-btn svg.chev { width: 13px; height: 13px; transition: transform .2s; }
.lang.open .lang-btn svg.chev { transform: rotate(180deg); }
.nav.at-top .lang-btn { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.18); }

.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--e3); padding: 8px; min-width: 188px;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98);
  transform-origin: top right; transition: all .18s ease; z-index: 120;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lang-menu button {
  display: flex; align-items: center; gap: 11px; width: 100%;
  font-family: var(--font); font-size: 14.5px; font-weight: 500; color: var(--ink);
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 9px 11px; border-radius: 10px; transition: background .12s;
}
.lang-menu button:hover { background: var(--paper-2); }
.lang-menu button.active { background: var(--indigo-050); color: var(--indigo); font-weight: 600; }
.lang-menu button .flag { font-size: 18px; line-height: 1; }
.lang-menu button .native { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.lang-menu button.active .native { color: var(--indigo); }

.nav-burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 85% -10%, #2A3150 0%, var(--dark) 46%, var(--dark-900) 100%);
  color: #fff; padding: 148px 0 96px;
}
.hero-glow {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(70px); opacity: .55; will-change: transform;
}
.hero-glow.g1 { width: 520px; height: 520px; left: -120px; top: -80px;
  background: radial-gradient(circle, rgba(99,102,241,0.55), transparent 70%); }
.hero-glow.g2 { width: 460px; height: 460px; right: -80px; bottom: -120px;
  background: radial-gradient(circle, rgba(232,32,42,0.30), transparent 70%); opacity: .4; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 8px 7px 8px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  font-size: 13.5px; color: rgba(255,255,255,0.86); margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--st-resolved); box-shadow: 0 0 0 4px rgba(16,185,129,0.18); }
.hero-badge .tag { background: rgba(99,102,241,0.2); color: var(--indigo-light); font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); }

.hero h1 {
  font-size: clamp(40px, 6vw, 70px); font-weight: 800; line-height: 1.02;
  letter-spacing: -0.03em; margin-bottom: 22px; text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--indigo-light), var(--ruby-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.9vw, 20px); color: rgba(255,255,255,0.72);
  max-width: 540px; margin-bottom: 34px; text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 38px; }

.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .stat .num {
  font-size: 30px; font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, var(--indigo-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats .stat .lbl { font-size: 13.5px; color: rgba(255,255,255,0.55); }

/* Hero phones */
.hero-visual { position: relative; height: 600px; display: flex; align-items: center; justify-content: center; }

/* ============================================================
   PHONE FRAME (shared)
   ============================================================ */
.phone {
  --pw: 280px;
  width: var(--pw); aspect-ratio: 280 / 588;
  background: #0B0E16; border-radius: 42px; padding: 11px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.45), 0 0 0 1.5px rgba(255,255,255,0.07),
              inset 0 0 0 2px rgba(255,255,255,0.04);
  position: relative; flex: none;
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #0B0E16; border-radius: 0 0 16px 16px; z-index: 6;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: var(--paper-2); color: var(--ink); position: relative; display: flex; flex-direction: column;
}
.phone-screen img.shot { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Status bar */
.scr-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px 6px; font-size: 12px; font-weight: 600; color: var(--ink); flex: none;
}
.scr-status .sig { display: flex; align-items: center; gap: 5px; }
.scr-status .sig svg { width: 15px; height: 15px; }

/* App bar */
.scr-appbar {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px 12px; flex: none;
}
.scr-appbar .title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.scr-appbar .spacer { flex: 1; }
.scr-appbar .icbtn {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--paper-3); color: var(--ink-2);
}
.scr-appbar .icbtn svg { width: 16px; height: 16px; }

.scr-body { flex: 1; overflow: hidden; padding: 0 14px; }

/* Issue card (mock) */
.iss {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 13px; margin-bottom: 10px; box-shadow: var(--e1);
}
.iss .top { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.badge {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-pill);
  letter-spacing: 0.02em; white-space: nowrap;
}
.badge.new { background: var(--indigo-050); color: var(--indigo); }
.badge.prog { background: #FEF3C7; color: #B45309; }
.badge.res { background: #D1FAE5; color: #047857; }
.badge.urgent { background: #FEE2E2; color: var(--ruby); }
.iss .id { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-left: auto; }
.iss .subj { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 9px; }
.iss .meta { display: flex; align-items: center; gap: 8px; }
.iss .av { width: 19px; height: 19px; border-radius: 50%; background: linear-gradient(135deg, var(--indigo), var(--indigo-700)); color: #fff; font-size: 9px; font-weight: 700; display: grid; place-items: center; }
.iss .meta .pname { font-size: 11px; color: var(--ink-3); }
.iss .meta .due { margin-left: auto; font-size: 10.5px; color: var(--ink-3); display: flex; align-items: center; gap: 3px; }
.iss .meta .due svg { width: 11px; height: 11px; }
.iss .pr { width: 7px; height: 7px; border-radius: 50%; }
.pr.high { background: var(--ruby); }
.pr.norm { background: var(--st-progress); }
.pr.low { background: var(--st-closed); }

/* Bottom nav */
.scr-tabbar {
  display: flex; justify-content: space-around; align-items: center;
  padding: 9px 8px 16px; background: #fff; border-top: 1px solid var(--line); flex: none;
}
.scr-tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink-3); font-size: 9.5px; font-weight: 500; }
.scr-tabbar .tab svg { width: 20px; height: 20px; }
.scr-tabbar .tab.active { color: var(--indigo); }

/* FAB */
.scr-fab {
  position: absolute; right: 16px; bottom: 70px; width: 50px; height: 50px;
  border-radius: 16px; background: var(--indigo); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(99,102,241,0.45); z-index: 5;
}
.scr-fab svg { width: 24px; height: 24px; }

/* Hero phone positioning */
.hero-phone-main { position: relative; z-index: 3; transform: rotate(-3deg); }
.hero-phone-back {
  position: absolute; right: 4%; top: 8%; z-index: 1; transform: rotate(6deg) scale(.86);
  opacity: .92; filter: saturate(1.05);
}
.hero-float {
  position: absolute; z-index: 4; background: #fff; border-radius: 14px;
  padding: 11px 14px; box-shadow: var(--e3); display: flex; align-items: center; gap: 11px;
}
.hero-float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.hero-float .ic svg { width: 18px; height: 18px; }
.hero-float .ft strong { display: block; font-size: 13px; color: var(--ink); line-height: 1.2; }
.hero-float .ft span { font-size: 11px; color: var(--ink-3); }
.hero-float.f1 { left: -6%; top: 18%; }
.hero-float.f1 .ic { background: #D1FAE5; color: #047857; }
.hero-float.f2 { right: -4%; bottom: 16%; }
.hero-float.f2 .ic { background: var(--indigo-050); color: var(--indigo); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust { background: var(--dark-900); padding: 30px 0; border-top: 1px solid var(--dark-line); }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.62); font-size: 14px; font-weight: 500; }
.trust-item svg { width: 19px; height: 19px; color: var(--indigo-light); }

/* ============================================================
   FEATURES
   ============================================================ */
.features { background: var(--paper-2); }
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--e3); border-color: var(--indigo-100); }
.feat-card .ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--indigo-050); color: var(--indigo); margin-bottom: 18px;
  transition: transform .25s ease;
}
.feat-card:hover .ic { transform: scale(1.06) rotate(-3deg); }
.feat-card .ic svg { width: 26px; height: 26px; }
.feat-card.accent .ic { background: #FEE9EA; color: var(--ruby); }
.feat-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 9px; }
.feat-card p { font-size: 14.5px; color: var(--ink-2); text-wrap: pretty; }
.feat-card .ix { position: absolute; top: 22px; right: 24px; font-size: 13px; font-weight: 700; color: var(--paper-3); }

/* ============================================================
   SHOWCASE (split feature highlight)
   ============================================================ */
.showcase { background: #fff; }
.showcase-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center;
}
.showcase-row + .showcase-row { margin-top: clamp(56px, 8vw, 110px); }
.showcase-row.rev .showcase-text { order: 2; }
.showcase-text h3 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px; text-wrap: balance; }
.showcase-text > p { font-size: 17px; color: var(--ink-2); margin-bottom: 24px; max-width: 480px; }
.showcase-list { display: flex; flex-direction: column; gap: 14px; }
.showcase-list li { display: flex; gap: 12px; align-items: flex-start; list-style: none; }
.showcase-list .chk { width: 24px; height: 24px; border-radius: 8px; background: var(--indigo-050); color: var(--indigo); display: grid; place-items: center; flex: none; margin-top: 1px; }
.showcase-list .chk svg { width: 14px; height: 14px; }
.showcase-list strong { font-weight: 600; }
.showcase-list span { color: var(--ink-2); font-size: 15px; }
.showcase-visual { display: flex; justify-content: center; position: relative; }
.showcase-visual .glow-card {
  position: absolute; inset: 8% 12%; border-radius: 40px; z-index: 0;
  background: radial-gradient(circle at 50% 40%, rgba(99,102,241,0.22), transparent 70%); filter: blur(28px);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--dark); color: #fff; overflow: hidden; }
.gallery .section-head p { color: rgba(255,255,255,0.66); }
.gallery-scroll {
  display: flex; gap: 26px; overflow-x: auto; padding: 8px 24px 28px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  margin: 0 -24px;
}
.gallery-scroll::-webkit-scrollbar { height: 8px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--dark-700); border-radius: 99px; }
.gallery-scroll::-webkit-scrollbar-track { background: transparent; }
.gallery-item { scroll-snap-align: center; flex: none; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.gallery-item .phone { --pw: 264px; }
.gallery-cap { text-align: center; }
.gallery-cap strong { display: block; font-size: 16px; font-weight: 600; }
.gallery-cap span { font-size: 13.5px; color: rgba(255,255,255,0.5); }
.gallery-hint { text-align: center; margin-top: 8px; font-size: 13.5px; color: rgba(255,255,255,0.42); display: flex; align-items: center; justify-content: center; gap: 8px; }
.gallery-hint svg { width: 16px; height: 16px; }

/* Screen variants reused in gallery (search / settings / detail / create) */
.scr-search-bar {
  margin: 4px 14px 12px; display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 10px 14px;
}
.scr-search-bar svg { width: 16px; height: 16px; color: var(--ink-3); }
.scr-search-bar .ph { font-size: 13px; color: var(--ink-3); }
.scr-search-bar .cur { width: 1.5px; height: 15px; background: var(--indigo); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.detail-head { padding: 6px 16px 14px; }
.detail-head .dtitle { font-size: 16px; font-weight: 700; line-height: 1.3; margin: 8px 0 12px; }
.field-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
.field-row .k { color: var(--ink-3); }
.field-row .v { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 7px; }

.create-field { margin: 0 16px 14px; }
.create-field .lab { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.create-field .inp { background: #fff; border: 1.5px solid var(--line); border-radius: 11px; padding: 11px 12px; font-size: 13px; color: var(--ink); }
.create-field .inp.focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }
.create-field .inp.muted { color: var(--ink-3); }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { font-size: 11px; font-weight: 600; padding: 6px 11px; border-radius: var(--r-pill); background: var(--paper-3); color: var(--ink-2); }
.chip.sel { background: var(--indigo); color: #fff; }

.set-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.set-row .sic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.set-row .sic svg { width: 16px; height: 16px; }
.set-row .stxt { font-size: 13.5px; font-weight: 500; }
.set-row .ssub { font-size: 11px; color: var(--ink-3); }
.set-row .sright { margin-left: auto; }
.toggle { width: 38px; height: 22px; border-radius: 99px; background: var(--indigo); position: relative; }
.toggle.off { background: var(--paper-3); }
.toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle.off::after { right: auto; left: 2px; }
.server-pill { display: flex; align-items: center; gap: 9px; margin: 0 16px 10px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; }
.server-pill.active { border-color: var(--indigo); background: var(--indigo-050); }
.server-pill .sdot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.server-pill .sname { font-size: 13px; font-weight: 600; }
.server-pill .surl { font-size: 11px; color: var(--ink-3); }
.server-pill .schk { margin-left: auto; color: var(--indigo); }
.server-pill .schk svg { width: 16px; height: 16px; }

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.download {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #2B3358 0%, var(--dark) 55%, var(--dark-900) 100%);
  color: #fff; text-align: center;
}
.download .hero-glow.g1 { left: 10%; top: -120px; opacity: .5; }
.download .hero-glow.g2 { right: 6%; bottom: -160px; }
.dl-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.dl-icon {
  width: 92px; height: 92px; margin: 0 auto 28px; border-radius: 24px;
  box-shadow: 0 24px 60px rgba(232,32,42,0.4); animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .dl-icon { animation: none; } }
.download h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 18px; text-wrap: balance; }
.download p { font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,0.7); margin-bottom: 36px; }
.dl-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark-900); color: rgba(255,255,255,0.6); padding: 64px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--dark-line); }
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.6; }
.footer-cols { display: flex; gap: clamp(40px, 8vw, 88px); flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: rgba(255,255,255,0.55); margin-bottom: 10px; transition: color .15s; cursor: pointer; }
.footer-col a:hover { color: var(--indigo-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; }
.footer-bottom .copy { font-size: 13.5px; }
.footer-lang { display: flex; align-items: center; gap: 8px; }
.footer-lang select {
  font-family: var(--font); font-size: 13.5px; color: #fff; background: var(--dark-800);
  border: 1px solid var(--dark-line); border-radius: 10px; padding: 8px 12px; cursor: pointer;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; }
.reveal.in { animation: revealIn .7s cubic-bezier(.16,1,.3,1) both; }
@keyframes revealIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.reveal.in.d1 { animation-delay: .07s; }
.reveal.in.d2 { animation-delay: .14s; }
.reveal.in.d3 { animation-delay: .21s; }
.reveal.in.d4 { animation-delay: .28s; }
.reveal.in.d5 { animation-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; animation: none !important; }
  .hero-glow { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-cta, .hero-stats, .hero-badge { justify-content: center; }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { height: 540px; }
  .showcase-row { grid-template-columns: 1fr; gap: 40px; }
  .showcase-row.rev .showcase-text { order: 0; }
  .showcase-text { text-align: center; }
  .showcase-text > p { margin-left: auto; margin-right: auto; }
  .showcase-list { max-width: 420px; margin: 0 auto; text-align: left; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger {
    display: grid; place-items: center; width: 42px; height: 42px;
    border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); cursor: pointer;
  }
  .nav.at-top .nav-burger { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.18); color: #fff; }
  .nav-burger svg { width: 20px; height: 20px; }
  .feat-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 32px; }
  .hero-float { display: none; }
  .hero-stats { gap: 24px; }
  .lang-btn .lang-label { display: none; }
  .hero-cta, .dl-badges { flex-direction: column; align-items: center; gap: 8px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 18px; }
  .phone { --pw: 240px; }
  .hero-phone-back { display: none; }
}

/* Mobile nav drawer */
.mnav {
  position: fixed; inset: 0; z-index: 200; background: rgba(13,16,24,0.6);
  backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .25s;
}
.mnav.open { opacity: 1; visibility: visible; }
.mnav-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(82vw, 320px);
  background: #fff; padding: 24px; transform: translateX(100%); transition: transform .3s cubic-bezier(.16,1,.3,1);
  display: flex; flex-direction: column; gap: 6px;
}
.mnav.open .mnav-panel { transform: none; }
.mnav-panel .mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mnav-panel a { font-size: 18px; font-weight: 600; padding: 14px 12px; border-radius: 12px; color: var(--ink); }
.mnav-panel a:hover { background: var(--paper-2); }
.mnav-close { width: 40px; height: 40px; border-radius: 11px; background: var(--paper-2); border: none; display: grid; place-items: center; cursor: pointer; }
