/* ============================================
   CSS VARIABLES
============================================ */
:root {
  --bg-base:        #07101F;
  --bg-section:     #0B1628;
  --bg-card:        #0F1E36;
  --bg-card-hover:  #132440;
  --accent:         #5B7CFA;
  --accent-hover:   #4A6DE8;
  --accent-glow:    rgba(91, 124, 250, 0.18);
  --accent-glow-xs: rgba(91, 124, 250, 0.07);
  --success:        #10D48E;
  --success-subtle: rgba(16, 212, 142, 0.08);
  --success-border: rgba(16, 212, 142, 0.18);
  --text-primary:   #EEF2FF;
  --text-secondary: #8896BC;
  --text-muted:     #3D5070;
  --border:         rgba(91, 124, 250, 0.14);
  --border-subtle:  rgba(255, 255, 255, 0.05);
  --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md:      0 8px 28px rgba(0, 0, 0, 0.4);
  --shadow-lg:      0 24px 64px rgba(0, 0, 0, 0.5);
  --shadow-accent:  0 8px 32px rgba(91, 124, 250, 0.28);
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --nav-h:          68px;
  --max-w:          1140px;
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease:           0.2s ease;
}

/* ============================================
   RESET
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
ul { list-style: none; }

/* ============================================
   LAYOUT
============================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}
.btn-sm  { padding: 10px 18px; font-size: 13px; }
.btn-lg  { padding: 15px 26px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

/* Nav action group */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ============================================
   NAVIGATION
============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
.nav.scrolled {
  background: rgba(7, 16, 31, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border-subtle);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 34px; height: 34px;
  background: var(--accent-glow-xs);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease);
}
.nav-links a:hover { color: var(--text-primary); background: var(--border-subtle); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--ease);
}
.hamburger:hover { background: var(--border-subtle); }
.hamburger span {
  display: block;
  width: 21px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.28s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(91, 124, 250, 0.12) 0%, transparent 68%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 80px 0 72px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  background: var(--accent-glow-xs);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.1px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
.hero-headline {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 38px;
}
.hero-actions { margin-bottom: 18px; }
.hero-footnote {
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero Flow Diagram */
.hero-visual {
  display: flex;
  justify-content: center;
}
.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 340px;
  gap: 0;
}
.flow-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}
.flow-card--filled {
  border-color: rgba(16, 212, 142, 0.18);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(16, 212, 142, 0.03) 100%);
}
.flow-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.platform-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}
.shopify-tag {
  background: rgba(149, 191, 71, 0.1);
  color: #95BF47;
  border: 1px solid rgba(149, 191, 71, 0.18);
}
.aramex-tag {
  background: rgba(255, 107, 0, 0.09);
  color: #FF7A30;
  border: 1px solid rgba(255, 107, 0, 0.18);
}
.order-ref {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.status-filled {
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-subtle);
  border: 1px solid var(--success-border);
  padding: 4px 10px;
  border-radius: 6px;
}
.flow-card-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}
.flow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
}
.flow-row--filled {
  background: rgba(16, 212, 142, 0.04);
  border: 1px solid rgba(16, 212, 142, 0.08);
}
.row-label {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 54px;
  flex-shrink: 0;
}
.row-value {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.check-svg { flex-shrink: 0; }
.flow-card-action { }
.mock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 9px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: default;
  transition: none;
}
.flow-card-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--success);
}
.status-dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

/* Flow Connector */
.flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}
.connector-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.connector-dot {
  width: 6px; height: 6px;
  background: var(--border);
  border-radius: 50%;
}
.connector-line {
  width: 1px;
  height: 14px;
  background: var(--border);
}
.connector-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--accent-glow-xs);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* ============================================
   SECTION SHARED
============================================ */
section { padding: 96px 0; }
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}
.section-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   BENEFITS
============================================ */
.benefits { background: var(--bg-section); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.55s ease;
  opacity: 0;
  transform: translateY(22px);
}
.benefit-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.benefit-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.benefit-icon {
  width: 46px; height: 46px;
  background: var(--accent-glow-xs);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.benefit-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.25px;
  color: var(--text-primary);
  margin-bottom: 9px;
}
.benefit-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   DEMO
============================================ */
.demo { background: var(--bg-base); }
.video-outer {
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.video-outer.visible {
  opacity: 1;
  transform: translateY(0);
}
.video-placeholder {
  position: relative;
  background: var(--bg-card);
  border: 2px dashed rgba(91, 124, 250, 0.2);
  border-radius: var(--radius-xl);
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.video-placeholder:hover { border-color: var(--accent); }
.video-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(91, 124, 250, 0.06) 0%, transparent 65%);
  pointer-events: none;
}
.video-play { position: relative; z-index: 1; }
.video-label {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}
.video-sub {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================
   HOW IT WORKS
============================================ */
.how-it-works { background: var(--bg-section); }
.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
}
.step {
  flex: 1;
  text-align: center;
  padding: 0 28px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.step.visible {
  opacity: 1;
  transform: translateY(0);
}
.step-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--accent);
  background: var(--accent-glow-xs);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.25px;
  color: var(--text-primary);
  margin-bottom: 9px;
}
.step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.step-arrow {
  flex-shrink: 0;
  padding-top: 18px;
  color: var(--text-muted);
}

/* ============================================
   PRICING
============================================ */
.pricing { background: var(--bg-base); }
.pricing-center {
  display: flex;
  justify-content: center;
}
.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(91, 124, 250, 0.2);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 0 0 1px rgba(91, 124, 250, 0.08), var(--shadow-lg);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.pricing-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.pricing-card-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse at 50% 0%, rgba(91, 124, 250, 0.07) 0%, transparent 55%);
  pointer-events: none;
}
.pricing-name {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
}
.pricing-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin-bottom: 10px;
  position: relative;
}
.price-amount {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1;
  color: var(--text-primary);
}
.price-period {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  padding-bottom: 7px;
}
.pricing-tagline {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  position: relative;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  position: relative;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}
.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
  position: relative;
}

/* ============================================
   FAQ
============================================ */
.faq { background: var(--bg-section); }
.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}
.faq-item.open { border-color: var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.2s ease;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a.open { max-height: 240px; }
.faq-a p {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.68;
}

/* ============================================
   FINAL CTA
============================================ */
.cta-final {
  background: var(--bg-base);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-final-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(91, 124, 250, 0.09) 0%, transparent 65%);
  pointer-events: none;
}
.cta-final-inner {
  position: relative;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.cta-final-inner h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text-primary);
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 36px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-shrink: 0;
  padding-top: 4px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 22px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   SCROLL ANIMATIONS
============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   THANK-YOU PAGE
============================================ */
.ty-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}
.ty-icon {
  width: 64px; height: 64px;
  background: var(--success-subtle);
  border: 1px solid var(--success-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}
.ty-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.ty-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}
.ty-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto 36px;
  text-align: left;
}
.ty-card-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.ty-checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ty-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}
.ty-checklist li svg { flex-shrink: 0; }
.ty-note {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.ty-back { margin-top: 4px; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 56px 0 48px;
    text-align: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-sub { margin: 0 auto 38px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .flow-diagram { max-width: 360px; margin: 0 auto; }
  .benefits-grid { grid-template-columns: 1fr; gap: 14px; }
  .steps-row {
    flex-direction: column;
    max-width: 440px;
    gap: 0;
  }
  .step { text-align: left; padding: 0; margin-bottom: 20px; }
  .step-arrow {
    transform: rotate(90deg);
    align-self: flex-start;
    margin-bottom: 4px;
    padding: 0;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(7, 16, 31, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    padding: 12px 16px 20px;
    gap: 2px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 15px; }

  .hamburger { display: flex; }
  .nav-actions { display: none; }

  .pricing-card { padding: 36px 28px; }

  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }

  .ty-card { padding: 28px 24px; }

  section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .hero-headline { letter-spacing: -1px; }
  .flow-diagram { max-width: 100%; }
  .pricing-card { padding: 28px 20px; }
  .price-amount { font-size: 48px; }
  .db-grid { gap: 12px; }
  .db-setup-grid { flex-direction: column; gap: 20px; }
}

/* ============================================
   PAGE LOADER (dashboard loading state)
============================================ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
}
body:not(.is-loading) .page-loader { display: none; }
.loader-spinner {
  width: 32px; height: 32px;
  border: 2.5px solid var(--border-subtle);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Hide dashboard content while loading */
.is-loading .dashboard-content { visibility: hidden; }

/* ============================================
   FORM INPUTS (shared)
============================================ */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.field-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}
.field-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  -webkit-appearance: none;
}
.field-input::placeholder { color: var(--text-muted); }
.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow-xs);
}
.field-input:focus-visible { outline: none; }

/* Error & success messages */
.auth-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: #F87171;
  line-height: 1.5;
}

/* Button loading state */
.btn-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

/* ============================================
   AUTH PAGE (login.html)
============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
}
.auth-glow {
  position: fixed;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(91, 124, 250, 0.1) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.auth-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  position: relative;
  z-index: 1;
  gap: 24px;
}
.auth-logo { margin-bottom: 4px; }

/* Auth card */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 36px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: calc(var(--radius-sm) - 2px);
  transition: color var(--ease), background var(--ease);
  cursor: pointer;
}
.auth-tab.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.auth-card-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.55;
}

/* Auth form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Sign-up success state */
.auth-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 8px 0;
}
.success-icon {
  width: 52px; height: 52px;
  background: var(--success-subtle);
  border: 1px solid var(--success-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-success h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.auth-success p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.auth-success strong { color: var(--text-primary); }

/* Back link */
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease);
}
.auth-back:hover { color: var(--text-secondary); }

/* ============================================
   DASHBOARD NAV
============================================ */
.db-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 16, 31, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: 60px;
}
.db-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.db-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.db-user-email {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-signout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease), border-color var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-signout:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border);
}

/* ============================================
   DASHBOARD MAIN
============================================ */
.db-main {
  padding: 48px 0 80px;
}
.db-welcome {
  margin-bottom: 36px;
}
.db-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.db-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
}
.db-subtitle strong { color: var(--text-primary); font-weight: 600; }

/* Dashboard card grid */
.db-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}
.db-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s ease;
}
.db-card:hover { border-color: var(--border); }
.db-card--wide {
  grid-column: 1 / -1;
}
.db-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.db-card-icon {
  width: 36px; height: 36px;
  background: var(--accent-glow-xs);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.db-card-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.8px;
}
.db-card-body { }
.db-card-hint {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 10px;
}

/* Subscription status badge */
.db-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}
.db-status-inactive {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.db-status-active {
  background: var(--success-subtle);
  border: 1px solid var(--success-border);
  color: var(--success);
}
.db-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Licence key display */
.db-key-placeholder {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.db-key-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* Setup card layout */
.db-setup-grid {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.db-video-placeholder {
  flex: 0 0 280px;
  background: rgba(255, 255, 255, 0.025);
  border: 2px dashed rgba(91, 124, 250, 0.18);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.db-video-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.db-video-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.db-video-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.db-resources { flex: 1; }
.db-resources-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.db-resource-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.db-resource-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
}
.db-resource-locked {
  color: var(--text-muted);
  cursor: default;
}
.db-resources-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Dashboard CTA row */
.db-cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.db-cta-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   DASHBOARD RESPONSIVE
============================================ */
@media (max-width: 768px) {
  .db-nav { height: 56px; }
  .db-nav-inner { height: 56px; }
  .db-user-email { display: none; }
  .db-grid { grid-template-columns: 1fr; }
  .db-card--wide { grid-column: 1; }
  .db-setup-grid { flex-direction: column; gap: 20px; }
  .db-video-placeholder { flex: none; width: 100%; }
  .db-main { padding: 32px 0 60px; }
  .auth-card { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .db-cta-row .btn { width: 100%; justify-content: center; }
}
