/* ============================================================
   Sotto — Website Styles
   Brand: Quiet intelligence, elegantly expressed.
   ============================================================ */

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

/* --- Custom Properties --- */
:root {
  /* Core neutrals */
  --ink: #1C1B19;
  --graphite: #4A4842;
  --stone: #B8B5AC;
  --parchment: #EDECE7;
  --porcelain: #FAFAF7;
  --night: #131210;

  /* Patina accent */
  --patina-50: #E2EDE8;
  --patina-100: #C2D9CE;
  --patina-200: #9FC2B2;
  --patina-400: #7A9E8E;
  --patina-600: #5B7D6E;
  --patina-800: #3E5A4D;

  /* Status colors */
  --sage-50: #EFF3ED;
  --sage-400: #6E8763;
  --sage-800: #3E5137;
  --ochre-50: #FBF4E6;
  --ochre-400: #C49840;
  --ochre-800: #6E5420;
  --clay-50: #F8EFED;
  --clay-400: #B87060;
  --clay-800: #6E3F33;
  --slate-50: #EEF1F5;
  --slate-400: #7282A0;
  --slate-800: #404B5C;

  /* Typography */
  --font-display: 'Crimson Pro', serif;
  --font-body: 'Hanken Grotesk', sans-serif;
  --font-mono: 'Geist Mono', monospace;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 120px;

  /* Layout */
  --max-width: 1100px;
  --content-max: 560px;
  --page-padding: 56px;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Offset anchors for sticky nav */
[id] {
  scroll-margin-top: 80px;
}

a {
  color: var(--graphite);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ink);
}

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

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.section {
  padding: 100px 0;
  border-top: 1px solid #e0ded8;
}

.section:first-of-type {
  border-top: none;
}

/* --- Typography --- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 48px;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--ink);
}

.heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 32px;
  letter-spacing: -0.5px;
  line-height: 1.25;
  color: var(--ink);
}

.subheading {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  color: var(--graphite);
}

.body-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--graphite);
  max-width: var(--content-max);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--stone);
  margin-bottom: 12px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--stone);
}

.label-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: #e0ded8;
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 22px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--stone);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-cta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--porcelain);
  background: var(--ink);
  padding: 8px 20px;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.nav-cta:hover {
  color: var(--porcelain);
  opacity: 0.85;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--porcelain);
  background: var(--ink);
  padding: 14px 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  color: var(--porcelain);
  opacity: 0.85;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--stone);
  background: none;
  padding: 10px 0;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  color: var(--graphite);
}

.btn-waitlist {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  background: var(--parchment);
  padding: 14px 32px;
  border-radius: 10px;
  border: 1px solid #e0ded8;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.btn-waitlist:hover {
  color: var(--ink);
  background: #e8e6e0;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 0 80px;
}

.hero-mark {
  width: 64px;
  height: auto;
  margin-bottom: 40px;
}

.hero .display {
  margin-bottom: 16px;
}

.hero .subheading {
  max-width: 440px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* --- Product Screenshot --- */
.screenshot-section {
  padding: 0 0 100px;
}

.screenshot-frame {
  background: #fff;
  border: 1px solid #e0ded8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(28, 27, 25, 0.06), 0 4px 16px rgba(28, 27, 25, 0.04);
}

.screenshot-titlebar {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  gap: 8px;
  border-bottom: 1px solid #f0efeb;
  background: var(--porcelain);
}

.screenshot-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.12;
}

.screenshot-body {
  aspect-ratio: 16 / 9;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 13px;
}

.screenshot-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-caption {
  text-align: center;
  margin-top: 20px;
}

/* --- Feature Sections --- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-content {
  max-width: 460px;
}

.feature-content .heading {
  margin-bottom: 16px;
}

.feature-content .body-text {
  margin-bottom: 0;
}

.feature-visual {
  background: #fff;
  border: 1px solid #e0ded8;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-placeholder {
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3px;
}

.feature.reverse {
  direction: rtl;
}

.feature.reverse > * {
  direction: ltr;
}

/* Example pills shown in classification feature */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.pill {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 6px;
}

.pill--patina { background: var(--patina-50); color: var(--patina-800); }
.pill--ochre { background: var(--ochre-50); color: var(--ochre-800); }
.pill--clay { background: var(--clay-50); color: var(--clay-800); }
.pill--sage { background: var(--sage-50); color: var(--sage-800); }
.pill--slate { background: var(--slate-50); color: var(--slate-800); }

/* --- Trust Section --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.trust-item {
  text-align: center;
}

.trust-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  background: var(--patina-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--patina-600);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}

.trust-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--graphite);
  line-height: 1.6;
}

/* --- Download CTA Section --- */
.cta-section {
  text-align: center;
  padding: 100px 0;
  border-top: 1px solid #e0ded8;
}

.cta-section .heading {
  margin-bottom: 8px;
}

.cta-section .mono {
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#download-cta,
#download-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.platform-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 0.3px;
  margin-top: 4px;
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid #e0ded8;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo img {
  height: 18px;
  width: auto;
  opacity: 0.5;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  color: var(--stone);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--graphite);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--stone);
  letter-spacing: 0.3px;
}

/* --- Legal Pages --- */
.legal-page {
  padding: 140px 0 80px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 36px;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 0.3px;
  margin-bottom: 48px;
}

.legal-content {
  max-width: 680px;
}

.legal-content h2 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--graphite);
  margin-bottom: 16px;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--graphite);
  margin-bottom: 4px;
}

.legal-content a {
  color: var(--patina-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--patina-800);
}

/* --- Support Page --- */
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid #e0ded8;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.faq-answer {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--graphite);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --page-padding: 24px;
  }

  .display {
    font-size: 36px;
  }

  .heading {
    font-size: 26px;
  }

  .hero {
    min-height: auto;
    padding: 140px 0 60px;
  }

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

  .feature.reverse {
    direction: ltr;
  }

  .feature-visual {
    order: -1;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section {
    padding: 64px 0;
  }

  .screenshot-section {
    padding: 0 0 64px;
  }

  /* Mobile nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(250, 250, 247, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px var(--page-padding);
    gap: 16px;
    border-bottom: 1px solid #e0ded8;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .display {
    font-size: 30px;
  }

  .heading {
    font-size: 24px;
  }

  .hero-mark {
    width: 48px;
    margin-bottom: 32px;
  }

  .btn-primary, .btn-waitlist {
    width: 100%;
    justify-content: center;
  }
}
