/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #07071a;
  --bg2:      #0d0d26;
  --bg3:      #12122e;
  --accent:   #4f9eff;
  --accent2:  #7b5fff;
  --text:     #e8e8f4;
  --dim:      rgba(232,232,244,0.5);
  --dimmer:   rgba(232,232,244,0.28);
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.12);
  --card:     rgba(255,255,255,0.03);
  --radius:   16px;
  --shadow:   0 32px 80px rgba(0,0,0,0.55);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 99px; }

/* ── Utility ──────────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(79,158,255,0.1);
  color: var(--accent);
  border: 1px solid rgba(79,158,255,0.25);
  padding: 4px 12px; border-radius: 99px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(7,7,26,0.75);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 0 28px; height: 60px;
}
.nav-logo {
  font-size: 15px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo:hover, .nav-logo:hover * { text-decoration: none !important; }
.nav-logo .logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.nav-links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 14px; color: var(--dim); font-weight: 500;
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: flex; align-items: center; gap: 12px;
}
.nav-menu-toggle {
  display: none;
  width: 34px; height: 34px; padding: 0; border: 0; background: transparent;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  cursor: pointer;
}
.nav-menu-toggle span {
  width: 18px; height: 2px; border-radius: 999px;
  background: var(--text); transition: transform 0.22s ease, opacity 0.14s ease;
}
.nav-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.nav-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


@media (min-width: 601px) {
  .mobile-menu-cta { display: none; }
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  border: none; cursor: pointer; transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: scale(0.97) translateY(0); }

.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 20px rgba(79,158,255,0.3);
}
.btn-ghost {
  background: transparent; color: var(--dim);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.btn-lg { padding: 14px 30px; font-size: 15px; border-radius: 12px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  padding: 140px 0 100px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(79,158,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 64px;
}
.hero-badge { margin-bottom: 20px; }
.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px; color: var(--dim); line-height: 1.7;
  max-width: 440px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-platforms {
  margin-top: 28px;
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: var(--dimmer);
}
.hero-platforms .plat {
  display: flex; align-items: center; gap: 5px; font-weight: 500;
}
.hero-platforms svg { opacity: 0.5; }

/* ── App mockup ───────────────────────────────────────────────────────────── */
.app-mockup {
  position: relative;
}
.app-mockup::before {
  content: '';
  position: absolute; inset: -40px;
  background: radial-gradient(ellipse at 50% 50%, rgba(79,158,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.app-window {
  background: rgba(13,13,38,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 48px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
}
.app-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.app-titlebar .dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.dot-red   { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.app-title {
  flex: 1; text-align: center; font-size: 11px;
  color: rgba(255,255,255,0.3); font-weight: 500;
  margin-left: -47px;
}
.app-body {
  display: grid; grid-template-columns: 52px 1fr;
  height: 340px;
}
.app-sidebar {
  background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 0; gap: 4px;
}
.sb-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer; transition: background 0.15s;
  color: rgba(255,255,255,0.35);
}
.sb-icon.active {
  background: rgba(79,158,255,0.12);
  color: var(--accent);
}
.sb-icon:hover { background: rgba(255,255,255,0.05); }
.app-chat {
  display: flex; flex-direction: column;
  flex: 1; overflow: hidden;
  padding: 16px; gap: 14px;
}
.chat-msg {
  display: flex; flex-direction: column; gap: 4px;
}
.chat-msg.user { align-items: flex-end; }
.chat-msg.proton { align-items: flex-start; }
.chat-bubble {
  max-width: 88%; padding: 10px 14px;
  border-radius: 14px; font-size: 12px; line-height: 1.5;
}
.chat-msg.user .chat-bubble {
  background: rgba(79,158,255,0.15);
  border: 1px solid rgba(79,158,255,0.2);
  color: rgba(255,255,255,0.9);
}
.chat-msg.proton .chat-bubble {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.8);
}
.chat-label { font-size: 10px; color: rgba(255,255,255,0.28); font-weight: 500; }
.app-input-bar {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 8px 10px;
  display: flex; gap: 8px; align-items: center;
  flex-shrink: 0;
}
.app-input-fake {
  flex: 1; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 7px; padding: 6px 10px;
  font-size: 11px; color: rgba(255,255,255,0.2);
}
.app-send {
  width: 28px; height: 28px; border-radius: 7px;
  background: rgba(79,158,255,0.2); border: 1px solid rgba(79,158,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.blink {
  display: inline-block; width: 7px; height: 14px;
  background: var(--accent); border-radius: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom; margin-left: 2px;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Section common ───────────────────────────────────────────────────────── */
section { padding: 100px 0; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px; color: var(--dim); line-height: 1.7;
  max-width: 540px;
}
.section-header { margin-bottom: 60px; }

/* ── Features grid ────────────────────────────────────────────────────────── */
.features { background: var(--bg2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card {
  background: var(--bg2);
  padding: 32px 28px;
  transition: background 0.2s;
}
.feature-card:hover { background: rgba(79,158,255,0.04); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(79,158,255,0.1);
  border: 1px solid rgba(79,158,255,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 20px;
}
.feature-title {
  font-size: 16px; font-weight: 700; margin-bottom: 6px;
}
.feature-desc {
  font-size: 14px; color: var(--dim); line-height: 1.6;
}

/* ── Voice section ────────────────────────────────────────────────────────── */
.voice-section {
  position: relative; overflow: hidden;
}
.voice-section::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(123,95,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.voice-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 72px;
}
.voice-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.voice-orb {
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(123,95,255,0.25) 0%, rgba(79,158,255,0.08) 50%, transparent 70%);
  border: 1px solid rgba(123,95,255,0.2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: pulse-orb 3s ease-in-out infinite;
}
.voice-orb::before, .voice-orb::after {
  content: ''; position: absolute; border-radius: 50%;
  border: 1px solid rgba(123,95,255,0.12);
  animation: ring 3s ease-out infinite;
}
.voice-orb::before { width: 280px; height: 280px; animation-delay: 0s; }
.voice-orb::after  { width: 340px; height: 340px; animation-delay: 0.8s; }
@keyframes ring {
  0%   { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 0;   transform: scale(1.1); }
}
@keyframes pulse-orb {
  0%,100% { box-shadow: 0 0 40px rgba(123,95,255,0.15); }
  50%      { box-shadow: 0 0 80px rgba(123,95,255,0.3); }
}
.voice-mic-icon { font-size: 48px; }
.voice-pills {
  display: flex; flex-direction: column; gap: 10px; margin-top: 24px;
}
.voice-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 99px;
  width: fit-content;
}
.voice-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); }

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.pricing { background: var(--bg2); }
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; max-width: 860px; margin: 0 auto;
}
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured {
  border-color: rgba(79,158,255,0.35);
  background: rgba(79,158,255,0.04);
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 99px;
}
.plan-name {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--dim);
  margin-bottom: 16px;
}
.plan-price {
  font-size: 48px; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1; margin-bottom: 4px;
}
.plan-price span { font-size: 18px; font-weight: 500; color: var(--dim); vertical-align: super; margin-right: 6px; }
.plan-period { font-size: 13px; color: var(--dim); margin-bottom: 28px; }
.plan-cta { width: 100%; justify-content: center; margin-bottom: 28px; font-size: 15px; }
.plan-divider {
  height: 1px; background: var(--border); margin-bottom: 24px;
}
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--dim);
}
.plan-features li .check { color: var(--accent); font-size: 14px; margin-top: 1px; flex-shrink: 0; }
.plan-features li .cross { color: var(--dimmer); margin-top: 1px; flex-shrink: 0; }
.plan-features li.muted { color: var(--dimmer); }
.plan-note {
  margin-top: 20px; font-size: 12px; color: var(--dimmer);
  text-align: center; line-height: 1.5;
}

/* ── Download section ─────────────────────────────────────────────────────── */
.download { text-align: center; }
.download .section-sub { margin: 0 auto 40px; }
.download-btns {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.platform-btn {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border2);
  border-radius: 12px; padding: 14px 24px;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 14px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.platform-btn:hover {
  background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px); text-decoration: none; color: var(--text);
}
.platform-btn svg { flex-shrink: 0; }
.platform-btn-sub { font-size: 11px; color: var(--dim); font-weight: 400; display: block; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--dimmer);
  display: flex; align-items: center; gap: 8px;
}
.footer-links {
  display: flex; gap: 24px; list-style: none; flex-wrap: wrap;
}
.footer-links a { font-size: 13px; color: var(--dimmer); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-copy { font-size: 12px; color: var(--dimmer); }

/* ── Deep sections (alternating text/visual) ─────────────────────────────── */
.deep-section {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 72px;
}
.deep-section.reverse { direction: rtl; }
.deep-section.reverse > * { direction: ltr; }

.feature-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.fpill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--dim); padding: 5px 12px; border-radius: 99px;
}

/* ── Code card ───────────────────────────────────────────────────────────── */
.code-card {
  background: rgba(7,7,26,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.code-header {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.code-body {
  padding: 20px 22px; font-size: 12px; line-height: 1.8;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  color: rgba(255,255,255,0.7); white-space: pre; overflow-x: auto;
}
.ck { color: #c792ea; } /* keyword */
.cv { color: #82aaff; } /* variable */
.cs { color: #c3e88d; } /* string */
.cf { color: #82aaff; } /* function */

/* ── Project card visual ─────────────────────────────────────────────────── */
.project-card-visual {
  background: rgba(13,13,38,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.pv-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pv-dot { width: 8px; height: 8px; border-radius: 50%; background: #4caf7d; box-shadow: 0 0 6px #4caf7d; }
.pv-name { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.pv-divider { height: 1px; background: var(--border); margin: 14px 0; }
.pv-row { display: flex; gap: 12px; margin-bottom: 6px; font-size: 13px; }
.pv-key { color: var(--dimmer); min-width: 60px; font-weight: 500; }
.pv-val { color: var(--text); }

/* ── Signals visual ──────────────────────────────────────────────────────── */
.signals-visual {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.signal-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: rgba(13,13,38,0.95);
  transition: background 0.2s;
}
.signal-item.active { background: rgba(79,158,255,0.06); }
.signal-status {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: signal-pulse 1.5s ease-in-out infinite;
}
.signal-status.idle { background: rgba(255,255,255,0.2); box-shadow: none; animation: none; }
@keyframes signal-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.signal-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.signal-sub { font-size: 11px; color: var(--dim); }
.signal-badge {
  margin-left: auto; flex-shrink: 0;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px;
  background: rgba(255,255,255,0.05); color: var(--dimmer);
  border: 1px solid var(--border);
}
.signal-badge.triggered {
  background: rgba(79,158,255,0.1); color: var(--accent);
  border-color: rgba(79,158,255,0.3);
}

/* ── Two-col explain ─────────────────────────────────────────────────────── */
.two-col-explain {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-bottom: 24px;
}
.explain-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.explain-icon { font-size: 32px; margin-bottom: 16px; }
.explain-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.explain-desc { font-size: 14px; color: var(--dim); line-height: 1.7; }

/* ── Atom examples ───────────────────────────────────────────────────────── */
.atom-examples {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.atom-example-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.atom-example-card:hover { border-color: rgba(79,158,255,0.25); transform: translateY(-3px); }
.atom-ex-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.atom-ex-icon { font-size: 28px; }
.atom-ex-name { font-size: 15px; font-weight: 700; }
.atom-ex-sub { font-size: 12px; color: var(--dim); }
.atom-electrons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.electron-tag {
  font-size: 11px; font-weight: 500;
  background: rgba(79,158,255,0.08); color: var(--accent);
  border: 1px solid rgba(79,158,255,0.2);
  padding: 4px 10px; border-radius: 99px;
}
.atom-ex-desc { font-size: 13px; color: var(--dim); line-height: 1.65; }

/* ── AI Providers ────────────────────────────────────────────────────────── */
.providers-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 32px;
}
.provider-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: border-color 0.2s;
}
.provider-card:hover { border-color: var(--border2); }
.provider-logo {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 52px; box-sizing: border-box;
  margin-bottom: 16px; overflow: hidden;
}
.provider-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.provider-logo.anthropic img { width: 34px; height: 34px; }
.provider-logo.openai img,
.provider-logo.google img { width: 32px; height: 32px; }
.provider-logo.anthropic { background: #f2ede7; border: 1px solid rgba(210,130,60,0.25); padding: 8px; }
.provider-logo.openai    { background: #fff; border: 1px solid rgba(255,255,255,0.18); padding: 9px; }
.provider-logo.google    { background: #fff; border: 1px solid rgba(255,255,255,0.18); padding: 9px; }
.provider-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.provider-models { font-size: 12px; color: var(--dim); margin-bottom: 14px; font-weight: 500; }
.provider-desc { font-size: 13px; color: var(--dim); line-height: 1.65; margin-bottom: 16px; }
.provider-key-note {
  font-size: 11px; color: var(--dimmer);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; line-height: 1.5;
}
.byok-note {
  display: flex; gap: 20px; align-items: flex-start;
  background: rgba(79,158,255,0.05);
  border: 1px solid rgba(79,158,255,0.2);
  border-radius: var(--radius); padding: 28px 32px;
}
.byok-icon { font-size: 28px; flex-shrink: 0; }
.byok-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.byok-desc { font-size: 14px; color: var(--dim); line-height: 1.7; }

/* ── Responsive additions ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .deep-section, .deep-section.reverse { grid-template-columns: 1fr; direction: ltr; }
  .two-col-explain { grid-template-columns: 1fr; }
  .atom-examples { grid-template-columns: 1fr; }
  .providers-grid { grid-template-columns: 1fr; }
}

/* ── Legal pages ──────────────────────────────────────────────────────────── */
.legal-page {
  max-width: 720px; margin: 0 auto; padding: 120px 28px 80px;
}
.legal-page h1 { font-size: 36px; font-weight: 800; margin-bottom: 6px; }
.legal-page .updated { font-size: 13px; color: var(--dim); margin-bottom: 48px; }
.legal-page h2 { font-size: 18px; font-weight: 700; margin: 36px 0 12px; }
.legal-page p { font-size: 15px; color: var(--dim); line-height: 1.8; margin-bottom: 14px; }
.legal-page ul { padding-left: 22px; color: var(--dim); font-size: 15px; line-height: 1.8; }
.legal-page ul li { margin-bottom: 6px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner, .voice-inner { grid-template-columns: 1fr; }
  .app-mockup { width: 100%; margin-top: 40px; }
  .app-window { width: 100%; }
  .app-body { height: 340px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .voice-inner { text-align: center; }
  .voice-pills { align-items: center; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-inner { height: 64px; padding: 0 18px; gap: 10px; }
  .nav-logo { font-size: 14px; }
  .nav-menu-toggle { display: inline-flex; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    top: 72px; right: 14px; left: auto;
    width: min(220px, calc(100vw - 28px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #09091f;
    box-shadow: 0 18px 60px rgba(0,0,0,0.42);
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    text-align: left;
  }
  .nav-links a:hover { background: rgba(255,255,255,0.06); }
  .mobile-menu-cta { display: block; margin-top: 8px; }
  .mobile-menu-cta + .mobile-menu-cta { margin-top: 10px; }
  .nav-links .mobile-menu-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    font-weight: 700;
    text-align: center;
    background: rgba(79,158,255,0.12);
    color: var(--text);
  }
  .nav-links .mobile-menu-cta:last-child a {
    background: var(--accent);
    color: white;
  }
  .hero { padding-top: 120px; }
  .download-btns { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ── App mockup panel views ─────────────────────────────────────────────── */
.mock-panel {
  display: flex; flex-direction: column; flex: 1; overflow: hidden;
  padding: 14px 14px 14px 12px;
}
.mock-panel-title {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 12px;
}

/* Memory */
.mock-memory-list { display: flex; flex-direction: column; gap: 7px; }
.mock-memory-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 10.5px; color: rgba(255,255,255,0.6); line-height: 1.4;
}
.mock-mem-tag {
  font-size: 9px; font-weight: 600; padding: 1px 6px; border-radius: 4px;
  background: rgba(79,158,255,0.12); color: var(--accent);
  white-space: nowrap; margin-top: 1px; flex-shrink: 0;
}

/* Skills & Signals shared list */
.mock-skill-list { display: flex; flex-direction: column; gap: 6px; }
.mock-skill-item {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px; padding: 7px 10px;
}
.mock-skill-icon { font-size: 14px; flex-shrink: 0; }
.mock-skill-name { font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,0.8); }
.mock-skill-desc { font-size: 9.5px; color: rgba(255,255,255,0.35); margin-top: 1px; }

/* Signal active dot */
.mock-sig-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.15); margin-left: auto; flex-shrink: 0;
}
.mock-sig-dot.active { background: #22c55e; box-shadow: 0 0 5px #22c55e88; }

/* Settings */
.mock-settings-list { display: flex; flex-direction: column; gap: 1px; }
.mock-setting-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mock-setting-label { font-size: 10px; color: rgba(255,255,255,0.4); }
.mock-setting-val { font-size: 10px; color: rgba(255,255,255,0.65); font-weight: 500; }
.mock-toggle-on { color: var(--accent) !important; }

/* ── Knowledge graph ────────────────────────────────────────────────────── */
@keyframes kg-pulse {
  0%, 100% { opacity: 0.15; r: 22; }
  50%       { opacity: 0.04; r: 28; }
}
.kg-graph {
  width: 100%; margin-top: 4px; flex-shrink: 0;
}
.kg-edge     { stroke: rgba(79,158,255,0.2); stroke-width: 1; }
.kg-edge-dim { stroke: rgba(255,255,255,0.07); stroke-width: 0.8; }
.kg-pulse       { fill: rgba(79,158,255,0.12); stroke: none; animation: kg-pulse 2.8s ease-in-out infinite; }
.kg-node-center { fill: #0f1a2e; stroke: rgba(79,158,255,0.7); stroke-width: 1.5; }
.kg-node        { fill: #141428; stroke: rgba(255,255,255,0.22); stroke-width: 1; }
.kg-node-dim    { fill: #141428; stroke: rgba(255,255,255,0.12); stroke-width: 0.8; }
.kg-label-center { fill: rgba(79,158,255,0.95); font-size: 7px; font-weight: 700; text-anchor: middle; font-family: Inter, sans-serif; }
.kg-label        { fill: rgba(255,255,255,0.55); font-size: 6px; font-weight: 600; text-anchor: middle; font-family: Inter, sans-serif; }
.kg-label-dim    { fill: rgba(255,255,255,0.28); font-size: 5.5px; text-anchor: middle; font-family: Inter, sans-serif; }

/* ── View switch animation ───────────────────────────────────────────────── */
@keyframes viewIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.app-view.animating {
  animation: viewIn 0.18s ease forwards;
}

/* Skills + Tools split visual */
.skills-tools-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.skills-tools-stack .code-card {
  box-shadow: 0 18px 48px rgba(0,0,0,0.42);
}
.skills-tools-stack .code-card-tool {
  margin-right: 42px;
  border-color: rgba(74,158,255,0.18);
}
.skills-tools-stack .code-card-skill {
  margin-left: 42px;
  border-color: rgba(195,232,141,0.16);
}
.skills-tools-stack .code-body {
  font-size: 11px;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .skills-tools-stack .code-card-tool,
  .skills-tools-stack .code-card-skill {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ── Mission Control visual ──────────────────────────────────────────────── */
.mission-visual {
  width: min(680px, 58vw);
  background: rgba(7,7,26,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.52);
}
.mission-window-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mission-window-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.mission-window-bar span:nth-child(2) { background: #febc2e; }
.mission-window-bar span:nth-child(3) { background: #28c840; }
.mission-window-bar div { margin-left: 6px; font-size: 10px; color: var(--dim); }
.mission-workspace-head-mock {
  margin: 12px 12px 10px;
  padding: 13px 14px;
  background: linear-gradient(90deg, rgba(79,158,255,0.12), rgba(185,135,255,0.06));
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 14px;
}
.mission-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.mission-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dimmer);
  margin-bottom: 5px;
}
.mission-title { font-size: 15px; font-weight: 750; color: var(--text); }
.mission-status { margin-top: 5px; font-size: 11px; color: var(--dim); }
.mission-percent { font-size: 11px; font-weight: 650; color: var(--dim); white-space: nowrap; }
.mission-progress {
  height: 5px;
  margin-top: 13px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.mission-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7aa2ff, #b987ff);
  box-shadow: 0 0 16px rgba(122,162,255,0.5);
}
.mission-masonry {
  padding: 0 12px 12px;
  display: grid;
  grid-template-columns: 1.08fr 1fr 1fr;
  gap: 10px;
}
.mission-panel {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 11px;
  background: rgba(13,13,38,0.95);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}
.mission-panel-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8794ad;
  margin-bottom: 6px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255,255,255,0.055);
}
.mission-panel-label::before {
  content: '';
  width: 16px;
  height: 2px;
  border-radius: 99px;
  background: #b987ff;
  box-shadow: 0 0 14px rgba(185,135,255,0.38);
}
.mission-panel p { font-size: 9.5px; line-height: 1.45; color: var(--dim); }
.mission-info-row {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 9px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.045);
}
.mission-info-row:last-child { border-bottom: 0; }
.mission-info-row span {
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #8794ad;
}
.mission-step,
.mission-log,
.mission-file,
.mission-monitor {
  position: relative;
  font-size: 9.5px;
  line-height: 1.28;
  color: var(--dim);
  padding: 4px 0 4px 16px;
}
.mission-step small,
.mission-log small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: #8794ad;
}
.mission-step::before,
.mission-log::before,
.mission-file::before,
.mission-monitor::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
}
.mission-step.done::before { background: #5ed39a; box-shadow: 0 0 8px rgba(94,211,154,0.6); }
.mission-step.active,
.mission-log.active { color: var(--text); }
.mission-step.active::before,
.mission-log.active::before { background: var(--accent); box-shadow: 0 0 8px rgba(79,158,255,0.65); }
.mission-file::before { border-radius: 3px; width: 7px; height: 8px; top: 7px; background: rgba(79,158,255,0.48); }
.mission-monitor::before { background: #b987ff; box-shadow: 0 0 8px rgba(185,135,255,0.55); }
.mission-more-label { color:#b987ff; font-size:9px; font-weight:800; margin-top:6px; }
.mission-operator {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.045);
  font-size: 9.5px;
}
.mission-operator:last-child { border-bottom: 0; }
.mission-operator strong { color: var(--text); font-weight: 650; }
.mission-operator span { color: #5ed39a; font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; }

.mission-objective { grid-column: 1 / 3; }
.mission-briefing { grid-column: 1 / 2; }
.mission-files { grid-column: 2 / 3; }
.mission-plan { grid-column: 3 / 4; grid-row: 1 / 3; }
.mission-timeline { grid-column: 1 / 2; }
.mission-monitoring { grid-column: 2 / 3; }
.mission-operators { grid-column: 3 / 4; }

@media (max-width: 768px) {
  .mission-visual { width: 100%; }
  .mission-masonry { grid-template-columns: 1fr; }
  .mission-objective,
  .mission-briefing,
  .mission-files,
  .mission-plan,
  .mission-timeline,
  .mission-monitoring,
  .mission-operators { grid-column: auto; grid-row: auto; }
}

/* Mission mockup: keep objective/instructions labels compact so they do not collide with content. */
.mission-info-row {
  grid-template-columns: 48px 1fr;
  gap: 8px;
}
.mission-info-row span {
  font-size: 6.5px;
  letter-spacing: 0.08em;
}

/* Mission mockup: restore labels and add more separation before the value text. */
.mission-info-row {
  grid-template-columns: 72px 1fr;
  gap: 18px;
}
.mission-info-row span {
  font-size: 8px;
  letter-spacing: 0.13em;
}

/* Mission demo loop animation */
.mission-progress span,
.mission-step,
.mission-log,
.mission-file,
.mission-monitor,
.mission-operator,
.mission-status,
.mission-percent {
  transition: opacity .35s ease, transform .35s ease, color .35s ease, width .8s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.mission-demo-hidden {
  opacity: 0.16;
  transform: translateY(4px);
}
.mission-demo-complete .mission-workspace-head-mock {
  border-color: rgba(94,211,154,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 28px rgba(94,211,154,0.08);
}
.mission-demo-complete .mission-status,
.mission-demo-complete .mission-percent {
  color: #5ed39a;
}
.mission-demo-complete .mission-progress span {
  background: linear-gradient(90deg, #5ed39a, #b987ff);
}
.mission-operator.running span {
  color: var(--accent);
}

.mission-more-label.mission-demo-hidden {
  display: none;
}

.mission-more-label.mission-demo-hidden {
  display: block;
  opacity: 0;
  transform: none;
}

.coming-soon-page {
  min-height: calc(100vh - 170px);
  display: flex;
  align-items: center;
}

.coming-soon-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 96px 24px 72px;
}

.coming-soon-card .hero-actions {
  justify-content: center;
}

/* ── Changelog page ───────────────────────────────────────────────────────── */
.changelog-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(79,158,255,0.14), transparent 36%),
    var(--bg);
}

.changelog-hero {
  padding: 140px 0 58px;
}

.changelog-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.changelog-hero .hero-title {
  max-width: 760px;
  margin-top: 10px;
  margin-bottom: 18px;
}

.changelog-hero .hero-sub {
  max-width: 680px;
}

.changelog-list-section {
  padding: 32px 0 110px;
}

.changelog-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.changelog-sidebar {
  position: sticky;
  top: 92px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  border-radius: 16px;
  padding: 14px;
}

.changelog-sidebar-title {
  color: var(--dimmer);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 6px;
}

.changelog-sidebar a {
  display: block;
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 9px;
  border-radius: 9px;
  text-decoration: none;
}

.changelog-sidebar a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.changelog-list {
  display: grid;
  gap: 22px;
}

.changelog-entry {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 20px 70px rgba(0,0,0,0.24);
}

.changelog-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.changelog-entry h2 {
  margin-top: 12px;
  font-size: 30px;
  line-height: 1;
}

.changelog-entry time {
  color: var(--dimmer);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-muted {
  color: var(--dim);
  background: rgba(255,255,255,0.05);
  border-color: var(--border2);
}

.changelog-summary {
  color: var(--dim);
  max-width: 720px;
  margin-bottom: 24px;
  font-size: 15px;
}

.changelog-groups {
  display: grid;
  gap: 18px;
}

.changelog-group {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.changelog-group h3 {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.changelog-group ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.changelog-group li {
  position: relative;
  color: rgba(232,232,244,0.72);
  font-size: 14.5px;
  padding-left: 20px;
}

.changelog-group li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(79,158,255,0.75);
}

@media (max-width: 760px) {
  .changelog-hero-inner { flex-direction: column; align-items: flex-start; }
  .changelog-layout { grid-template-columns: 1fr; }
  .changelog-sidebar { position: static; display: flex; gap: 6px; overflow-x: auto; }
  .changelog-sidebar-title { display: none; }
  .changelog-sidebar a { white-space: nowrap; }
  .changelog-entry { padding: 22px; }
  .changelog-entry-head { flex-direction: column; }
}

/* Thread-style changelog override */
.changelog-thread {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 34px;
}

.changelog-thread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 14px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, rgba(79,158,255,0.75), rgba(79,158,255,0.1));
}

.thread-entry {
  position: relative;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 0 54px;
}

.thread-entry:last-child {
  padding-bottom: 8px;
}

.thread-entry::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(79,158,255,0.10), 0 0 22px rgba(79,158,255,0.45);
}

.thread-entry .changelog-entry-head {
  margin-bottom: 12px;
}

.thread-entry .changelog-summary {
  max-width: 760px;
  margin-bottom: 22px;
}

.thread-entry .changelog-groups {
  max-width: 800px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  border-radius: 18px;
  padding: 22px 24px;
}

.thread-entry .changelog-group:first-child {
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 760px) {
  .changelog-thread { padding-left: 28px; }
  .thread-entry::before { left: -31px; }
  .thread-entry .changelog-groups { padding: 18px; }
}

/* Changelog thread alignment polish */
.changelog-thread::before {
  left: 9px;
}

.thread-entry::before {
  left: -34px;
}

@media (max-width: 760px) {
  .changelog-thread::before { left: 9px; }
  .thread-entry::before { left: -28px; }
}

/* Force exact center alignment for changelog thread dots */
.changelog-thread {
  --thread-dot-size: 18px;
  --thread-line-x: 9px;
}

.changelog-thread::before {
  left: var(--thread-line-x);
  transform: translateX(-50%);
}

.thread-entry::before {
  left: calc((var(--thread-line-x) * -1) - (var(--thread-dot-size) / 2));
  width: var(--thread-dot-size);
  height: var(--thread-dot-size);
}

@media (max-width: 760px) {
  .changelog-thread { --thread-line-x: 9px; }
  .changelog-thread::before { left: var(--thread-line-x); }
  .thread-entry::before { left: calc((var(--thread-line-x) * -1) - (var(--thread-dot-size) / 2)); }
}

/* Correct changelog thread dot position relative to the padded content column */
.changelog-thread {
  --thread-pad: 34px;
  --thread-line-x: 9px;
  --thread-dot-size: 18px;
  padding-left: var(--thread-pad);
}

.thread-entry::before {
  left: calc(var(--thread-line-x) - var(--thread-pad) - (var(--thread-dot-size) / 2));
}

@media (max-width: 760px) {
  .changelog-thread {
    --thread-pad: 28px;
    --thread-line-x: 9px;
    padding-left: var(--thread-pad);
  }
  .thread-entry::before {
    left: calc(var(--thread-line-x) - var(--thread-pad) - (var(--thread-dot-size) / 2));
  }
}

/* Align release badges with thread dots */
.thread-entry .changelog-entry-head {
  padding-top: 6px;
}

.thread-entry .badge {
  transform: translateY(-1px);
}

.changelog-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.changelog-title-row h2 {
  margin-top: 0;
}

.thread-entry .changelog-title-row .badge {
  transform: translateY(1px);
}

.latest-release::before {
  background: var(--accent);
}

/* ── Contact page ────────────────────────────────────────────────────────── */
.contact-page {
  min-height: calc(100vh - 120px);
  padding: 150px 0 110px;
  background:
    radial-gradient(circle at 18% 12%, rgba(79,158,255,0.14), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(123,95,255,0.12), transparent 32%),
    var(--bg);
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-copy .hero-title { max-width: 560px; }
.contact-copy .hero-sub { max-width: 520px; }
.contact-points {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}
.contact-point {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: 14px;
}
.contact-point span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(79,158,255,0.75);
}
.contact-form {
  background: rgba(13,13,38,0.82);
  border: 1px solid var(--border2);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form label {
  display: block;
  margin-bottom: 16px;
}
.contact-form label span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dimmer);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border2);
  border-radius: 12px;
  background: rgba(255,255,255,0.045);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--dimmer); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(79,158,255,0.55);
  background: rgba(79,158,255,0.055);
  box-shadow: 0 0 0 4px rgba(79,158,255,0.08);
}
.contact-form-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.contact-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.contact-note {
  color: var(--dimmer);
  font-size: 13px;
}
.contact-status {
  min-height: 24px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
}
.contact-status.success { color: #5ed39a; }
.contact-status.error { color: #ff8a8a; }
.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 34px; }
  .contact-page { padding-top: 125px; }
}
@media (max-width: 600px) {
  .form-row.two { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px; border-radius: 18px; }
}

/* ── Proton Flows ───────────────────────────────────────────────────────── */
.flows-section {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(123,95,255,0.10), transparent 32%),
    radial-gradient(circle at 82% 62%, rgba(79,158,255,0.09), transparent 34%),
    var(--bg2);
}
.flows-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}
.flows-copy .section-title { max-width: 520px; }
.flows-copy .section-sub { max-width: 520px; margin-bottom: 30px; }
.flows-points { display: grid; gap: 14px; }
.flows-point {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.flows-point span {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: rgba(79,158,255,0.10);
  border: 1px solid rgba(79,158,255,0.22);
  color: var(--accent);
  font-size: 11px; font-weight: 800;
}
.flows-point strong { display: block; font-size: 15px; margin-bottom: 4px; }
.flows-point p { color: var(--dim); font-size: 13px; line-height: 1.65; }
.flows-visual {
  position: relative;
  min-height: 620px;
  overflow: visible;
}
.flow-grid-bg {
  position: absolute;
  inset: 34px 0 10px 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 68%);
  pointer-events: none;
}
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-lines-mobile { display: none; }
.flow-lines path {
  fill: none;
  stroke: rgba(79,158,255,0.44);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 10px rgba(79,158,255,0.25));
}
.flow-node {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  width: 220px;
  height: 92px;
  padding: 14px 18px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgb(10,11,30);
  --flow-node-border: rgba(79,158,255,0.28);
  border: 1px solid var(--flow-node-border);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.05);
}
.flow-node span {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 6px;
}
.flow-node strong { display: block; font-size: 14px; line-height: 1.22; }
.flow-node small { display: block; margin-top: 10px; color: var(--dim); font-size: 10.5px; line-height: 1.35; }
.flow-node-source { left: 170px; top: 8px; }
.flow-node-ai { left: 170px; top: 124px; --flow-node-border: rgba(79,158,255,0.38); border-color: var(--flow-node-border); }
.flow-node-action { left: 170px; top: 240px; --flow-node-border: rgba(245,158,11,0.36); border-color: var(--flow-node-border); }
.flow-node-action span { color: #fcd34d; }
.flow-node-no { left: 0; top: 382px; --flow-node-border: rgba(239,68,68,0.34); border-color: var(--flow-node-border); }
.flow-node-no span { color: #fca5a5; }
.flow-node-sheet { left: 340px; top: 382px; --flow-node-border: rgba(34,197,94,0.30); border-color: var(--flow-node-border); }
.flow-node-sheet span { color: #86efac; }
.flow-node-notify { left: 340px; right: auto; top: 498px; --flow-node-border: rgba(79,158,255,0.34); border-color: var(--flow-node-border); }
.flow-node-notify span { color: var(--accent); }


.flows-visual .flow-node {
  animation: flowNodeRun 10s ease-in-out infinite;
}
.flows-visual .flow-node-source { animation-delay: 0s; }
.flows-visual .flow-node-ai { animation-delay: 1.25s; }
.flows-visual .flow-node-action { animation-delay: 2.5s; }
.flows-visual .flow-node-no { animation-delay: 3.75s; }
.flows-visual .flow-node-sheet { animation-delay: 5s; }
.flows-visual .flow-node-notify { animation-delay: 6.25s; }
.flows-visual .flow-lines path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: flowEdgeRun 10s ease-in-out infinite;
}
.flows-visual .flow-lines path:nth-child(1) { --edge-start: 6.2%; }
.flows-visual .flow-lines path:nth-child(2) { --edge-start: 18.7%; }
.flows-visual .flow-lines path:nth-child(3) { --edge-start: 31.2%; stroke: rgba(255,165,165,0.52); }
.flows-visual .flow-lines path:nth-child(4) { --edge-start: 43.7%; stroke: rgba(134,239,172,0.52); }
.flows-visual .flow-lines path:nth-child(5) { --edge-start: 56.2%; }
.flows-visual .flow-lines path:nth-child(1) { animation-name: flowEdgeRun1; }
.flows-visual .flow-lines path:nth-child(2) { animation-name: flowEdgeRun2; }
.flows-visual .flow-lines path:nth-child(3) { animation-name: flowEdgeRun3; }
.flows-visual .flow-lines path:nth-child(4) { animation-name: flowEdgeRun4; }
.flows-visual .flow-lines path:nth-child(5) { animation-name: flowEdgeRun5; }
@keyframes flowNodeRun {
  0%, 10%, 100% {
    transform: translateY(0);
    border-color: var(--flow-node-border);
    box-shadow: 0 18px 50px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.05);
  }
  3%, 7% {
    transform: translateY(-2px);
    border-color: rgba(125,211,252,0.82);
    box-shadow: 0 0 0 1px rgba(125,211,252,0.34), 0 0 34px rgba(79,158,255,0.24), 0 18px 50px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.06);
  }
}
@keyframes flowEdgeRun1 {
  0%, 6.2% { stroke-dashoffset: 1; opacity: 0; filter: none; }
  10.2%, 82% { stroke-dashoffset: 0; opacity: 0.92; filter: drop-shadow(0 0 14px rgba(79,158,255,0.46)); }
  92%, 100% { stroke-dashoffset: 0; opacity: 0; filter: none; }
}
@keyframes flowEdgeRun2 {
  0%, 18.7% { stroke-dashoffset: 1; opacity: 0; filter: none; }
  22.7%, 82% { stroke-dashoffset: 0; opacity: 0.92; filter: drop-shadow(0 0 14px rgba(79,158,255,0.46)); }
  92%, 100% { stroke-dashoffset: 0; opacity: 0; filter: none; }
}
@keyframes flowEdgeRun3 {
  0%, 31.2% { stroke-dashoffset: 1; opacity: 0; filter: none; }
  35.2%, 82% { stroke-dashoffset: 0; opacity: 0.92; filter: drop-shadow(0 0 14px rgba(79,158,255,0.46)); }
  92%, 100% { stroke-dashoffset: 0; opacity: 0; filter: none; }
}
@keyframes flowEdgeRun4 {
  0%, 43.7% { stroke-dashoffset: 1; opacity: 0; filter: none; }
  47.7%, 82% { stroke-dashoffset: 0; opacity: 0.92; filter: drop-shadow(0 0 14px rgba(79,158,255,0.46)); }
  92%, 100% { stroke-dashoffset: 0; opacity: 0; filter: none; }
}
@keyframes flowEdgeRun5 {
  0%, 56.2% { stroke-dashoffset: 1; opacity: 0; filter: none; }
  60.2%, 82% { stroke-dashoffset: 0; opacity: 0.92; filter: drop-shadow(0 0 14px rgba(79,158,255,0.46)); }
  92%, 100% { stroke-dashoffset: 0; opacity: 0; filter: none; }
}

@media (max-width: 1200px) {
  .flows-layout { grid-template-columns: 1fr; }
  .flows-layout { gap: 34px; }
  .flows-visual {
    min-height: 560px;
    width: 100%;
    overflow: hidden;
    border-radius: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 16px;
    padding: 4px 18px 0;
  }
  .flow-grid-bg {
    inset: 0;
    opacity: 0.28;
    mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
  }
  .flow-lines { display: none; }
  .flow-lines-mobile {
    display: block;
    position: absolute;
    inset: 4px 18px 0;
    width: calc(100% - 36px);
    height: 502px;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
  }
  .flow-lines-mobile path {
    fill: none;
    stroke: rgba(79,158,255,0.44);
    stroke-width: 0.7;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    filter: drop-shadow(0 0 10px rgba(79,158,255,0.25));
    animation: flowEdgeRun 10s ease-in-out infinite;
  }
  .flow-lines-mobile path:nth-child(1) { animation-name: flowEdgeRun1; }
  .flow-lines-mobile path:nth-child(2) { animation-name: flowEdgeRun2; }
  .flow-lines-mobile path:nth-child(3) { animation-name: flowEdgeRun3; stroke: rgba(255,165,165,0.52); }
  .flow-lines-mobile path:nth-child(4) { animation-name: flowEdgeRun4; stroke: rgba(134,239,172,0.52); }
  .flow-lines-mobile path:nth-child(5) { animation-name: flowEdgeRun5; }
  .flows-visual .flow-node {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100%;
    height: 82px;
    padding: 13px 16px;
    border-radius: 18px;
    animation: flowNodeRun 10s ease-in-out infinite !important;
    z-index: 2;
  }
  .flows-visual .flow-node-source,
  .flows-visual .flow-node-ai,
  .flows-visual .flow-node-action {
    grid-column: 1 / -1;
    width: 68%;
    justify-self: center;
  }
  .flows-visual .flow-node-no { grid-column: 1; }
  .flows-visual .flow-node-sheet { grid-column: 2; }
  .flows-visual .flow-node-notify { grid-column: 2; }
  .flows-visual .flow-node-source { animation-delay: 0s !important; }
  .flows-visual .flow-node-ai { animation-delay: 1.25s !important; }
  .flows-visual .flow-node-action { animation-delay: 2.5s !important; }
  .flows-visual .flow-node-no { animation-delay: 3.75s !important; }
  .flows-visual .flow-node-sheet { animation-delay: 5s !important; }
  .flows-visual .flow-node-notify { animation-delay: 6.25s !important; }
  .flow-node span { font-size: 9px; margin-bottom: 5px; }
  .flow-node strong { font-size: 13.5px; }
  .flow-node-source,
  .flow-node-ai,
  .flow-node-action,
  .flow-node-sheet,
  .flow-node-notify { top: auto; }
  .flow-node-no { display: flex; }
}
@media (max-width: 600px) {
  .flows-section { padding: 86px 0; }
  .flows-visual { column-gap: 14px; row-gap: 16px; padding-inline: 14px; }
  .flow-lines-mobile {
    inset: 4px 14px 0;
    width: calc(100% - 28px);
    height: 502px;
  }
  .flows-visual .flow-node { height: 82px; padding: 12px 14px; }
  .flows-visual .flow-node-no strong,
  .flows-visual .flow-node-sheet strong { font-size: 12.5px; }
}

/* ── Proton Widgets ─────────────────────────────────────────────────────── */
.widgets-section {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 40%, rgba(79,158,255,0.10), transparent 34%),
    radial-gradient(circle at 76% 22%, rgba(123,95,255,0.10), transparent 32%),
    var(--bg);
}
.widgets-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
}
.widgets-copy .section-title,
.widgets-copy .section-sub { max-width: 540px; }
.widgets-copy .section-sub + .section-sub { margin-top: 18px; }
.widgets-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}
.widget-orbit {
  position: absolute;
  border: 1px solid rgba(79,158,255,0.14);
  border-radius: 999px;
  filter: blur(0.1px);
  animation: widgetOrbit 12s linear infinite;
}
.widget-orbit-one { width: 420px; height: 260px; transform: rotate(-18deg); }
.widget-orbit-two { width: 340px; height: 420px; transform: rotate(22deg); animation-duration: 16s; animation-direction: reverse; }
.widget-card {
  background: rgb(10,11,30);
  border: 1px solid rgba(79,158,255,0.24);
  box-shadow: 0 24px 70px rgba(0,0,0,0.44), inset 0 1px 0 rgba(255,255,255,0.06);
  border-radius: 24px;
  color: var(--text);
}
.widget-card-main {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  padding: 18px;
  animation: widgetFloat 5.8s ease-in-out infinite;
}
.widget-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.widget-topbar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.widget-topbar strong { margin-left: auto; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.44); }
.widget-metric-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 26px 6px 22px; }
.widget-label { font-size: 12px; color: var(--dim); margin-bottom: 6px; }
.widget-value { font-size: clamp(34px, 4vw, 52px); font-weight: 800; letter-spacing: -0.04em; }
.widget-pill {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.24);
  color: #86efac;
  font-size: 12px;
  font-weight: 800;
}
.widget-chart {
  height: 150px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    rgba(79,158,255,0.035);
  background-size: 28px 28px;
}
.widget-chart i {
  flex: 1;
  min-width: 20px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, rgba(79,158,255,0.95), rgba(123,95,255,0.48));
  box-shadow: 0 0 18px rgba(79,158,255,0.20);
  animation: widgetBars 4.5s ease-in-out infinite;
}
.widget-chart i:nth-child(2) { animation-delay: .25s; }
.widget-chart i:nth-child(3) { animation-delay: .5s; }
.widget-chart i:nth-child(4) { animation-delay: .75s; }
.widget-chart i:nth-child(5) { animation-delay: 1s; }
.widget-chart i:nth-child(6) { animation-delay: 1.25s; }
.widget-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.widget-actions button {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.78);
  border-radius: 12px;
  padding: 11px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.widget-card-float {
  position: absolute;
  z-index: 3;
  width: 210px;
  padding: 16px;
  animation: widgetFloatSmall 6.4s ease-in-out infinite;
}
.widget-card-left { left: 0; bottom: 74px; border-color: rgba(34,197,94,0.22); }
.widget-card-right { right: 0; top: 78px; animation-delay: 1.1s; }
.widget-mini-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 800; margin-bottom: 8px; }
.widget-mini-text { font-size: 14px; line-height: 1.45; color: rgba(255,255,255,0.76); font-weight: 700; }
@keyframes widgetFloat {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  50% { transform: translateY(-10px) rotateX(1.5deg) rotateY(-2deg); }
}
@keyframes widgetFloatSmall {
  0%, 100% { transform: translateY(0); opacity: 0.92; }
  50% { transform: translateY(-8px); opacity: 1; }
}
@keyframes widgetOrbit {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}
@keyframes widgetBars {
  0%, 100% { transform: scaleY(0.86); filter: brightness(0.9); }
  50% { transform: scaleY(1.06); filter: brightness(1.18); }
}
@media (max-width: 900px) {
  .widgets-layout { grid-template-columns: 1fr; gap: 38px; }
  .widgets-copy { order: -1; }
  .widgets-visual { min-height: 480px; }
  .widget-card-left { left: 10px; bottom: 46px; }
  .widget-card-right { right: 10px; top: 40px; }
}
@media (max-width: 600px) {
  .widgets-section { padding: 86px 0; }
  .widgets-visual { min-height: 520px; }
  .widget-card-main { width: 100%; }
  .widget-card-float { width: 178px; }
  .widget-card-left { left: 0; bottom: 24px; }
  .widget-card-right { right: 0; top: 18px; }
  .widget-orbit-one { width: 320px; height: 210px; }
  .widget-orbit-two { width: 260px; height: 350px; }
}

/* ── Section rhythm backgrounds ─────────────────────────────────────────── */
.signals-section {
  padding: 100px 0;
  background:
    radial-gradient(circle at 82% 22%, rgba(34,197,94,0.055), transparent 30%),
    radial-gradient(circle at 16% 78%, rgba(79,158,255,0.075), transparent 34%),
    var(--bg2);
}
.more-features-section {
  padding: 100px 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(123,95,255,0.08), transparent 32%),
    var(--bg);
}
.providers-section {
  padding: 100px 0 40px;
  background:
    radial-gradient(circle at 74% 30%, rgba(79,158,255,0.07), transparent 32%),
    var(--bg2);
}
.pricing {
  background:
    radial-gradient(circle at 20% 18%, rgba(123,95,255,0.08), transparent 34%),
    var(--bg);
}
.download {
  background:
    radial-gradient(circle at 50% 0%, rgba(79,158,255,0.10), transparent 38%),
    var(--bg2);
}

/* ── Extensions page ─────────────────────────────────────────────────────── */
.extensions-hero {
  padding: 150px 0 105px;
  background:
    radial-gradient(circle at 76% 20%, rgba(123,95,255,0.12), transparent 34%),
    radial-gradient(circle at 24% 72%, rgba(79,158,255,0.10), transparent 36%),
    var(--bg);
  overflow: hidden;
}
.extensions-hero-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 72px; align-items: center; }
.extensions-terminal { background: rgba(13,13,38,0.95); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); padding-bottom: 16px; }
.extension-chat-line { margin: 16px 16px 0; padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.55; color: var(--text); border: 1px solid rgba(255,255,255,0.08); }
.extension-chat-line.user { margin-left: 70px; background: rgba(79,158,255,0.13); border-color: rgba(79,158,255,0.25); }
.extension-chat-line.proton { margin-right: 54px; background: rgba(255,255,255,0.035); color: rgba(232,232,244,0.78); }
.extension-install-card { display: flex; align-items: center; gap: 14px; margin: 16px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(79,158,255,0.13), rgba(123,95,255,0.10)); border: 1px solid rgba(79,158,255,0.22); }
.extension-install-card span { font-size: 28px; }
.extension-install-card strong { display: block; font-size: 15px; }
.extension-install-card small { display: block; color: var(--dim); margin-top: 2px; }
.extensions-browser, .extensions-how { background: var(--bg2); }
.extensions-header-row { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.extension-search { width: min(360px, 100%); background: rgba(255,255,255,0.035); border: 1px solid var(--border2); color: var(--text); border-radius: 12px; padding: 14px 16px; font: inherit; outline: none; }
.extension-search:focus { border-color: rgba(79,158,255,0.55); box-shadow: 0 0 0 4px rgba(79,158,255,0.10); }
.extension-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: -34px 0 28px; }
.extension-filters button { border: 1px solid var(--border2); background: rgba(255,255,255,0.025); color: var(--dim); border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 13px; font-weight: 700; text-transform: capitalize; cursor: pointer; }
.extension-filters button.active { background: rgba(79,158,255,0.16); color: var(--text); border-color: rgba(79,158,255,0.34); }
.extension-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.extension-card { min-height: 230px; padding: 24px; border-radius: 18px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); cursor: pointer; transition: transform 0.18s, background 0.18s, border-color 0.18s; }
.extension-card:hover { transform: translateY(-3px); background: rgba(79,158,255,0.045); border-color: rgba(79,158,255,0.24); }
.extension-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.extension-icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(79,158,255,0.10); border: 1px solid rgba(79,158,255,0.20); font-size: 22px; }
.extension-type { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.extension-card h3 { font-size: 19px; line-height: 1.25; margin-bottom: 8px; }
.extension-card p { color: var(--dim); font-size: 14px; line-height: 1.6; }
.extension-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.extension-tags span { color: rgba(232,232,244,0.62); border: 1px solid var(--border); background: rgba(255,255,255,0.025); border-radius: 999px; padding: 5px 9px; font-size: 12px; }
.extension-detail-section { padding: 0 0 100px; background: var(--bg2); }
.extension-detail { display: grid; grid-template-columns: 1fr 330px; gap: 34px; padding: 34px; border-radius: 24px; background: linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025)); border: 1px solid var(--border2); }
.extension-detail h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; margin-bottom: 12px; }
.extension-detail p { color: var(--dim); line-height: 1.7; max-width: 660px; }
.extension-install-panel { padding: 22px; border-radius: 18px; background: rgba(7,7,26,0.72); border: 1px solid var(--border); }
.extension-status { display: inline-flex; color: var(--accent); border: 1px solid rgba(79,158,255,0.25); background: rgba(79,158,255,0.10); border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.extension-install-panel h3 { margin-bottom: 8px; }
.extension-install-panel .btn { width: 100%; justify-content: center; margin: 16px 0 12px; }
.extension-install-panel small { display: block; color: var(--dimmer); font-size: 11px; line-break: anywhere; }
.extension-install-panel h4 { margin: 18px 0 8px; font-size: 13px; }
.extension-install-panel ul { color: var(--dim); padding-left: 18px; font-size: 13px; }
.extensions-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 34px; }
.extensions-steps .feature-card { background: var(--bg2); }
@media (max-width: 900px) {
  .extensions-hero-grid, .extension-detail { grid-template-columns: 1fr; }
  .extension-grid, .extensions-steps { grid-template-columns: 1fr 1fr; }
  .extensions-header-row { align-items: stretch; flex-direction: column; }
  .extension-filters { margin-top: -28px; }
}
@media (max-width: 600px) {
  .extensions-hero { padding: 118px 0 78px; }
  .extension-grid, .extensions-steps { grid-template-columns: 1fr; }
  .extension-chat-line.user { margin-left: 16px; }
  .extension-chat-line.proton { margin-right: 16px; }
  .extension-detail { padding: 22px; }
}
.extensions-browser-first { padding-top: 130px; }
.extension-page-detail-wrap {
  padding: 130px 0 100px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 20%, rgba(123,95,255,0.12), transparent 34%),
    radial-gradient(circle at 24% 72%, rgba(79,158,255,0.10), transparent 36%),
    var(--bg);
}
.extension-back {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.extension-back:hover { color: var(--text); text-decoration: none; }
.extension-detail-standalone { background: rgba(13,13,38,0.78); }
@media (max-width: 600px) { .extensions-browser-first, .extension-page-detail-wrap { padding-top: 104px; } }

/* Extension detail redesign */
.extension-page-detail-wrap {
  background:
    radial-gradient(circle at 78% 8%, rgba(79,158,255,0.13), transparent 34%),
    radial-gradient(circle at 18% 42%, rgba(123,95,255,0.10), transparent 34%),
    var(--bg);
}
.extension-detail-standalone {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}
.extension-detail-hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 42px;
  align-items: start;
  margin-bottom: 34px;
}
.extension-detail-main {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 26px;
  align-items: start;
  padding-top: 24px;
}
.extension-app-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  background: linear-gradient(135deg, rgba(79,158,255,0.18), rgba(123,95,255,0.14));
  border: 1px solid rgba(79,158,255,0.28);
  box-shadow: 0 24px 70px rgba(0,0,0,0.34);
}
.extension-detail-main h1 {
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin-bottom: 22px;
}
.extension-detail-main p {
  max-width: 760px;
  font-size: 20px;
  line-height: 1.65;
  color: var(--dim);
}
.extension-detail-hero .extension-install-panel {
  background: rgba(13,13,38,0.68);
  border-color: rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 28px;
  position: sticky;
  top: 88px;
}
.extension-screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 42px 0;
}
.extension-shot {
  min-height: 250px;
  border-radius: 28px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(145deg, rgba(79,158,255,0.18), rgba(123,95,255,0.08)),
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    rgba(255,255,255,0.03);
  background-size: auto, 34px 34px, 34px 34px, auto;
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 22px 80px rgba(0,0,0,0.24);
}
.extension-shot span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.extension-shot strong {
  font-size: 22px;
  line-height: 1.2;
}
.extension-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.extension-info-grid > div {
  background: var(--bg2);
  padding: 30px;
}
.extension-info-grid h3 { margin-bottom: 8px; }
.extension-info-grid p { color: var(--dim); line-height: 1.7; }
@media (max-width: 900px) {
  .extension-detail-hero { grid-template-columns: 1fr; }
  .extension-detail-hero .extension-install-panel { position: relative; top: auto; }
  .extension-screenshots { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .extension-detail-main { grid-template-columns: 1fr; gap: 18px; }
  .extension-app-icon { width: 82px; height: 82px; font-size: 44px; border-radius: 20px; }
  .extension-info-grid { grid-template-columns: 1fr; }
}

/* ── WINGOUT brand cutover ───────────────────────────────────────────────── */
.brand-mark,
.footer-brand-mark {
  display: block;
  width: 22px;
  height: 17px;
  object-fit: contain;
  flex: 0 0 auto;
}
.footer-brand-mark { width: 18px; height: 14px; opacity: 0.62; }
@media (max-width: 600px) {
  .brand-mark { width: 21px; height: 16px; }
}
