:root {
  --bg: #eef3f9;
  --ink: #0b2545;
  --muted: #4a5d75;
  --accent: #0f6fb0;
  --accent-2: #0b2545;
  --line: #d5e0ee;
  --surface: #ffffff;
  --phone: #0a0c12;
  --phone-line: #2c3242;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px rgba(11, 37, 69, 0.12);
  --shadow-sm: 0 8px 24px rgba(11, 37, 69, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(15, 111, 176, 0.16), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(11, 37, 69, 0.08), transparent 48%),
    linear-gradient(180deg, #f7faff 0%, var(--bg) 40%, #e8eef6 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(247, 250, 255, 0.82);
  border-bottom: 1px solid rgba(11, 37, 69, 0.07);
}
.site-header .wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: var(--safe-t);
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.brand strong {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.brand span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.nav a.nav-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav a.nav-link:hover {
  color: var(--ink);
  background: rgba(15, 111, 176, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.03); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: linear-gradient(145deg, #1a9ae0, var(--accent) 48%, #0b2545);
  color: #fff !important;
  box-shadow: 0 14px 32px rgba(15, 111, 176, 0.32);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  color: var(--ink) !important;
  box-shadow: var(--shadow-sm);
}
.btn-light {
  background: #fff;
  color: var(--accent-2) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 1.02rem; }

.hero {
  padding: 64px 0 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { display: grid; gap: 22px; }
.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(15, 111, 176, 0.1);
  border: 1px solid rgba(15, 111, 176, 0.16);
  padding: 8px 12px;
  border-radius: 999px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5.2vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 14ch;
}
.hero-lead {
  margin: 0;
  max-width: 40ch;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.6;
  color: var(--muted);
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}
.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.92;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 8% auto;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 111, 176, 0.28), transparent 68%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}
.phone {
  position: relative;
  z-index: 1;
  width: min(320px, 100%);
  margin-inline: auto;
  background: linear-gradient(160deg, #151821, #0a0c12);
  border: 2px solid var(--phone-line);
  border-radius: 44px;
  padding: 11px;
  box-shadow:
    0 40px 80px rgba(11, 37, 69, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.08);
  animation: phoneIn 0.9s var(--ease) both;
}
.phone img { border-radius: 34px; }
.phone-sm { width: min(220px, 100%); border-radius: 36px; padding: 9px; }
.phone-sm img { border-radius: 28px; }

.features {
  background:
    radial-gradient(700px 280px at 10% 0%, rgba(15, 111, 176, 0.28), transparent 60%),
    linear-gradient(160deg, #0b2545 0%, #0f3a66 55%, #0b2545 100%);
  color: #f3f6fb;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.features h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-align: center;
}
.features .section-lead {
  color: rgba(243, 246, 251, 0.72) !important;
  margin: 0 auto 40px;
  text-align: center;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  padding: 26px 24px;
  display: grid;
  gap: 10px;
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}
.feature-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.feature-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 600;
}
.feature-card::before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(15, 111, 176, 0.18);
  margin-bottom: 4px;
  background-color: rgba(15, 111, 176, 0.1);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}
.feature-card:nth-child(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%230f6fb0' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10'/%3E%3Cpath d='M8 7l4-4 4 4'/%3E%3Ccircle cx='12' cy='17' r='3'/%3E%3C/svg%3E");
}
.feature-card:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%230f6fb0' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M4 16l4-8 4 5 3-3 5 6'/%3E%3C/svg%3E");
}
.feature-card:nth-child(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%230f6fb0' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v4l3 2'/%3E%3C/svg%3E");
}
.feature-card:nth-child(4)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%230f6fb0' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M6 7h12v12H6z'/%3E%3Cpath d='M9 7V5h6v2'/%3E%3C/svg%3E");
}
.feature-card:nth-child(5)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%230f6fb0' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
}
.feature-card:nth-child(6)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%230f6fb0' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h10v16H7z'/%3E%3Cpath d='M10 8h4M10 12h4M10 16h3'/%3E%3C/svg%3E");
}

.screens {
  padding: 100px 0 72px;
}
.screens h2,
.faq h2 {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.section-lead {
  margin: 0 auto 36px;
  max-width: 48ch;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
}
.screen-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 16px;
  justify-items: center;
  align-items: start;
}
.screen-item {
  display: grid;
  gap: 14px;
  justify-items: center;
  width: 100%;
  max-width: 220px;
}
.screen-item p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--ink);
}
.screen-item:nth-child(4),
.screen-item:nth-child(5) {
  grid-column: auto;
}

.faq {
  padding: 24px 0 80px;
}
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin-inline: auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2px 20px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 18px 0;
  letter-spacing: -0.02em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.6;
}

.cta { padding: 0 0 96px; }
.cta-box {
  border-radius: 30px;
  padding: 52px 40px;
  background:
    radial-gradient(700px 260px at 12% 0%, rgba(26, 154, 224, 0.4), transparent 58%),
    linear-gradient(145deg, #0b2545, #0f6fb0 130%);
  color: #fff;
  display: grid;
  gap: 18px;
  justify-items: start;
  box-shadow: 0 28px 60px rgba(11, 37, 69, 0.28);
}
.cta-box h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 18ch;
}
.cta-box p {
  margin: 0;
  max-width: 42ch;
  opacity: 0.92;
  font-weight: 600;
  line-height: 1.55;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer {
  padding: 0 0 calc(40px + var(--safe-b));
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-nav a {
  color: var(--accent);
  font-weight: 750;
}

@keyframes phoneIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Auth ---------- */
body.body-auth {
  font-size: 16px !important;
  font-weight: 600;
  background:
    radial-gradient(1000px 480px at 10% -10%, rgba(15, 111, 176, 0.14), transparent 55%),
    radial-gradient(800px 400px at 100% 0%, rgba(11, 37, 69, 0.07), transparent 50%),
    #eef3f9 !important;
  color: var(--ink) !important;
  min-height: 100svh;
}
body.body-auth .app,
body.body-auth .bottom-nav { display: none !important; }

.auth-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-x: clip;
}
.auth-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 40px 0 calc(48px + var(--safe-b));
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px 30px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  animation: phoneIn 0.7s var(--ease) both;
}
.auth-card > p:first-child {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.auth-card h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--ink);
}
.auth-lead {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}
.auth-toast { margin: 4px 0 0; }
.auth-form {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}
.auth-form label,
.auth-form .lock-label {
  margin-top: 8px;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted) !important;
}
.auth-form input {
  width: 100% !important;
  max-width: 100%;
  min-height: 52px !important;
  border-radius: 14px !important;
  border: 1px solid var(--line) !important;
  background: #f4f7fb !important;
  color: var(--ink) !important;
  padding: 0 14px !important;
  font: inherit !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  margin: 0 !important;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.auth-form input:focus {
  outline: none !important;
  border-color: rgba(15, 111, 176, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(15, 111, 176, 0.14) !important;
  background: #fff !important;
}
.auth-submit {
  width: 100% !important;
  margin-top: 14px !important;
  min-height: 52px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, #1a9ae0, var(--accent) 48%, #0b2545) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 1.02rem !important;
  box-shadow: 0 14px 32px rgba(15, 111, 176, 0.3) !important;
  cursor: pointer;
}
.auth-switch {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}
.auth-switch a {
  color: var(--accent);
  font-weight: 800;
  border-bottom: 1px solid rgba(15, 111, 176, 0.3);
}
.auth-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.auth-shell .toast-success {
  background: rgba(18, 163, 106, 0.12);
  color: #0f7a4d;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
}
.auth-shell .toast-error {
  background: rgba(226, 85, 85, 0.12);
  color: #b42318;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .screen-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
  }
  .hero h1 { max-width: none; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 28px;
  }
  .auth-visual { display: none; }
}
@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, 1160px);
  }
  .site-header .wrap { min-height: 64px; gap: 10px; }
  .nav {
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
  }
  .nav a.nav-link { display: none; }
  .nav .btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.84rem;
    border-radius: 12px;
  }
  .feature-grid,
  .screen-grid { grid-template-columns: 1fr; }
  .screen-item { max-width: 280px; }
  .phone-sm { width: min(260px, 100%); }
  .cta-box { padding: 36px 22px; border-radius: 24px; }
  .auth-card { padding: 28px 18px; border-radius: 22px; }
  .hero { padding: 28px 0 56px; gap: 28px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
