/* ==========================================================================
   YIBU STATIC LANDING PAGE — STYLES
   A calmer, kinder way to focus, study and build better habits.
   ========================================================================== */

/* ── CSS Custom Properties / Design Tokens ── */
:root {
  --primary-teal: #4FAFAD;
  --primary-teal-dark: #267C7A;
  --primary-teal-medium: #8ED4CF;
  --primary-teal-light: #D9F1EE;
  --lavender-accent: #C7A3EE;
  --peach-accent: #FFB487;
  --text-primary: #272725;
  --text-secondary: #626663;
  --bg-surface: #FFFFFF;
  --bg-page: #F7FAF8;
  --border-subtle: #E5E9E8;
  
  /* Gradients */
  --primary-cta-gradient: linear-gradient(135deg, #54B7B4, #B9A0E8);
  --teal-panel-gradient: linear-gradient(135deg, #C9ECE8, #51B2B0);
  
  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Caveat', cursive, sans-serif;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 12px 32px -8px rgba(38, 124, 122, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-phone: 0 24px 60px -12px rgba(38, 124, 122, 0.22), 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-phone-mini: 0 16px 36px -8px rgba(38, 124, 122, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. STICKY TOP NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.96);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(79, 175, 173, 0.3);
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-teal-dark);
}

.nav-link.active {
  color: var(--primary-teal-dark);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--primary-teal);
  border-radius: 2px;
}

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

.nav-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--primary-teal-dark);
}

.nav-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Download App Pill Button */
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--primary-cta-gradient);
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(84, 183, 180, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(84, 183, 180, 0.45);
  opacity: 0.96;
}

.btn-download:active {
  transform: translateY(0);
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 44px 0 64px;
  overflow: hidden;
}

/* Soft curved mint backdrop waves */
.hero-backdrop-shape {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(217, 241, 238, 0.85) 0%, rgba(247, 250, 248, 0.4) 60%),
              radial-gradient(circle at 10% 80%, rgba(217, 241, 238, 0.4) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 36px;
}

/* Left Hero Column */
.hero-content {
  max-width: 480px;
}

.hero-brand-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-app-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(79, 175, 173, 0.28);
}

.hero-brand-name {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--text-primary);
}

.hero-headline {
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--primary-teal);
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 34px;
}

/* Store Badges (Official Vector Badges) */
.store-badges-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.store-badge-link {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  overflow: hidden;
}

.store-badge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  filter: brightness(1.06);
}

.official-badge-img {
  height: 44px;
  width: auto;
  display: block;
}

/* Tooltip for disabled badges */
.tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background-color: var(--primary-teal-dark);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--primary-teal-dark) transparent transparent transparent;
}

.store-badge-wrapper:hover .tooltip,
.store-badge:focus + .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Right Hero Column (Visual Scene) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual-scene {
  position: relative;
  width: 100%;
  max-width: 580px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 20px;
}

/* Room backdrop behind phone & panda */
.hero-room-backdrop {
  position: absolute;
  top: -15px;
  right: -20px;
  width: 90%;
  height: 105%;
  background: radial-gradient(circle at 60% 40%, rgba(217, 241, 238, 0.8) 0%, rgba(230, 246, 244, 0.4) 60%, transparent 100%);
  border-radius: 40px;
  z-index: 1;
  pointer-events: none;
}

/* ── Realistic Smartphone Mockup (Hero) ── */
.phone-mockup-wrapper {
  position: relative;
  z-index: 3;
}

.hero-phone {
  width: 256px;
  height: 554px;
  background-color: #1a1d20;
  border-radius: 30px;
  border: 4.5px solid #1a1d20;
  box-shadow: var(--shadow-phone);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Phone Screen (Video Container) */
.video-screen-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  overflow: hidden;
  background-color: #000000;
}

#heroVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  background-color: #000000;
}

/* Dedicated Start Screen Cover (Dashboard Image + Message + Play Button) */
.hero-video-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 12;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #F7FAF8;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hero-cover-poster {
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  width: calc(100% - 20px);
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
}

/* Subtle dark gradient overlay at bottom for high script text legibility */
.hero-cover-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(14, 28, 28, 0.85) 0%, rgba(14, 28, 28, 0.45) 55%, transparent 100%);
  pointer-events: none;
}

/* Center Play Button Overlay (Dark Frosted Glass with White Border & Triangle) */
.center-play-btn {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(18, 34, 36, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  z-index: 15;
  transition: transform 0.2s ease, opacity 0.3s ease, background 0.2s ease;
}

.center-play-btn svg {
  margin-left: 3px; /* optical centering */
}

.center-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(18, 34, 36, 0.92);
  border-color: #FFFFFF;
}

/* Script Caption on Video / Cover */
.video-script-caption {
  position: absolute;
  bottom: 38px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 14;
  font-family: var(--font-script);
  font-size: 1.65rem;
  font-weight: 600;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.95);
  line-height: 1.15;
  text-align: center;
  transition: opacity 0.3s ease;
}

.script-caption-underline {
  width: 110px;
  height: 8px;
  margin-top: 2px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

/* Hide entire cover overlay smoothly when video is playing */
.video-screen-container.playing .hero-video-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Video Control Bar */
.video-control-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
  padding: 14px 14px 12px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Progress bar / scrubber */
.video-progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: height 0.15s ease;
}

.video-progress-container:hover {
  height: 6px;
}

.video-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--primary-teal-medium);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.video-controls-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-time {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.3px;
  user-select: none;
}

.video-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ── Hero Mascot & Script Annotations ── */
.hero-mascot-container {
  position: absolute;
  right: 15px;
  bottom: 30px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
}

.mascot-img-wrap {
  width: 140px;
  position: relative;
}

.hero-mascot-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.12));
}

/* Script Annotations (Hand-drawn look) */
.script-annotation {
  font-family: var(--font-script);
  color: var(--primary-teal-dark);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  user-select: none;
  white-space: nowrap;
}

.script-top {
  align-items: flex-start;
  margin-bottom: 6px;
  transform: rotate(-4deg);
}

.hand-drawn-squiggle {
  width: 78px;
  height: 10px;
  margin-top: -2px;
}

.script-bottom {
  align-items: flex-end;
  margin-top: 4px;
  transform: rotate(3deg);
  text-align: right;
  font-size: 1.45rem;
}

.script-heart {
  color: var(--primary-teal-dark);
  font-size: 1.3rem;
}

/* ==========================================================================
   3. FEATURES SECTION — "THE YIBU EXPERIENCE"
   ========================================================================== */
.features-section {
  position: relative;
  background-color: var(--primary-teal-light);
  padding: 64px 0 72px;
}

/* Subtle wave divider between hero and features */
.section-curve-divider {
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 25px;
  background: var(--primary-teal-light);
  clip-path: ellipse(55% 100% at 50% 100%);
  pointer-events: none;
}

.features-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features-header {
  text-align: center;
  max-width: 680px;
  margin-bottom: 48px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--primary-teal-dark);
  margin-bottom: 12px;
}

.section-heading {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-subtext {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* 4 Phone Mockups Row */
.features-phones-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.app-phone-card {
  flex: 0 1 192px;
  width: min(100%, 192px);
  max-width: 192px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Mini Phone Frame (Slim, Authentic Smartphone Proportions matching reference) */
.mini-phone {
  width: 100%;
  height: auto;
  aspect-ratio: 192 / 396;
  background-color: #1a1d20;
  border-radius: 28px;
  border: 4.5px solid #1a1d20;
  box-shadow: var(--shadow-phone-mini);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.app-phone-card:hover .mini-phone {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -8px rgba(38, 124, 122, 0.24);
}

/* iOS-style Status Bar with Normal Notch */
.phone-status-bar {
  width: 100%;
  height: 22px;
  background-color: #F7FAF8;
  border-top-left-radius: 23px;
  border-top-right-radius: 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  position: relative;
  z-index: 15;
  pointer-events: none;
  flex-shrink: 0;
}

.status-time {
  font-size: 0.62rem;
  font-weight: 700;
  color: #1a1d20;
  letter-spacing: -0.2px;
  width: 28px;
}

/* Normal iPhone Notch (dips directly from top bezel with clean curved corners) */
.normal-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 11px;
  background-color: #1a1d20;
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-bottom: 1px;
  z-index: 20;
}

.notch-speaker {
  width: 18px;
  height: 2px;
  background: #353a40;
  border-radius: 1px;
}

.notch-camera {
  width: 3.5px;
  height: 3.5px;
  background: #111417;
  border-radius: 50%;
  box-shadow: inset 0 0 1px #4b5563;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #1a1d20;
  width: 38px;
  justify-content: flex-end;
}

.status-icon {
  display: block;
}

/* Inner Screen Image Crop */
.phone-screen-crop {
  flex: 1;
  width: 100%;
  overflow: hidden;
  background-color: #F7FAF8;
  position: relative;
  border-bottom-left-radius: 23px;
  border-bottom-right-radius: 23px;
}

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

/* Modern Home Indicator Pill at Bottom */
.phone-home-indicator {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 2.5px;
  background: #1a1d20;
  border-radius: 2px;
  z-index: 15;
  opacity: 0.55;
  pointer-events: none;
}

/* Feature Callout Under Phone */
.feature-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
  max-width: 192px;
  padding: 0;
}

.callout-icon-wrap {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-teal-dark);
}

.callout-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.callout-content {
  display: flex;
  flex-direction: column;
}

.callout-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 3px;
}

.callout-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   4. CLOSING CTA SECTION
   ========================================================================== */
.cta-section {
  padding: 80px 0 96px;
  background-color: var(--bg-surface);
}

.cta-container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 48px;
}

.cta-content {
  max-width: 520px;
}

.cta-brand-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.cta-app-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(79, 175, 173, 0.25);
}

.cta-brand-name {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.cta-heading {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.22;
  color: var(--primary-teal-dark);
  margin-bottom: 14px;
}

.cta-subtext {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.cta-badges {
  margin-bottom: 24px;
}

/* Script Tagline under CTA badges */
.cta-script-tagline {
  position: relative;
  display: inline-flex;
  flex-direction: column;
}

.script-quote {
  font-family: var(--font-script);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-teal-dark);
  line-height: 1.2;
}

.cta-squiggle {
  width: 220px;
  height: 14px;
  margin-top: 2px;
}

/* CTA Visual Photo Frame */
.cta-visual {
  display: flex;
  justify-content: center;
}

.cta-photo-frame {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 48px -12px rgba(38, 124, 122, 0.16), 0 6px 16px rgba(0, 0, 0, 0.05);
}

.cta-photo {
  width: 100%;
  height: auto;
  display: block;
}

/* ===========================================================================
   5. CONTACT SECTION
   =========================================================================== */
.contact-section {
  padding: 80px 0;
  background-color: var(--bg-page);
  scroll-margin-top: 84px;
}

.contact-container {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 48px;
  max-width: 960px;
}

.contact-intro {
  max-width: 360px;
}

.contact-intro .section-heading {
  color: var(--primary-teal-dark);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-primary);
  font: inherit;
  line-height: 1.45;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary-teal);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(79, 175, 173, 0.16);
}

.contact-submit {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--primary-cta-gradient);
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(84, 183, 180, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(84, 183, 180, 0.4);
}

/* ===========================================================================
   6. FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  padding: 32px 0;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Footer Left */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Footer Center */
.footer-center {
  display: flex;
  align-items: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-teal-dark);
}

/* Footer Right */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer-microcopy {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

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

  .hero-brand-badge {
    justify-content: center;
  }

  .store-badges-row {
    justify-content: center;
  }

  .hero-visual-scene {
    justify-content: space-between;
    padding-left: 0;
    max-width: 500px;
  }

  /* 4 Phones in 2x2 on tablet */
  .features-phones-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    width: min(100%, 416px);
    gap: 36px 32px;
  }

  .cta-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .cta-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cta-brand-badge {
    justify-content: center;
  }

  .cta-script-tagline {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 16px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
  }

  .nav-link:hover {
    background: var(--primary-teal-light);
  }

  .nav-link.active::after {
    bottom: 6px;
    left: 14px;
    width: calc(100% - 28px);
  }

  .btn-download {
    padding: 9px 14px;
    font-size: 0.8rem;
  }

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

  .contact-intro {
    max-width: 600px;
    text-align: center;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .contact-form .form-field,
  .contact-form .contact-submit {
    width: 100%;
  }

  .contact-form .form-field-full {
    grid-column: auto;
  }

  .hero-headline {
    font-size: 2.3rem;
  }

  .section-heading {
    font-size: 1.95rem;
  }

  .cta-heading {
    font-size: 1.95rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-left {
    align-items: center;
  }

  .footer-center {
    width: 100%;
    justify-content: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
  }

  .footer-right {
    align-items: center;
    gap: 0;
  }
}

@media (max-width: 540px) {
  .features-phones-row {
    display: grid;
    grid-template-columns: minmax(0, 192px);
    justify-content: center;
    width: min(100%, 192px);
    gap: 32px;
  }

  .hero-phone {
    width: clamp(200px, 64vw, 240px);
    height: auto;
    aspect-ratio: 256 / 554;
  }

  .hero-visual-scene {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: clamp(500px, 140vw, 520px);
  }

  .hero-mascot-container {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    align-self: center;
    margin: 24px auto 0;
  }

  .hero-mascot-container {
    width: clamp(120px, 37vw, 140px);
  }

  .mascot-img-wrap {
    width: clamp(94px, 30vw, 110px);
  }

  .script-annotation {
    font-size: 1.25rem;
  }
}

@media (max-width: 400px) {
  .hero-mascot-container {
    width: 118px;
  }

  .mascot-img-wrap {
    width: 94px;
  }

  .script-top {
    font-size: 1.1rem;
  }

  .script-bottom {
    display: none;
  }
}
