:root {
  --indigo: #1e3a8a;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --ink: #0f172a;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #eef2ff;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(30, 58, 138, 0.18);
  --grad: linear-gradient(120deg, var(--indigo), var(--blue) 55%, var(--cyan));
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ===================== Header ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--slate); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; }

/* ===================== Hero ===================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(6, 182, 212, 0.16), transparent 60%),
    radial-gradient(900px 480px at 12% 0%, rgba(37, 99, 235, 0.14), transparent 55%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px;
  align-items: center; padding: 84px 24px 90px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); color: var(--slate);
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.02em;
  margin: 22px 0 18px; font-weight: 800;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead { font-size: 18.5px; color: var(--slate); max-width: 560px; margin: 0 0 28px; }

.install-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-md); max-width: 560px;
}
.install-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.install-cmd {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); border-radius: var(--radius-sm); padding: 12px 12px 12px 16px;
}
.install-cmd code {
  font-family: var(--mono); color: #e2e8f0; font-size: 14.5px; flex: 1;
  overflow-x: auto; white-space: nowrap;
}
.copy-btn {
  position: relative; flex-shrink: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; font-family: var(--font);
  transition: background 0.15s ease;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.22); }
.copy-btn .copy-done { display: none; }
.copy-btn.copied .copy-default { display: none; }
.copy-btn.copied .copy-done { display: inline; }
.copy-btn.copied { background: #16a34a; border-color: #16a34a; }
.install-hint { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

.hero-badges { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.badge { display: flex; flex-direction: column; }
.badge strong { font-size: 24px; font-weight: 800; color: var(--ink); }
.badge span { font-size: 13px; color: var(--muted); }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; }
.window {
  width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.dotmac { width: 12px; height: 12px; border-radius: 50%; }
.dotmac.red { background: #ff5f57; } .dotmac.yellow { background: #febc2e; } .dotmac.green { background: #28c840; }
.window-title { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.window-body { display: flex; align-items: center; gap: 14px; padding: 28px 22px; }

.wave { display: flex; align-items: center; gap: 4px; height: 96px; }
.wave span {
  width: 5px; border-radius: 3px; background: var(--grad);
  animation: wave 1.3s ease-in-out infinite;
}
.wave span:nth-child(odd) { animation-delay: 0.15s; }
.wave span:nth-child(3n) { animation-delay: 0.3s; }
.wave span:nth-child(4n) { animation-delay: 0.45s; }
@keyframes wave { 0%, 100% { height: 18px; } 50% { height: 78px; } }

.arrow { font-size: 26px; color: var(--blue); font-weight: 700; }
.letter {
  flex: 1; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; min-height: 150px;
}
.letter-head { margin-bottom: 12px; }
.letter-head strong { display: block; font-size: 12.5px; }
.letter-head span { font-size: 11px; color: var(--muted); }
.l-line { height: 7px; border-radius: 4px; background: #cbd5e1; margin: 7px 0; }
.l-line.w90 { width: 90%; } .l-line.w80 { width: 80%; } .l-line.w75 { width: 75%; }
.l-line.w70 { width: 70%; } .l-line.w60 { width: 60%; }
.letter-sign { margin-top: 14px; text-align: right; font-size: 11px; font-weight: 600; color: var(--slate); }

/* ===================== Trust strip ===================== */
.trust { background: var(--ink); color: #cbd5e1; }
.trust-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  padding: 16px 24px; font-size: 14px; font-weight: 500;
}
.trust .sep { color: #475569; }

/* ===================== Sections ===================== */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.kicker.light { color: #93c5fd; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 800; }
.section-head p { font-size: 17.5px; color: var(--slate); margin: 0; }

/* Features grid */
.grid { display: grid; gap: 22px; }
.features { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .ico {
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 26px;
  background: var(--bg-tint); border-radius: 13px; margin-bottom: 16px;
}
.card h3 { font-size: 19px; margin: 0 0 8px; font-weight: 700; }
.card p { color: var(--slate); margin: 0; font-size: 15.5px; }

/* Privacy */
.section-privacy {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(6, 182, 212, 0.20), transparent 60%),
    var(--ink);
  color: #e2e8f0;
}
.privacy-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 52px; align-items: center; }
.privacy-copy h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.14; margin: 0 0 16px; font-weight: 800; }
.privacy-copy p { color: #cbd5e1; font-size: 17px; margin: 0 0 22px; }
.privacy-copy strong { color: #fff; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: #e2e8f0; font-size: 15.5px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; display: grid; place-items: center;
  background: rgba(34, 197, 94, 0.18); color: #4ade80; border-radius: 50%; font-size: 13px; font-weight: 700;
}
.privacy-link { margin: 22px 0 0; }
.privacy-link a { color: #93c5fd; font-weight: 600; }
.privacy-card {  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px; padding: 36px 30px; text-align: center; backdrop-filter: blur(4px);
}
.shield { font-size: 46px; margin-bottom: 14px; }
.privacy-stat { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.privacy-stat strong { color: #4ade80; font-size: 30px; }
.privacy-sub { font-size: 14px; color: #94a3b8; }

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step;
}
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); position: relative;
}
.step-num {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin: 0 0 6px; }
.step p { color: var(--slate); font-size: 14.5px; margin: 0; }
.pipeline {
  background: var(--ink); border-radius: var(--radius); padding: 18px 22px; text-align: center;
  overflow-x: auto;
}
.pipeline code { font-family: var(--mono); color: #7dd3fc; font-size: 14.5px; white-space: nowrap; }

/* Install section */
.section-install { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.install-card {
  max-width: 760px; margin: 0 auto 36px; background: var(--ink);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
}
.install-card-top {
  display: flex; align-items: center; gap: 7px; padding: 13px 18px;
  background: #1b2638; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.term-dot { width: 12px; height: 12px; border-radius: 50%; }
.term-dot.red { background: #ff5f57; } .term-dot.yellow { background: #febc2e; } .term-dot.green { background: #28c840; }
.term-title { margin-left: 8px; font-size: 13px; color: #94a3b8; font-weight: 600; }
.install-card-body { padding: 26px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.install-card-body pre { margin: 0; width: 100%; overflow-x: auto; }
.install-card-body code { font-family: var(--mono); color: #e2e8f0; font-size: 16px; }
.install-card-body code::before { content: "$ "; color: #64748b; }

.install-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 900px; margin: 0 auto 28px; }
.meta-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.meta-item h4 { margin: 0 0 8px; font-size: 16px; }
.meta-item p { margin: 0; color: var(--slate); font-size: 14.5px; }
.install-note { text-align: center; color: var(--muted); font-size: 14.5px; }
code { font-family: var(--mono); background: rgba(15, 23, 42, 0.06); padding: 1px 6px; border-radius: 5px; font-size: 0.9em; }
.install-card-body code, .pipeline code, .install-cmd code, .cta-cmd code { background: transparent; padding: 0; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 20px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16.5px; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--blue); font-weight: 400; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--slate); font-size: 15.5px; }

/* CTA */
.cta { background: var(--grad); color: #fff; padding: 76px 0; }
.cta-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; font-weight: 800; }
.cta p { font-size: 18px; opacity: 0.92; margin: 0 0 28px; }
.cta-cmd {
  max-width: 540px; margin: 0 auto; background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Footer */
.site-footer { background: var(--ink); color: #94a3b8; padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-brand img { background: #fff; padding: 6px 10px; border-radius: 8px; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; font-size: 14.5px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer-nav h5 { color: #fff; font-size: 14px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-nav a { display: block; color: #94a3b8; font-size: 14.5px; margin-bottom: 8px; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; font-size: 13.5px; flex-wrap: wrap; gap: 8px; }

/* ===================== Legal / Privacy page ===================== */
.legal { padding: 64px 0 80px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.legal-inner { max-width: 820px; margin: 0 auto; }
.legal-inner h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin: 12px 0 6px; font-weight: 800; }
.legal-meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.legal-callout {
  background: var(--bg-tint); border: 1px solid #c7d2fe; border-radius: var(--radius);
  padding: 20px 22px; color: var(--ink); font-size: 16px; margin-bottom: 36px;
}
.legal-inner h2 { font-size: 21px; margin: 34px 0 10px; font-weight: 700; }
.legal-inner p { color: var(--slate); font-size: 16px; margin: 0 0 14px; }
.legal-inner ul { color: var(--slate); font-size: 16px; padding-left: 22px; margin: 0 0 14px; }
.legal-inner li { margin-bottom: 8px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); }
.legal-table th { background: #fff; font-weight: 700; color: var(--ink); }
.legal-table td { background: #fff; color: var(--slate); }
.legal-back { margin-top: 36px; font-weight: 600; }

/* ===================== Responsive ===================== */@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 64px; }
  .hero-visual { order: -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .privacy-inner { grid-template-columns: 1fr; gap: 36px; }
  .install-meta { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }
  .site-header.open .nav {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 16px;
  }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .footer-bottom { flex-direction: column; }
}

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