/* ==========================================
   HIIT Timer Homepage - Modern CSS
   ========================================== */

/* --- CSS Variables --- */
:root {
  --primary: #FF5252;
  --primary-dark: #D32F2F;
  --primary-light: #FF8A80;
  --accent: #FF6B6B;
  --gradient: linear-gradient(135deg, #FF5252 0%, #FF8A65 50%, #FFB74D 100%);
  --gradient-text: linear-gradient(135deg, #FF5252, #FF8A65);
  --bg-primary: #FAFAFA;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

img {
  max-width: 100%;
  height: auto;
}

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

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

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

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(0,0,0,0.04);
}

.nav-link.nav-cta {
  background: var(--text-primary);
  color: white;
  padding: 8px 20px;
}

.nav-link.nav-cta:hover {
  background: #2d2d4e;
  color: white;
}

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

.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 82, 82, 0.04);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -200px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: #FFB74D;
  bottom: -100px;
  left: -100px;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: #FF8A65;
  top: 50%;
  left: 40%;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 82, 82, 0.08);
  border: 1px solid rgba(255, 82, 82, 0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--text-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(26, 26, 46, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background: rgba(0,0,0,0.02);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* --- Phone Mockup --- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  position: relative;
}

.phone-frame {
  width: 280px;
  height: 570px;
  background: #1A1A2E;
  border-radius: 40px;
  padding: 12px;
  position: relative;
  box-shadow: var(--shadow-xl),
    inset 0 0 0 2px rgba(255,255,255,0.1);
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: #1A1A2E;
  border-radius: 0 0 20px 20px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #f5f0f0;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.phone-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255,82,82,0.2) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* Timer UI inside phone */
.timer-ui {
  text-align: center;
  color: white;
  padding: 20px;
  width: 100%;
}

.timer-phase {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 16px;
}

.timer-display {
  font-family: var(--font-sans);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.timer-colon {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.timer-set {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}

.timer-progress {
  width: 80%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  margin: 0 auto 32px;
  overflow: hidden;
}

.timer-progress-bar {
  width: 65%;
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  animation: progressAnim 3s ease-in-out infinite;
}

@keyframes progressAnim {
  0% { width: 30%; }
  50% { width: 75%; }
  100% { width: 30%; }
}

.timer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.timer-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.timer-btn-primary {
  width: 60px;
  height: 60px;
  background: var(--primary);
  font-size: 1.3rem;
  box-shadow: 0 4px 20px rgba(255,82,82,0.4);
}

.timer-btn-secondary {
  background: rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

/* --- Section Styles --- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255, 82, 82, 0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* --- Features Section --- */
.features {
  padding: 120px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 82, 82, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255, 82, 82, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* --- How it Works --- */
.how-it-works {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.steps {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  opacity: 0;
  transform: translateX(-20px);
}

.step.visible {
  opacity: 1;
  transform: translateX(0);
}

.step:hover {
  background: rgba(255, 82, 82, 0.03);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}

.step-content h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.step-connector {
  width: 2px;
  height: 24px;
  background: var(--border);
  margin-left: 56px;
}

/* --- Screenshots Section --- */
.screenshots {
  padding: 120px 0;
}

.screenshot-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  justify-items: center;
}

.screenshot-item {
  text-align: center;
}

.screenshot-label {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Mini Phone Mockups */
.mini-phone {
  position: relative;
}

.mini-phone-frame {
  width: 200px;
  height: 400px;
  background: #1A1A2E;
  border-radius: 28px;
  padding: 8px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.mini-phone-frame:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.mini-phone-notch {
  width: 80px;
  height: 20px;
  background: #1A1A2E;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mini-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  font-size: 0.65rem;
  background: #f5f0f0;
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

/* --- FAQ Section --- */
.faq {
  position: relative;
  padding: 120px 0;
  background:
    radial-gradient(900px 450px at 12% 10%, rgba(255, 82, 82, 0.1), transparent 55%),
    radial-gradient(760px 360px at 88% 14%, rgba(255, 183, 77, 0.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fff9f5 100%);
  overflow: hidden;
}

.faq::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 36%, transparent 92%);
  -webkit-mask-image: radial-gradient(circle at center, black 36%, transparent 92%);
  pointer-events: none;
}

.faq .container {
  position: relative;
  z-index: 1;
}

.faq .section-header {
  margin-bottom: 40px;
}

.faq-panel {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 12px 40px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.faq-list {
  margin: 0;
}

.faq-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 82, 82, 0.22);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  cursor: pointer;
}

.faq-question-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.faq-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 82, 82, 0.1);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.faq-arrow {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 82, 82, 0.08);
  color: var(--primary);
  font-size: 0.82rem;
  transition: transform var(--transition), background-color var(--transition), color var(--transition);
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 22px 74px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

.faq-item.open {
  border-color: rgba(255, 82, 82, 0.22);
  box-shadow:
    0 12px 30px rgba(255, 82, 82, 0.16),
    0 4px 12px rgba(15, 23, 42, 0.06);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  background: var(--primary);
  color: white;
}

/* Screen - Timer */
.screen-timer {
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
}

.screen-header-bar {
  padding: 28px 14px 10px;
  font-weight: 700;
  font-size: 0.8rem;
  color: #1A1A2E;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.screen-body {
  flex: 1;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.screen-card {
  background: white;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.screen-card.highlight {
  border-left: 3px solid var(--primary);
}

.screen-card-label {
  color: var(--text-secondary);
  font-size: 0.6rem;
}

.screen-card-value {
  font-weight: 700;
  font-size: 0.7rem;
  color: #1A1A2E;
}

.screen-start-btn {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.7rem;
  margin-top: 4px;
  letter-spacing: 1px;
}

.screen-nav {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  background: white;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
}

.screen-nav-active {
  position: relative;
}

.screen-nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
}

/* Screen - Workout */
.screen-workout {
  background: linear-gradient(180deg, #1e1e3a 0%, #2a1a3a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  gap: 12px;
}

.screen-workout-phase {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--primary);
}

.screen-workout-timer {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.screen-workout-set {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.5);
}

.screen-workout-progress {
  width: 70%;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.screen-workout-progress-fill {
  width: 60%;
  height: 100%;
  background: var(--gradient);
  border-radius: 3px;
}

.screen-workout-controls {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  margin-top: 8px;
}

.screen-workout-pause {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Screen - Presets */
.screen-presets {
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
}

.screen-add-btn {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.preset-item {
  background: white;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.preset-name {
  font-weight: 600;
  font-size: 0.7rem;
  color: #1A1A2E;
  margin-bottom: 2px;
}

.preset-detail {
  font-size: 0.55rem;
  color: var(--text-muted);
}

/* Screen - Calendar */
.screen-calendar {
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
}

.calendar-grid {
  background: white;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 8px;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.45rem;
  color: var(--text-muted);
  padding-bottom: 4px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 4px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.5rem;
  gap: 2px;
}

.calendar-days span {
  padding: 3px 0;
  border-radius: 50%;
}

.cal-active {
  background: var(--primary) !important;
  color: white !important;
  font-weight: 600;
}

.calendar-log {
  background: white;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.log-emoji {
  font-size: 1.2rem;
}

.log-title {
  font-weight: 600;
  font-size: 0.65rem;
  color: #1A1A2E;
}

.log-detail {
  font-size: 0.5rem;
  color: var(--text-muted);
}

/* --- Download Section --- */
.download {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.download-card {
  position: relative;
  background: var(--text-primary);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  text-align: center;
  overflow: hidden;
}

.download-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dl-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.dl-shape-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  opacity: 0.15;
  top: -100px;
  right: -50px;
}

.dl-shape-2 {
  width: 200px;
  height: 200px;
  background: #FFB74D;
  opacity: 0.1;
  bottom: -50px;
  left: -30px;
}

.download-content {
  position: relative;
  z-index: 1;
}

.download-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: white;
  margin-bottom: 16px;
}

.download-content p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: white;
  transition: var(--transition);
}

.store-btn:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

.store-btn-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.store-text {
  text-align: left;
}

.store-small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.7;
}

.store-name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

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

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

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

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

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

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 0;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshot-showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: var(--transition);
    opacity: 0;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .phone-frame {
    width: 240px;
    height: 490px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    gap: 12px;
    padding: 24px;
  }

  .step-connector {
    margin-left: 40px;
  }

  .screenshot-showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .mini-phone-frame {
    width: 160px;
    height: 320px;
  }

  .faq-question {
    font-size: 0.94rem;
    padding: 16px;
    gap: 10px;
  }

  .faq-question-main {
    gap: 10px;
  }

  .faq-chip {
    min-width: 34px;
    height: 24px;
    padding: 0 8px;
    font-size: 0.68rem;
  }

  .faq-arrow {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }

  .faq-panel {
    padding: 14px;
  }

  .faq-answer-inner {
    padding: 0 16px 16px 16px;
  }

  .faq-answer p {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .download-card {
    padding: 60px 24px;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .screenshot-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .mini-phone-frame {
    width: 140px;
    height: 280px;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-visual {
  animation: fadeInUp 1s ease-out 0.2s both;
}
