/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Landio exact colors - lime/yellow-green accent on pure black */
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-card: #0d0d0d;
  --bg-card-inner: #111111;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);
  --accent: #c8ff00;
  --accent-dim: rgba(200, 255, 0, 0.08);
  --accent-medium: rgba(200, 255, 0, 0.15);
  --ok: #22c55e;
  --bad: #ef4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

img {
  max-width: 100%;
  height: auto;
}

.hidden {
  display: none !important;
}

.accent {
  color: var(--accent) !important;
}

.ok {
  color: var(--ok) !important;
}

.negative {
  color: var(--bad) !important;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 900px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-scrolled {
  top: 8px;
}

.nav-scrolled .nav-inner {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 10px 20px;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-text {
  display: block;
}

@media (max-width: 600px) {
  .logo-text {
    display: none;
  }
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 700;
  font-size: 14px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  flex: 1;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  padding: 8px 16px;
  border-radius: 100px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 20px;
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  width: 20px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Network Badge */
.network-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .network-badge {
    display: none;
  }
}

.network-dot {
  width: 6px;
  height: 6px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--ok);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.network-name {
  font-weight: 500;
}

/* CTA Button Enhancement */
.btn-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(200, 255, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 255, 0, 0.3);
}

.btn-cta .btn-arrow {
  transition: transform 0.2s;
}

.btn-cta:hover .btn-arrow {
  transform: translateX(3px);
}

/* Wallet Button */
.btn-wallet {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-dot {
  width: 8px;
  height: 8px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--ok);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.hamburger {
  width: 20px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(15, 15, 15, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
  .mobile-menu {
    display: block;
  }
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.2s;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.mobile-menu .btn {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
}

.btn-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(200, 255, 0, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 900px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 64px;
}

.hero-visual {
  display: flex;
  gap: 24px;
  max-width: 1100px;
  width: 100%;
}

.hero-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: left;
}

.hero-card-main {
  flex: 1.2;
}

.hero-card-header {
  margin-bottom: 20px;
}

.hero-card-badge {
  display: inline-flex;
  padding: 6px 12px;
  background: var(--accent-dim);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-card-quote {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

.hero-card-quote .highlight {
  color: var(--accent);
  font-weight: 600;
  font-style: normal;
}

.hero-card-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.hero-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #333, #555);
}

.hero-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-author-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
}

.hero-card-author-role {
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(200, 255, 0, 0.15);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== SWAP MOCK ===== */
.swap-mock {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.swap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-card-inner);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.swap-token {
  display: flex;
  align-items: center;
  gap: 12px;
}

.swap-token-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
}

.swap-token-icon.bnb {
  background: linear-gradient(135deg, #f0b90b, #d4a00a);
  color: #000;
}

.swap-token-icon.eth {
  background: linear-gradient(135deg, #627eea, #4a5fc1);
  color: #fff;
}

.swap-token-name {
  font-weight: 600;
  font-size: 15px;
}

.swap-token-label {
  font-size: 12px;
  color: var(--text-muted);
}

.swap-amount {
  text-align: right;
}

.swap-amount-value {
  font-size: 20px;
  font-weight: 700;
}

.swap-amount-usd {
  font-size: 13px;
  color: var(--text-muted);
}

.swap-arrow {
  text-align: center;
  padding: 8px 0;
  color: var(--accent);
  font-size: 18px;
}

.analyzing {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card-inner);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
}

.analyzing-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1s infinite;
}

/* ===== BENEFITS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all 0.3s;
}

.benefit-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 1px solid rgba(200, 255, 0, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.benefit-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== BENTO GRID ===== */
.services-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.bento-card.large {
  grid-column: span 2;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.bento-tag {
  padding: 6px 12px;
  background: var(--bg-card-inner);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-secondary);
}

.bento-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.bento-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-visual {
  margin-top: 24px;
  background: var(--bg-card-inner);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

/* ===== PROVIDER LIST ===== */
.provider-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.provider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.provider-row.featured {
  border-color: var(--accent);
}

.provider-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.provider-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.provider-name {
  font-weight: 500;
}

.badge-best {
  padding: 2px 8px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  border-radius: 100px;
}

.provider-score {
  text-align: right;
}

.score-value {
  font-weight: 700;
  font-size: 15px;
  display: block;
}

.score-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== BEQ SCORE ===== */
.beq-score-card {
  padding: 4px;
}

.beq-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.beq-label {
  color: var(--text-muted);
  font-size: 14px;
}

.beq-value {
  font-weight: 700;
  font-size: 16px;
}

.beq-bar {
  height: 8px;
  background: var(--bg-primary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.beq-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}

.beq-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.beq-metric {
  padding: 12px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
}

.metric-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-value {
  font-weight: 700;
  font-size: 14px;
}

/* ===== CODE BLOCK ===== */
.code-block {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  overflow-x: auto;
}

.code-line {
  display: flex;
  gap: 16px;
  line-height: 1.8;
}

.code-number {
  color: var(--text-muted);
  user-select: none;
  min-width: 24px;
}

.code-keyword {
  color: #c678dd;
}

.code-class {
  color: #e5c07b;
}

.code-function {
  color: #61afef;
}

.code-string {
  color: #98c379;
}

.code-comment {
  color: #5c6370;
}

.code-number-lit {
  color: #d19a66;
}

/* ===== MEV SHIELD ===== */
.mev-shield {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
}

.shield-icon {
  font-size: 32px;
}

.shield-status {
  font-weight: 700;
  font-size: 16px;
  display: block;
}

.shield-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== GAS COMPARISON ===== */
.gas-comparison {
  padding: 8px;
}

.gas-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.gas-row:last-child {
  border-bottom: none;
}

.gas-row.total {
  font-weight: 700;
  font-size: 16px;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--border-light);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ===== PROCESS ===== */
.process-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.process-tab {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.process-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.process-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.process-step-number {
  font-size: 72px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.process-step h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.process-step h3 .muted {
  color: var(--text-muted);
}

.process-step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.process-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}

/* ===== SUCCESS CARD ===== */
.success-card {
  text-align: center;
  padding: 32px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.success-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.success-details {
  text-align: left;
}

.success-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.success-row:last-child {
  border-bottom: none;
}

/* ===== STORIES ===== */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.story-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.story-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.story-stat {
  text-align: center;
  padding: 16px;
  background: var(--bg-card-inner);
  border-radius: var(--radius-md);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== INTEGRATIONS ===== */
.integrations-showcase {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.integration-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.integration-logo {
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 14px;
}

.integration-quote {
  font-size: 16px;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #444, #666);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== PRICING ===== */
.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin: 0 auto 48px;
  width: fit-content;
}

.pricing-toggle button {
  padding: 10px 24px;
  background: transparent;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.pricing-toggle button.active {
  background: var(--accent);
  color: #000;
}

.save-badge {
  background: var(--accent-medium);
  color: var(--accent);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 100px;
  margin-left: 8px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 60px rgba(200, 255, 0, 0.1);
}

.popular-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  padding: 4px 12px;
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 600;
  border-radius: 100px;
}

.pricing-tier {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-cta {
  width: 100%;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .check {
  color: var(--accent);
}

.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 32px;
}

/* ===== FAQ ===== */
.faq-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  height: fit-content;
}

.faq-sidebar h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-sidebar p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-icon {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
}

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

.faq-answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== COMPARISON ===== */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-column {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.comparison-column.featured {
  border-color: var(--accent);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.comparison-logo {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 700;
  font-size: 14px;
}

.comparison-logo.other {
  background: var(--bg-card-inner);
  color: var(--text-muted);
}

.comparison-name {
  font-size: 16px;
  font-weight: 600;
}

.comparison-list {
  list-style: none;
}

.comparison-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.comparison-list .icon.ok {
  color: var(--accent);
}

.comparison-list .icon.bad {
  color: var(--text-muted);
}

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.team-image {
  height: 280px;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  padding: 20px;
}

.team-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.team-social {
  display: flex;
  gap: 8px;
}

.team-social a {
  width: 32px;
  height: 32px;
  background: var(--bg-card-inner);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
}

.team-social a:hover {
  border-color: var(--accent);
}

/* ===== CTA ===== */
.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 80px 48px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.cta-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-card p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.cta-email {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-links {
  display: flex;
  gap: 24px;
  padding-top: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200, 255, 0, 0.05);
  transform: translateY(-2px);
}

.footer-social a:hover svg {
  transform: scale(1.1);
}

.footer-column h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--accent);
}

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

.footer-bottom-left {
  display: flex;
  gap: 24px;
}

.footer-bottom a {
  color: var(--accent);
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 160px 24px 80px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.contact-info h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-method:last-child {
  border-bottom: none;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.contact-method-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-method-value {
  font-weight: 600;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card-inner);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== BLOG PAGE ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s;
}

.blog-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.blog-image {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-card-inner), var(--bg-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.blog-content {
  padding: 24px;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-tag {
  color: var(--accent);
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 48px 0 16px;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-content li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-visual {
    flex-direction: column;
  }

  .benefits-grid,
  .features-grid,
  .testimonials-grid,
  .pricing-grid,
  .stories-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .services-bento {
    grid-template-columns: 1fr;
  }

  .bento-card.large {
    grid-column: span 1;
  }

  .process-content {
    grid-template-columns: 1fr;
  }

  .comparison-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .faq-container {
    grid-template-columns: 1fr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ===== ENHANCED MOBILE RESPONSIVE ===== */

/* Touch-friendly sizing */
:root {
  --touch-target-min: 44px;
  --touch-target-comfortable: 48px;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --spacing-2xl: 24px;
}

/* Safe area support for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  
  .safe-bottom {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  
  .safe-top {
    padding-top: max(16px, env(safe-area-inset-top));
  }
}

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Improve text rendering on mobile */
@media (max-width: 768px) {
  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

/* ===== MOBILE NAVIGATION (< 768px) ===== */
@media (max-width: 768px) {
  .nav {
    top: 8px;
    width: calc(100% - 16px);
    left: 8px;
    transform: none;
  }
  
  .nav-inner {
    padding: 8px 12px;
    border-radius: 16px;
  }
  
  .logo {
    font-size: 16px;
    gap: 8px;
  }
  
  .logo-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .nav-right .btn {
    padding: 8px 14px;
    font-size: 13px;
    min-height: var(--touch-target-min);
  }
  
  /* Hamburger menu touch target */
  .mobile-menu-btn {
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
  }
}

/* ===== MOBILE CONTAINER & SECTIONS ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .section {
    padding: 48px 0;
  }
  
  /* Swap page specific */
  .section[style*="padding-top: 100px"] {
    padding-top: 72px !important;
  }
}

/* ===== MOBILE SWAP INTERFACE ===== */
@media (max-width: 768px) {
  .swap-app {
    flex-direction: column;
    gap: 16px;
    padding: 0;
  }
  
  .swap-main-column {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
  
  .swap-side-column {
    width: 100%;
    min-width: unset;
    max-width: 100%;
  }
  
  .swap-container {
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
  }
  
  .swap-header {
    margin-bottom: 10px;
  }
  
  .swap-header h2 {
    font-size: 18px;
  }
  
  .swap-settings-btn {
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    font-size: 18px;
  }
}

/* ===== MOBILE TOKEN INPUT BOXES ===== */
@media (max-width: 768px) {
  .token-input-box {
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 3px;
  }
  
  .token-input-label {
    font-size: 11px;
    margin-bottom: 6px;
  }
  
  .token-input-row {
    gap: 8px;
  }
  
  .token-amount-input {
    font-size: 24px;
    min-width: 0; /* Allow shrinking */
  }
  
  .token-selector {
    padding: 6px 10px 6px 6px;
    gap: 6px;
    flex-shrink: 0;
    min-height: var(--touch-target-min);
  }
  
  .token-icon {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }
  
  .token-name {
    font-size: 14px;
  }
  
  .token-dropdown-icon {
    font-size: 8px;
  }
  
  .usd-value {
    font-size: 12px;
    margin-top: 3px;
  }
  
  .max-btn {
    padding: 6px 12px;
    font-size: 11px;
    min-height: 28px;
  }
}

/* ===== MOBILE SWAP ARROW ===== */
@media (max-width: 768px) {
  .swap-arrow-container {
    margin: -2px 0;
  }
  
  .swap-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 16px;
  }
}

/* ===== MOBILE BEQ & ROUTE CARDS ===== */
@media (max-width: 768px) {
  .beq-container,
  .route-container,
  .providers-container {
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
  }
  
  .beq-title span {
    font-size: 12px;
  }
  
  .beq-score-display {
    font-size: 18px;
  }
  
  .beq-progress {
    height: 5px;
    margin-bottom: 10px;
  }
  
  .beq-details {
    gap: 6px;
  }
  
  .beq-detail-item {
    padding: 8px;
    border-radius: 8px;
  }
  
  .beq-detail-label {
    font-size: 10px;
  }
  
  .beq-detail-value {
    font-size: 13px;
  }
  
  .route-header span {
    font-size: 12px;
  }
  
  .route-best-badge {
    padding: 3px 8px;
    font-size: 10px;
  }
  
  .route-path {
    padding: 10px;
    gap: 6px;
    border-radius: 8px;
    /* Enable horizontal scroll for long routes */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .route-token {
    padding: 4px 8px 4px 4px;
  }
  
  .route-token-icon {
    width: 18px;
    height: 18px;
    font-size: 7px;
  }
  
  .route-token-name {
    font-size: 12px;
  }
  
  .route-arrow {
    font-size: 10px;
  }
  
  .route-dex {
    padding: 3px 6px;
    font-size: 9px;
  }
}

/* ===== MOBILE PROVIDERS LIST ===== */
@media (max-width: 768px) {
  .providers-header {
    font-size: 12px;
    margin-bottom: 8px;
  }
  
  .provider-item {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 6px;
    min-height: var(--touch-target-comfortable);
  }
  
  .provider-left {
    gap: 10px;
  }
  
  .provider-logo {
    width: 28px;
    height: 28px;
    font-size: 10px;
    border-radius: 6px;
  }
  
  .provider-name {
    font-size: 12px;
  }
  
  .provider-rate {
    font-size: 10px;
  }
  
  .provider-output {
    font-size: 13px;
  }
  
  .provider-savings {
    font-size: 11px;
  }
}

/* ===== MOBILE SWAP BUTTON ===== */
@media (max-width: 768px) {
  .swap-btn {
    padding: 16px;
    border-radius: 14px;
    font-size: 15px;
    min-height: var(--touch-target-comfortable);
  }
}

/* ===== MOBILE DETAILS ACCORDION ===== */
@media (max-width: 768px) {
  .details-toggle {
    padding: 14px 16px;
    border-radius: 12px;
    margin-top: 12px;
    min-height: var(--touch-target-comfortable);
  }
  
  .details-toggle span {
    font-size: 13px;
  }
  
  .details-content {
    padding: 16px;
    border-radius: 0 0 12px 12px;
  }
  
  .detail-row {
    padding: 8px 0;
    font-size: 13px;
  }
}

/* ===== MOBILE MODALS ===== */
@media (max-width: 768px) {
  .slippage-modal {
    align-items: flex-end;
    padding: 0;
  }
  
  .slippage-content {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 20px 16px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  
  .slippage-modal.open .slippage-content {
    transform: translateY(0);
  }
  
  .slippage-header {
    margin-bottom: 20px;
  }
  
  .slippage-header h3 {
    font-size: 17px;
  }
  
  .slippage-close {
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    font-size: 20px;
  }
  
  .slippage-options {
    gap: 6px;
    margin-bottom: 12px;
  }
  
  .slippage-option {
    padding: 14px 10px;
    border-radius: 10px;
    font-size: 14px;
    min-height: var(--touch-target-comfortable);
  }
  
  .slippage-custom input {
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    min-height: var(--touch-target-comfortable);
  }
}

/* ===== MOBILE TOKEN PICKER MODAL ===== */
@media (max-width: 768px) {
  .token-picker-overlay,
  [class*="token-picker"],
  [class*="tokenPicker"] {
    align-items: flex-end !important;
  }
  
  .token-picker-modal,
  [class*="token-picker-modal"],
  [class*="tokenPickerModal"] {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 85vh !important;
    border-radius: 20px 20px 0 0 !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }
  
  .token-search-input,
  [class*="token-search"],
  [class*="tokenSearch"] {
    min-height: var(--touch-target-comfortable) !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
    border-radius: 12px !important;
  }
  
  .token-list-item,
  [class*="token-list-item"],
  [class*="tokenListItem"] {
    min-height: var(--touch-target-comfortable) !important;
    padding: 12px !important;
  }
}

/* ===== MOBILE FOOTER ===== */
@media (max-width: 768px) {
  .footer {
    padding: 32px 0 16px;
  }
  
  .footer-bottom {
    padding: 16px 0;
    font-size: 12px;
  }
}

/* ===== SMALL PHONES (< 375px) ===== */
@media (max-width: 375px) {
  .container {
    padding: 0 12px;
  }
  
  .swap-container {
    padding: 12px;
  }
  
  .token-amount-input {
    font-size: 20px;
  }
  
  .token-name {
    font-size: 13px;
  }
  
  .token-icon {
    width: 22px;
    height: 22px;
  }
  
  .swap-header h2 {
    font-size: 16px;
  }
  
  .beq-details {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  
  .beq-detail-item {
    padding: 6px;
  }
  
  .beq-detail-label {
    font-size: 9px;
  }
  
  .beq-detail-value {
    font-size: 12px;
  }
  
  .provider-item {
    padding: 8px;
  }
  
  .provider-logo {
    width: 24px;
    height: 24px;
  }
  
  .provider-name {
    font-size: 11px;
  }
  
  .provider-output {
    font-size: 12px;
  }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .section[style*="padding-top: 100px"] {
    padding-top: 60px !important;
  }
  
  .swap-app {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .swap-main-column {
    flex: 0 0 55%;
    max-width: 55%;
  }
  
  .swap-side-column {
    flex: 0 0 42%;
    max-width: 42%;
  }
  
  .slippage-modal {
    align-items: center;
  }
  
  .slippage-content {
    border-radius: 20px;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* ===== TABLET (768px - 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  .swap-app {
    max-width: 700px;
    gap: 20px;
  }
  
  .swap-main-column {
    flex: 0 0 400px;
    max-width: 400px;
  }
  
  .swap-side-column {
    flex: 1;
    min-width: 260px;
    max-width: 280px;
  }
}

/* ===== TOUCH-FRIENDLY ACTIVE STATES ===== */
@media (hover: none) and (pointer: coarse) {
  .btn:active,
  .token-selector:active,
  .swap-settings-btn:active,
  .swap-arrow-btn:active,
  .provider-item:active,
  .details-toggle:active,
  .slippage-option:active,
  .max-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
  }
  
  .swap-btn:not(:disabled):active {
    transform: scale(0.98);
  }
  
  /* Remove hover effects on touch devices */
  .btn:hover,
  .token-selector:hover,
  .swap-settings-btn:hover,
  .provider-item:hover {
    transform: none;
  }
}

/* ===== PREVENT INPUT ZOOM ON iOS ===== */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --border: rgba(255, 255, 255, 0.3);
    --border-light: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-secondary: rgba(255, 255, 255, 0.85);
  }
}
