/* === Aperture Palette (vew brand) === */
:root {
  /* Brand accents: cyan -> teal */
  --accent: #22D3EE;
  --accent-2: #2DD4BF;
  --focus: #14B8A6;
  --accent-soft: rgba(34, 211, 238, 0.14);
  --accent-ring: rgba(34, 211, 238, 0.30);
  --accent-grad: linear-gradient(135deg, #22D3EE 0%, #2DD4BF 100%);

  /* Surfaces */
  --bg: #0A0F12;
  --surface: #121A1D;
  --surface-2: #18242A;

  /* Borders */
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.12);

  /* Text */
  --text: #EAF2F2;
  --muted: #93A7A7;
  --faint: #5F7375;

  /* Status */
  --green: #4ADE80;
  --red: #F87171;

  /* Type. Headings = geometric sans (vew's signature, distinct from yaw's mono).
     Mono is reserved for code / install-command blocks only. */
  --body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --heading: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}
a:hover { opacity: 0.82; }

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Headings: geometric sans, bold, tight tracking. */
h1, h2, h3, h4 {
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* === Layout === */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Nav === */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 18, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

nav .nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

nav .logo svg { width: 26px; height: 26px; }

nav .nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

nav .nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.15s;
}
nav .nav-links a:hover { color: var(--text); opacity: 1; }

nav .nav-cta {
  padding: 7px 16px;
  border-radius: 8px;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 600;
  font-size: 0.86rem;
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.28);
}
nav .nav-cta:hover { color: #fff; }

nav .nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
nav .nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.15s, opacity 0.15s;
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 96px 24px 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 480px;
  max-width: 120vw;
  background: radial-gradient(50% 50% at 50% 50%, rgba(34, 211, 238, 0.20) 0%, rgba(45, 212, 191, 0.06) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero .hero-logo { width: 88px; height: 88px; margin: 0 auto 28px; }

.hero .hero-wordmark {
  width: 240px;
  max-width: 70vw;
  height: auto;
  margin: 0 auto 26px;
}

.hero h1 {
  font-family: var(--heading);
  font-size: 2.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #FFFFFF 0%, #C4E8E4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .subtitle {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* === Primary install command (hero) === */
.hero-install {
  max-width: 520px;
  margin: 0 auto;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 10px;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.30);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.42);
  opacity: 1;
  color: #fff;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover { background: var(--surface); opacity: 1; }

/* === Install Section === */
.download {
  text-align: center;
  padding: 72px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.download h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.download .download-sub {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 32px;
}

.install-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 8px;
}

.install-platform {
  text-align: left;
  width: 100%;
  max-width: 560px;
}

.install-platform-label {
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.install-platform-label .label-note {
  opacity: 0.6;
  font-size: 0.78rem;
  font-weight: 400;
}

.install-soon {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--faint);
  padding: 10px 16px;
  border: 1px dashed var(--border-2);
  border-radius: 8px;
  display: inline-block;
}

/* === Code Block + Copy Button === */
.code-wrap {
  position: relative;
  margin-top: 8px;
}

.code-lang {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.64rem;
  padding: 3px 8px;
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 8px 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.code-wrap code {
  display: block;
  padding: 22px 44px 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  padding: 5px 7px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}

.code-wrap:hover .copy-btn,
.copy-btn:focus-visible { opacity: 1; }

.copy-btn:hover {
  color: var(--text);
  background: var(--surface);
}

.copy-btn svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-btn.copied {
  opacity: 1;
  color: var(--green);
}

/* === Feature Sections === */
.feature-section {
  padding: 64px 24px;
  border-top: 1px solid var(--border);
}

.feature-section .container { max-width: 900px; margin: 0 auto; }

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.feature-section h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.feature-section > .container > p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 680px;
}

/* === Feature Grid (split: A real browser / An agent, built in) === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  transition: border-color 0.15s, transform 0.15s;
}
.feature-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.feature-card .feature-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  margin-bottom: 16px;
}
.feature-card .feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.feature-card code {
  font-family: var(--mono);
  font-size: 0.84em;
  padding: 1px 6px;
  background: var(--surface-2);
  border-radius: 4px;
  color: var(--text);
}

/* === Privacy line === */
.privacy-line {
  text-align: center;
  padding: 56px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.privacy-line .privacy-inner {
  max-width: 680px;
  margin: 0 auto;
}
.privacy-line h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.privacy-line p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.privacy-line .shield {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
}
.privacy-line .shield svg {
  width: 24px; height: 24px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* === Footer === */
footer {
  padding: 56px 24px 36px;
  color: var(--muted);
  font-size: 0.86rem;
  border-top: 1px solid var(--border);
}

footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

footer .footer-grid {
  max-width: 900px;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer .footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
footer .footer-brand .footer-logo svg { width: 24px; height: 24px; }
footer .footer-brand p {
  color: var(--faint);
  font-size: 0.84rem;
  max-width: 280px;
  line-height: 1.6;
}
footer .footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer .footer-col-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 4px;
}
footer .footer-copyright {
  text-align: center;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--faint);
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero { padding: 64px 24px 48px; }
  .hero h1 { font-size: 2.1rem; }
  .hero .subtitle { font-size: 1.02rem; }

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

  nav .nav-links { gap: 16px; }
}

/* Mobile nav drawer */
@media (max-width: 768px) {
  nav .nav-toggle { display: flex; }
  nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 14px;
    align-items: stretch;
  }
  nav .nav-links.open { display: flex; }
  nav .nav-cta { text-align: center; }

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