/* ============================================================
   TFTIOR 2025 – Dual Theme (Light Stripe-style / Dark Premium)
   ============================================================ */

/* -------------------------------
   1. Design Tokens / Theme Vars
   ------------------------------- */

/* Default = LIGHT THEME (ultra clean Stripe-style) */
:root {
  /* Light colors */
  --page-bg: #f5f7fb;
  --page-bg-soft: #ffffff;

  --color-surface: #ffffff;
  --color-surface-alt: #f8fafc;
  --color-card: #ffffff;

  --color-text: #0f172a;
  --color-text-soft: #475569;
  --color-text-muted: #6b7280;

  --color-border: #d4dbe9;
  --color-border-soft: rgba(148, 163, 184, 0.35);

  --color-primary: #2563eb;
  --color-primary-soft: rgba(37, 99, 235, 0.12);
  --color-accent: #22c55e;

  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.12);

  --radius-sm: 0.5rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.2rem;
  --radius-xl: 1.6rem;

  --transition-fast: 150ms ease-out;
  --transition-med: 220ms ease-out;

  /* Brand gradients */
  --tft-primary-gradient: linear-gradient(135deg, #0d1b3d 0%, #132b5e 46%, #1e3c8f 100%);
  --tft-secondary-gradient: linear-gradient(135deg, #0894d1 0%, #38bdf8 55%, #5eefff 100%);
  --tft-accent-gradient: linear-gradient(135deg, #1e9f4a 0%, #22c55e 50%, #4ade80 100%);
  --tft-frost-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));

  /* Theme-specific backgrounds (light) */
  --hero-bg: linear-gradient(135deg, #f9fbff 0%, #f3f7ff 40%, #edf3ff 100%);
  --countries-bg: #f5f7fb;
  --services-bg: #f5f7fb;
  --why-bg: #f5f7fb;
  --footer-bg: #ffffff;
}

/* DARK THEME OVERRIDES – premium global dark */
body.theme-dark {
  --page-bg: radial-gradient(circle at top left, rgba(56,189,248,0.16), transparent 58%),
             radial-gradient(circle at bottom right, rgba(129,140,248,0.24), transparent 62%),
             #020617;
  --page-bg-soft: #020617;

  --color-surface: rgba(15, 23, 42, 0.9);
  --color-surface-alt: rgba(15, 23, 42, 0.85);
  --color-card: rgba(15, 23, 42, 0.97);

  --color-text: #e5e7eb;
  --color-text-soft: #9ca3af;
  --color-text-muted: #6b7280;

  --color-border: rgba(148, 163, 184, 0.45);
  --color-border-soft: rgba(51, 65, 85, 0.9);

  --shadow-soft: 0 28px 80px rgba(15, 23, 42, 0.9);
  --shadow-card: 0 26px 80px rgba(15, 23, 42, 0.95);

  --hero-bg: linear-gradient(135deg, #0b1220 0%, #020617 55%, #000 100%);
  --countries-bg: #020617;
  --services-bg: #020617;
  --why-bg: #020617;
  --footer-bg: radial-gradient(circle at top, #020617, #000 75%);
}

/* -------------------------------
   2. Reset & Layout
   ------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Container */
.shell {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Links */

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* -------------------------------
   3. Header & Navigation
   ------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.1);
}

/* Dark theme header */
body.theme-dark .site-header {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9), transparent);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: none;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

/* Brand */

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* RECTANGULAR LOGO (previous style) */
.brand-logo {
  width: 120px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
}

.brand-tagline {
  font-size: 0.82rem;
  color: #6b7280;
}

/* dark theme brand text */
body.theme-dark .brand-name {
  color: #e5e7eb;
}
body.theme-dark .brand-tagline {
  color: #9ca3af;
}

/* Desktop nav */

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links {
  display: flex;
  gap: 1.3rem;
}

.nav-link {
  font-size: 0.9rem;
  color: #64748b;
  padding: 0.45rem 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--tft-secondary-gradient);
  transition: width var(--transition-med);
}

.nav-link:hover {
  color: #0f172a;
}

.nav-link.is-active {
  color: #0f172a;
}

.nav-link.is-active::after {
  width: 100%;
}

/* Dark theme nav links */
body.theme-dark .nav-link {
  color: var(--color-text-soft);
}
body.theme-dark .nav-link:hover {
  color: #e5e7eb;
}
body.theme-dark .nav-link.is-active {
  color: #e5e7eb;
}

/* Header right side */

.nav-cta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language dropdown */

.lang-wrapper {
  position: relative;
}

.lang-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #f9fafb;
  font-size: 0.82rem;
  color: #475569;
  cursor: pointer;
}

.lang-pill-btn .flag {
  font-size: 0.95rem;
}
.lang-pill-btn .chevron {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* dark theme button */
body.theme-dark .lang-pill-btn {
  background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(15,23,42,0.9));
  color: var(--color-text-soft);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 240px;
  padding: 0.5rem;
  background: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
  max-height: 330px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}

.lang-menu.is-open {
  display: block;
}

/* dark theme lang menu */
body.theme-dark .lang-menu {
  background: rgba(15,23,42,0.98);
  border-color: rgba(30,64,175,0.7);
  box-shadow: 0 26px 80px rgba(15,23,42,0.95);
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.55rem;
  color: #475569;
}

.lang-menu a .label .flag {
  margin-right: 0.25rem;
}

.lang-menu a.is-active {
  background: #e5f0ff;
  color: #1d4ed8;
}

.lang-menu a:hover {
  background: #eff4ff;
}

/* dark theme lang menu items */
body.theme-dark .lang-menu a {
  color: var(--color-text-soft);
}
body.theme-dark .lang-menu a.is-active {
  background: rgba(30,64,175,0.9);
  color: #e5e7eb;
}
body.theme-dark .lang-menu a:hover {
  background: rgba(30,64,175,0.5);
  color: #e5e7eb;
}

/* Theme toggle */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #f9fafb;
  color: #475569;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.theme-toggle .icon {
  font-size: 0.9rem;
}

.theme-toggle:hover {
  border-color: #38bdf8;
  background: #eef2ff;
}

/* dark state */
body.theme-dark .theme-toggle {
  background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(15,23,42,0.9));
  color: var(--color-text-soft);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.btn-small {
  padding: 0.5rem 0.9rem;
  font-size: 0.84rem;
}

.btn-primary {
  background-image: var(--tft-secondary-gradient);
  color: #0b1120;
  box-shadow: 0 14px 30px rgba(56,189,248,0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(56,189,248,0.5);
}

/* Mobile toggle */

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.35rem;
  border-radius: 999px;
  cursor: pointer;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* -------------------------------
   4. Mobile Navigation
   ------------------------------- */

.mobile-nav {
  display: none;
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.mobile-nav.is-open {
  display: block;
}

/* dark theme mobile nav */
body.theme-dark .mobile-nav {
  background: rgba(15,23,42,0.98);
  border-top: 1px solid rgba(51,65,85,0.8);
}

.mobile-nav-inner {
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
}

.mobile-nav-links .nav-link {
  padding: 0.45rem 0;
  font-size: 0.95rem;
}

.mobile-nav-ctas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

/* -------------------------------
   5. Hero Section (orbit only dark)
   ------------------------------- */

.hero {
  position: relative;
  padding: 2.8rem 0 2.6rem;
  background: var(--hero-bg);
  overflow: hidden;
}

/* Base shape (hidden in light, shown in dark) */
.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -220px;
  width: 640px;
  height: 640px;
  background-image: url("/images/shapes/tft-orbit.svg");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* show orbit only in dark */
body.theme-dark .hero::before {
  opacity: 0.7;
}

.hero .shell {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.8rem;
  align-items: center;
}

/* Hero text */

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0f172a;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(210, 221, 237, 0.9);
  margin-bottom: 1rem;
}

/* dark */
body.theme-dark .hero-eyebrow {
  color: #e5e7eb;
  background: rgba(15,23,42,0.9);
  border-color: rgba(148,163,184,0.6);
}

.hero-title {
  font-size: clamp(2.3rem, 3vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: #0b1120;
}

.hero-highlight {
  background-image: var(--tft-secondary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* dark */
body.theme-dark .hero-title {
  color: #f9fafb;
}

.hero-body {
  font-size: 0.98rem;
  max-width: 34rem;
  color: var(--color-text-soft);
  margin: 0 0 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.7rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(210,221,237,0.9);
  font-size: 0.79rem;
  color: #475569;
}

/* dark */
body.theme-dark .hero-badge {
  background: rgba(15,23,42,0.9);
  border-color: rgba(51,65,85,0.9);
  color: var(--color-text-soft);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-image: var(--tft-accent-gradient);
}

/* Hero CTAs */

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Hero card */

.hero-card {
  border-radius: 1.3rem;
  padding: 1.4rem 1.3rem 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(210,221,237,0.9);
  box-shadow: var(--shadow-card);
}

/* dark */
body.theme-dark .hero-card {
  background:
    var(--tft-frost-gradient),
    radial-gradient(circle at 10% 0%, rgba(56,189,248,0.14), transparent 60%),
    rgba(15,23,42,0.96);
  border-color: rgba(51,65,85,0.95);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.9rem;
}

.hero-card-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #0f172a;
}
body.theme-dark .hero-card-title {
  color: #e5e7eb;
}

.hero-card-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid rgba(209,213,219,0.9);
  color: #64748b;
}
body.theme-dark .hero-card-tag {
  background: rgba(15,23,42,0.9);
  border-color: rgba(148,163,184,0.7);
  color: var(--color-text-soft);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.metric {
  padding: 0.7rem 0.65rem;
  border-radius: 0.95rem;
  background: #f9fafb;
  border: 1px solid rgba(210,221,237,0.9);
}
body.theme-dark .metric {
  background: rgba(15,23,42,0.94);
  border-color: rgba(30,64,175,0.8);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
}
body.theme-dark .metric-value {
  color: #e5e7eb;
}

.metric-footnote {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* Hero countries */

.hero-countries {
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(209, 213, 219, 0.9);
}
body.theme-dark .hero-countries {
  border-top-color: rgba(51,65,85,0.9);
}

.hero-countries-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: 0.45rem;
}

.hero-countries-row {
  font-size: 0.84rem;
  color: var(--color-text-soft);
}

.hero-countries-row .label {
  font-weight: 500;
}

/* -------------------------------
   6. Sections Base
   ------------------------------- */

.section {
  padding: 2.4rem 0 2.1rem;
  position: relative;
}

.section + .section {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}
body.theme-dark .section + .section {
  border-top-color: rgba(15,23,42,0.7);
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 2.4rem;
  align-items: flex-start;
  margin-bottom: 1.9rem;
}

.section-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.6rem;
  margin: 0;
  color: var(--color-text);
}

.section-subtitle {
  font-size: 0.95rem;
  margin: 0;
  max-width: 30rem;
  color: var(--color-text-soft);
}

/* -------------------------------
   7. Countries Section
   ------------------------------- */

#countries {
  background: var(--countries-bg);
  position: relative;
  overflow: hidden;
}

/* base grid shape (only visible in dark) */
#countries::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -140px;
  transform: translateX(-50%);
  width: 1400px;
  height: 900px;
  background-image: url("/images/shapes/tft-grid.svg");
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
body.theme-dark #countries::before {
  opacity: 0.3;
}

#countries .shell {
  position: relative;
  z-index: 1;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.country-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 0.9rem;
  border-radius: 0.9rem;
  background: #ffffff;
  border: 1px solid rgba(212,219,233,0.95);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  color: var(--color-text-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.country-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15,23,42,0.18);
  border-color: #3ba9f8;
}

body.theme-dark .country-card {
  background: rgba(15,23,42,0.9);
  border-color: rgba(30,64,175,0.85);
  box-shadow: 0 18px 50px rgba(15,23,42,0.85);
}
body.theme-dark .country-card:hover {
  box-shadow: 0 26px 70px rgba(15,23,42,0.95);
  border-color: rgba(56,189,248,0.9);
  background:
    linear-gradient(135deg, rgba(15,23,42,0.98), rgba(15,23,42,0.96)),
    radial-gradient(circle at 0% 0%, rgba(56,189,248,0.13), transparent 60%);
}

.country-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text);
  font-weight: 500;
}

.country-flag {
  font-size: 1.1rem;
}

.country-meta {
  font-size: 0.82rem;
}

.country-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px dashed rgba(148,163,184,0.7);
  color: var(--color-text-soft);
  font-size: 0.85rem;
}

/* -------------------------------
   8. Services
   ------------------------------- */

#services {
  background: var(--services-bg);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  padding: 1rem 0.95rem 1.1rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(212,219,233,0.95);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  color: var(--color-text-soft);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: #3ba9f8;
  box-shadow: 0 18px 38px rgba(15,23,42,0.18);
}

/* dark */
body.theme-dark .service-card {
  background: rgba(15,23,42,0.96);
  border-color: rgba(30,64,175,0.9);
  box-shadow: 0 22px 60px rgba(15,23,42,0.95);
}
body.theme-dark .service-card:hover {
  border-color: rgba(56,189,248,0.95);
  box-shadow: 0 28px 80px rgba(15,23,42,1);
}

.service-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

.service-title {
  font-size: 1.05rem;
  margin: 0;
  color: var(--color-text);
}

.service-body {
  font-size: 0.86rem;
  margin: 0;
  color: var(--color-text-soft);
}

.service-link {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  color: #2563eb;
}

/* -------------------------------
   9. Why Choose Us
   ------------------------------- */

#why-choose {
  background: var(--why-bg);
  position: relative;
  overflow: hidden;
}

/* dots base (only dark) */
#why-choose::before {
  content: "";
  position: absolute;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 500px;
  background-image: url("/images/shapes/tft-dots.svg");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
body.theme-dark #why-choose::before {
  opacity: 0.42;
}

#why-choose .shell {
  position: relative;
  z-index: 1;
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 1.75rem;
}

.why-main p {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  margin: 0 0 1.2rem;
}

.bullet {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.bullet li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--color-text-soft);
}
.bullet li::before {
  content: "•";
  color: #22c55e;
  margin-top: 0.1rem;
}

.why-secondary {
  display: grid;
  gap: 0.9rem;
}

.why-card {
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(212,219,233,0.95);
  box-shadow: var(--shadow-soft);
  font-size: 0.86rem;
  color: var(--color-text-soft);
}

/* dark */
body.theme-dark .why-card {
  background:
    var(--tft-frost-gradient),
    rgba(15,23,42,0.96);
  border-color: rgba(51,65,85,0.9);
  box-shadow: 0 22px 60px rgba(15,23,42,0.95);
}

.why-card-title {
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 0.25rem;
}
body.theme-dark .why-card-title {
  color: #e5e7eb;
}

.why-card-body {
  margin: 0;
}

/* -------------------------------
   10. Footer
   ------------------------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 1.3rem;
  background: var(--footer-bg);
  border-top: 1px solid rgba(226,232,240,0.9);
}

/* dark footer background override */
body.theme-dark .site-footer {
  background: radial-gradient(circle at top, #020617, #000 75%);
  border-top-color: rgba(15,23,42,0.9);
}

/* footer pattern (only dark) */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/icons/pattern-10.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
body.theme-dark .site-footer::before {
  opacity: 0.2;
}

.site-footer .shell {
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 3fr);
  gap: 2.1rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.9rem;
}

.footer-logo {
  width: 120px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.45rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
  color: var(--color-text-soft);
}

.footer-list li + li {
  margin-top: 0.25rem;
}

.footer-list a {
  color: var(--color-text-soft);
}
.footer-list a:hover {
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(226,232,240,0.9);
  padding-top: 0.85rem;
  margin-top: 0.5rem;
}
body.theme-dark .footer-bottom {
  border-top-color: rgba(15,23,42,0.9);
}

/* -------------------------------
   11. Responsive
   ------------------------------- */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
    gap: 2rem;
  }

  .country-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  body.theme-dark #why-choose::before {
    right: -220px;
    opacity: 0.36;
  }
}

@media (max-width: 880px) {
  .site-header-inner {
    flex-wrap: wrap;
  }

  .nav-main {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero {
    padding-top: 2.1rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    margin-top: 0.5rem;
  }

  .country-grid,
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .shell {
    padding: 0 1.1rem;
  }

  .hero-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}


    .page {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    .page-main {
      flex: 1 0 auto;
    }

    .page-hero-meta {
      font-size: 0.8rem;
      color: var(--color-text-muted);
      margin-top: 0.35rem;
    }

    /* Hero illustration block */
    .hero-illustration {
      margin-bottom: 1rem;
      border-radius: 1.1rem;
      overflow: hidden;
      background: radial-gradient(circle at top left, rgba(59,130,246,0.08), transparent 55%),
                  radial-gradient(circle at bottom right, rgba(56,189,248,0.12), transparent 55%);
    }

    .hero-illustration img {
      display: block;
      width: 100%;
      height: auto;
    }

    body.theme-dark .hero-illustration {
      background:
        radial-gradient(circle at top left, rgba(56,189,248,0.22), transparent 55%),
        radial-gradient(circle at bottom right, rgba(129,140,248,0.3), transparent 55%);
    }

    .faq-accordion {
      display: grid;
      gap: 0.7rem;
      max-width: 52rem;
    }

    .faq-item {
      border-radius: var(--radius-md);
      border: 1px solid var(--color-border);
      background: var(--color-surface);
      overflow: hidden;
      transition: border-color var(--transition-med), box-shadow var(--transition-med), background var(--transition-med);
    }

    body.theme-dark .faq-item {
      background: var(--color-surface-alt);
      border-color: var(--color-border-soft);
    }

    .faq-item summary {
      list-style: none;
      cursor: pointer;
      padding: 0.85rem 1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.9rem;
      color: var(--color-text);
    }

    .faq-item summary::-webkit-details-marker {
      display: none;
    }

    .faq-item summary .faq-label {
      font-weight: 500;
    }

    .faq-item summary .faq-icon {
      font-size: 1rem;
      margin-left: 0.75rem;
      opacity: 0.7;
      transition: transform var(--transition-med);
    }

    .faq-item[open] {
      box-shadow: var(--shadow-soft);
      border-color: #38bdf8;
    }

    .faq-item[open] summary .faq-icon {
      transform: rotate(90deg);
    }

    .faq-body {
      padding: 0 1rem 0.9rem;
      font-size: 0.88rem;
      color: var(--color-text-soft);
    }

    .pill-list {
      display: flex;
      flex-wrap: wrap;
      gap: 0.3rem;
      margin-top: 0.35rem;
    }

    .pill {
      padding: 0.18rem 0.6rem;
      border-radius: 999px;
      font-size: 0.72rem;
      border: 1px solid var(--color-border-soft);
      background: var(--page-bg-soft);
      color: var(--color-text-muted);
    }

    body.theme-dark .pill {
      background: rgba(15, 23, 42, 0.9);
    }

    .step-list {
      counter-reset: steps;
      list-style: none;
      padding-left: 0;
      margin: 0;
      display: grid;
      gap: 0.85rem;
    }

    .step-list li {
      counter-increment: steps;
      position: relative;
      padding-left: 2rem;
      font-size: 0.9rem;
      color: var(--color-text-soft);
    }

    .step-list li::before {
      content: counter(steps);
      position: absolute;
      left: 0;
      top: 0.1rem;
      width: 1.4rem;
      height: 1.4rem;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.78rem;
      font-weight: 500;
      background: var(--color-primary-soft);
      color: #1d4ed8;
    }

    body.theme-dark .step-list li::before {
      background: rgba(30, 64, 175, 0.6);
      color: #e5e7eb;
    }

    .section-columns {
      display: grid;
      grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.4fr);
      gap: 1.8rem;
      align-items: flex-start;
    }

    .prose p {
      margin: 0 0 0.8rem;
      font-size: 0.94rem;
      color: var(--color-text-soft);
    }

    .prose ul {
      margin: 0;
      padding-left: 1.1rem;
      font-size: 0.9rem;
      color: var(--color-text-soft);
    }

    .prose li + li {
      margin-top: 0.25rem;
    }

    .country-tag-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.6rem;
    }

    .country-tag-card {
      font-size: 0.84rem;
      padding: 0.6rem 0.7rem;
      border-radius: 0.85rem;
      border: 1px dashed var(--color-border-soft);
      background: var(--page-bg-soft);
      color: var(--color-text-soft);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.4rem;
      text-decoration: none;
      transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
    }

    .country-tag-card span.flag {
      font-size: 1.1rem;
    }

    .country-tag-card:hover {
      border-color: #38bdf8;
      background: #ffffff;
      box-shadow: var(--shadow-soft);
      transform: translateY(-1px);
    }

    body.theme-dark .country-tag-card {
      background: rgba(15,23,42,0.9);
      border-color: rgba(51,65,85,0.9);
    }

    body.theme-dark .country-tag-card:hover {
      background: rgba(15,23,42,0.96);
      border-color: rgba(56,189,248,0.9);
      box-shadow: var(--shadow-card);
    }

    @media (max-width: 1024px) {
      .section-columns {
        grid-template-columns: minmax(0, 1fr);
      }
      .country-tag-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 640px) {
      .country-tag-grid {
        grid-template-columns: minmax(0, 1fr);
      }
    }
    /* ===== CONTACT FORM FIXES ===== */

.contact-section {
  background: var(--page-bg-soft);
  padding: 3rem 0;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2.2rem;
}

body.theme-dark .contact-card {
  background: var(--color-surface);
}

#contact_form .form-control {
  width: 100%;
  background: var(--page-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--color-text);
}

#contact_form .form-control::placeholder {
  color: var(--color-text-muted);
}

#contact_form textarea.form-control {
  min-height: 160px;
}

#form-result {
  border-radius: var(--radius-md);
}

/* Send button */
#contact_form .btn-primary {
  padding: 0.75rem 1.6rem;
  font-size: 1rem;
  border-radius: 999px;
  background-image: var(--tft-secondary-gradient);
  color: #0b1120;
  font-weight: 600;
  border: none;
}

#contact_form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(56,189,248,0.35);
}
/* ===== CONTACT PAGE DARK FIX ===== */

body.theme-dark .contact-heading {
  color: var(--color-text) !important;
}

body.theme-dark .contact-sub {
  color: var(--color-text-soft) !important;
}

body.theme-dark .info-card .info-label,
body.theme-dark .info-card .info-value,
body.theme-dark .info-card .info-desc {
  color: var(--color-text-soft) !important;
}

body.theme-dark .contact-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}

body.theme-dark #contact_form .form-control {
  background: var(--color-surface-alt);
  color: var(--color-text) !important;
}

body.theme-dark #contact_form .form-control::placeholder {
  color: var(--color-text-muted) !important;
}
/* ===== STAY COMPLIANT SECTION DARK MODE FIX ===== */

.stay-compliant-section {
  background: var(--page-bg-soft);
  text-align: center;
  padding: 3rem 1rem;
}

.stay-compliant-title {
  color: var(--color-text);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.stay-compliant-sub {
  color: var(--color-text-soft);
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto 1.6rem;
}

body.theme-dark .stay-compliant-section {
  background: var(--page-bg);
}

body.theme-dark .stay-compliant-title {
  color: var(--color-text);
}

body.theme-dark .stay-compliant-sub {
  color: var(--color-text-soft);
}
/* ===============================================
   UNIVERSAL DARK MODE FIX FOR ALL LIGHT SECTIONS
   =============================================== */

/* Any section that has a hardcoded light background */
section,
div[class*="section"],
div[class*="block"],
div[class*="card"],
div[class*="info"],
div[class*="feature"],
div[class*="content"] {
  background: var(--page-bg-soft) !important;
  color: var(--color-text) !important;
}

/* Headings */
section h1,
section h2,
section h3,
section h4 {
  color: var(--color-text) !important;
}

/* Paragraphs */
section p {
  color: var(--color-text-soft) !important;
}

/* Cards in dark mode */
body.theme-dark .card,
body.theme-dark .info-card,
body.theme-dark .contact-card,
body.theme-dark .feature-card {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
}

/* Buttons (leave unchanged — they use gradient) */

/* Inputs */
body.theme-dark input,
body.theme-dark textarea {
  background: var(--color-surface-alt) !important;
  color: var(--color-text) !important;
  border-color: var(--color-border) !important;
}
.tftior-divider {
  width: 100%;
  height: 160px;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
  background: #0b1320;
}

.tftior-divider video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The "Feathered Edge" Overlay */
.tftior-divider::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom, 
    #0b1320 0%,             /* Solid dark at top */
    rgba(11, 19, 32, 0) 20%, /* Transparent starts */
    rgba(11, 19, 32, 0) 80%, /* Transparent ends */
    #0b1320 100%            /* Solid dark at bottom */
  );
}

/* Mobile tuning */
@media (max-width: 768px) {
  .tftior-divider {
    height: 120px;
    margin: 2rem 0;
  }
}
.privacy-note {
  display: block;
  margin-top: 6px;
  opacity: 0.6;
  font-size: 0.85em;
  line-height: 1.4;
}


