/**
 * afterBUY (補貨日記) - Landing Page Stylesheet
 * Inspired by Apple / iOS design aesthetic and expiresby.app
 * Ultra-high craft: Custom design tokens, glassmorphism, responsive layouts, dark/light mode
 */

/* ==========================================================================
   Design Tokens & CSS Variables
   ========================================================================== */
:root {
  /* Brand Accents */
  --brand-primary: #EA601A;
  --brand-secondary: #F97316;
  --brand-light: #FFF4ED;
  --brand-glow: rgba(234, 96, 26, 0.22);
  --brand-glow-subtle: rgba(234, 96, 26, 0.08);

  /* Status Colors */
  --status-fresh: #10B981;
  --status-fresh-bg: #ECFDF5;
  --status-fresh-border: rgba(16, 185, 129, 0.25);
  --status-soon: #F59E0B;
  --status-soon-bg: #FFFBEB;
  --status-soon-border: rgba(245, 158, 11, 0.25);
  --status-expired: #EF4444;
  --status-expired-bg: #FEF2F2;
  --status-expired-border: rgba(239, 68, 68, 0.25);
  --status-lowstock: #0EA5E9;
  --status-lowstock-bg: #F0F9FF;
  --status-lowstock-border: rgba(14, 165, 233, 0.25);

  /* Light Theme Surfaces & Text */
  --bg-page: #FBFBFC;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #F5F6F8;
  --bg-surface-elevated: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-glass-card: rgba(255, 255, 255, 0.9);
  --border-subtle: rgba(15, 23, 42, 0.07);
  --border-card: rgba(15, 23, 42, 0.08);
  --border-card-hover: rgba(234, 96, 26, 0.28);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-faint: #94A3B8;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 28px -6px rgba(15, 23, 42, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.14), 0 8px 16px -4px rgba(15, 23, 42, 0.05);
  --shadow-btn: 0 8px 20px -4px rgba(234, 96, 26, 0.42);

  /* Geometry & Motion */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  --radius-phone: 48px;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.18s;
  --duration-normal: 0.3s;
  --duration-slow: 0.6s;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-page: #0C0D10;
  --bg-surface: #14161B;
  --bg-surface-subtle: #1C1E26;
  --bg-surface-elevated: #1F222B;
  --bg-glass: rgba(18, 20, 26, 0.85);
  --bg-glass-card: rgba(22, 25, 33, 0.88);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.09);
  --border-card-hover: rgba(234, 96, 26, 0.45);

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-faint: #64748B;

  --status-fresh-bg: rgba(16, 185, 129, 0.14);
  --status-soon-bg: rgba(245, 158, 11, 0.14);
  --status-expired-bg: rgba(239, 68, 68, 0.14);
  --status-lowstock-bg: rgba(14, 165, 233, 0.14);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px -6px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 52px -12px rgba(0, 0, 0, 0.65);
  --shadow-btn: 0 8px 24px -4px rgba(234, 96, 26, 0.55);
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang TC", "Noto Sans TC", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background-color: var(--bg-page);
  color: var(--text-secondary);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color var(--duration-normal) var(--ease-smooth), color var(--duration-normal) var(--ease-smooth);
}

::selection {
  background-color: rgba(234, 96, 26, 0.2);
  color: var(--brand-primary);
}

:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

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

button, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

/* Numbers alignment */
.tabular-nums, [data-tabular] {
  font-variant-numeric: tabular-nums;
}

/* Skip link for a11y */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  z-index: 1000;
  background: var(--brand-primary);
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.section-alt {
  background-color: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--brand-glow-subtle);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
  border: 1px solid rgba(234, 96, 26, 0.16);
}

.section-title {
  font-size: 2.125rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.75rem;
  }
}

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

/* ==========================================================================
   Typography & Gradients
   ========================================================================== */
.brand-gradient {
  background: linear-gradient(135deg, #EA601A 0%, #F97316 50%, #FB923C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-gradient-green {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   Navigation Header (Sticky Frost)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
  gap: 1.25rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(234, 96, 26, 0.25);
  transition: transform var(--duration-fast) var(--ease-spring);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.05) rotate(-2deg);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

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

.brand-name-sub {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--brand-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-subtle);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Icon Buttons (Theme & Lang) */
.btn-icon {
  width: 2.375rem;
  height: 2.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.btn-icon:hover {
  color: var(--text-primary);
  background: var(--bg-surface-subtle);
  border-color: var(--border-card-hover);
  transform: translateY(-1px);
}

/* Primary CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-btn);
  transition: all var(--duration-fast) var(--ease-spring);
  text-decoration: none;
  white-space: nowrap;
}

.btn-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1.5px);
  box-shadow: 0 10px 24px -4px rgba(234, 96, 26, 0.55);
}

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

/* Mobile Nav Toggle */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  gap: 4px;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-smooth);
}

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

/* Mobile Dropdown Menu */
.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-xl);
  flex-direction: column;
  gap: 0.75rem;
  animation: slideDown 0.25s var(--ease-spring);
}

.nav-mobile-menu.is-open {
  display: flex;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-mobile-menu .nav-link {
  padding: 0.75rem 0.5rem;
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 3.5rem;
  padding-bottom: 5.5rem;
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: 5rem;
    padding-bottom: 7.5rem;
  }
}

/* Ambient Ambient Glow Orbs */
.hero-glow-1 {
  position: absolute;
  top: -120px;
  right: -50px;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 96, 26, 0.16) 0%, rgba(249, 115, 22, 0.04) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 12s ease-in-out infinite alternate;
}

.hero-glow-2 {
  position: absolute;
  bottom: -150px;
  left: -80px;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(14, 165, 233, 0.04) 50%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 14s ease-in-out infinite alternate-reverse;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(30px, 20px); }
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(234, 96, 26, 0.2);
  animation: blink 2.4s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-headline {
  font-size: 2.5rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .hero-headline {
    font-size: 3.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-headline {
    font-size: clamp(2.8rem, 4.4vw, 3.8rem);
  }
}

/* Dynamic Rotating Word */
#js-rotating-word {
  display: inline-block;
  min-width: 5.5ch;
  position: relative;
  transition: opacity 0.35s var(--ease-smooth), transform 0.35s var(--ease-spring);
}

.word-flip-out {
  opacity: 0;
  transform: translateY(-12px);
}

.word-flip-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 54ch;
  margin: 0 auto 2rem auto;
}

@media (min-width: 1024px) {
  .hero-description {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .hero-cta-group {
    justify-content: flex-start;
  }
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-btn);
  transition: all var(--duration-fast) var(--ease-spring);
}

.btn-hero-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(234, 96, 26, 0.55);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.875rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.btn-hero-secondary:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--border-card-hover);
  transform: translateY(-1.5px);
}

/* Life Status Overview Capsules in Hero */
.hero-status-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-status-pills {
    justify-content: flex-start;
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.status-pill:hover {
  transform: translateY(-1px);
}

.status-pill-fresh {
  background: var(--status-fresh-bg);
  color: var(--status-fresh);
  border-color: var(--status-fresh-border);
}

.status-pill-soon {
  background: var(--status-soon-bg);
  color: var(--status-soon);
  border-color: var(--status-soon-border);
}

.status-pill-expired {
  background: var(--status-expired-bg);
  color: var(--status-expired);
  border-color: var(--status-expired-border);
}

.status-pill-lowstock {
  background: var(--status-lowstock-bg);
  color: var(--status-lowstock);
  border-color: var(--status-lowstock-border);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
}

/* ==========================================================================
   iPhone 16 Pro Mockup (Hero Interactive Showcase)
   ========================================================================== */
.hero-mockup-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Interactive Mode Switcher above Phone */
.mockup-mode-tabs {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.mockup-tab-btn {
  padding: 0.4rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.mockup-tab-btn.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(234, 96, 26, 0.35);
}

/* The iPhone Chassis */
.iphone-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 690px;
  background: #1A1D24;
  border-radius: var(--radius-phone);
  padding: 10px;
  box-shadow: 0 35px 70px -15px rgba(15, 23, 42, 0.38),
              0 0 0 1px rgba(255, 255, 255, 0.12),
              inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transition: transform var(--duration-normal) var(--ease-smooth);
}

@media (min-width: 640px) {
  .iphone-frame {
    max-width: 360px;
    height: 720px;
  }
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-page);
  border-radius: calc(var(--radius-phone) - 8px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Dynamic Island */
.iphone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background: #000000;
  border-radius: var(--radius-pill);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.island-camera {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #111420;
  box-shadow: inset 0 0 2px #263353;
}

/* iOS Status Bar */
.iphone-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 40;
}

.iphone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Mockup App Content (Interactive View) */
.mockup-app-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 8px 14px 75px 14px;
  gap: 12px;
  scrollbar-width: none;
}
.mockup-app-body::-webkit-scrollbar {
  display: none;
}

/* App Header Inside Mockup */
.mock-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 8px 2px;
}

.mock-workspace-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mock-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--brand-glow-subtle);
  color: var(--brand-primary);
  font-size: 0.6875rem;
  font-weight: 700;
}

/* Life Status Board inside Mockup */
.mock-overview-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}

.mock-overview-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.mock-overview-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mock-chip {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Mockup Item Cards */
.mock-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--duration-fast) var(--ease-spring);
}

.mock-item-card:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-1px);
}

.mock-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.mock-item-info {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mock-item-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-surface-subtle);
  object-fit: contain;
  padding: 2px;
  border: 1px solid var(--border-subtle);
}

.mock-item-texts {
  display: flex;
  flex-direction: column;
}

.mock-item-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.mock-item-meta {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.mock-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* Progress bar inside card */
.mock-progress-track {
  width: 100%;
  height: 5px;
  background: var(--bg-surface-subtle);
  border-radius: 99px;
  overflow: hidden;
}

.mock-progress-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s var(--ease-smooth);
}

.mock-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

.mock-stock-info {
  font-size: 0.6875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mock-btn-action {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--brand-primary);
  color: #FFFFFF;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--duration-fast) var(--ease-spring);
}

.mock-btn-action:hover {
  filter: brightness(1.1);
  transform: scale(1.03);
}

.mock-btn-subtle {
  background: var(--bg-surface-subtle);
  color: var(--text-secondary);
}
.mock-btn-subtle:hover {
  background: var(--border-subtle);
}

/* Mockup Real Screenshot View */
.mockup-screenshot-view {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.mockup-screenshot-view.active {
  display: block;
}

.mockup-img-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-phone) - 8px);
}

/* 5-second Undo Toast inside Mockup */
.mock-undo-toast {
  position: absolute;
  bottom: 58px;
  left: 12px;
  right: 12px;
  background: #1E293B;
  color: #F8FAFC;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 60;
  animation: toastPop 0.3s var(--ease-spring);
}

@keyframes toastPop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mock-undo-toast.is-visible {
  display: flex;
}

.mock-undo-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-btn-undo {
  color: #F97316;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.mock-btn-undo:hover {
  text-decoration: underline;
}

.mock-undo-bar {
  height: 2px;
  width: 100%;
  background: #F97316;
  border-radius: 99px;
  animation: shrinkBar 5s linear forwards;
}

@keyframes shrinkBar {
  from { width: 100%; }
  to { width: 0%; }
}

/* iOS Bottom Nav Bar inside Mockup */
.iphone-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: 8px;
  z-index: 45;
}

.mock-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.5625rem;
  color: var(--text-muted);
  font-weight: 600;
}

.mock-nav-item.active {
  color: var(--brand-primary);
}

.mock-nav-item svg {
  width: 18px;
  height: 18px;
}

/* Home Indicator Bar */
.iphone-home-bar {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background-color: var(--text-muted);
  opacity: 0.4;
  border-radius: 99px;
  z-index: 55;
}

/* ==========================================================================
   6 Core Features Grid Section
   ========================================================================== */
.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--duration-normal) var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, var(--brand-glow-subtle), transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

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

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-glow-subtle), rgba(234, 96, 26, 0.16));
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(234, 96, 26, 0.2);
  transition: transform var(--duration-fast) var(--ease-spring);
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.08) rotate(-3deg);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.3;
}

.feature-description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.feature-tag-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-subtle);
  color: var(--text-muted);
}

/* ==========================================================================
   Status Strip: "A Color for Every Countdown"
   ========================================================================== */
.countdown-section {
  position: relative;
}

.countdown-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.75rem;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .countdown-banner {
    padding: 3.5rem 3rem;
  }
}

.countdown-header-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .countdown-header-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.countdown-cards-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .countdown-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .countdown-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.countdown-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: all var(--duration-fast) var(--ease-spring);
}

.countdown-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-md);
}

.countdown-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.countdown-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.countdown-time-left {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.countdown-meter-outer {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

[data-theme="dark"] .countdown-meter-outer {
  background: rgba(255, 255, 255, 0.08);
}

.countdown-meter-inner {
  height: 100%;
  border-radius: 99px;
}

.countdown-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.countdown-card-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ==========================================================================
   How It Works (3 Steps)
   ========================================================================== */
.steps-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

@media (min-width: 1024px) {
  .steps-wrapper {
    flex-direction: row;
    align-items: stretch;
    gap: 1.5rem;
  }
}

.step-card {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--duration-normal) var(--ease-spring);
}

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

.step-number {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Connecting Arrow / Line between Steps */
.step-connector {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  opacity: 0.6;
}

@media (min-width: 1024px) {
  .step-connector {
    display: flex;
  }
}

/* ==========================================================================
   Privacy by Design Section
   ========================================================================== */
.privacy-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .privacy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.privacy-list {
  list-style: none;
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.privacy-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 1.0625rem;
  color: var(--text-primary);
  font-weight: 500;
}

.privacy-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--status-fresh);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.privacy-showcase-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.privacy-badge-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--status-fresh-bg);
  border: 1px solid var(--status-fresh-border);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.privacy-shield-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--status-fresh);
  flex-shrink: 0;
}

/* ==========================================================================
   Interactive FAQ Accordion
   ========================================================================== */
.faq-container {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.faq-item:hover {
  border-color: var(--border-card-hover);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  list-style: none;
  gap: 1rem;
}

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

.faq-toggle-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-primary);
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-spring);
}

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

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ==========================================================================
   Final CTA Banner
   ========================================================================== */
.cta-banner-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #EA601A 0%, #F97316 60%, #FB923C 100%);
  padding: 4rem 2rem;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 25px 60px -15px rgba(234, 96, 26, 0.45);
  overflow: hidden;
}

@media (min-width: 768px) {
  .cta-banner-wrapper {
    padding: 5.5rem 3.5rem;
  }
}

.cta-banner-title {
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .cta-banner-title {
    font-size: 3rem;
  }
}

.cta-banner-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 50ch;
  margin: 0 auto 2.5rem auto;
}

.cta-banner-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #EA601A;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.25);
  transition: all var(--duration-fast) var(--ease-spring);
}

.btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.32);
  background: #FFFDF9;
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--duration-fast) var(--ease-spring);
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 3.5rem 0 2.5rem;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   Scroll Reveal Animation
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
