:root {
  --primary: #1e3a8a;
  --primary-light: #2563eb;
  --primary-subtle: #dbeafe;
  --secondary: #0284c7;
  --accent: #7c3aed;
  --amber: #f59e0b;
  --green: #10b981;
  --red: #ef4444;

  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --nav-height: 64px;
}

[data-theme="dark"] {
  --bg-main: #0f172a;
  --bg-surface: #1e293b;
  --bg-card: #1e293b;
  --border-color: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --primary-subtle: #1e3a8a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* App Header */
.app-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-md);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.brand-text h1 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-text span {
  font-size: 11px;
  color: #bae6fd;
  display: block;
}

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

.btn-icon {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.25);
}

.streak-pill {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Main Container */
.main-content {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px calc(var(--nav-height) + 24px) 16px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.2s ease-in;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards & Surfaces */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-greeting {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.hero-greeting h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-greeting p {
  color: #e2e8f0;
  font-size: 13px;
}

/* Progress bar */
.progress-bar-container {
  background-color: #e2e8f0;
  border-radius: var(--radius-full);
  height: 10px;
  overflow: hidden;
  margin: 10px 0;
}

[data-theme="dark"] .progress-bar-container {
  background-color: #334155;
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--secondary), var(--primary-light));
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-light);
}

.btn-amber {
  background-color: var(--amber);
  color: #0f172a;
}

.btn-amber:hover {
  background-color: #d97706;
}

.btn-green {
  background-color: var(--green);
  color: white;
}

.btn-green:hover {
  background-color: #059669;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--border-color);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Chips */
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  color: var(--text-muted);
}

.chip.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Quick Actions Grid */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.quick-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.quick-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.quick-info p {
  font-size: 11px;
  color: var(--text-muted);
}

/* Calendar Day Card */
.calendar-day-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.calendar-day-card:hover {
  border-color: var(--primary-light);
}

.day-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1.1;
  flex-shrink: 0;
}

.day-badge .num {
  font-size: 18px;
}

.day-badge .dow {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.day-badge.done {
  background: #dcfce7;
  color: var(--green);
}

.status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.status-pill.done {
  background: #dcfce7;
  color: var(--green);
}

.status-pill.pending {
  background: #fef3c7;
  color: var(--amber);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
}

/* Tabs inside Modal */
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
  gap: 16px;
}

.modal-tab-btn {
  background: none;
  border: none;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.modal-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 40;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

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

.nav-item.active .nav-icon {
  transform: scale(1.15);
}

.nav-icon {
  font-size: 20px;
  transition: transform 0.15s;
}

/* Study Timer Circle */
.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.timer-circle {
  width: 220px;
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.timer-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.timer-track {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 8;
}

.timer-progress {
  fill: none;
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.timer-text {
  position: absolute;
  text-align: center;
}

.timer-time {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 1px;
}

.timer-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Ringing Alarm Modal Screen */
.alarm-ringing-card {
  text-align: center;
  padding: 32px 16px;
}

.alarm-ringing-icon {
  width: 80px;
  height: 80px;
  background: var(--amber);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 16px auto;
  animation: pulseAlarm 1.2s infinite;
}

@keyframes pulseAlarm {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 20px rgba(245, 158, 11, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-input, .form-select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary-light);
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* MCQ Options */
.mcq-option {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.mcq-option:hover {
  background: var(--primary-subtle);
  border-color: var(--primary-light);
}

.mcq-option.correct {
  background: #dcfce7 !important;
  border-color: var(--green) !important;
  color: #166534;
  font-weight: 700;
}

.mcq-option.wrong {
  background: #ffe4e6 !important;
  border-color: var(--red) !important;
  color: #991b1b;
}

/* Responsive utilities */
@media (max-width: 600px) {
  .hero-greeting h2 { font-size: 20px; }
  .timer-circle { width: 190px; height: 190px; }
  .timer-time { font-size: 34px; }
}



/* ==========================================================================
   LANDING PAGE & SHOWCASE STYLES (study10 Freestyle & Modern Responsive UI)
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* Site Sticky Navbar */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

[data-theme="dark"] .site-navbar {
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.site-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.site-brand-text h1 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
}

.site-brand-text span {
  font-size: 11px;
  color: var(--primary-light);
  font-weight: 700;
}

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

.nav-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

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

.btn-nav-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-nav-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 60px 20px 80px 20px;
  background: radial-gradient(circle at 50% 10%, rgba(37, 99, 235, 0.12) 0%, transparent 65%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.6s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.hero-gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.btn-hero-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

.btn-hero-web {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  color: var(--text-main) !important;
  border: 2px solid var(--border-color);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.btn-hero-web:hover {
  border-color: var(--primary-light);
  color: var(--primary-light) !important;
  transform: translateY(-2px);
}

.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* Phone Mockup Frame */
.hero-phone-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup-frame {
  width: 100%;
  max-width: 360px;
  background: var(--bg-surface);
  border: 10px solid #1e293b;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .phone-mockup-frame {
  border-color: #334155;
}

.phone-speaker-notch {
  width: 120px;
  height: 18px;
  background: #1e293b;
  margin: 0 auto;
  border-radius: 0 0 12px 12px;
  position: relative;
  z-index: 10;
}

.phone-screen-content {
  padding: 16px;
  background: var(--bg-main);
  max-height: 520px;
  overflow-y: auto;
}

/* General Landing Sections */
.landing-section {
  padding: 70px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-badge {
  text-align: center;
  margin-bottom: 10px;
}

.section-badge span {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-light);
  background: var(--primary-subtle);
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

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

.section-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 4-Hour Daily Routine Cards Grid */
.routine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.routine-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 4px solid var(--primary-light);
}

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

.routine-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-light);
  background: var(--primary-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.routine-subject {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-main);
}

.routine-duration {
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 10px;
}

.routine-strategy {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.routine-topics {
  font-size: 12px;
  background: var(--bg-main);
  padding: 10px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--border-color);
  color: var(--text-main);
}

/* Sunday Buffer Rule Box */
.sunday-buffer-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
  border: 2px dashed var(--amber);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 10px;
}

.sunday-buffer-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: var(--amber);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.sunday-buffer-text h4 {
  font-size: 17px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 6px;
}

[data-theme="dark"] .sunday-buffer-text h4 {
  color: #fde68a;
}

.sunday-buffer-text p {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
}

/* 5 Roadmap Phases Timeline */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.phase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.phase-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

.phase-number {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 6px;
}

.phase-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.phase-dates {
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

.phase-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.4);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.feature-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Download Section */
.download-section-box {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.08), rgba(37, 99, 235, 0.03));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
  background: #ecfdf5;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

[data-theme="dark"] .download-badge {
  background: rgba(16, 185, 129, 0.15);
}

.download-heading {
  font-size: 30px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
}

.download-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 24px 0;
}

.download-spec-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}

.btn-download-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-download-big:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45);
}

.qr-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.qr-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin: 0 auto 12px auto;
  border-radius: 8px;
  border: 4px solid white;
}

.qr-caption {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

/* 3-Step Install Guide */
.install-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.install-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.install-step-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: white;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

/* Embedded Web App Frame */
.web-app-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 24px;
}

.web-app-bar {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Site Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 48px 20px 80px 20px;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

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

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.footer-brand h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 500px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 8px 0;
}

.footer-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-subtle);
}

/* Desktop Bottom-Nav Floating Pill */
@media (min-width: 768px) {
  .bottom-nav {
    max-width: 520px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-full);
    bottom: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
  }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title { font-size: 32px; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-cta-group { justify-content: center; }
  .hero-stats-row { justify-content: center; }
  .download-section-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
  }
  .download-specs-row { justify-content: center; }
  .nav-menu { display: none; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 26px; }
  .section-title { font-size: 24px; }
  .btn-hero-download, .btn-hero-web { width: 100%; justify-content: center; }
  .hero-cta-group { flex-direction: column; width: 100%; }
}
