/* ============================================================
   Settle — Design System v2 (Sky / Light Bluish Identity)
   Reusable foundation for landing, web app, and mobile.
   ============================================================ */

/* ─── Design Tokens ─── */
:root {
  /* Brand — Sky scale */
  --primary:        #0EA5E9;   /* sky-500 — primary */
  --secondary:      #7DD3FC;   /* sky-300 — secondary */
  --tertiary:       #BAE6FD;   /* sky-200 — tertiary */
  --neutral:        #F8FAFC;   /* slate-50 — neutral background */

  --primary-50:     #F0F9FF;
  --primary-100:    #E0F2FE;
  --primary-200:    #BAE6FD;
  --primary-300:    #7DD3FC;
  --primary-400:    #38BDF8;
  --primary-500:    #0EA5E9;
  --primary-600:    #0284C7;
  --primary-700:    #0369A1;
  --primary-800:    #075985;
  --primary-900:    #0C4A6E;

  /* Surfaces */
  --bg:             #FFFFFF;
  --surface:        #F8FAFC;
  --surface-alt:    #F1F5F9;
  --card:           #FFFFFF;
  --card-hover:     #FBFEFF;

  /* Borders */
  --border:         #E2E8F0;
  --border-light:   #F1F5F9;
  --border-focus:   #38BDF8;

  /* Text */
  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-muted:     #94A3B8;
  --text-on-primary: #FFFFFF;

  /* Accents */
  --success:        #10B981;
  --warning:        #F59E0B;   /* also used for "Coming Soon" */
  --info:           #0EA5E9;
  --danger:         #EF4444;
  --beta:           #6366F1;   /* indigo for Beta */

  /* State backgrounds (low-alpha tints) */
  --success-soft:   rgba(16,185,129,0.10);
  --warning-soft:   rgba(245,158,11,0.12);
  --beta-soft:      rgba(99,102,241,0.12);
  --info-soft:      rgba(14,165,233,0.10);

  /* Gradients */
  --gradient-hero:      linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 60%, #F8FAFC 100%);
  --gradient-primary:   linear-gradient(135deg, #0EA5E9 0%, #38BDF8 50%, #7DD3FC 100%);
  --gradient-primary-soft: linear-gradient(135deg, #E0F2FE 0%, #F0F9FF 100%);
  --gradient-glow:      radial-gradient(circle at 50% 0%, rgba(56,189,248,0.25) 0%, rgba(255,255,255,0) 60%);
  --gradient-dark:      linear-gradient(135deg, #0C4A6E 0%, #0369A1 50%, #0284C7 100%);
  --gradient-text:      linear-gradient(120deg, #0284C7 0%, #0EA5E9 50%, #38BDF8 100%);

  /* Typography */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;  /* Distinctive display face */

  /* Type scale */
  --text-xs:    0.75rem;   /* 12 */
  --text-sm:    0.875rem;  /* 14 */
  --text-base:  1rem;      /* 16 */
  --text-lg:    1.125rem;  /* 18 */
  --text-xl:    1.25rem;   /* 20 */
  --text-2xl:   1.5rem;    /* 24 */
  --text-3xl:   1.875rem;  /* 30 */
  --text-4xl:   2.25rem;   /* 36 */
  --text-5xl:   3rem;      /* 48 */
  --text-6xl:   3.75rem;   /* 60 */
  --text-7xl:   4.5rem;    /* 72 */

  /* Spacing */
  --section-padding: 7rem 0;
  --container-max: 1200px;

  /* Radii */
  --radius-xs:  0.375rem;
  --radius-sm:  0.5rem;
  --radius-md:  0.75rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;
  --radius-2xl: 2rem;
  --radius-pill: 9999px;

  /* Shadows — light & airy */
  --shadow-xs:  0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm:  0 2px 4px rgba(15,23,42,0.04), 0 1px 2px rgba(15,23,42,0.03);
  --shadow-md:  0 4px 12px rgba(15,23,42,0.06), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg:  0 12px 32px rgba(15,23,42,0.08), 0 4px 8px rgba(15,23,42,0.04);
  --shadow-xl:  0 24px 60px rgba(15,23,42,0.10), 0 8px 16px rgba(15,23,42,0.05);
  --shadow-glow: 0 20px 60px -15px rgba(14,165,233,0.35), 0 0 0 1px rgba(14,165,233,0.06);
  --shadow-ring: 0 0 0 6px rgba(14,165,233,0.08);

  /* Motion */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 180ms;
  --duration-base: 300ms;
  --duration-slow: 600ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  font-feature-settings: "cv11", "ss01";
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

::selection { background: var(--primary-200); color: var(--primary-900); }

/* ─── Layout ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--section-padding); position: relative; }
.section-alt { background: var(--surface); }

.section-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: 0.875rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 3.5rem;
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--primary-600);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--primary-50);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--primary-100);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(14,165,233,0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(14,165,233,0.05); }
}

.text-center { text-align: center; }

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ─── Badges: Coming Soon / Beta / TBD ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

.badge-coming-soon {
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid rgba(245,158,11,0.25);
}
.badge-coming-soon::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--warning);
  animation: pulse-dot 2s ease-in-out infinite;
}

.badge-beta {
  background: var(--beta-soft);
  color: var(--beta);
  border: 1px solid rgba(99,102,241,0.25);
}

.badge-tbd {
  background: rgba(148,163,184,0.12);
  color: var(--text-muted);
  border: 1px dashed var(--text-muted);
  letter-spacing: 0.15em;
}

.badge-live {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.25);
}

/* "Muted / vanishing" state wrapper — used when feature is TBD/Coming Soon */
.is-muted {
  position: relative;
  opacity: 0.45;
  filter: saturate(0.18) brightness(1.02);
  transition: opacity var(--duration-base) var(--ease-smooth),
              filter var(--duration-base) var(--ease-smooth);
}

.is-muted::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    -45deg,
    rgba(148,163,184,0.09) 0 8px,
    transparent 8px 16px
  );
  pointer-events: none;
  border-radius: var(--radius-xl);
}

.is-muted:hover {
  opacity: 0.78;
  filter: saturate(0.5) brightness(1);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--text-base);
  border: none;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-smooth),
              box-shadow var(--duration-base) var(--ease-smooth),
              background var(--duration-base) var(--ease-smooth);
  text-decoration: none;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(14,165,233,0.5),
              inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-smooth);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(14,165,233,0.6),
              inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
  background: rgba(255,255,255,0.6);
  color: var(--primary-700);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: #fff;
  border-color: var(--primary-300);
  color: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary-700);
  border: 1.5px solid var(--primary-300);
}
.btn-outline:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
}

.btn-sm {
  padding: 0.6rem 1.15rem;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: var(--text-lg);
}

/* ─── Navigation ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: all var(--duration-base) var(--ease-smooth);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.85);
  padding: 0.75rem 0;
  border-bottom-color: var(--border-light);
  box-shadow: 0 1px 20px rgba(15,23,42,0.04);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

/* Brand mark — rendered as an <img>. No tile background. */
.nav-logo-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  transition: transform var(--duration-base) var(--ease-spring),
              filter var(--duration-base) var(--ease-smooth);
}

.nav-logo:hover .nav-logo-icon {
  transform: scale(1.06);
  filter: drop-shadow(0 6px 14px rgba(14,165,233,0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-md);
  position: relative;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-50);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.85);
  transition: all var(--duration-base) var(--ease-spring);
  z-index: -1;
}

.nav-links a:hover {
  color: var(--primary-700);
}
.nav-links a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.25rem;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--duration-base) var(--ease-smooth);
}

.nav-links a:hover::after { width: 1.25rem; }

/* ─── Nav dropdown ─── */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-md);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown-trigger:hover {
  color: var(--primary-700);
}

.nav-caret {
  transition: transform var(--duration-base) var(--ease-smooth);
}
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(0.4rem);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(15,23,42,0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-smooth),
              transform var(--duration-base) var(--ease-smooth),
              visibility var(--duration-base);
  z-index: 1001;
}

/* Invisible bridge over the gap so hover stays continuous */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -0.6rem;
  height: 0.6rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}
.nav-dropdown-menu a::before,
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover {
  background: var(--primary-50);
  color: var(--primary-700);
}

.nav-dropdown-divider {
  height: 1px;
  margin: 0.4rem 0.25rem;
  background: var(--border-light);
}

/* ─── Mobile dropdown (accordion) ─── */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.mobile-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}
.mobile-dropdown-trigger .nav-caret {
  width: 18px;
  height: 18px;
}
.mobile-dropdown.open .mobile-dropdown-trigger .nav-caret { transform: rotate(180deg); }

.mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 0.25rem 0 0.5rem;
}
.mobile-dropdown.open .mobile-dropdown-menu { display: flex; }
.mobile-dropdown-menu a {
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  border: 1px solid var(--border);
}

.lang-toggle button {
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
  letter-spacing: 0.05em;
}
.lang-toggle button:hover { color: var(--text-primary); }
.lang-toggle button.active {
  background: var(--bg);
  color: var(--primary-700);
  box-shadow: var(--shadow-xs);
}

.mobile-menu-btn {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.55rem;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-smooth);
}
.mobile-menu-btn:hover { background: var(--primary-50); border-color: var(--primary-200); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-smooth);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.mobile-menu-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.mobile-menu a {
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
}
.mobile-menu a:hover { background: var(--primary-50); color: var(--primary-700); }

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
}

/* ─── Hero ─── */
.hero {
  background: var(--gradient-hero);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7.5rem 0 5rem;
}

/* Ambient glows */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(125,211,252,0.35) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(186,230,253,0.4) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  animation: drift 22s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(40px, -30px); }
}

/* Subtle grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(14,165,233,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,165,233,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: var(--text-6xl);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.02;
  margin-bottom: 1.5rem;
  letter-spacing: -0.045em;
}

.hero-text h1 .line-1 { display: block; }
.hero-text h1 .line-2 { display: block; margin-top: 0.1em; }

.hero-text .slogan {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.55;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  max-width: 520px;
}

.hero-stat-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ─── Swap Card — Hero Mockup (premium, clean, no order-book) ─── */
.swap-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border-light);
  border: 1px solid var(--border);
  max-width: 440px;
  margin-left: auto;
  z-index: 1;
}

.swap-card::before {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: var(--radius-2xl);
  background: var(--gradient-primary);
  opacity: 0.18;
  filter: blur(32px);
  z-index: -1;
}

.swap-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.swap-card-title {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.swap-card-title .dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
  animation: pulse-dot 2s ease-in-out infinite;
}

.swap-field {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  transition: all var(--duration-base) var(--ease-smooth);
}

.swap-field:focus-within,
.swap-field:hover {
  border-color: var(--primary-300);
  background: #fff;
  box-shadow: var(--shadow-ring);
}

.swap-field-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.375rem;
}

.swap-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.swap-amount {
  font-size: var(--text-2xl);
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  letter-spacing: -0.02em;
  padding: 0;
  min-width: 0;
}

/* Editable amount input (hero card) */
input.swap-amount {
  -moz-appearance: textfield;
  appearance: textfield;
}
input.swap-amount::-webkit-outer-spin-button,
input.swap-amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input.swap-amount:focus { color: var(--primary-700); }

/* Wrap that combines a bubble + currency select (hero card) */
.swap-currency-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.swap-select {
  padding: 0.35rem 1.75rem 0.35rem 0.6rem;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2394A3B8' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  transition: all var(--duration-fast);
  outline: none;
  font-family: inherit;
}
.swap-select:hover,
.swap-select:focus {
  background-color: var(--primary-50);
  border-color: var(--primary-300);
}

.swap-currency {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--duration-fast);
}
.swap-currency:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
}
.swap-currency .flag {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  overflow: hidden;
}

.swap-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--primary-600);
  margin: -0.5rem auto;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--duration-base) var(--ease-spring),
              border-color var(--duration-base);
}
.swap-switch:hover {
  transform: rotate(180deg);
  border-color: var(--primary-400);
  color: var(--primary);
}

.swap-rate {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
}
.swap-rate-label { color: var(--text-secondary); font-weight: 500; }
.swap-rate-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary-700);
}

.swap-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  padding: 0.95rem;
  background: var(--gradient-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  cursor: pointer;
  transition: transform var(--duration-fast);
  box-shadow: 0 8px 20px -6px rgba(14,165,233,0.5);
}
.swap-cta:hover { transform: translateY(-1px); }

/* Floating pills around swap card */
.floating-pill {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
  font-size: var(--text-xs);
  font-weight: 600;
  animation: float-gentle 5s ease-in-out infinite;
  z-index: 2;
}

.floating-pill-1 {
  top: -1.5rem;
  left: -2rem;
  animation-delay: 0s;
}
.floating-pill-2 {
  bottom: 1.5rem;
  left: -2.5rem;
  animation-delay: 1.5s;
}
.floating-pill-3 {
  top: 4rem;
  right: -2.5rem;
  animation-delay: 0.7s;
}

.floating-pill .icon-circle {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.icon-circle-success { background: var(--success-soft); color: var(--success); }
.icon-circle-primary { background: var(--primary-100); color: var(--primary-700); }

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ─── Features ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  transition: all var(--duration-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,165,233,0.04) 0%, transparent 40%);
  opacity: 0;
  transition: opacity var(--duration-base);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-200);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { opacity: 1; }

.feature-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary-soft);
  color: var(--primary-600);
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: var(--gradient-primary);
  opacity: 0;
  filter: blur(12px);
  transition: opacity var(--duration-base);
  z-index: -1;
}

.feature-card:hover .feature-icon::after { opacity: 0.35; }

.feature-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ─── Supported Pairs ─── */
.pairs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

.pair-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: all var(--duration-base) var(--ease-smooth);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.pair-flags {
  display: flex;
  align-items: center;
}

.pair-flag {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border: 2px solid var(--bg);
  box-shadow: var(--shadow-xs);
}

.pair-flag + .pair-flag { margin-left: -0.75rem; }

.pair-name {
  font-weight: 800;
  font-size: var(--text-xl);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.pair-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.pair-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.pair-rate {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.pair-rate strong { color: var(--primary-700); }

.pair-type {
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-100);
}

/* ─── Fees Table ─── */
.fees-table-wrapper {
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 960px;
  margin: 0 auto;
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.fees-table thead {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.fees-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.fees-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.fees-table tbody tr:last-child td { border-bottom: none; }

.fees-table tbody tr {
  transition: background var(--duration-fast);
}
.fees-table tbody tr:hover { background: var(--primary-50); }

.fee-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary-700);
}

.fees-note {
  margin-top: 1rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
}

/* ─── Estimator (Fancy) ─── */
.estimator-wrapper {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.estimator-wrapper::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: var(--gradient-primary);
  opacity: 0.15;
  filter: blur(60px);
  border-radius: 50%;
  z-index: -1;
}

.estimator-card {
  background: var(--card);
  border-radius: var(--radius-2xl);
  padding: 2.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.estimator-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.estimator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.estimator-header h3 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.estimator-header .badge-live { font-size: 0.65rem; }

.estimator-field {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  transition: all var(--duration-base) var(--ease-smooth);
}

.estimator-field:focus-within {
  border-color: var(--primary-400);
  background: #fff;
  box-shadow: var(--shadow-ring);
}

.estimator-field + .estimator-field { margin-top: 0.5rem; }

.estimator-field-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.estimator-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.estimator-input {
  font-size: 1.65rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  letter-spacing: -0.02em;
  padding: 0;
  -moz-appearance: textfield;
}
.estimator-input::-webkit-outer-spin-button,
.estimator-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.estimator-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2394A3B8' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
  transition: all var(--duration-fast);
}
.estimator-select:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-200);
}

.estimator-result-value {
  font-weight: 800;
  color: var(--primary-700);
}

.estimator-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--primary);
  margin: -0.75rem auto;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--duration-base) var(--ease-spring),
              border-color var(--duration-base),
              background var(--duration-base);
}
.estimator-switch:hover {
  transform: rotate(180deg);
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.estimator-summary {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-lg);
}

.estimator-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
}
.estimator-summary-row + .estimator-summary-row { margin-top: 0.5rem; }
.estimator-summary-row .label { color: var(--text-secondary); }
.estimator-summary-row .value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary-800);
}

.estimator-disclaimer {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}

/* ─── Developer Section ─── */
.dev-section { position: relative; }

.dev-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: start;
}

.code-block {
  background: #0B1120;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid #1E293B;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.code-block .tbd-corner {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: rgba(148,163,184,0.15);
  color: #E2E8F0;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(148,163,184,0.5);
  letter-spacing: 0.12em;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.1rem;
  background: #0F172A;
  border-bottom: 1px solid #1E293B;
  font-size: var(--text-xs);
  color: #64748B;
  font-family: var(--font-mono);
}

.code-header .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.code-header .filename { margin-left: auto; }

.code-content {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: #E2E8F0;
  overflow-x: auto;
  white-space: pre;
}

.code-content .keyword { color: #F472B6; }
.code-content .string  { color: #7DD3FC; }
.code-content .comment { color: #64748B; font-style: italic; }
.code-content .func    { color: #C4B5FD; }
.code-content .var     { color: #38BDF8; }
.code-content .punct   { color: #94A3B8; }

.dev-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dev-feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--duration-base);
}
.dev-feature-item:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

.dev-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary-soft);
  color: var(--primary-600);
  flex-shrink: 0;
}

.dev-feature-item h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.dev-feature-item p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── AI Section (Beta + Coming Soon) ─── */
.ai-section {
  background: var(--gradient-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ai-section::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(125,211,252,0.35) 0%, transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}
.ai-section::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -10%;
  width: 50%; height: 70%;
  background: radial-gradient(circle, rgba(56,189,248,0.22) 0%, transparent 65%);
  filter: blur(80px);
  pointer-events: none;
}

.ai-section .section-title { color: #fff; }
.ai-section .section-subtitle { color: rgba(255,255,255,0.7); }

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.ai-text .eyebrow {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.ai-text .eyebrow::before { background: var(--secondary); box-shadow: 0 0 0 3px rgba(125,211,252,0.3); }

.ai-status-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.ai-text p {
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  font-size: var(--text-lg);
  margin-bottom: 1.5rem;
}

.ai-chat-demo {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl);
}

.ai-message {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.ai-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ai-message-user .ai-message-avatar {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.ai-message-ai .ai-message-avatar {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}
.ai-message-ai .ai-message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(14,165,233,0.25));
}

.ai-message-bubble {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.55;
  max-width: 85%;
}

.ai-message-user .ai-message-bubble {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.08);
}

.ai-message-ai .ai-message-bubble {
  background: rgba(14,165,233,0.18);
  border: 1px solid rgba(125,211,252,0.25);
  color: #fff;
}

.mcp-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255,255,255,0.18);
}
.mcp-card-text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.mcp-card-text strong {
  display: block;
  color: #fff;
  font-size: var(--text-base);
  margin-bottom: 0.25rem;
}

/* ─── Remittance Section ─── */
.remittance-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius-2xl);
  padding: 3rem 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.remittance-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.remittance-status-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.remittance-card h2 { margin-bottom: 1rem; }
.remittance-card p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  font-size: var(--text-base);
  line-height: 1.7;
}

.remittance-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2.5rem 0 2rem;
}

.remittance-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.remittance-node-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: var(--gradient-primary-soft);
  border: 2px solid var(--primary-100);
}
/* When holding the brand tile, let the rounded-square show its native shape. */
.remittance-node-icon.brand {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}
.remittance-node-icon.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(14,165,233,0.35));
}

.remittance-node-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.remittance-arrow {
  color: var(--primary-400);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}

/* ─── Availability ─── */
.availability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 920px;
  margin: 0 auto;
}

.availability-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--duration-base);
  position: relative;
  overflow: hidden;
}

.availability-card.active {
  border-color: var(--primary-200);
  box-shadow: 0 0 0 4px var(--primary-50);
}
.availability-card.active::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.availability-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.availability-flag {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.availability-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.availability-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  min-height: 2.5rem;
}

/* ─── Mobile App ─── */
.mobile-app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: #0F172A;
  border-radius: 42px;
  padding: 10px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl), 0 30px 80px -20px rgba(14,165,233,0.35);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #0F172A;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: -30%; left: -30%;
  width: 160%; height: 160%;
  background: radial-gradient(circle, rgba(125,211,252,0.25) 0%, transparent 60%);
  pointer-events: none;
}

.phone-screen-logo {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 24px rgba(14,165,233,0.3));
}
.phone-screen-logo img { width: 100%; height: 100%; object-fit: contain; }

.phone-screen-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  position: relative; z-index: 1;
}

.phone-screen-tagline {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  max-width: 220px;
  position: relative; z-index: 1;
}

.phone-screen-chips {
  display: flex;
  gap: 0.5rem;
  position: relative; z-index: 1;
}
.phone-screen-chips span {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-700);
}

.mobile-app-text .ai-status-row,
.mobile-app-text .feature-status-row {
  display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap;
}

.mobile-app-text h2 { margin-bottom: 1rem; }
.mobile-app-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: var(--text-lg);
}

.store-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--duration-fast);
  max-width: 220px;
}

.store-badge:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

.store-badge-icon {
  color: var(--text-primary);
}

.store-badge-text small {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.store-badge-text strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

/* Early access form */
.early-access {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: 440px;
}
.early-access h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}
.early-access p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.early-access-form {
  display: flex;
  gap: 0.5rem;
}

.early-access-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: inherit;
  background: var(--surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}
.early-access-input:focus {
  background: #fff;
  border-color: var(--primary-400);
}
.early-access-input::placeholder { color: var(--text-muted); }

.early-access-btn {
  padding: 0.75rem 1.25rem;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--duration-fast);
}
.early-access-btn:hover { transform: translateY(-1px); }

/* ─── Contact Section ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 920px;
  margin: 0 auto;
}

.contact-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  border: 1px solid var(--border);
  transition: all var(--duration-base);
}
.contact-card:hover {
  border-color: var(--primary-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--gradient-primary-soft);
  color: var(--primary-600);
}

.contact-card h3 {
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 0.875rem;
  line-height: 1.5;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-600);
  font-weight: 700;
  font-size: var(--text-sm);
  transition: gap var(--duration-fast);
}
.contact-link:hover {
  gap: 0.6rem;
  color: var(--primary-700);
}

/* Social row */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--duration-fast);
}
.social-chip:hover {
  background: var(--primary-50);
  border-color: var(--primary-300);
  color: var(--primary-700);
  transform: translateY(-1px);
}
.social-chip svg { color: var(--primary-600); }

/* ─── Footer ─── */
.footer {
  background: var(--surface);
  color: var(--text-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-top: 1rem;
  max-width: 360px;
  color: var(--text-secondary);
}

.footer h4 {
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--duration-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-links a:hover { color: var(--primary-700); }

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
  color: var(--text-secondary);
}
.footer-social a:hover {
  background: var(--primary-50);
  border-color: var(--primary-300);
  color: var(--primary-700);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   Currency Bubble — shared primitive (pairs, fees, estimator,
   availability, hero). Animated soft-blue glass bubble.
   ═══════════════════════════════════════════════════════════════ */
.currency-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #FFFFFF 0%, #FAFBFC 65%, #EEF2F6 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  position: relative;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.9),
    inset 0 -2px 3px rgba(15,23,42,0.04),
    0 3px 8px -3px rgba(15,23,42,0.10);
  border: 1px solid var(--border);
  animation: bubble-float 7s ease-in-out infinite;
  transition: transform var(--duration-base) var(--ease-spring);
}

/* Soft gloss highlight only — no glowing halo */
.currency-bubble::after {
  content: '';
  position: absolute;
  top: 12%;
  left: 20%;
  width: 22%;
  height: 15%;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  filter: blur(1px);
  pointer-events: none;
}

.currency-bubble:hover { transform: scale(1.05); }

.currency-bubble-sm { width: 36px; height: 36px; font-size: 1.05rem; }
.currency-bubble-xs { width: 28px; height: 28px; font-size: 0.85rem; }
.currency-bubble-lg { width: 72px; height: 72px; font-size: 2.1rem; }

@keyframes bubble-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* Stagger animation so a row of bubbles doesn't move in lockstep */
.currency-bubble.delay-1 { animation-delay: -1.2s; }
.currency-bubble.delay-2 { animation-delay: -2.4s; }
.currency-bubble.delay-3 { animation-delay: -3.6s; }

/* Pair of overlapping bubbles */
.bubble-pair {
  display: inline-flex;
  align-items: center;
}
.bubble-pair .currency-bubble + .currency-bubble { margin-left: -0.85rem; }

/* ─── Display font utility ─── */
.font-display {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   Pairs section — spaced out, bubble-forward
   ═══════════════════════════════════════════════════════════════ */
.pairs-grid { gap: 2rem; }
.pair-card {
  padding: 1.75rem 1.75rem 1.5rem;
  gap: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   Fees table — colorized per column + bubble in first column
   ═══════════════════════════════════════════════════════════════ */
.pair-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.fee-value { font-family: var(--font-mono); font-weight: 700; }
.fee-taker   { color: var(--primary-700); }
.fee-maker   { color: var(--success); }
.fee-convert { color: #7C3AED; }            /* subtle violet for convert */

.fees-table th.th-taker   { color: var(--primary-700); }
.fees-table th.th-maker   { color: var(--success); }
.fees-table th.th-convert { color: #7C3AED; }

/* ═══════════════════════════════════════════════════════════════
   Swap with AI — flagship highlight treatment
   ═══════════════════════════════════════════════════════════════ */
.ai-section {
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ai-section::before { animation: drift 18s ease-in-out infinite; }
.ai-section::after  { animation: drift 24s ease-in-out infinite reverse; }

/* Animated sweep overlay */
.ai-section .ai-grid {
  position: relative;
  isolation: isolate;
}

.ai-flagship-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(120deg, rgba(125,211,252,0.2), rgba(125,211,252,0.08));
  border: 1px solid rgba(125,211,252,0.4);
  border-radius: var(--radius-pill);
  color: var(--tertiary);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.ai-flagship-ribbon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}
.ai-flagship-ribbon span.star {
  display: inline-flex;
  color: var(--secondary);
  font-size: 0.9rem;
  line-height: 1;
}

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

.ai-section .section-title {
  font-size: clamp(2.25rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #FFFFFF 0%, #BAE6FD 60%, #7DD3FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-chat-demo {
  position: relative;
  box-shadow:
    0 30px 80px -20px rgba(14,165,233,0.45),
    0 0 0 1px rgba(255,255,255,0.06);
}
.ai-chat-demo::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(125,211,252,0.5), rgba(14,165,233,0) 40%, rgba(125,211,252,0.5));
  filter: blur(12px);
  opacity: 0.5;
  z-index: -1;
  animation: rotate-glow 8s linear infinite;
}

@keyframes rotate-glow {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════
   Order Book section
   ═══════════════════════════════════════════════════════════════ */
.orderbook-section { position: relative; }

.orderbook-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}
.orderbook-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.orderbook-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface);
}

.orderbook-header .bubble-pair { margin-right: 0.25rem; }

.orderbook-pair-name {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.orderbook-pair-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.orderbook-header .badge-live { margin-left: auto; }

.orderbook-body {
  padding: 1.25rem 1.5rem;
}

.orderbook-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
}

.orderbook-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.orderbook-side-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.orderbook-side-title.bids { color: var(--success); }
.orderbook-side-title.asks { color: var(--danger); text-align: right; }

.orderbook-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  position: relative;
  font-weight: 700;
}

.orderbook-row .depth-bar {
  position: absolute;
  top: 0; bottom: 0;
  border-radius: var(--radius-sm);
  pointer-events: none;
  opacity: 0.12;
}
.orderbook-side.bids .orderbook-row .depth-bar { left: 0; background: var(--success); }
.orderbook-side.asks .orderbook-row .depth-bar { right: 0; background: var(--danger); }

.orderbook-row .price   { z-index: 1; }
.orderbook-row .size    { z-index: 1; color: var(--text-secondary); font-weight: 500; }
.orderbook-row .total   { z-index: 1; color: var(--text-muted); font-weight: 500; font-size: var(--text-xs); }

.orderbook-side.bids .price { color: var(--success); }
.orderbook-side.asks .price { color: var(--danger); }
.orderbook-side.asks .orderbook-row { direction: rtl; }
.orderbook-side.asks .orderbook-row > * { direction: ltr; }

.orderbook-spread {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  border-left: 1px dashed var(--border);
  border-right: 1px dashed var(--border);
}
.orderbook-spread-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.orderbook-spread-value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--primary-700);
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
}
.orderbook-spread-delta {
  font-size: var(--text-xs);
  color: var(--success);
  font-weight: 700;
  font-family: var(--font-mono);
  margin-top: 0.25rem;
}

.orderbook-footer {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--surface);
}
.orderbook-footer .btn {
  flex: 1;
  padding: 0.75rem;
  font-size: var(--text-sm);
}
.orderbook-buy {
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  padding: 0.75rem;
  cursor: pointer;
  flex: 1;
  transition: transform var(--duration-fast);
}
.orderbook-sell {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  padding: 0.75rem;
  cursor: pointer;
  flex: 1;
  transition: transform var(--duration-fast);
}
.orderbook-buy:hover, .orderbook-sell:hover { transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════════
   Availability — bubble flags
   ═══════════════════════════════════════════════════════════════ */
.availability-card .currency-bubble { margin: 0 auto 1rem; }

/* ═══════════════════════════════════════════════════════════════
   Dark footer
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: #0B1220;
  color: rgba(226,232,240,0.7);
  border-top: none;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.footer .container { position: relative; }
.footer h4 { color: #fff; }
.footer-brand p { color: rgba(226,232,240,0.6); }
.footer .nav-logo { color: #fff; }
.footer-links a { color: rgba(226,232,240,0.65); }
.footer-links a:hover { color: var(--secondary); }
.footer-bottom {
  border-top-color: rgba(226,232,240,0.1);
  color: rgba(226,232,240,0.45);
}

/* ─── Scroll Animations ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.slide-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.slide-in-left.visible { opacity: 1; transform: translateX(0); }

.slide-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.slide-in-right.visible { opacity: 1; transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb {
  background: var(--primary-200);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-300); }

/* ─── Responsive: Tablet ─── */
@media (max-width: 1024px) {
  :root { --section-padding: 5rem 0; }

  .hero { padding: 6.5rem 0 4rem; }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  .hero-text h1 { font-size: var(--text-5xl); }
  .hero-text .slogan { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; margin-left: auto; margin-right: auto; }
  .swap-card { margin: 0 auto; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pairs-grid { grid-template-columns: repeat(2, 1fr); }
  .dev-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; gap: 3rem; }
  .mobile-app-grid { grid-template-columns: 1fr; text-align: center; }
  .mobile-app-grid .store-badges { align-items: center; }
  .mobile-app-grid .early-access { margin: 0 auto; }
  .availability-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Responsive: Mobile ─── */
@media (max-width: 768px) {
  :root { --section-padding: 4rem 0; }

  .container { padding: 0 1.25rem; }

  .section-title { font-size: var(--text-3xl); }
  .section-subtitle { font-size: var(--text-base); margin-bottom: 2.5rem; }

  .nav-links { display: none; }
  .nav-actions .lang-toggle { display: none; }
  .nav-actions .btn { display: none; }
  .mobile-menu-btn { display: inline-flex; }

  .navbar { padding: 0.85rem 0; }
  .navbar.scrolled { padding: 0.65rem 0; }

  .hero { padding: 6rem 0 3.5rem; min-height: auto; }
  .hero-text h1 { font-size: var(--text-4xl); letter-spacing: -0.03em; }
  .hero-text .slogan { font-size: var(--text-base); }
  .hero-buttons .btn { width: 100%; }
  .hero-stats {
    flex-direction: row;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-stat-value { font-size: var(--text-2xl); }

  .swap-card { padding: 1.25rem; max-width: 100%; }
  .swap-amount { font-size: var(--text-xl); }
  .floating-pill-1, .floating-pill-3 { display: none; }
  .floating-pill-2 { left: 1rem; bottom: -1rem; }

  .features-grid { grid-template-columns: 1fr; }
  .pairs-grid { grid-template-columns: 1fr; }

  .fees-table thead { display: none; }
  .fees-table, .fees-table tbody, .fees-table tr, .fees-table td { display: block; width: 100%; }
  .fees-table tr {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
  }
  .fees-table tr:last-child { border-bottom: none; }
  .fees-table td {
    padding: 0.4rem 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
  }
  .fees-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
  }

  .estimator-card { padding: 1.5rem; }
  .estimator-input { font-size: var(--text-xl); }

  .remittance-flow { flex-direction: column; gap: 1rem; }
  .remittance-arrow { transform: rotate(90deg); }
  .remittance-card { padding: 2rem 1.25rem; }

  .availability-grid { grid-template-columns: 1fr; }

  .mobile-app-grid { gap: 3rem; }
  .early-access-form { flex-direction: column; }
  .early-access-btn { width: 100%; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 1.75rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .ai-section .mcp-card { flex-direction: column; align-items: flex-start; }

  /* Order book collapses */
  .orderbook-columns {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .orderbook-spread {
    border-left: none;
    border-right: none;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
    padding: 0.75rem 0;
    flex-direction: row;
    gap: 0.75rem;
  }
  .orderbook-spread-value { font-size: var(--text-xl); margin: 0; }
  .orderbook-side.asks .orderbook-row { direction: ltr; }
  .orderbook-side.asks .orderbook-side-title { text-align: left; }

  .currency-bubble     { width: 44px; height: 44px; font-size: 1.3rem; }
  .currency-bubble-sm  { width: 32px; height: 32px; font-size: 0.95rem; }

  .pairs-grid { gap: 1.25rem; }
  .pair-card  { padding: 1.5rem; }
}

/* ─── Responsive: Small phones ─── */
@media (max-width: 400px) {
  .hero-text h1 { font-size: 2rem; }
  .hero-stats { gap: 1rem; }
  .hero-stat-value { font-size: var(--text-xl); }
  .section-title { font-size: var(--text-2xl); }
  .pair-flag { width: 38px; height: 38px; font-size: 1.1rem; }
  .pair-name { font-size: var(--text-lg); }
}
/* ════════════════════════════════════════════════════════════
   Settle Connect — Careers additions
   ════════════════════════════════════════════════════════════ */

.nav-logo-accent { color: var(--primary-600); }

/* Generic responsive 3-col grid (cards) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ─── Open roles toolbar + filters ─── */
.roles-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.roles-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-chip {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}
.filter-chip:hover { border-color: var(--primary-300); color: var(--primary-700); }
.filter-chip.active {
  background: var(--primary-50);
  border-color: var(--primary-400);
  color: var(--primary-700);
}
.roles-count {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── Role cards ─── */
.roles-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.role-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: all var(--duration-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}
.role-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14,165,233,0.04) 0%, transparent 45%);
  opacity: 0; transition: opacity var(--duration-base); pointer-events: none;
}
.role-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-200);
  box-shadow: var(--shadow-lg);
}
.role-card:hover::before { opacity: 1; }

.role-card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.875rem;
}
.role-cat {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--primary-600);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  padding: 0.3rem 0.7rem; border-radius: var(--radius-pill);
}
.role-level {
  font-size: var(--text-xs); font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.role-title {
  font-size: var(--text-xl); font-weight: 700;
  letter-spacing: -0.02em; color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.role-summary {
  font-size: var(--text-sm); color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 1.1rem;
}
.role-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.role-tag {
  font-size: var(--text-xs); font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  padding: 0.25rem 0.6rem; border-radius: var(--radius-sm);
}
.role-card-foot {
  margin-top: auto;
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: var(--text-sm);
}
.role-meta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--text-muted); font-size: var(--text-xs); font-weight: 600;
}
.role-apply {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--primary-600); font-weight: 700; font-size: var(--text-sm);
  transition: gap var(--duration-fast) var(--ease-smooth);
}
.role-card:hover .role-apply { gap: 0.6rem; }
.roles-empty {
  grid-column: 1 / -1; text-align: center;
  color: var(--text-muted); padding: 3rem 0;
}

/* ─── Steps (How it works) ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: #fff; font-weight: 800; font-size: var(--text-lg);
  font-family: var(--font-display);
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 18px -8px rgba(14,165,233,0.6);
}
.step-card h3 {
  font-size: var(--text-lg); font-weight: 700;
  margin-bottom: 0.45rem; letter-spacing: -0.01em;
}
.step-card p { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }

/* ─── Perks ─── */
.perk {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--duration-base) var(--ease-smooth);
}
.perk:hover { border-color: var(--primary-200); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.perk-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 0 4px rgba(14,165,233,0.12);
  margin-bottom: 1rem;
}
.perk h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: 0.4rem; }
.perk p { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }

/* ─── CTA band ─── */
.cta-band {
  text-align: center;
  background: var(--gradient-dark);
  border-radius: var(--radius-2xl);
  padding: 4rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(125,211,252,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band h2 {
  font-size: var(--text-4xl); font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 0.75rem; position: relative;
}
.cta-band p {
  color: rgba(226,232,240,0.85); max-width: 540px;
  margin: 0 auto 2rem; position: relative; line-height: 1.6;
}
.cta-band .btn { position: relative; }

/* ════════════════ Career detail page ════════════════ */
.career-main { min-height: 60vh; }

.detail-hero {
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border-light);
  padding: 7.5rem 0 3rem;
}
.detail-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--text-sm); font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  transition: color var(--duration-fast), gap var(--duration-fast);
}
.detail-back:hover { color: var(--primary-600); gap: 0.6rem; }
.detail-head { max-width: 720px; }
.detail-head h1 {
  font-size: var(--text-5xl); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1;
  margin: 0.25rem 0 0.75rem;
}
.detail-sub { font-size: var(--text-lg); color: var(--text-secondary); line-height: 1.6; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0 1rem; }
.detail-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary);
  background: var(--bg); border: 1px solid var(--border);
  padding: 0.45rem 0.9rem; border-radius: var(--radius-pill);
}
.detail-tags { margin-bottom: 1.75rem; }
.detail-cta { margin-top: 0.25rem; }

.detail-body {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 3.5rem;
  align-items: start;
  padding: 3.5rem 1.5rem 5rem;
}
.detail-content section { margin-bottom: 2.5rem; }
.detail-content h2 {
  font-size: var(--text-2xl); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 1rem;
}
.detail-content p { color: var(--text-secondary); line-height: 1.7; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li {
  position: relative; padding-left: 1.9rem;
  color: var(--text-secondary); line-height: 1.6;
}
.check-list li::before {
  content: '';
  position: absolute; left: 0; top: 0.15rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--success-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2310B981' stroke-width='3' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ─── Application card (sticky aside) ─── */
.detail-aside { position: sticky; top: 100px; }
.apply-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.apply-card-head { margin-bottom: 1.5rem; }
.apply-card-head h2 { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; }
.apply-card-head p { font-size: var(--text-sm); color: var(--text-secondary); margin-top: 0.35rem; }

.form-demo-notice {
  font-size: var(--text-xs); line-height: 1.5;
  color: var(--warning);
  background: var(--warning-soft);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem; margin-bottom: 1.25rem;
}
.form-section-title {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 1.75rem 0 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}
.form-section-title:first-child { margin-top: 0; }

.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block; font-size: var(--text-sm); font-weight: 600;
  color: var(--text-primary); margin-bottom: 0.45rem;
}
.form-field .req { color: var(--danger); font-weight: 700; }
.form-field .opt { color: var(--text-muted); font-weight: 500; font-size: var(--text-xs); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: inherit; font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast), background var(--duration-fast);
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: var(--bg);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-ring);
}

/* File upload */
.file-drop {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.35rem; text-align: center;
  border: 1.5px dashed var(--primary-300);
  border-radius: var(--radius-lg);
  background: var(--primary-50);
  padding: 1.5rem 1rem;
  cursor: pointer;
  color: var(--primary-700);
  transition: all var(--duration-fast) var(--ease-smooth);
}
.file-drop:hover { background: var(--primary-100); border-color: var(--primary-400); }
.file-drop-text strong { font-size: var(--text-sm); }
.file-drop-hint { font-size: var(--text-xs); color: var(--text-muted); }
.file-name {
  font-size: var(--text-xs); font-family: var(--font-mono);
  color: var(--text-muted); margin-top: 0.35rem;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-name.has-file { color: var(--success); font-weight: 700; }

/* Consent */
.form-consent {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: var(--text-xs); color: var(--text-secondary);
  line-height: 1.5; margin: 1.25rem 0;
}
.form-consent input { margin-top: 0.15rem; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--primary-500); }

.form-error {
  font-size: var(--text-sm); color: var(--danger);
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem; margin-bottom: 1rem;
}
.form-submit { width: 100%; }
.form-submit:disabled { opacity: 0.7; cursor: progress; transform: none; }

/* Success */
.apply-success { text-align: center; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  background: var(--success-soft); color: var(--success);
}
.apply-success h2 { font-size: var(--text-2xl); font-weight: 800; margin-bottom: 0.5rem; }
.apply-success p { color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.5rem; }

/* Not found */
.detail-notfound { text-align: center; padding: 10rem 1.5rem 6rem; }
.detail-notfound h1 { font-size: var(--text-4xl); font-weight: 800; margin-bottom: 0.5rem; }
.detail-notfound p { color: var(--text-secondary); margin-bottom: 1.75rem; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .detail-body { grid-template-columns: 1fr; gap: 2.5rem; }
  .detail-aside { position: static; }
}
@media (max-width: 640px) {
  .grid-3,
  .roles-list,
  .steps { grid-template-columns: 1fr; }
  .detail-head h1 { font-size: var(--text-4xl); }
  .cta-band h2 { font-size: var(--text-3xl); }
  .roles-toolbar { flex-direction: column; align-items: stretch; }
  .apply-card { padding: 1.5rem; }
}

/* ─── Settle Connect: centered hero variant ─── */
.hero-content--center { display: block; text-align: center; }
.hero-content--center .hero-text { max-width: 860px; margin: 0 auto; }
.hero-content--center .eyebrow { margin-left: auto; margin-right: auto; }
.hero-content--center .slogan { margin-left: auto; margin-right: auto; }
.hero-content--center .hero-buttons { justify-content: center; }
.hero-content--center .hero-stats {
  justify-content: center;
  margin-left: auto; margin-right: auto;
  max-width: none;
}
.hero-content--center .hero-stat { text-align: center; }
