/* ═══════════════════════════════════════════════════════════════════════════
   SureControl — Landing styles
   Design system: controlled infrastructure palette, 8px spacing scale
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;

  --sc-base: #F6F3EE;
  --sc-primary: #1E2F3A;
  --sc-secondary: #5F7A8A;
  --sc-accent: #6F8A86;

  --sc-surface: rgba(246, 243, 238, 0.86);
  --sc-surface-raised: rgba(246, 243, 238, 0.94);
  --sc-surface-secondary: rgba(95, 122, 138, 0.10);
  --sc-surface-accent: rgba(111, 138, 134, 0.12);

  --sc-text: var(--sc-primary);
  --sc-text-muted: rgba(30, 47, 58, 0.72);
  --sc-text-soft: rgba(30, 47, 58, 0.58);
  --sc-text-inverse: var(--sc-base);

  --sc-border: rgba(95, 122, 138, 0.24);
  --sc-border-strong: rgba(30, 47, 58, 0.34);
  --sc-focus: rgba(111, 138, 134, 0.72);

  /* Legacy aliases kept so existing selectors inherit the new system. */
  --ink:       var(--sc-primary);
  --ink-2:     var(--sc-text-muted);
  --muted:     var(--sc-text-soft);
  --paper:     var(--sc-base);
  --surface:   var(--sc-surface-raised);
  --line:      var(--sc-border);
  --line-2:    var(--sc-border-strong);
  --mint:      var(--sc-accent);
  --mint-2:    var(--sc-primary);
  --forest:    var(--sc-primary);
  --dark:      var(--sc-primary);
  --dark-2:    var(--sc-primary);

  /* Spacing scale (8pt) */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

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

  /* Radii + shadow */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(30, 47, 58, 0.06);
  --shadow-md: 0 18px 44px -32px rgba(30, 47, 58, 0.42);
  --shadow-lg: 0 18px 44px -32px rgba(30, 47, 58, 0.42);

  /* Container */
  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 32px);
}

@supports (font-variation-settings: normal) {
  :root { --font-sans: 'Inter var', 'Inter', ui-sans-serif, system-ui, sans-serif; }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

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

/* Focus rings — visible, branded, accessible */
:focus-visible {
  outline: 2px solid var(--mint-2);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Skip link */
.skip-link {
  position: absolute; top: -40px; left: 16px;
  background: var(--ink); color: #F6F3EE;
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  transition: top .15s ease;
  z-index: 100;
}
.skip-link:focus { top: 16px; }

/* ── Typography helpers ────────────────────────────────────────────────── */

h1, h2, h3, h4, p { margin: 0; }

h1 {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
}
h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--mint-2) 0%, var(--forest) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}
h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--mint-2) 0%, var(--forest) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink);
}

h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 56ch;
}

.section-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}
.section-sub.on-dark { color: rgba(246, 243, 238, 0.66); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint-2);
  box-shadow: 0 0 0 4px rgba(30, 47, 58, 0.18);
}
.eyebrow-on-dark { color: var(--mint); }

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(2px); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }

.btn-primary {
  background: var(--ink);
  color: #F6F3EE;
}
.btn-primary:hover {
  background: var(--forest);
  box-shadow: 0 8px 22px -10px rgba(30, 47, 58, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: rgba(30, 47, 58, 0.04);
  border-color: var(--ink);
}

.link-quiet {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  transition: color .18s ease, background .18s ease;
}
.link-quiet:hover { color: var(--ink); background: rgba(30, 47, 58, 0.04); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: var(--s-6);
}
.cta-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--s-3);
}

/* ── Header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 238, 0.0);
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header[data-elevate="true"] {
  background: rgba(246, 243, 238, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--mint-2));
  box-shadow:
    0 0 0 3px rgba(111, 138, 134, 0.18),
    inset 0 -2px 4px rgba(30, 47, 58, 0.18);
  animation: pulse 3.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .brand-mark { animation: none; } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(111, 138, 134, 0.16), inset 0 -2px 4px rgba(30, 47, 58, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(111, 138, 134, 0.0),  inset 0 -2px 4px rgba(30, 47, 58, 0.18); }
}

.brand-name {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.nav-primary {
  display: flex;
  gap: 4px;
}
.nav-primary a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  transition: color .15s ease, background .15s ease;
}
.nav-primary a:hover { color: var(--ink); background: rgba(30, 47, 58, 0.04); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-select {
  height: 36px;
  max-width: 116px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(246, 243, 238, 0.72);
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 0 8px;
}

/* ── Reveal on scroll ──────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 12% 10%, rgba(111, 138, 134, 0.18), transparent 70%),
    radial-gradient(50% 40% at 90% 20%, rgba(30, 47, 58, 0.10), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}
.hero-copy h1 { margin: 16px 0 22px; }

.cta-row { margin-top: 28px; }

/* ── Hero preview card ─────────────────────────────────────────────────── */

.hero-preview {
  perspective: 1200px;
}

.preview-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow:
    0 1px 0 rgba(246, 243, 238, 0.6) inset,
    0 30px 80px -28px rgba(30, 47, 58, 0.30),
    0 8px 24px -12px rgba(30, 47, 58, 0.10);
  overflow: hidden;
  transform: rotateX(2deg) rotateY(-3deg);
  transition: transform .4s ease;
}
@media (prefers-reduced-motion: reduce) { .preview-card { transform: none; } }
.hero-preview:hover .preview-card { transform: rotateX(0) rotateY(0); }

.preview-chrome {
  display: flex;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(30, 47, 58, 0.02);
}
.preview-chrome span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(30, 47, 58, 0.12);
}

.preview-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bubble {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 92%;
}
.bubble-user {
  align-self: flex-end;
  background: var(--ink);
  color: #F6F3EE;
  border-bottom-right-radius: 4px;
}
.bubble-ai {
  align-self: flex-start;
  background: rgba(30, 47, 58, 0.04);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.bubble-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.bubble-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink);
}
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--mint-2);
  color: #F6F3EE;
  font-size: 10px;
  font-weight: 700;
}

.permission {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.permission-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.permission-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint-2);
}
.permission p {
  margin: 8px 0 12px;
  font-size: 14px;
  color: var(--ink);
}
.permission-actions {
  display: flex;
  gap: 8px;
}
.chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
}
.chip-ghost {
  border-color: var(--line-2);
  color: var(--ink-2);
}
.chip-primary {
  background: var(--ink);
  color: #F6F3EE;
}

/* ── Trust strip ───────────────────────────────────────────────────────── */

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 238, 0.5);
}
.trust-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-7) var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-6);
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trust-num {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.trust-label {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* ── Sections ──────────────────────────────────────────────────────────── */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-9) var(--gutter);
}
.section-heading {
  max-width: 720px;
  margin-bottom: var(--s-7);
}
.section-heading .eyebrow { margin-bottom: 16px; }
.section-heading h2       { margin-bottom: 16px; }

/* ── Features ──────────────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.feature:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(30, 47, 58, 0.12);
  color: var(--forest);
  margin-bottom: 16px;
}
.feature h3 { margin-bottom: 8px; }
.feature p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ── Privacy / dark section ────────────────────────────────────────────── */

.section-dark {
  background: var(--dark);
  color: #F6F3EE;
  max-width: none;
  padding: var(--s-9) 0;
  position: relative;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 90% 0%, rgba(111, 138, 134, 0.10), transparent 60%);
  pointer-events: none;
}
.dark-grid {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.section-dark h2 { color: #F6F3EE; margin-bottom: 16px; }

.check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: rgba(246, 243, 238, 0.84);
}
.check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--mint-2);
  color: var(--dark);
  font-size: 11px;
  font-weight: 700;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.perm-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(246, 243, 238, 0.04);
  border: 1px solid rgba(246, 243, 238, 0.08);
  border-radius: var(--r-md);
  font-size: 14px;
  color: #F6F3EE;
  transition: background .2s ease, border-color .2s ease;
}
.perm-tile:hover {
  background: rgba(246, 243, 238, 0.06);
  border-color: rgba(111, 138, 134, 0.30);
}
.perm-tile span { font-weight: 600; }
.perm-tile em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
}

/* ── Steps ─────────────────────────────────────────────────────────────── */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  transition: border-color .2s ease, transform .2s ease;
}
.step:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.step-num {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--mint-2);
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 6px; }
.step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* ── Final CTA ─────────────────────────────────────────────────────────── */

.final-cta {
  padding: var(--s-9) var(--gutter);
  text-align: center;
}
.final-inner {
  max-width: 740px;
  margin: 0 auto;
}
.final-cta h2 { margin-bottom: 16px; }
.final-cta p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: var(--s-6);
}
.final-cta .cta-row { justify-content: center; margin-top: 0; }

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: rgba(246, 243, 238, 0.66);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-8) var(--gutter) var(--s-6);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: start;
}
.site-footer .brand-name { color: #F6F3EE; }
.footer-tag {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(246, 243, 238, 0.55);
  max-width: 32ch;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-cols h4 {
  color: #F6F3EE;
  margin-bottom: 14px;
}
.footer-cols a {
  display: block;
  font-size: 14px;
  color: rgba(246, 243, 238, 0.62);
  padding: 6px 0;
  transition: color .15s ease;
}
.footer-cols a:hover { color: #F6F3EE; }
.footer-base {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-5) var(--gutter);
  border-top: 1px solid rgba(246, 243, 238, 0.10);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(246, 243, 238, 0.50);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 960px) {
  .nav-primary { display: none; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .preview-card { transform: none; }

  .features,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-5);
  }

  .dark-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .header-inner {
    padding: 12px 18px;
  }

  .nav-actions .link-quiet { display: none; }

  .hero {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .features,
  .steps,
  .permissions-grid {
    grid-template-columns: 1fr;
  }

  .perm-tile { padding: 12px 14px; }

  .section,
  .final-cta { padding-top: 64px; padding-bottom: 64px; }

  .section-dark { padding-top: 64px; padding-bottom: 64px; }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-lg { height: 48px; }
}

/* ──────────────────────────────────────────────────────────────
   2026 polish pass: quieter enterprise surface, stronger product signal
   ────────────────────────────────────────────────────────────── */
:root {
  --ink:       var(--sc-primary);
  --ink-2:     var(--sc-text-muted);
  --muted:     var(--sc-text-soft);
  --paper:     var(--sc-base);
  --surface:   var(--sc-surface-raised);
  --line:      var(--sc-border);
  --line-2:    var(--sc-border-strong);
  --mint:      var(--sc-accent);
  --mint-2:    var(--sc-primary);
  --forest:    var(--sc-primary);
  --dark:      var(--sc-primary);
  --dark-2:    var(--sc-primary);
  --shadow-md: 0 18px 44px -28px rgba(30, 47, 58, 0.35);
  --shadow-lg: 0 34px 90px -42px rgba(30, 47, 58, 0.45);
}

body {
  background:
    linear-gradient(180deg, #F6F3EE 0%, var(--paper) 44%, #F6F3EE 100%);
}

h1 {
  max-width: 10.8ch;
  font-size: clamp(44px, 6.9vw, 86px);
  letter-spacing: -0.035em;
}

h1 em,
h2 em {
  background: linear-gradient(135deg, #1E2F3A 0%, #5F7A8A 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding-top: clamp(56px, 7vw, 92px);
  padding-bottom: clamp(42px, 6vw, 72px);
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(111, 138, 134, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(30, 47, 58, 0.035), transparent 44%);
}

.hero::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 243, 238, 0.72);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.preview-card {
  border-radius: 26px;
  border-color: rgba(30, 47, 58, 0.12);
  box-shadow: var(--shadow-lg);
}

.preview-chrome {
  background: #1E2F3A;
  border-bottom-color: rgba(246, 243, 238, 0.08);
}

.preview-chrome span { background: rgba(246, 243, 238, 0.26); }

.preview-body {
  background:
    linear-gradient(180deg, #1E2F3A 0%, #1E2F3A 100%);
  color: #F6F3EE;
}

.preview-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(246, 243, 238, 0.48);
  font-size: 12px;
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(111, 138, 134, 0.12);
  color: var(--mint);
  border: 1px solid rgba(111, 138, 134, 0.25);
}

.preview-body .bubble-user {
  background: #F6F3EE;
  color: #1E2F3A;
}

.preview-body .bubble-ai {
  background: rgba(246, 243, 238, 0.07);
  border-color: rgba(246, 243, 238, 0.10);
  color: rgba(246, 243, 238, 0.82);
}

.preview-body .bubble-list li { color: rgba(246, 243, 238, 0.88); }

.preview-body .permission {
  background: rgba(246, 243, 238, 0.06);
  border-color: rgba(246, 243, 238, 0.13);
  box-shadow: none;
}

.preview-body .permission-head,
.preview-body .permission p { color: rgba(246, 243, 238, 0.86); }

.preview-body .chip-ghost {
  border-color: rgba(246, 243, 238, 0.18);
  color: rgba(246, 243, 238, 0.62);
}

.preview-body .chip-primary {
  background: var(--mint);
  color: #1E2F3A;
}

.composer-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 8px 0 14px;
  border-radius: 14px;
  background: rgba(246, 243, 238, 0.09);
  border: 1px solid rgba(246, 243, 238, 0.12);
  color: rgba(246, 243, 238, 0.42);
  font-size: 13px;
}

.composer-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #F6F3EE;
  color: #1E2F3A;
  font-weight: 700;
}

.trust {
  background: rgba(246, 243, 238, 0.72);
  backdrop-filter: blur(10px);
}

.feature,
.step {
  border-radius: 16px;
}

.section-dark {
  background:
    linear-gradient(180deg, #1E2F3A 0%, #1E2F3A 100%);
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  h1 { max-width: 12ch; }
}

/* ──────────────────────────────────────────────────────────────
   Brand pass: Surecontol logo + sober premium tweaks
   ────────────────────────────────────────────────────────────── */

/* Brand: SVG logo + wordmark, single color via currentColor */
.brand {
  color: var(--ink);
  letter-spacing: -0.005em;
  transition: opacity .18s ease;
}
.brand:hover { opacity: 0.78; }

.brand-logo {
  flex-shrink: 0;
  display: block;
  width: 28px;
  height: 28px;
  transition: transform .25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.brand:hover .brand-logo { transform: rotate(-3deg); }

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: inherit;
}

/* Footer: invert brand colors (dark surface) */
.site-footer .brand,
.site-footer .brand-logo,
.site-footer .brand-name {
  color: #F6F3EE;
}
.site-footer .brand:hover { opacity: 0.78; }

/* Drop the gradient on emphasized headline words — premium SaaS goes sober */
h1 em,
h2 em {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--forest);
  font-style: normal;
}

/* Tighter spacing between logo and wordmark */
.header-inner .brand,
.footer-brand .brand { gap: 9px; }

/* Mobile: brand spacing stays comfortable */
@media (max-width: 640px) {
  .brand-name { font-size: 14.5px; }
}

/* Hero product preview — embedded demo app */
.preview-card--demo {
  background: #1E2F3A;
  contain: layout paint;
  isolation: isolate;
}

.preview-frame {
  display: block;
  width: 100%;
  height: clamp(480px, 58vh, 620px);
  border: 0;
  background: #1E2F3A;
  border-top: 1px solid var(--line);
  overscroll-behavior: contain;
}

@media (max-width: 960px) {
  .preview-frame { height: min(600px, 70vh); }
}

@media (max-width: 640px) {
  .preview-frame { height: 480px; }
}

/* ── Push notification prompt ─────────────────────────────────────────────── */
.push-prompt {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  background: var(--surface, #F6F3EE);
  border: 1px solid var(--line, rgba(30, 47, 58,.10));
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(30, 47, 58,.10);
  max-width: 340px;
  width: calc(100vw - 3rem);
  animation: push-slide-in 0.25s ease;
}

@keyframes push-slide-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.push-prompt-inner {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.push-prompt-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink, #1E2F3A);
}

.push-prompt-actions {
  display: flex;
  gap: 0.5rem;
}

.push-settings-hint {
  font-size: 0.8125rem;
  color: var(--muted, #5F7A8A);
  display: block;
  padding: 1rem 1.25rem;
}
