:root {
  --ink: #12213a;
  --ink-soft: #42546d;
  --muted: #71839c;
  --line: #e4ebf5;
  --bg: #f8fbff;
  --white: #ffffff;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --teal: #06b6d4;
  --violet: #7c3aed;
  --shadow-sm: 0 8px 24px rgba(29, 78, 216, 0.08);
  --shadow-md: 0 24px 60px rgba(20, 45, 90, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.hidden { display: none !important; }

/* ---------- Shared brand and buttons ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: block; flex: 0 0 auto; }
.brand-word { font-size: 20px; font-weight: 750; letter-spacing: -0.03em; }
.brand-word .brand-light { font-weight: 400; color: var(--muted); margin-left: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 20px; border-radius: 11px;
  border: 1px solid transparent; cursor: pointer;
  font-size: 14px; font-weight: 600; line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 36px; padding: 0 15px; font-size: 13px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; min-height: 48px; font-size: 15px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 130%);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}
.btn-primary:hover { box-shadow: 0 16px 32px rgba(37, 99, 235, 0.3); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-outline { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-outline:hover { border-color: #b9cbe4; }
.btn-ghost { color: var(--ink-soft); background: transparent; }
.btn-ghost:hover { background: rgba(37, 99, 235, 0.06); }
.btn-arrow { font-size: 17px; font-weight: 500; }

/* ---------- Landing header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(248, 251, 255, 0.86);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(228, 235, 245, 0.9);
}
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a { font-size: 14px; color: var(--ink-soft); }
.site-nav > a:hover { color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 420px at 88% 8%, rgba(6, 182, 212, 0.10), transparent 62%),
    radial-gradient(680px 420px at 8% 24%, rgba(37, 99, 235, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px;
  align-items: center; padding: 84px 0 74px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 20px; padding: 7px 13px;
  border: 1px solid #dbe7fa; border-radius: 999px;
  background: rgba(255,255,255,0.75);
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--blue);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.hero h1 {
  margin: 0; font-size: clamp(46px, 5.4vw, 70px); line-height: 1.05;
  letter-spacing: -0.045em; font-weight: 780;
}
.accent-text {
  background: linear-gradient(100deg, var(--blue), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 24px 0 0; max-width: 560px; font-size: 18px; line-height: 1.7; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin: 30px 0 0; padding: 0; list-style: none; }
.trust-row li { position: relative; padding-left: 18px; font-size: 12.5px; color: var(--muted); }
.trust-row li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}
.hero-art svg { display: block; width: 100%; height: auto; }

/* ---------- Features ---------- */
.features { padding: 88px 0 92px; background: var(--white); }
.section-kicker { margin: 0 0 12px; font-size: 11px; font-weight: 750; letter-spacing: 0.18em; color: var(--blue); }
.features h2, .security h2, .closing h2 {
  margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -0.035em;
}
.section-sub { margin: 14px 0 0; max-width: 620px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.feature-card {
  padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfdff5; }
.feature-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.feature-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.feature-icon.teal { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.feature-icon.violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.feature-card h3 { margin: 22px 0 10px; font-size: 17px; letter-spacing: -0.01em; }
.feature-card p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ---------- Security band ---------- */
.security { padding: 78px 0; background: linear-gradient(135deg, #10254a 0%, #123b63 100%); color: #fff; }
.security-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.security .section-kicker { color: #7dd3fc; }
.security .section-sub { color: #b7c8e0; }
.check-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #e6f0ff; }
.check-list span {
  width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(125, 211, 252, 0.16); color: #7dd3fc; font-size: 13px;
}

/* ---------- Closing CTA ---------- */
.closing { padding: 84px 0; background: var(--bg); }
.closing-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 44px 48px; border: 1px solid #dce8f8; border-radius: 22px;
  background: linear-gradient(110deg, #ffffff, #eef6ff);
  box-shadow: var(--shadow-sm);
}
.closing p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 26px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* ---------- Sign-in page ---------- */
.auth-view {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 96px 20px 48px;
  background:
    radial-gradient(700px 460px at 15% 5%, rgba(37, 99, 235, 0.11), transparent 62%),
    radial-gradient(620px 420px at 88% 92%, rgba(6, 182, 212, 0.12), transparent 60%),
    #f6f9fe;
}
.auth-shell { width: 100%; max-width: 440px; position: relative; }
.auth-back {
  position: absolute; top: -52px; left: 2px;
  font-size: 13px; color: var(--muted);
}
.auth-back:hover { color: var(--blue); }
.auth-card {
  padding: 36px 36px 26px; border: 1px solid var(--line); border-radius: 22px;
  background: #fff; box-shadow: var(--shadow-md);
}
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand strong { font-size: 19px; letter-spacing: -0.03em; }
.auth-brand strong span { font-weight: 400; color: var(--muted); margin-left: 4px; }
.auth-brand small { display: block; margin-top: 2px; font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.auth-card h1 { margin: 28px 0 0; font-size: 26px; letter-spacing: -0.03em; }
.auth-sub { margin: 8px 0 26px; font-size: 14px; color: var(--muted); }
.field { display: block; margin-bottom: 17px; }
.field > span { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.input-wrap { position: relative; }
.input-wrap input {
  width: 100%; height: 48px; padding: 0 44px 0 14px;
  border: 1px solid #d9e2f0; border-radius: 11px;
  background: #fbfdff; color: var(--ink); font-size: 14px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input-wrap input::placeholder { color: #9aabc0; }
.input-wrap input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.eye {
  position: absolute; right: 6px; top: 8px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: #8b9cb3; cursor: pointer;
}
.eye:hover { color: var(--ink); background: #f1f5fb; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 20px; }
.remember { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.remember input { width: 15px; height: 15px; accent-color: var(--blue); cursor: pointer; }
.muted-link { font-size: 12.5px; color: var(--blue); }
.muted-link:hover { text-decoration: underline; }
.alert {
  margin-bottom: 16px; padding: 11px 13px; border-radius: 10px;
  background: #fff2f2; border: 1px solid #fecaca; color: #b42318; font-size: 13px; line-height: 1.5;
}
.spinner {
  position: absolute; right: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border: 2px solid rgba(255,255,255,0.45); border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.auth-foot { margin: 20px 0 0; text-align: center; font-size: 11.5px; color: #9aabc0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; padding: 60px 0 56px; }
  .hero-art { max-width: 560px; }
  .feature-grid { grid-template-columns: 1fr; }
  .security-inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 32px, 1160px); }
  .site-nav { gap: 14px; }
  .site-nav > a { display: none; }
  .header-inner { height: 62px; }
  .hero h1 { font-size: 42px; }
  .lede { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .closing-inner { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
  .closing-inner .btn { width: 100%; }
  .auth-card { padding: 28px 22px 22px; }
  .site-footer .wrap { flex-direction: column; gap: 8px; }
}
