/* ==========================================================================
   SNAP FLOW STUDIO - OFFICIAL PUBLIC WEBSITE STYLESHEET
   Design System: Premium Modern Dark Slate & Indigo Glassmorphism
   Accessibility: WCAG AA, focus visibility, responsive typography
   ========================================================================== */

:root {
  --bg-body: #0b0f19;
  --bg-surface: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.75);
  
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.35);
  --border-cyan-glow: rgba(56, 189, 248, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 40px -10px rgba(99, 102, 241, 0.3);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Background Atmospheric Gradients */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-cyan) 70%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent-text {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  color: var(--text-muted);
}

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

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

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 15, 25, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* Hero Section */
.hero-section {
  padding: 90px 0 60px 0;
  text-align: center;
  position: relative;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: #c7d2fe;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  max-width: 900px;
  margin: 0 auto 24px auto;
  letter-spacing: -0.035em;
}

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

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.hero-guarantee span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Product Showcase Graphic */
.showcase-wrapper {
  margin-top: 50px;
  position: relative;
}

.browser-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.browser-mockup:hover {
  box-shadow: 0 30px 80px -15px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(99, 102, 241, 0.3);
}

.mockup-header {
  height: 44px;
  background: #1e293b;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-url-bar {
  flex: 1;
  max-width: 500px;
  margin: 0 auto;
  background: #0f172a;
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.mockup-body {
  padding: 30px;
  background: #0f172a;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.studio-demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.demo-tools-list {
  display: flex;
  gap: 8px;
}

.demo-tool-pill {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.demo-tool-pill.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.studio-demo-canvas {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 30px;
  color: #0f172a;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.demo-banner {
  background: #1e293b;
  color: #f8fafc;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.demo-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.demo-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px;
  background: #f8fafc;
}

.demo-card h4 {
  color: #0f172a;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.demo-annotation-arrow {
  position: absolute;
  top: 90px;
  right: 180px;
  background: #ef4444;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.demo-redaction-box {
  background: #000000;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 2px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Feature Sections */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px auto;
}

.section-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

/* 4 Capture Modes Grid */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.mode-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.mode-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.mode-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.mode-desc {
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Two-Column Feature Rows */
.feature-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-split-row.reverse {
  direction: rtl;
}
.feature-split-row.reverse > * {
  direction: ltr;
}

.feature-info h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-info p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  color: var(--text-main);
}

.feature-checklist svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

.feature-visual {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

/* Privacy Deep Dive Box */
.privacy-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 10px 40px -10px rgba(16, 185, 129, 0.15);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 36px;
}

.privacy-item {
  display: flex;
  gap: 16px;
}

.privacy-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.privacy-item-text h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.privacy-item-text p {
  font-size: 0.92rem;
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s ease;
}

.faq-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-q {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.faq-a {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Support Section */
.support-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.support-card h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.support-email-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent-cyan);
  margin: 20px 0;
}

.support-email-link {
  color: var(--accent-cyan);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.support-email-link:hover {
  color: #fff;
}

.parent-brand-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
}

.parent-brand-badge:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.6);
  color: #fff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px 0;
  background: rgba(11, 15, 25, 0.9);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Policy Content Layout (privacy.html) */
.policy-header {
  padding: 60px 0 40px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.policy-content {
  padding: 50px 0;
  max-width: 820px;
  margin: 0 auto;
}

.policy-section {
  margin-bottom: 40px;
}

.policy-section h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.policy-section p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 14px;
  color: #cbd5e1;
}

.policy-section ul {
  padding-left: 24px;
  margin-bottom: 16px;
  color: #cbd5e1;
}

.policy-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.policy-callout {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--accent-emerald);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}

.policy-callout p {
  color: #e2e8f0;
  font-size: 0.95rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .feature-split-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .feature-split-row.reverse {
    direction: ltr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .nav-links {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
