/* ===================================================================
   HabitLogs · Official Website Stylesheet
   Modern, Clean White / Light Aesthetic
   High-contrast, Crisp Typography & GitHub Heatmap Style
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-page: #ffffff;
  --bg-subtle: #f8fafc;
  --panel: #ffffff;
  --panel-hover: #f1f5f9;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --card-border-hover: rgba(2, 132, 199, 0.4);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.08);
  
  --text-main: #090d16;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-steel: #334155;
  
  --accent: #0284c7;
  --accent-soft: #0369a1;
  --accent-glow: rgba(2, 132, 199, 0.18);
  --accent-green: #16a34a;
  --accent-purple: #9333ea;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Subtle Dot Grid Texture */
.bg-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 50% 20%, #000 10%, transparent 85%);
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.glow-cyan {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, rgba(56, 189, 248, 0) 70%);
}

.glow-purple {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0) 70%);
}

.glow-green {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0) 70%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.font-mono {
  font-family: var(--font-mono);
}

.text-accent {
  color: var(--accent);
}

.text-gradient {
  background: linear-gradient(135deg, #090d16 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-muted {
  color: var(--text-muted);
}

.text-dim {
  color: var(--text-dim);
}

/* ===================================================================
   Header / Sticky Floating Navbar
   =================================================================== */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  padding: 0 20px;
}

.nav-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-smooth);
}

.nav-shell.scrolled {
  max-width: 820px;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.09);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.brand-logo-img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand-name span {
  color: var(--accent);
}

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

.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-menu a:hover {
  color: var(--text-main);
  background-color: rgba(0, 0, 0, 0.04);
}

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

/* Language Switcher */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-steel);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-main);
}

/* Primary Pill Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #090d16;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(9, 13, 22, 0.15);
}

.btn-primary:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(9, 13, 22, 0.25);
}

.menu-toggle-btn {
  display: none;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile Dropdown */
.mobile-nav-drawer {
  display: none;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-drawer a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-nav-drawer a:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.04);
}

/* ===================================================================
   Hero Section
   =================================================================== */
.hero-section {
  position: relative;
  padding: 70px 0 60px;
  text-align: center;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.15;
  margin-bottom: 22px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-line-black {
  display: block;
  color: #090d16;
}

.hero-line-blue {
  display: block;
  color: #0284c7;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 58px;
  line-height: 1.6;
}

/* App Store Buttons & QR Codes */
.hero-download-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

/* Store Buttons (Tek Satırda Yan Yana) */
.store-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.store-badge-link:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.store-badge-img {
  height: 48px;
  width: auto;
  display: block;
}



/* ===================================================================
   Hero 3x iPhone Devices Showcase (Gerçek Uygulama Ekranları)
   =================================================================== */
.hero-phones-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin: 50px auto 0;
  max-width: 1080px;
  position: relative;
  padding: 10px 10px 40px;
}

/* Individual iPhone Device */
.iphone-device {
  width: 305px;
  max-width: 100%;
  position: relative;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
  user-select: none;
}

.iphone-device:hover {
  transform: translateY(-8px);
  z-index: 5;
}

/* iPhone Outer Bezel & Chassis */
.iphone-bezel {
  position: relative;
  background: #0f1015;
  border: 11px solid #1c1d25;
  border-radius: 48px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 30px 65px -15px rgba(15, 23, 42, 0.35),
    0 15px 30px -10px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  box-sizing: border-box;
  background-clip: padding-box;
}

/* Screen Area */
.iphone-screen {
  position: relative;
  width: 100%;
  padding-top: 15px;
  border-radius: 36px;
  overflow: hidden;
  line-height: 0;
  box-sizing: border-box;
}

/* High-resolution Screenshot */
.iphone-screenshot {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

/* ===================================================================
   Brand Logomarks / "Featured In"
   =================================================================== */
.featured-section {
  padding: 40px 0;
  text-align: center;
}

.featured-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.featured-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  opacity: 0.75;
}

.featured-logo-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast);
}

.featured-logo-item:hover {
  color: var(--text-main);
}

/* ===================================================================
   "One Tap a Day" (How it Works)
   =================================================================== */
.section-spacer {
  padding: 85px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
  font-weight: 600;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-main);
}

.section-desc {
  font-size: 15.5px;
  color: var(--text-muted);
}

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

.step-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-smooth);
}

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

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.step-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.step-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================================
   Features 3x3 Grid
   =================================================================== */
.features-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.feature-box {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 14px 34px rgba(2, 132, 199, 0.12);
}

.feature-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid rgba(2, 132, 199, 0.18);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.feature-box:hover .feature-icon-wrap {
  background: var(--accent);
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.feature-box-title {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-box-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

@media (max-width: 960px) {
  .features-grid-3x3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .features-grid-3x3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-box {
    padding: 24px 20px;
  }
}

/* ===================================================================
   Live Interactive Playground / Grid Builder
   =================================================================== */
.interactive-playground {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-top: 40px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.playground-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-swatch-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.color-swatch-btn:hover {
  transform: scale(1.15);
}

.color-swatch-btn.selected {
  border-color: #0f172a;
  transform: scale(1.2);
  box-shadow: 0 0 8px currentColor;
}

.playground-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.stat-chip {
  background: #f8fafc;
  border: 1px solid var(--card-border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-steel);
}

.playground-grid-board {
  display: grid;
  grid-template-columns: repeat(26, 1fr);
  gap: 4px;
  padding: 10px 0;
}

.board-tile {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: all 0.15s ease;
}

.board-tile:hover {
  transform: scale(1.2);
  z-index: 2;
}

/* ===================================================================
   Customer Reviews & Ratings (Marquee Slider)
   =================================================================== */
.reviews-section {
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.rating-badges-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.rating-badge-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.stars-svg {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #f59e0b;
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 16px;
  mask-image: linear-gradient(to right, transparent, #fff 8%, #fff 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 16px;
  animation: scrollMarquee 42s linear infinite;
  min-width: 100%;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  width: 320px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.review-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-steel);
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.reviewer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.reviewer-info h5 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

.reviewer-info span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

/* ===================================================================
   Comparison Section (Why HabitLogs?)
   =================================================================== */
.comparison-table-wrap {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-top: 30px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--card-border);
  font-size: 14.5px;
}

.comparison-table th {
  font-family: var(--font-display);
  font-weight: 700;
  background: #f8fafc;
  color: var(--text-main);
}

.comparison-table th.col-highlight {
  color: var(--accent);
  background: #f0f9ff;
}

.comparison-table td.col-highlight {
  background: #f0f9ff;
  font-weight: 600;
  color: var(--text-main);
}

.check-icon-green {
  color: #16a34a;
  font-weight: 700;
}

.cross-icon-red {
  color: #dc2626;
}

/* ===================================================================
   FAQ Section
   =================================================================== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(0, 0, 0, 0.16);
}

.faq-item.open {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.08);
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.faq-icon-arrow {
  transition: transform var(--transition-fast);
  color: var(--text-dim);
}

.faq-item.open .faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-content {
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  display: none;
}

.faq-item.open .faq-content {
  display: block;
}

/* ===================================================================
   Final Download CTA Banner
   =================================================================== */
.cta-banner {
  position: relative;
  text-align: center;
  padding: 90px 0;
  overflow: hidden;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cta-footer-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 20px;
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 60px 0 40px;
  margin-top: 40px;
  background: #f8fafc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-top: 12px;
  max-width: 300px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--text-main);
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13.5px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 30px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

/* ===================================================================
   Modal for QR Code
   =================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-xl);
  padding: 28px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  animation: scaleUp 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-qr-img {
  width: 100%;
  aspect-ratio: 1;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-box h4 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text-main);
}

.modal-box p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-close-btn {
  width: 100%;
  padding: 10px;
  background: #f1f5f9;
  border: 1px solid var(--card-border);
  color: var(--text-main);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: #e2e8f0;
}

/* ===================================================================
   Responsive Media Queries
   =================================================================== */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .tour-layout {
    grid-template-columns: 1fr;
  }
  .tour-buttons-grid {
    order: 2;
  }
  .tour-mockup-frame {
    order: 1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-menu {
    display: none;
  }
  .menu-toggle-btn {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .hero-phones-showcase {
    gap: 16px;
  }
  .iphone-device {
    width: 260px;
  }
}

@media (max-width: 820px) {
  .hero-phones-showcase {
    gap: 18px;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 20px 20px 35px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .hero-phones-showcase::-webkit-scrollbar {
    height: 6px;
  }
  .hero-phones-showcase::-webkit-scrollbar-track {
    background: transparent;
  }
  .hero-phones-showcase::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
  }
  .iphone-device {
    width: 270px;
    flex-shrink: 0;
    scroll-snap-align: center;
  }
  .iphone-device.iphone-center {
    transform: none;
  }
  .iphone-device.iphone-center:hover {
    transform: translateY(-8px);
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 36px;
  }
  .tour-buttons-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}


/* ===================================================================
   Legal Pages (Privacy Policy & Terms of Service)
   =================================================================== */
.legal-page-body {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 14px 0;
}

.legal-header-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--card-border);
  transition: all var(--transition-fast);
}

.legal-back-link:hover {
  color: var(--text-main);
  border-color: var(--card-border-hover);
  background: #ffffff;
}

.legal-lang-switch {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.legal-lang-btn {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.legal-lang-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.legal-container {
  max-width: 920px;
  width: 100%;
  margin: 36px auto 60px;
  padding: 0 24px;
  flex: 1;
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--card-shadow);
}

.legal-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
}

.legal-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(22, 163, 74, 0.1);
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.legal-badge-blue {
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent);
}

.legal-date-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.legal-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.25;
}

.legal-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.legal-summary-box {
  background: var(--bg-subtle);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.legal-summary-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-summary-box p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

.legal-summary-box p:last-child {
  margin-bottom: 0;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section-h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.legal-section p, .legal-section li {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-section p {
  margin-bottom: 12px;
}

.legal-section ul, .legal-section ol {
  margin: 10px 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section strong {
  color: var(--text-main);
  font-weight: 600;
}

.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 24px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.legal-table th {
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-muted);
  line-height: 1.5;
  vertical-align: top;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table tr:hover td {
  background: rgba(248, 250, 252, 0.7);
}

.legal-callout-card {
  background: rgba(22, 163, 74, 0.05);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 16px 0;
}

.legal-callout-card.info {
  background: rgba(2, 132, 199, 0.05);
  border-color: rgba(2, 132, 199, 0.2);
}

.legal-callout-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.legal-callout-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.legal-footer-contact {
  background: var(--bg-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.legal-contact-btn:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .legal-card {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }
  .legal-title {
    font-size: 24px;
  }
  .legal-footer-contact {
    flex-direction: column;
    align-items: flex-start;
  }
}
