:root {
  --canvas: #EEF1F5;
  --canvas-alt: #E4E9F0;
  --ink: #14161F;
  --ink-soft: #4B5165;
  --line: #D3DAE5;
  --indigo: #3D5AFE;
  --indigo-deep: #2A3FCB;
  --teal: #00C2A8;
  --coral: #FF5D5D;
  --white: #FFFFFF;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0; }

/* subtle grain so the flat canvas doesn't feel like a flat template */
.noise-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 11px 18px; font-weight: 600; font-size: 14px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, filter .15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--indigo), var(--indigo-deep)); color: #fff; box-shadow: 0 10px 24px rgba(61,90,254,0.28); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--white); }
.btn-lg { padding: 14px 22px; font-size: 15px; }

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(238,241,245,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 18px; text-decoration: none; }
.logo-mark { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, var(--indigo), var(--teal)); display: inline-block; }
.nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }

/* ---------------- Hero ---------------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 88px 28px 96px; position: relative; z-index: 2; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo-deep); margin-bottom: 18px; }
.hero-copy h1 { font-size: 52px; line-height: 1.06; margin-bottom: 22px; }
.lede { font-size: 17px; color: var(--ink-soft); max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.hero-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }
.hero-meta .dot { margin: 0 8px; color: var(--line); }

.browser-mock {
  background: var(--white); border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(20,22,31,0.14); overflow: hidden; position: relative;
}
.browser-chrome { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--canvas-alt); }
.chrome-dot { width: 8px; height: 8px; border-radius: 50%; background: #D3DAE5; }
.chrome-url { margin-left: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); background: var(--white); padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); }
.browser-page { padding: 26px 24px; }
.page-line { height: 10px; border-radius: 4px; background: var(--canvas-alt); margin-bottom: 12px; }
.page-line.w-70 { width: 70%; height: 16px; }
.page-line.w-100 { width: 100%; }
.page-line.w-90 { width: 90%; }
.page-line.w-40 { width: 40%; margin-bottom: 20px; }
.page-block { width: 100%; height: 90px; border-radius: 10px; background: linear-gradient(135deg, #E7EBF3, #DDE3ED); }

.widget-mock {
  position: absolute; right: 18px; bottom: 18px; width: 230px;
  background: #14161F; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 44px rgba(10,12,20,0.35);
  border: 1px solid rgba(255,255,255,0.06);
}
.widget-header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #1B1E2B; border-bottom: 1px solid rgba(255,255,255,0.06); }
.widget-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ECC71; box-shadow: 0 0 6px #2ECC71; flex: none; }
.widget-titles { line-height: 1.15; flex: 1; }
.widget-title { font-size: 11px; font-weight: 700; color: #EDEEF3; }
.widget-sub { font-size: 9px; color: #9AA0B4; }
.widget-count { font-size: 9px; color: #9AA0B4; font-family: var(--font-mono); }
.widget-messages { min-height: 132px; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.wm-row { display: flex; opacity: 0; transform: translateY(6px); animation: wm-in .35s ease forwards; }
.wm-row.mine { justify-content: flex-end; }
.wm-bubble { max-width: 80%; background: #22263A; color: #EDEEF3; font-size: 10.5px; padding: 6px 9px; border-radius: 10px 10px 10px 3px; }
.wm-row.mine .wm-bubble { background: linear-gradient(135deg, #3D5AFE, #2843d1); border-radius: 10px 10px 3px 10px; }
@keyframes wm-in { to { opacity: 1; transform: translateY(0); } }
.widget-composer { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-top: 1px solid rgba(255,255,255,0.06); background: #1B1E2B; }
.composer-placeholder { font-size: 10px; color: #757C93; }
.composer-send { color: #7C9BFF; font-size: 12px; }

/* ---------------- How it works ---------------- */
.how { padding: 40px 28px 90px; }
.how h2 { font-size: 30px; margin-bottom: 40px; max-width: 560px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how-step { border-top: 1px solid var(--ink); padding-top: 18px; }
.how-index { font-family: var(--font-mono); font-size: 13px; color: var(--indigo-deep); }
.how-step h3 { font-size: 19px; margin: 10px 0 8px; }
.how-step p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---------------- Features ---------------- */
.features { padding: 40px 28px 100px; }
.features-head { max-width: 560px; margin-bottom: 40px; }
.features-head h2 { font-size: 30px; margin-bottom: 12px; }
.features-head p { color: var(--ink-soft); font-size: 15px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.feature-icon { font-size: 20px; color: var(--indigo); margin-bottom: 14px; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 13.5px; margin: 0; }

/* ---------------- Privacy ---------------- */
.privacy { padding: 20px 28px 100px; }
.privacy-card { background: #14161F; color: #EDEEF3; border-radius: 20px; padding: 48px; }
.privacy-card h2 { font-size: 28px; margin-bottom: 16px; color: #fff; }
.privacy-card p { color: #C6C9D8; max-width: 640px; font-size: 15px; margin-bottom: 28px; }
.privacy-card em { color: #7C9BFF; font-style: normal; }
.privacy-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; font-size: 13.5px; color: #C6C9D8; }
.privacy-points strong { color: #fff; display: block; margin-bottom: 4px; font-weight: 600; }

/* ---------------- Install ---------------- */
.install { padding: 20px 28px 110px; }
.install h2 { font-size: 30px; margin-bottom: 34px; }
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.install-steps ol { padding-left: 20px; margin: 0 0 24px; color: var(--ink-soft); font-size: 14.5px; }
.install-steps li { margin-bottom: 10px; }
.install-steps code { font-family: var(--font-mono); background: var(--canvas-alt); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.install-terminal { background: #14161F; border-radius: 14px; overflow: hidden; }
.terminal-bar { display: flex; gap: 6px; padding: 12px 14px; background: #1B1E2B; }
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: #3a3f54; }
.install-terminal pre { margin: 0; padding: 20px; font-family: var(--font-mono); font-size: 12.5px; color: #B7EFE3; overflow-x: auto; }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-inner p { color: var(--ink-soft); font-size: 13px; margin: 0; }
.footer-links { display: flex; gap: 18px; font-size: 13px; }
.footer-links a { text-decoration: none; color: var(--ink-soft); }

/* ---------------- Responsive ---------------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-copy h1 { font-size: 38px; }
  .nav { display: none; }
  .how-grid, .features-grid { grid-template-columns: 1fr; }
  .install-grid { grid-template-columns: 1fr; }
  .privacy-points { grid-template-columns: 1fr; }
  .privacy-card { padding: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .wm-row { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
