/* TransactFlow EDI Landing — system styles */
:root {
  /* TransactFlow brand: deep navy + bright blue */
  --bg: #050B1A;
  --bg-elev: #0A1530;
  --bg-panel: #0F1D3D;
  --bg-deep: #02060F;
  --line: rgba(120,170,255,0.10);
  --line-strong: rgba(120,170,255,0.22);
  --text: #F1F5FF;
  --text-dim: #9DB0D6;
  --text-faint: #5A6E96;
  --primary: #2A8BF2;        /* TransactFlow bright blue */
  --primary-2: #1E5FD9;
  --primary-deep: #0D3A8C;
  --cyan: #38BDF8;
  --mint: #34D399;
  --amber: #FBBF24;
  --rose: #FB7185;
  --grad-1: linear-gradient(135deg, #2A8BF2 0%, #38BDF8 100%);
  --grad-2: linear-gradient(135deg, #1E5FD9 0%, #2A8BF2 60%, #38BDF8 100%);
  --shadow-glow: 0 0 80px rgba(42,139,242,0.30);
  --radius: 16px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
}
.mono { font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; }

/* Background grid + glow */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(42,139,242,0.22), transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 30%, rgba(56,189,248,0.10), transparent 60%),
    linear-gradient(to bottom, transparent, var(--bg) 80%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(120,170,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 90%);
}

main, nav, footer { position: relative; z-index: 1; }

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
section { padding: 120px 0; position: relative; }
@media (max-width: 720px) { section { padding: 80px 0; } .container { padding: 0 20px; } }

/* Type */
h1, h2, h3, h4 { font-family: 'Geist', system-ui, sans-serif; letter-spacing: -0.02em; margin: 0; font-weight: 600; }
h1 { font-size: clamp(44px, 7vw, 88px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: clamp(36px, 4.5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
p { margin: 0; color: var(--text-dim); font-size: 17px; line-height: 1.6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #7DD3FC; padding: 6px 12px;
  border: 1px solid rgba(56,189,248,0.28);
  background: rgba(56,189,248,0.06);
  border-radius: 999px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #38BDF8; box-shadow: 0 0 12px #38BDF8;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #BAE0FF 35%, #38BDF8 70%, #2A8BF2 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px;
  font-family: inherit; font-size: 15px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: white;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 8px 24px rgba(42,139,242,0.45);
}
.btn-primary:hover { background: #3A9AFF; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,0.2) inset, 0 12px 32px rgba(42,139,242,0.6); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.24); }

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(99,102,241,0.06));
  pointer-events: none;
}

/* Nav */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 50; padding: 8px 10px 8px 16px;
  display: flex; align-items: center; gap: 24px;
  background: rgba(14,18,32,0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
}
.nav a { color: var(--text-dim); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav .logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); line-height: 1; }
.nav .logo img { display: block; }
.nav .logo-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
}
.nav .logo img { filter: drop-shadow(0 0 8px rgba(42,139,242,0.5)); }
.nav-links { display: flex; gap: 22px; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Section header */
.section-header { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-header .eyebrow { margin-bottom: 20px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 19px; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  margin-top: 80px;
}
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer p { font-size: 14px; color: var(--text-faint); }

/* Utility */
.flex { display: flex; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.col { flex-direction: column; }
.wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

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