/* ============================================================
   TAPLEE — Design System  ·  Revolut-inspired premium fintech
   Dark · Oversized type · Mesh gradients · Glass morphism
   ============================================================ */

/* ----------  Design Tokens  ---------- */
:root {
  /* Backgrounds */
  --bg: #07080D;
  --bg-2: #0B0D14;
  --surface: #111520;
  --surface-2: #181D2A;
  --surface-3: #1F2536;
  --surface-hover: #232A3D;

  /* Brand */
  --orange: #FF7B1C;
  --orange-light: #FFA020;
  --orange-dark: #FF5500;
  --orange-grad: linear-gradient(135deg, #FFA020, #FF5500);
  --orange-grad-soft: linear-gradient(135deg, rgba(255,160,32,0.18), rgba(255,85,0,0.18));

  /* Text */
  --white: #FFFFFF;
  --text: rgba(255, 255, 255, 0.94);
  --text-muted: rgba(255, 255, 255, 0.58);
  --text-dim: rgba(255, 255, 255, 0.40);

  /* Status */
  --green: #4ADE80;
  --green-soft: rgba(74, 222, 128, 0.14);
  --red: #F87171;
  --red-soft: rgba(248, 113, 113, 0.14);
  --yellow: #FBBF24;
  --yellow-soft: rgba(251, 191, 36, 0.14);

  /* Borders */
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Radius */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 36px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.55);
  --shadow-orange: 0 14px 50px rgba(255, 123, 28, 0.4);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms;
  --t: 220ms;
  --t-slow: 480ms;

  /* Layout */
  --container: 1200px;
  --nav-h: 76px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ----------  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);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

/* ----------  Mesh gradient backgrounds (Revolut signature)  ---------- */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(255, 123, 28, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 10%, rgba(255, 160, 32, 0.10), transparent 55%),
    radial-gradient(ellipse 50% 60% at 80% 100%, rgba(255, 85, 0, 0.10), transparent 55%),
    var(--bg);
}

/* ----------  Typography (oversized, Revolut-style)  ---------- */
h1, h2, h3, h4 {
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}
h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  font-weight: 900;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  letter-spacing: -0.038em;
}
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
h4 { font-size: 1.15rem; letter-spacing: -0.01em; }
.gradient-text {
  background: var(--orange-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-light);
  padding: 7px 15px;
  border-radius: var(--r-full);
  background: rgba(255, 160, 32, 0.08);
  border: 1px solid rgba(255, 160, 32, 0.18);
  backdrop-filter: blur(10px);
}

/* ----------  Layout helpers  ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 104px 0; position: relative; }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 64px; }
.section-head p { color: var(--text-muted); margin-top: 18px; font-size: 1.12rem; line-height: 1.6; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 28px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease), border-color var(--t) var(--ease), opacity var(--t);
  white-space: nowrap;
  border: 1px solid transparent;
  position: relative;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--orange-grad);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 56px rgba(255, 123, 28, 0.55); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--white);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255,255,255,0.3); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ----------  Cards & glass  ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.card-glass {
  background: rgba(24, 29, 42, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), backdrop-filter var(--t), height var(--t);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 8, 13, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom-color: var(--border);
  height: 66px;
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px;
  border-radius: var(--r-full);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--t), background var(--t);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.32rem; letter-spacing: -0.03em; }
.logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.logo:hover { opacity: 0.9; }

/* Language selector */
.lang-select { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--t) var(--ease);
}
.lang-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 6px;
  min-width: 162px;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all var(--t) var(--ease);
}
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: background var(--t), color var(--t);
}
.lang-menu button:hover, .lang-menu button.active { background: rgba(255,255,255,0.07); color: var(--white); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 10px;
  border-radius: var(--r-sm);
}
.hamburger span {
  width: 22px; height: 2px; background: var(--white); border-radius: 2px;
  transition: all var(--t) var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(7, 8, 13, 0.98);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 32px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-130%);
  transition: transform var(--t-slow) var(--ease);
  z-index: 999;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  padding: 15px 16px;
  border-radius: var(--r-md);
  color: var(--text);
  font-weight: 500;
  font-size: 1.05rem;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.05); }
.mobile-menu .btn { margin-top: 8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -240px; right: -160px;
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(255,123,28,0.20), transparent 62%);
  pointer-events: none;
  animation: meshFloat 14s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -360px; left: -220px;
  width: 660px; height: 660px;
  background: radial-gradient(circle, rgba(255,160,32,0.12), transparent 62%);
  pointer-events: none;
  animation: meshFloat 18s ease-in-out infinite reverse;
}
@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.08); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero h1 { margin: 22px 0; }
.hero-sub {
  font-size: 1.22rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 38px;
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.trust-badge {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.trust-badge svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }

/* Hero phone visual (real image) */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .hero-phone-img {
  width: 100%;
  max-width: 460px;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.5));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-22px) rotate(1deg); }
}
/* Floating glass stat chips around phone */
.float-chip {
  position: absolute;
  background: rgba(24,29,42,0.75);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 11px;
  box-shadow: var(--shadow-md);
  animation: chipFloat 6s ease-in-out infinite;
}
.float-chip .fc-ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--orange-grad);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.float-chip .fc-ico svg { width: 18px; height: 18px; color: #fff; }
.float-chip .fc-val { font-size: 0.92rem; font-weight: 700; line-height: 1.1; }
.float-chip .fc-lab { font-size: 0.74rem; color: var(--text-muted); }
.float-chip.one { top: 8%; left: -6%; animation-delay: 0s; }
.float-chip.two { bottom: 14%; right: -4%; animation-delay: 2s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ============================================================
   LOGO MARQUEE / trusted by
   ============================================================ */
.logos-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.logos-strip .ls-label {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.logos-row span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: -0.02em;
  opacity: 0.7;
  transition: opacity var(--t), color var(--t);
}
.logos-row span:hover { opacity: 1; color: var(--white); }

/* ============================================================
   SECTORS (image cards)
   ============================================================ */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.sector-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.sector-card .sector-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--t-slow) var(--ease), filter var(--t-slow) var(--ease);
  filter: brightness(0.55) saturate(1.1);
}
.sector-card:hover .sector-bg { transform: scale(1.1); filter: brightness(0.7) saturate(1.2); }
.sector-card .sector-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,8,13,0.95) 0%, rgba(7,8,13,0.3) 55%, transparent 100%);
}
.sector-card .sector-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 22px;
  z-index: 2;
}
.sector-card .sector-icon {
  width: 46px; height: 46px;
  background: var(--orange-grad);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: var(--shadow-orange);
}
.sector-card .sector-icon svg { width: 24px; height: 24px; color: #fff; }
.sector-card h4 { font-size: 1.15rem; }
.sector-card p { font-size: 0.86rem; color: var(--text-muted); margin-top: 3px; }

/* ============================================================
   FEATURES + PRICING
   ============================================================ */
.features-pricing {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px;
  cursor: pointer;
  transition: all var(--t) var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,123,28,0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--t);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,123,28,0.4);
  background: var(--surface-2);
}
.feature-card:hover::before { opacity: 1; }
.feature-card .feature-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--orange-grad-soft);
  border: 1px solid rgba(255,160,32,0.22);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  position: relative;
}
.feature-card .feature-icon svg { width: 24px; height: 24px; color: var(--orange-light); }
.feature-card h4 { font-size: 1.05rem; margin-bottom: 7px; position: relative; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); position: relative; }
.feature-card .feature-more {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--orange-light);
  font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  position: relative;
}

/* Pricing card */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 34px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,123,28,0.18), transparent 70%);
}
.pricing-card > * { position: relative; }
.pricing-card .plan-tag {
  display: inline-block;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange-light);
  background: rgba(255,160,32,0.1);
  padding: 6px 13px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,160,32,0.22);
}
.pricing-card .price {
  display: flex; align-items: baseline; gap: 4px;
  margin: 20px 0 4px;
}
.pricing-card .price-amount { font-size: 3.6rem; font-weight: 900; letter-spacing: -0.05em; }
.pricing-card .price-currency { font-size: 1.7rem; font-weight: 700; color: var(--text-muted); }
.pricing-card .price-period { font-size: 1rem; color: var(--text-muted); }
.pricing-card .price-note { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 26px; }
.pricing-features { display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 0.95rem;
}
.pricing-features svg { width: 19px; height: 19px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.pricing-trust {
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-dim);
  margin-top: 16px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  text-align: center;
  position: relative;
  padding: 8px;
}
.step-num {
  width: 60px; height: 60px;
  margin: 0 auto 22px;
  border-radius: 20px;
  background: var(--orange-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 900;
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.step-card h4 { margin-bottom: 9px; }
.step-card p { color: var(--text-muted); font-size: 0.92rem; }
/* connector line */
.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px; left: calc(50% + 40px); right: calc(-50% + 40px);
  height: 2px;
  background: linear-gradient(to right, rgba(255,123,28,0.4), transparent);
  z-index: -1;
}

/* ============================================================
   INSTANT PROMO
   ============================================================ */
.promo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.compare-table {
  margin-top: 28px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare-table table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 15px 18px;
  text-align: left;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}
.compare-table th { background: var(--surface-2); font-weight: 700; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.compare-table td:first-child { font-weight: 500; }
.compare-table .yes { color: var(--green); font-weight: 700; }
.compare-table .no { color: var(--red); font-weight: 700; }
.compare-table .cell-icon { text-align: center; }

/* Live notification demo */
.notif-demo { position: relative; display: flex; justify-content: center; }
.notif-phone {
  width: 290px;
  background: linear-gradient(145deg, #2a2f42, #0f1219);
  border-radius: 36px;
  padding: 11px;
  box-shadow: var(--shadow-lg);
}
.notif-phone .np-screen {
  background: var(--bg);
  border-radius: 26px;
  padding: 26px 18px;
  min-height: 440px;
  position: relative;
  display: flex; flex-direction: column;
}
.notif-banner {
  background: rgba(24,29,42,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 14px;
  display: flex; gap: 12px; align-items: center;
  transform: translateY(-20px);
  opacity: 0;
  transition: all var(--t-slow) var(--ease);
}
.notif-banner.show { transform: translateY(0); opacity: 1; }
.notif-banner .nb-icon {
  width: 40px; height: 40px;
  background: var(--orange-grad);
  border-radius: 10px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink: 0;
}
.notif-banner .nb-icon svg { width: 20px; height: 20px; color: #fff; }
.notif-banner .nb-title { font-size: 0.84rem; font-weight: 700; }
.notif-banner .nb-msg { font-size: 0.78rem; color: var(--text-muted); }
.countdown-box { text-align: center; margin-top: auto; padding-bottom: 10px; }
.countdown-timer {
  font-size: 2.4rem; font-weight: 900;
  font-variant-numeric: tabular-nums;
  background: var(--orange-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.countdown-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   QR COUNTER (real image background)
   ============================================================ */
.qr-counter {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 460px;
  display: flex; align-items: center;
  border: 1px solid var(--border);
}
.qr-counter .qr-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.32) saturate(1.05);
}
.qr-counter .qr-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(7,8,13,0.92) 0%, rgba(7,8,13,0.55) 60%, rgba(255,123,28,0.25) 100%);
}
.qr-counter .qr-content {
  position: relative; z-index: 2;
  padding: 64px;
  max-width: 640px;
}
.qr-counter .qr-emoji { font-size: 3rem; margin-bottom: 18px; }
.qr-counter h2 { margin-bottom: 16px; }
.qr-counter p { color: var(--text-muted); font-size: 1.12rem; max-width: 480px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  display: flex; flex-direction: column;
  gap: 18px;
  transition: transform var(--t) var(--ease), border-color var(--t);
}
.testimonial-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.stars { display: flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; color: var(--yellow); }
.testimonial-text { font-size: 1rem; line-height: 1.65; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background-color: var(--orange-grad);
  background-size: cover !important;
  background-position: center !important;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid var(--surface-2);
}
.author-info .author-name { font-weight: 700; font-size: 0.96rem; }
.author-info .author-badge {
  display: inline-block;
  font-size: 0.76rem;
  color: var(--orange-light);
  background: rgba(255,160,32,0.1);
  padding: 3px 10px;
  border-radius: var(--r-full);
  margin-top: 4px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item.open { border-color: rgba(255,123,28,0.35); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  text-align: left;
  font-weight: 600;
  font-size: 1.04rem;
}
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t) var(--ease), background var(--t);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--orange-grad); }
.faq-q .faq-icon svg { width: 14px; height: 14px; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height var(--t-slow) var(--ease);
}
.faq-a-inner { padding: 0 26px 24px; color: var(--text-muted); font-size: 0.97rem; line-height: 1.7; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  text-align: center;
  padding: 88px 24px;
  border: 1px solid var(--border-strong);
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(255,123,28,0.28), transparent 45%),
    radial-gradient(circle at 82% 72%, rgba(255,85,0,0.22), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255,160,32,0.08), transparent 60%);
}
.final-cta .fc-content { position: relative; z-index: 2; }
.final-cta h2 { margin-bottom: 18px; }
.final-cta p { color: var(--text-muted); font-size: 1.16rem; max-width: 560px; margin: 0 auto 34px; }
.final-cta .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 72px 0 36px; background: var(--bg-2); position: relative; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 52px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.94rem; margin: 16px 0 20px; max-width: 320px; line-height: 1.6; }
.footer-col h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 18px; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-muted); font-size: 0.94rem; transition: color var(--t); }
.footer-col a:hover { color: var(--white); }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
}
.social-row a:hover { background: var(--orange-grad); border-color: transparent; transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { color: var(--text-dim); font-size: 0.86rem; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: var(--text-muted); font-size: 0.86rem; }
.footer-legal a:hover { color: var(--white); }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  max-width: 560px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  padding: 34px;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--t-slow) var(--ease);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.modal-close:hover { background: var(--surface-hover); }
.modal-close svg { width: 16px; height: 16px; }
.modal h3 { margin-bottom: 8px; padding-right: 30px; }
.modal .modal-sub { color: var(--text-muted); margin-bottom: 20px; }
.modal .feature-detail-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.modal .feature-detail-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.95rem; }
.modal .feature-detail-list svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   TOASTS
   ============================================================ */
.toast-container {
  position: fixed;
  top: calc(var(--nav-h) + 16px); right: 24px;
  z-index: 3000;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 14px 18px;
  min-width: 280px;
  box-shadow: var(--shadow-md);
  transform: translateX(120%);
  transition: transform var(--t-slow) var(--ease);
  pointer-events: auto;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--orange-light); }
.toast-icon { width: 22px; height: 22px; flex-shrink: 0; }
.toast.success .toast-icon { color: var(--green); }
.toast.error .toast-icon { color: var(--red); }
.toast.info .toast-icon { color: var(--orange-light); }
.toast-msg { font-size: 0.92rem; }

/* ============================================================
   UTILITIES + ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.legal-page { padding-top: calc(var(--nav-h) + 60px); padding-bottom: 60px; }
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h1 { font-size: 2.4rem; margin-bottom: 12px; }
.legal-content .updated { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 32px; }
.legal-content h2 { font-size: 1.35rem; margin: 36px 0 14px; }
.legal-content h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.legal-content p, .legal-content li { color: var(--text-muted); margin-bottom: 12px; line-height: 1.75; }
.legal-content ul { padding-left: 22px; list-style: disc; }
.legal-content a { color: var(--orange-light); text-decoration: underline; }
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin-bottom: 36px;
}
.legal-toc h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 14px; }
.legal-toc ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.legal-toc a { text-decoration: none; color: var(--text-muted); font-size: 0.93rem; }
.legal-toc a:hover { color: var(--orange-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  /* Keep lang select and login visible on mobile */
  .nav-cta .btn-ghost { font-size: 12px !important; padding: 7px 12px !important; }
  .nav-cta .lang-select { display: flex !important; }
  .nav-cta .btn-primary { display: none; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .features-pricing { grid-template-columns: 1fr; }
  .pricing-card { position: static; }
  .promo-split { grid-template-columns: 1fr; gap: 40px; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .step-card::after { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 80px 0; }
  .float-chip { display: none; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .nav-cta .btn-primary { display: none; }
  .mobile-menu .btn-primary { display: inline-flex; }
  .container { padding: 0 18px; }
  .qr-counter .qr-content { padding: 40px 26px; }
  .toast-container { left: 16px; right: 16px; top: 16px; }
  .toast { min-width: 0; width: 100%; }
  h1 { font-size: 2.4rem; }
  .hero::before, .hero::after { width: 420px; height: 420px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-phone-img, .float-chip { animation: none; }
}

/* ── TAPLEE FIXES ── */

/* Login button always visible in mobile nav */
@media (max-width: 768px) {
  .nav-login-visible {
    display: inline-flex !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: 1.5px solid rgba(255,255,255,.2) !important;
    border-radius: 8px !important;
    color: #fff !important;
  }
  /* Hide login from inside mobile menu to avoid duplicate */
  .mobile-menu .btn-ghost:first-of-type {
    display: none;
  }
}





/* ── TAPLEE FINAL FIXES ── */

/* Logo PNG - replace SVG style */
.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.3));
}
.logo span { display: none; } /* hide text span since PNG includes it */

/* Footer logo */
.footer-logo .logo-img { height: 32px; }

/* Mobile nav - lang + login always visible */
@media (max-width: 980px) {
  .nav-cta { display: flex !important; align-items: center; gap: 8px; }
  .nav-cta .lang-select { display: flex !important; }
  .nav-cta .btn-ghost { 
    display: inline-flex !important; 
    font-size: 12px !important; 
    padding: 6px 12px !important;
    border-radius: 8px !important;
  }
  /* Keep CTA in mobile menu only */
  .nav-cta .btn-primary { display: none !important; }
}



/* ══ MOBILE NAV FINAL FIX ══ */
/* Lang selector + Login always visible on ALL screen sizes */
@media (max-width: 980px) {
  .nav-cta {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .nav-cta .lang-select,
  .nav-cta .lang-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .nav-cta .btn-ghost {
    display: inline-flex !important;
    visibility: visible !important;
    font-size: 12px !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
  }
  .nav-cta .btn-primary {
    display: none !important;
  }
  .lang-btn {
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
  .lang-current {
    font-size: 12px !important;
  }
}


