/* ==========================================================================
   TableServe SaaS — Modern, Fully-Responsive Landing Page Stylesheet
   Optimized for Mobile (320px+), Tablets (768px+), and Desktops (1200px+)
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Dark Theme (Default) */
  --bg: #090d14;
  --bg-elevated: #0f1724;
  --surface: #141c2b;
  --surface-2: #1b263a;
  --surface-3: #223048;
  --surface-glass: rgba(15, 23, 36, 0.82);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  
  --ink-1: #f8fafc;
  --ink-2: #94a3b8;
  --ink-3: #64748b;

  --primary: #10b981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.25);
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.2);
  
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 50px rgba(16, 185, 129, 0.15);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --surface-glass: rgba(255, 255, 255, 0.88);
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  --ink-1: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;

  --primary: #059669;
  --primary-hover: #047857;
  --primary-glow: rgba(16, 185, 129, 0.15);
  --accent: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.12);

  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 50px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink-1);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
}

/* Ambient Glow */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1400px;
  height: 650px;
  background: radial-gradient(circle at 50% 10%, var(--primary-glow) 0%, transparent 65%),
              radial-gradient(circle at 80% 20%, var(--accent-glow) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--surface-glass);
  border-bottom: 1px solid var(--line);
  transition: all 0.2s ease;
}

.header__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(60px, 8vw, 72px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: clamp(17px, 2.5vw, 20px);
  letter-spacing: -0.03em;
  color: var(--ink-1);
}

.brand__logo {
  width: clamp(28px, 4vw, 32px);
  height: clamp(28px, 4vw, 32px);
  border-radius: 8px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
  list-style: none;
}

.nav__link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.15s ease;
}

.nav__link:hover {
  color: var(--primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 12px);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.theme-toggle:hover, .theme-toggle:active {
  color: var(--ink-1);
  border-color: var(--line-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  min-height: 44px;
  border-radius: var(--r-md);
  font-size: 14.5px;
  font-weight: 700;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn--sm {
  padding: 8px 16px;
  min-height: 38px;
  font-size: 13.5px;
  border-radius: var(--r-sm);
}

.btn--lg {
  padding: 14px 28px;
  min-height: 50px;
  font-size: clamp(15px, 2vw, 16.5px);
  border-radius: var(--r-md);
}

.btn--primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--primary-glow);
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--secondary {
  background: var(--surface-2);
  color: var(--ink-1);
  border: 1px solid var(--line-strong);
}

.btn--secondary:hover {
  background: var(--surface-3);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn--secondary:active {
  transform: scale(0.98);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  color: var(--ink-1);
  background: var(--surface-2);
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: clamp(40px, 8vw, 70px) 0 clamp(40px, 6vw, 60px);
  text-align: center;
  position: relative;
}

.hero__badge-wrap {
  display: inline-flex;
  margin-bottom: clamp(16px, 3vw, 24px);
  max-width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px clamp(12px, 3vw, 18px);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: clamp(12px, 2.2vw, 13.5px);
  font-weight: 700;
  color: var(--ink-1);
  box-shadow: var(--shadow-sm);
  text-align: left;
  line-height: 1.4;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  flex-shrink: 0;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.hero__title {
  font-size: clamp(30px, 5.5vw, 54px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: clamp(14px, 2.5vw, 20px);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #38bdf8 60%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(15px, 2.2vw, 18.5px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 760px;
  margin: 0 auto clamp(24px, 4vw, 36px);
}

.hero__cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 16px);
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 5vw, 40px);
}

.hero__usp-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 28px);
  flex-wrap: wrap;
  color: var(--ink-2);
  font-size: clamp(12.5px, 2vw, 13.5px);
  font-weight: 600;
}

.hero__usp-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero__usp-icon {
  color: var(--primary);
  font-weight: 800;
}

/* ==========================================================================
   Product Showcase Interactive Tabs
   ========================================================================== */
.showcase {
  margin-top: clamp(32px, 6vw, 50px);
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: clamp(18px, 3vw, var(--r-xl));
  padding: clamp(16px, 3vw, 28px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.showcase__tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: clamp(18px, 3vw, 24px);
  background: var(--surface-2);
  padding: 6px;
  border-radius: var(--r-pill);
  max-width: 100%;
  border: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.showcase__tabs::-webkit-scrollbar {
  display: none;
}

.showcase__tab {
  padding: clamp(8px, 1.5vw, 10px) clamp(14px, 2.2vw, 20px);
  min-height: 40px;
  border-radius: var(--r-pill);
  font-size: clamp(12.5px, 1.8vw, 13.5px);
  font-weight: 700;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.showcase__tab.is-active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.showcase__viewport {
  min-height: clamp(360px, 50vw, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.mockup-slide {
  display: none;
  width: 100%;
  animation: fadeInSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-slide.is-active {
  display: block;
}

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

/* Mockup Layouts */
.mockup-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(16px, 3vw, 24px);
  box-shadow: var(--shadow-md);
  text-align: left;
  width: 100%;
}

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

.mockup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.mockup-badge--ok { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.mockup-badge--warn { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.mockup-badge--accent { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

/* Phone Mockup Frame */
.phone-frame {
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  background: var(--surface);
  border: 4px solid var(--line-strong);
  border-radius: clamp(24px, 4vw, 36px);
  padding: clamp(14px, 3vw, 18px);
  box-shadow: var(--shadow-lg);
  text-align: left;
}

/* KDS Mockup Board */
.kds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vw, 16px);
}

.kds-col {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(12px, 2vw, 16px);
}

.kds-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kds-item-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Metrics Bar
   ========================================================================== */
.metrics {
  padding: clamp(30px, 5vw, 44px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: clamp(40px, 6vw, 60px) 0;
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 24px);
  text-align: center;
}

.metric__value {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-1);
  margin-bottom: 4px;
}

.metric__label {
  font-size: clamp(12.5px, 1.8vw, 14.5px);
  font-weight: 600;
  color: var(--ink-2);
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.section {
  padding: clamp(50px, 8vw, 80px) 0;
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 50px);
}

.section__tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section__title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin-bottom: 14px;
}

.section__desc {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--ink-2);
  line-height: 1.6;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}

.feature-card h3 {
  font-size: clamp(17px, 2vw, 19.5px);
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: clamp(13.5px, 1.8vw, 14.5px);
  color: var(--ink-2);
  line-height: 1.6;
}

/* ==========================================================================
   How It Works (3 Steps)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  position: relative;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 32px) clamp(18px, 3vw, 24px);
  position: relative;
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px var(--primary-glow);
}

.step-card h3 {
  font-size: clamp(17px, 2vw, 19px);
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: clamp(13.5px, 1.8vw, 14.5px);
  color: var(--ink-2);
  line-height: 1.6;
}

/* ==========================================================================
   Comparison Table (TableServe vs Legacy POS)
   ========================================================================== */
.comparison,
.comparison-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

.comp-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  text-align: left;
}

.comp-table th, .comp-table td {
  padding: clamp(12px, 2vw, 16px) clamp(14px, 2.5vw, 20px);
  border-bottom: 1px solid var(--line);
  font-size: clamp(13px, 1.8vw, 14.5px);
}

.comp-table th {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--ink-1);
}

.comp-table th.highlight, .comp-table td.highlight {
  background: rgba(16, 185, 129, 0.06);
  color: var(--primary);
  font-weight: 700;
}

.check-ok {
  color: var(--ok);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cross-no {
  color: var(--danger);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Pricing Section (All-Inclusive Single Plan)
   ========================================================================== */
.pricing-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 14px);
  margin-bottom: clamp(24px, 4vw, 36px);
  font-weight: 700;
  font-size: clamp(13.5px, 2vw, 15px);
  cursor: pointer;
  user-select: none;
}

.toggle-pill {
  width: 50px;
  height: 28px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.toggle-pill::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  transition: transform 0.2s ease;
}

.toggle-pill.is-yearly::after {
  transform: translateX(22px);
}

.discount-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 800;
}

.pricing-card {
  background: var(--bg-elevated);
  border: 2px solid var(--primary);
  border-radius: clamp(18px, 3vw, var(--r-xl));
  padding: clamp(26px, 5vw, 44px) clamp(18px, 4vw, 36px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  text-align: center;
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  padding: 5px 18px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-price {
  font-size: clamp(38px, 7vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-1);
  margin: 16px 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-price small {
  font-size: clamp(13.5px, 2vw, 15px);
  font-weight: 600;
  color: var(--ink-3);
  margin-top: 4px;
}

.pricing-features {
  text-align: left;
  margin: clamp(20px, 4vw, 32px) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px clamp(12px, 3vw, 24px);
  list-style: none;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(13px, 1.8vw, 14.5px);
  font-weight: 600;
  color: var(--ink-2);
}

.pricing-feature-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: clamp(16px, 3vw, 20px) clamp(16px, 3vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 700;
  color: var(--ink-1);
  text-align: left;
  min-height: 52px;
  gap: 12px;
}

.faq-icon {
  transition: transform 0.2s ease;
  color: var(--ink-3);
  font-size: 13px;
  flex-shrink: 0;
}

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

.faq-answer {
  display: none;
  padding: 0 clamp(16px, 3vw, 24px) clamp(16px, 3vw, 20px);
  font-size: clamp(13.5px, 1.8vw, 15px);
  color: var(--ink-2);
  line-height: 1.65;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ==========================================================================
   Bottom CTA Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--line-strong);
  border-radius: clamp(18px, 3vw, var(--r-xl));
  padding: clamp(32px, 6vw, 54px) clamp(18px, 4vw, 36px);
  text-align: center;
  margin: clamp(50px, 8vw, 80px) 0 clamp(40px, 6vw, 60px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: clamp(14.5px, 2vw, 17px);
  color: var(--ink-2);
  max-width: 580px;
  margin: 0 auto clamp(20px, 4vw, 30px);
}

.cta-banner__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 16px);
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 60px) 0 30px;
  font-size: 14px;
  color: var(--ink-3);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: clamp(28px, 4vw, 40px);
}

.footer__col h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 14px;
}

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

.footer__link {
  color: var(--ink-2);
  transition: color 0.15s;
}

.footer__link:hover {
  color: var(--primary);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: clamp(60px, 8vw, 72px);
  left: 0;
  width: 100%;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-strong);
  padding: 20px 24px 28px;
  z-index: 99;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.mobile-nav-link {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-1);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .kds-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .menu-toggle { display: flex; }
  .header__actions .btn { display: none; }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-features { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta-group .btn { width: 100%; max-width: 380px; }
  .cta-banner__actions .btn { width: 100%; max-width: 380px; }
}

@media (max-width: 480px) {
  .metrics__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .phone-frame { padding: 14px 10px; }
}

/* ==========================================================================
   Android APK Download Modal
   ========================================================================== */
.apk-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.apk-modal-overlay.is-open {
  display: flex;
}

.apk-modal-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 460px;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.apk-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.apk-modal-close:hover {
  background: var(--surface-3);
  color: var(--ink-1);
}

.apk-modal-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.apk-modal-icon {
  font-size: 28px;
  background: var(--primary-glow);
  width: 50px;
  height: 50px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  flex-shrink: 0;
}

.apk-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-1);
}

.apk-modal-subtitle {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 2px;
}

.apk-version-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-1);
}

.apk-size-tag {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}

.apk-notes-box {
  background: var(--surface-2);
  border-left: 3px solid var(--primary);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 14px;
  line-height: 1.5;
  max-height: 90px;
  overflow-y: auto;
}

.apk-qr-container {
  text-align: center;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  border: 1px dashed var(--line-strong);
}

.apk-qr-img {
  border-radius: var(--r-sm);
  background: #ffffff;
  padding: 6px;
  box-shadow: var(--shadow-sm);
  margin: 0 auto;
  display: block;
}

.apk-qr-caption {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
  font-weight: 500;
}

.apk-install-steps {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
}

.apk-install-steps h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 6px;
}

.apk-install-steps ol {
  margin-left: 18px;
  line-height: 1.6;
}

