/* ==========================================================================
   Shared Product Landing Page Stylesheet — yasarshehzad.com
   Inspired by glide.rasmic.xyz
   - Strict 8px Grid System (8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 96, 120)
   - CSS Variables for all colors & theme switching (Light & Dark Mode)
   - Respects prefers-reduced-motion for all animations & transitions
   ========================================================================== */

:root {
  /* Light Theme Surface & Text Tokens */
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --surface-subtle: #f1f5f9;
  --surface-glass: rgba(248, 250, 252, 0.86);
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);

  /* Brand Accent Tokens (overridden per project) */
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.10);
  --accent-glow: rgba(37, 99, 235, 0.24);
  --accent-contrast: #ffffff;

  /* Showcase & Bento Stage Tokens */
  --stage-bg-start: transparent;
  --stage-bg-mid: transparent;
  --stage-bg-end: transparent;
  --stage-border: transparent;
  --stage-inner-border: rgba(15, 23, 42, 0.08);
  --stage-text: #0f172a;
  --stage-text-muted: #64748b;
  --stage-pill-bg: transparent;
  --stage-pill-border: transparent;
  --window-chrome-bg: rgba(248, 250, 252, 0.96);
  --window-dot-red: #ff5f56;
  --window-dot-yellow: #ffbd2e;
  --window-dot-green: #27c93f;
  --status-positive: #10b981;

  /* Elevation Tokens */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px -8px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.14);
  --shadow-stage: 0 32px 64px -16px rgba(15, 23, 42, 0.22), 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-card-media: 0 20px 40px -12px rgba(0, 0, 0, 0.45);

  /* Radii & Layout (8px grid aligned) */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --container-max: 1120px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #07090e;
  --bg-elevated: #0d111a;
  --surface: #111622;
  --surface-hover: #171e2e;
  --surface-subtle: #0d111a;
  --surface-glass: rgba(7, 9, 14, 0.84);
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: rgba(248, 250, 252, 0.08);
  --border-strong: rgba(248, 250, 252, 0.15);

  --stage-bg-start: #0b0f19;
  --stage-bg-mid: #131b2e;
  --stage-bg-end: #090d16;
  --stage-border: rgba(255, 255, 255, 0.14);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.52);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.68);
  --shadow-stage: 0 32px 72px -16px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.07);
}

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

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

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

/* Focus Outline Accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Ambient Page Glow */
.ambient-glow {
  position: fixed;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 480px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  filter: blur(64px);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -64px;
  left: 16px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  z-index: 1000;
}
.skip-link:focus {
  top: 16px;
}

/* ==========================================================================
   Sticky Top Navigation Bar (8px grid)
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.top-nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
}

.nav-brand-icon,
.brand-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

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

.theme-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.theme-btn svg {
  width: 16px;
  height: 16px;
}

.nav-cta,
.nav-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

/* ==========================================================================
   Main Container & Hero Section
   ========================================================================== */
main {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.hero-header {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-icon-wrap {
  position: relative;
  margin-bottom: 24px;
}

.hero-app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 16px;
  text-wrap: balance;
}

.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 54ch;
  margin: 0 auto 32px;
  line-height: 1.6;
  text-wrap: pretty;
}

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

.btn-primary,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: opacity 0.2s ease;
}
.btn-primary svg,
.primary-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-secondary,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* ==========================================================================
   Glide-Style Interactive Looping Showcase (.showcase)
   Seamless, Unboxed Stage with Organic Background Glow
   ========================================================================== */
.showcase {
  max-width: 1040px;
  margin: 0 auto;
  text-align: left;
  position: relative;
}

.showcase::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  max-width: 1200px;
  height: 680px;
  background:
    radial-gradient(circle at 35% 35%, var(--accent-glow) 0%, transparent 60%),
    radial-gradient(circle at 65% 65%, var(--accent-soft) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  filter: blur(35px);
}

[data-theme="dark"] .showcase::before {
  opacity: 0.85;
}

.showcase-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  padding: 0;
}

.showcase-caption-text {
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 20px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}

.showcase-slides {
  position: relative;
  width: 100%;
}

/* Mode A: iOS 3-Card Spotlight Carousel inside .showcase-frame */
.showcase-frame--ios .showcase-slides {
  height: 544px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-spotlight-deck {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-slide-card {
  position: absolute;
  height: 528px;
  width: auto;
  aspect-ratio: 600 / 1300;
  border-radius: 40px;
  overflow: hidden;
  border: none;
  background: transparent;
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.16), 0 6px 16px -4px rgba(15, 23, 42, 0.08);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  user-select: none;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 16px, 0) scale(0.84);
}

.ios-slide-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ios-slide-card.is-active {
  opacity: 1;
  z-index: 4;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  box-shadow: 0 28px 64px -16px rgba(15, 23, 42, 0.22), 0 10px 24px -4px rgba(15, 23, 42, 0.12);
}

.ios-slide-card.is-prev {
  opacity: 0.6;
  z-index: 2;
  pointer-events: auto;
  transform: translate3d(-264px, 8px, 0) scale(0.86);
}

.ios-slide-card.is-next {
  opacity: 0.6;
  z-index: 2;
  pointer-events: auto;
  transform: translate3d(264px, 8px, 0) scale(0.86);
}

[data-theme="dark"] .ios-slide-card {
  box-shadow: 0 28px 72px -12px rgba(0, 0, 0, 0.75), 0 8px 24px -4px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .ios-slide-card.is-active {
  box-shadow: 0 36px 90px -16px rgba(0, 0, 0, 0.85), 0 12px 32px -4px rgba(0, 0, 0, 0.5);
}

/* Mode B: Desktop / Web / macOS Window inside .showcase-frame */
.stage-window {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--stage-border);
  background: var(--window-chrome-bg);
  box-shadow: var(--shadow-card-media);
  overflow: hidden;
}

.window-chrome {
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--window-chrome-bg);
  border-bottom: 1px solid var(--stage-inner-border);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
}
.window-dot--red { background: var(--window-dot-red); }
.window-dot--yellow { background: var(--window-dot-yellow); }
.window-dot--green { background: var(--window-dot-green); }

.window-url {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--stage-text-muted);
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
}

.window-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--stage-bg-start);
  overflow: hidden;
}

.window-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.window-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.window-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Glide Transport & Chapter Scrubber Bar (.showcase-controls) */
.showcase-controls {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.showcase-play-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.showcase-play-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.showcase-chapters {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.chapter-btn {
  appearance: none;
  background: transparent;
  border: none;
  text-align: left;
  padding: 8px 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.chapter-btn.is-active {
  color: var(--text);
}

.chapter-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.chapter-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chapter-track {
  width: 100%;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  overflow: hidden;
}

.chapter-fill {
  height: 100%;
  width: calc(var(--progress, 0) * 100%);
  background: var(--text);
  border-radius: var(--radius-pill);
  transition: width 0.1s linear;
}

/* ==========================================================================
   Section Headers & Glide-Style Visual Feature Bento Grid (.features-bento)
   ========================================================================== */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 8px;
  text-wrap: balance;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-wrap: pretty;
}

/* Glide 2-Column Visual Feature Cards */
.features-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.bento-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.bento-visual {
  position: relative;
  height: 360px;
  background: transparent;
  border: none;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.bento-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

[data-theme="dark"] .bento-visual::before {
  opacity: 0.65;
}

/* Phone card(s) inside .bento-visual */
.bento-ios-pair {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.bento-visual--ios img {
  height: 312px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.08);
  border: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] .bento-visual--ios img {
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 6px 16px rgba(0, 0, 0, 0.45);
}

.bento-ios-pair .bento-img-main {
  position: relative;
  z-index: 2;
  height: 312px;
  transform: translate3d(-36px, 0, 0) rotate(-2deg);
}

.bento-ios-pair .bento-img-sub {
  position: absolute;
  z-index: 1;
  height: 288px;
  opacity: 0.75;
  transform: translate3d(48px, 8px, 0) rotate(3.5deg);
}

/* Web / Desktop screen inside .bento-visual */
.bento-visual--web {
  padding: 16px;
  align-items: center;
  justify-content: center;
}

.bento-window {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.65), 0 6px 16px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-window-bar {
  height: 24px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--window-chrome-bg);
  border-bottom: 1px solid var(--stage-inner-border);
  flex-shrink: 0;
}

.bento-window-bar span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.22);
}

.bento-window img {
  width: 100%;
  height: calc(100% - 24px);
  object-fit: cover;
  object-position: top center;
  display: block;
}

.bento-caption {
  padding: 20px 4px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.bento-caption h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.bento-caption p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ==========================================================================
   Engineering & Role Highlights (.role-grid)
   Architectural 3-Column Editorial Grid, Seamlessly Integrated
   ========================================================================== */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.role-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.role-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.role-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tech-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.tech-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ==========================================================================
   Bottom Call-To-Action Banner (.cta-banner)
   Open Atmospheric Section with Centered Ambient Radial Glow
   ========================================================================== */
.cta-banner {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 80px 24px 32px;
  text-align: center;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 640px;
  height: 280px;
  background: radial-gradient(ellipse 65% 55% at 50% 50%, var(--accent-glow) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  filter: blur(25px);
}

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

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}

.cta-banner p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: 8px;
}

.cta-banner .hero-actions {
  margin-bottom: 0;
}

/* ==========================================================================
   Collapsible Privacy Policy Section (#privacy) — Integrated Hairline Strip
   ========================================================================== */
.privacy-section {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
}

.privacy-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.privacy-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.privacy-toggle:hover {
  opacity: 0.85;
}

.privacy-toggle-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.privacy-toggle h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.privacy-toggle-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.privacy-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.privacy-body {
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.privacy-body[hidden] {
  display: none !important;
}

.privacy-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 8px;
}

.privacy-body p,
.privacy-body ul {
  margin-bottom: 16px;
}

.privacy-body ul {
  padding-left: 24px;
}

.privacy-body a {
  color: var(--accent);
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

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

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

/* ==========================================================================
   Pointer Hover States (Scoped to Fine Pointers per Better Design Rules)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .back-link:hover {
    color: var(--text);
    border-color: var(--border-strong);
  }
  .theme-btn:hover {
    border-color: var(--border-strong);
    background: var(--surface-hover);
  }
  .nav-cta:hover,
  .nav-action-btn:hover,
  .btn-primary:hover,
  .primary-btn:hover {
    opacity: 0.9;
  }
  .btn-secondary:hover,
  .secondary-btn:hover,
  .showcase-play-btn:hover,
  .privacy-toggle:hover {
    background: var(--surface-hover);
  }
  .ios-slide-card.is-prev:hover,
  .ios-slide-card.is-next:hover {
    opacity: 0.85;
  }
  .chapter-btn:hover {
    color: var(--text);
  }
  .bento-card:hover .bento-ios-pair .bento-img-main {
    transform: translate3d(-36px, -4px, 0) rotate(-1.5deg) scale(1.02);
  }
  .bento-card:hover .bento-ios-pair .bento-img-sub {
    transform: translate3d(52px, 4px, 0) rotate(4deg) scale(1.02);
  }
  .bento-card:hover .bento-window {
    transform: translateY(-4px) scale(1.015);
  }
  .footer-links a:hover {
    color: var(--text);
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .showcase-frame--ios .showcase-slides {
    height: 440px;
  }
  .ios-slide-card {
    height: 416px;
  }
  .ios-slide-card.is-prev {
    transform: translate3d(-168px, 8px, 0) scale(0.84);
  }
  .ios-slide-card.is-next {
    transform: translate3d(168px, 8px, 0) scale(0.84);
  }
  .showcase-chapters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features-bento {
    grid-template-columns: 1fr;
  }
  .role-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .top-nav-inner {
    padding: 0 16px;
  }
  .nav-brand span {
    display: none;
  }
  .hero {
    padding: 40px 0 32px;
  }
  .showcase-frame {
    padding: 0;
  }
  .showcase-frame--ios .showcase-slides {
    height: 384px;
  }
  .ios-slide-card {
    height: 368px;
  }
  .ios-slide-card.is-prev {
    transform: translate3d(-88px, 8px, 0) scale(0.82);
    opacity: 0.35;
  }
  .ios-slide-card.is-next {
    transform: translate3d(88px, 8px, 0) scale(0.82);
    opacity: 0.35;
  }
  .showcase-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .showcase-chapters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .bento-visual {
    height: 288px;
  }
  .bento-visual--ios img,
  .bento-ios-pair .bento-img-main {
    height: 240px;
  }
  .bento-ios-pair .bento-img-sub {
    height: 216px;
  }
  .bento-window {
    height: 240px;
  }
}

/* ==========================================================================
   Reduced Motion Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
