/* ==========================================================================
   RARE CALCULATOR — Apple-Inspired Clean & Professional Design System
   © 2026 RARE INC. LTD. All rights reserved.
   ========================================================================== */

:root {
  /* Core Palette — Clean Alabaster, Pure White & Deep Apple Ink */
  --bg-primary: #fbfbfd;
  --bg-secondary: #f4f5f8;
  --bg-elevated: rgba(255, 255, 255, 0.86);
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-dark: #07080c;
  --bg-dark-card: #10131a;

  /* Text Hierarchy */
  --text-primary: #0b0d13;
  --text-secondary: #5c6270;
  --text-tertiary: #868c98;
  --text-on-dark: #f5f5f7;
  --text-on-dark-muted: #9ba1ae;

  /* Brand Signature Orange (from RareCal_ICON & webexample) */
  --brand-orange: #ff5500;
  --brand-orange-hover: #e04800;
  --brand-orange-light: #fff2eb;
  --brand-orange-glow: rgba(255, 85, 0, 0.18);

  /* Accent Finishes */
  --alpine-sky: #5b7898;
  --obsidian-blue: #3b82f6;
  --tiffany-aqua: #0abab5;
  --emerald-jade: #10b981;
  --amethyst-violet: #8b5cf6;
  --rose-quartz: #f43f5e;
  --crimson-noir: #ef4444;

  /* Borders & Shadows */
  --border-subtle: rgba(15, 23, 42, 0.07);
  --border-strong: rgba(15, 23, 42, 0.12);
  --border-glass: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 2px 10px rgba(11, 13, 19, 0.04);
  --shadow-md: 0 12px 36px rgba(11, 13, 19, 0.06), 0 2px 8px rgba(11, 13, 19, 0.03);
  --shadow-lg: 0 28px 70px rgba(11, 13, 19, 0.1), 0 6px 20px rgba(11, 13, 19, 0.04);
  --shadow-device: 0 36px 80px -12px rgba(15, 23, 42, 0.28), 0 12px 28px -6px rgba(15, 23, 42, 0.14);

  /* Layout & Radii */
  --max-width: 1240px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 9999px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  selection-background-color: var(--brand-orange);
}

::selection {
  background: rgba(255, 85, 0, 0.15);
  color: var(--brand-orange);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   NAVIGATION BAR (Matches webexample.png + Apple Sticky Frosted Header)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 24px rgba(11, 13, 19, 0.04);
}

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

/* Brand Lockup: Orange 'C' Icon + RARE CALCULATOR */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand-lockup:hover {
  opacity: 0.88;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(255, 85, 0, 0.22));
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

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

.brand-calculator {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--text-secondary);
  margin-top: 3px;
  text-transform: uppercase;
}

/* Center Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

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

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

.nav-link.active {
  color: var(--brand-orange);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2.5px;
  background: var(--brand-orange);
  border-radius: 2px;
}

/* Right Navigation Status Pill (Replaces Download Button until Launch) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #12151e 0%, #1e2330 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 18px rgba(11, 13, 19, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 13, 19, 0.2);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.28);
  animation: pulseDot 2.4s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.28);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 85, 0, 0.08);
  }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  color: var(--text-primary);
}

/* ==========================================================================
   HERO SECTION (Sculptural Wave Backdrop + Dual iPhone Showcase)
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 56px 0 36px;
  background:
    radial-gradient(ellipse 55% 65% at 68% 45%, rgba(255, 224, 195, 0.52) 0%, rgba(255, 240, 225, 0.18) 55%, transparent 80%),
    radial-gradient(ellipse 50% 60% at 85% 55%, rgba(190, 218, 255, 0.48) 0%, transparent 75%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 78%, #ffffff 100%);
}

/* Sculptural Apple-style 3D Glass Waves in Background (like webexample.png) */
.hero-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-wave-arc {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.hero-wave-arc.arc-1 {
  width: 780px;
  height: 780px;
  right: 8%;
  top: -120px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 236, 230, 0.55) 48%, rgba(255, 196, 150, 0.25) 100%);
  box-shadow:
    inset 2px 2px 6px rgba(255, 255, 255, 0.95),
    -24px 24px 60px rgba(15, 23, 42, 0.045);
  transform: rotate(-16deg) scaleX(0.75);
}

.hero-wave-arc.arc-2 {
  width: 680px;
  height: 680px;
  right: -4%;
  top: 20px;
  background: linear-gradient(160deg, rgba(255, 248, 240, 0.88) 0%, rgba(226, 238, 255, 0.62) 60%, rgba(186, 216, 255, 0.28) 100%);
  box-shadow:
    inset 2px 2px 8px rgba(255, 255, 255, 0.95),
    -20px 30px 70px rgba(30, 58, 138, 0.06);
  transform: rotate(-8deg) scaleX(0.82);
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  align-items: center;
  gap: 40px;
}

/* Left Hero Copy */
.hero-copy {
  max-width: 540px;
  padding: 20px 0 32px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(3.6rem, 6.4vw, 5.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.042em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 1.6vw, 1.38rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  margin-bottom: 36px;
  max-width: 480px;
}

/* Hero Action Cluster (No Download Button — Clean Apple Pre-Release Badge + Explore CTA) */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.apple-prelaunch-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 24px;
  border-radius: 16px;
  background: #0b0d13;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(11, 13, 19, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.apple-prelaunch-badge svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}

.badge-text-col {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.badge-label-small {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}

.badge-label-main {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.btn-secondary-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.96rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.btn-secondary-glass:hover {
  background: #ffffff;
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Right Hero Visual: Dual Floating Titanium iPhone Mockups */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  perspective: 1600px;
}

.hero-phones-stage {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Realistic Titanium iPhone Pro Hardware Frame */
.iphone-frame {
  position: relative;
  background: linear-gradient(145deg, #3a3835 0%, #18181b 35%, #27272a 75%, #4a4640 100%);
  border-radius: 50px;
  padding: 11px;
  box-shadow:
    0 0 0 1.5px rgba(255, 250, 240, 0.45),
    0 0 0 3.5px #2d2b28,
    var(--shadow-device);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
  user-select: none;
}

.iphone-frame::before {
  /* Specular glass edge highlight */
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
  z-index: 4;
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: #07080c;
  z-index: 2;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dynamic Island Pill */
.dynamic-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 22px;
  background: #000000;
  border-radius: 20px;
  z-index: 5;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.15);
}

/* Primary Left Phone (Tilted like webexample.png) */
.hero-phone-primary {
  width: 276px;
  position: absolute;
  left: 11%;
  top: 12px;
  z-index: 3;
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(5deg);
  box-shadow:
    12px 24px 60px rgba(15, 23, 42, 0.28),
    -4px -2px 24px rgba(255, 115, 30, 0.12),
    0 0 0 1.5px rgba(255, 245, 235, 0.55),
    0 0 0 4px #3b3733;
}

/* Secondary Right Phone (Dark Sapphire Mode like webexample.png) */
.hero-phone-secondary {
  width: 248px;
  position: absolute;
  right: 5%;
  top: 56px;
  z-index: 2;
  transform: rotateY(-18deg) rotateX(6deg) rotateZ(-4deg);
  box-shadow:
    16px 32px 68px rgba(11, 13, 19, 0.34),
    0 0 36px rgba(59, 130, 246, 0.16),
    0 0 0 1.5px rgba(255, 245, 235, 0.4),
    0 0 0 4px #322f2c;
}

.hero-phones-stage:hover .hero-phone-primary {
  transform: rotateY(-10deg) rotateX(4deg) rotateZ(3.5deg) translateY(-6px);
}

.hero-phones-stage:hover .hero-phone-secondary {
  transform: rotateY(-14deg) rotateX(4deg) rotateZ(-2.5deg) translateY(-4px);
}

/* Floor Reflection Shadow under Phones */
.hero-floor-glow {
  position: absolute;
  bottom: 6px;
  left: 14%;
  right: 6%;
  height: 36px;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.22) 0%, rgba(15, 23, 42, 0.06) 55%, transparent 80%);
  filter: blur(10px);
  z-index: 1;
}

/* ==========================================================================
   4-COLUMN FEATURE STRIP (Exact Match to Bottom Bar of webexample.png)
   ========================================================================== */
.feature-strip-wrapper {
  position: relative;
  z-index: 3;
  max-width: var(--max-width);
  margin: 12px auto 0;
  padding: 0 32px 40px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  padding: 26px 12px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.045);
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 24px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.strip-item:last-child {
  border-right: none;
}

.strip-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.strip-icon-box svg {
  width: 26px;
  height: 26px;
  stroke: var(--brand-orange);
  stroke-width: 2;
  fill: none;
}

.strip-text h3 {
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.strip-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* ==========================================================================
   APPLE-STYLE SECTION HEADERS
   ========================================================================== */
.section {
  padding: 108px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

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

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

.section-eyebrow {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.032em;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.section-dark .section-subtitle {
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   APPLE BENTO GRID (FEATURES)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.bento-span-7 {
  grid-column: span 7;
}

.bento-span-5 {
  grid-column: span 5;
}

.bento-span-4 {
  grid-column: span 4;
}

.bento-span-6 {
  grid-column: span 6;
}

.bento-card.dark-card {
  background: linear-gradient(155deg, #0d1017 0%, #151b28 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
}

.bento-card.dark-card .bento-desc {
  color: var(--text-on-dark-muted);
}

.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-orange);
  margin-bottom: 14px;
}

.bento-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.bento-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Visual Elements inside Bento Cards */
.math-pills-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.math-pill {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.math-pill:hover {
  transform: scale(1.08);
  background: rgba(10, 186, 181, 0.25);
  border-color: rgba(56, 189, 248, 0.6);
}

.math-pill.accent {
  background: radial-gradient(circle at 50% 80%, #38bdf8, #0abab5);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 20px rgba(10, 186, 181, 0.35);
}

.history-tape-preview {
  margin-top: 28px;
  background: linear-gradient(145deg, #6b7d94 0%, #52647c 100%);
  border-radius: 22px;
  padding: 20px 24px;
  color: #ffffff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 14px 28px rgba(15, 23, 42, 0.12);
}

.tape-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.98rem;
}

.tape-row:last-child {
  border-bottom: none;
}

.tape-expr {
  color: rgba(255, 255, 255, 0.8);
}

.tape-res {
  font-weight: 700;
  font-size: 1.15rem;
}

/* ==========================================================================
   INTERACTIVE 7 GLASS FINISHES STUDIO (Apple Color Switcher Experience)
   ========================================================================== */
.finishes-studio {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.finish-selector-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.finish-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.25s ease;
}

.finish-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.finish-option.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.finish-option-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.finish-swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.finish-swatch-inner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.finish-name {
  font-size: 1.02rem;
  font-weight: 600;
  display: block;
}

.finish-sub {
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
}

.finish-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
  transition: all 0.2s ease;
}

.finish-option.active .finish-check {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #ffffff;
}

.finish-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.finish-ambient-halo {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 163, 245, 0.35) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  transition: background 0.5s ease;
}

.finish-preview-phone {
  width: 280px;
  z-index: 2;
}

.finish-caption-pill {
  margin-top: 24px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
  color: var(--text-on-dark-muted);
  z-index: 2;
}

/* ==========================================================================
   SCREENSHOTS SHOWCASE GALLERY (5 iPhone Screens + iPad Pro View)
   ========================================================================== */
.device-tabs {
  display: inline-flex;
  background: #e9ecf2;
  padding: 5px;
  border-radius: var(--radius-pill);
  margin-bottom: 44px;
}

.device-tab-btn {
  border: none;
  background: transparent;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.device-tab-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  align-items: start;
}

.screenshot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.screenshot-frame {
  width: 100%;
  border-radius: 34px;
  padding: 8px;
  background: linear-gradient(145deg, #323236 0%, #141417 100%);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  margin-bottom: 18px;
}

.screenshot-card:hover .screenshot-frame {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-lg);
}

.screenshot-frame img {
  width: 100%;
  border-radius: 27px;
  display: block;
}

.screenshot-label {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.screenshot-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* iPad Pro Showcase Grid */
.ipad-showcase-grid {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 980px;
  margin: 0 auto;
}

.ipad-showcase-grid.active {
  display: grid;
}

.screenshots-grid.hidden {
  display: none;
}

.ipad-frame {
  border-radius: 32px;
  padding: 12px;
  background: linear-gradient(145deg, #2e2f33 0%, #141518 100%);
  box-shadow: var(--shadow-lg);
  margin-bottom: 18px;
}

.ipad-frame img {
  width: 100%;
  border-radius: 22px;
  display: block;
}

/* ==========================================================================
   PRIVACY FIRST CALLOUT BANNER
   ========================================================================== */
.privacy-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f5f7fb 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 56px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.privacy-banner-copy {
  max-width: 640px;
}

.privacy-shield-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.privacy-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.privacy-banner p {
  font-size: 1.06rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.privacy-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.btn-primary-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  background: var(--brand-orange);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 85, 0, 0.25);
  transition: all 0.2s ease;
}

.btn-primary-orange:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 85, 0, 0.32);
}

/* ==========================================================================
   LEGAL & SUPPORT PAGES (privacy.html, support.html, terms.html)
   ========================================================================== */
.page-hero {
  padding: 72px 0 48px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(255, 85, 0, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f5f6f9 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

.legal-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}

.legal-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

.legal-summary-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.legal-summary-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-summary-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.legal-document {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.legal-document section {
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-document section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-document h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.legal-document p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-document p:last-child {
  margin-bottom: 0;
}

.legal-document ul {
  margin: 12px 0 12px 22px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-document li {
  margin-bottom: 8px;
}

.legal-document strong {
  color: var(--text-primary);
}

/* Support Page Specific Styles */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 64px;
}

.support-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.support-card h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.support-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--brand-orange);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.96rem;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-primary);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px var(--brand-orange-glow);
  background: #ffffff;
}

/* ==========================================================================
   APPLE-STYLE CLEAN FOOTER
   ========================================================================== */
.site-footer {
  background: #f4f5f8;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 40px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand-col {
  max-width: 340px;
}

.footer-brand-col p {
  margin-top: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.footer-nav-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

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

.footer-col a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--brand-orange);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-tertiary);
}

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

.footer-legal-links a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN & REDUCED MOTION
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .strip-item:nth-child(2) {
    border-right: none;
  }

  .bento-span-7,
  .bento-span-5,
  .bento-span-4,
  .bento-span-6 {
    grid-column: span 12;
  }

  .finishes-studio {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .screenshots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
  }

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

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-phones-stage {
    height: 460px;
    transform: scale(0.84);
  }

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

  .strip-item {
    border-right: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding: 14px 18px;
  }

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

  .screenshots-grid,
  .ipad-showcase-grid.active,
  .support-grid,
  .legal-summary-cards {
    grid-template-columns: 1fr;
  }

  .privacy-banner {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
  }

  .privacy-shield-icon {
    margin: 0 auto 20px;
  }

  .legal-document {
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .status-dot {
    animation: none;
  }

  .iphone-frame,
  .bento-card,
  .screenshot-frame {
    transition: none;
  }
}
