/* TransactFlow EDI Landing — Silicon Overdrive CI */
:root {
  /* Silicon Overdrive brand palette */
  --so-blue: #0089D6;
  --so-blue-light: #31B0F5;
  --so-blue-dark: #00507A;
  --so-navy: #002A41;
  --so-grey: #EDEDED;
  --so-white: #FFFFFF;
  /* Mapped tokens — light theme (white page, blue blocks) */
  --bg: #FFFFFF;
  --bg-elev: #F4F8FC;
  --bg-panel: #EAF3FB;
  --bg-deep: #001A29;
  --line: rgba(0,42,65,0.10);
  --line-strong: rgba(0,42,65,0.22);
  --text: var(--so-navy);
  --text-dim: #00507A;
  --text-faint: #5C7C8D;
  --primary: var(--so-blue);
  --primary-2: var(--so-blue-dark);
  --primary-deep: var(--so-navy);
  --cyan: var(--so-blue);
  --mint: #0089D6;
  --amber: #6FC5F7;
  --rose: #31B0F5;
  --grad-1: linear-gradient(135deg, #0089D6 0%, #31B0F5 100%);
  --grad-2: linear-gradient(135deg, #00507A 0%, #0089D6 60%, #31B0F5 100%);
  --shadow-glow: 0 0 80px rgba(0,137,214,0.20);
  --radius: 16px;
  --radius-lg: 24px;
  /* Blue theme block */
  --block-bg: linear-gradient(160deg, #002A41 0%, #00507A 60%, #0089D6 130%);
  --block-bg-solid: #002A41;
  --block-text: #FFFFFF;
  --block-text-dim: #BFE3F9;
  --block-text-faint: #7FB6DA;
  --block-line: rgba(255,255,255,0.14);
  --block-line-strong: rgba(255,255,255,0.28);
  --block-inner: rgba(255,255,255,0.06);
}

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

/* Background grid + glow — light bg */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0,137,214,0.10), transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 30%, rgba(49,176,245,0.08), 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(0,42,65,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,42,65,0.05) 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 — Silicon Overdrive CI: Poppins Bold headings, Light sub-labels */
h1, h2, h3, h4 { font-family: 'Poppins', system-ui, sans-serif; letter-spacing: 0; margin: 0; }
h1 { font-size: clamp(42px, 6.6vw, 82px); line-height: 1; letter-spacing: 0; font-weight: 700; text-transform: uppercase; }
h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1; letter-spacing: 0; font-weight: 700; text-transform: uppercase; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; font-weight: 600; }
p { margin: 0; color: var(--text-dim); font-size: 17px; line-height: 1.2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 300;
  font-size: 12px; letter-spacing: 0; text-transform: uppercase;
  color: var(--so-blue-light); padding: 6px 12px;
  border: 1px solid rgba(49,176,245,0.28);
  background: rgba(49,176,245,0.06);
  border-radius: 999px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #31B0F5; box-shadow: 0 0 12px #31B0F5;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.gradient-text {
  background: linear-gradient(135deg, #002A41 0%, #00507A 40%, #0089D6 80%, #31B0F5 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Solid accent for in-heading emphasis — used everywhere gradient-text is not */
.hl { color: var(--so-blue-light); }

/* Silicon Overdrive parent logo — footer only, no effects per CI */
.so-footer-logo { height: 40px; width: auto; display: block; }
.so-footer-brand { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.so-footer-tagline { color: var(--text-faint); font-size: 13px; margin: 0; }

/* 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 6px 18px rgba(0,55,90,0.5);
}
.btn-primary:hover { background: #1AA0E6; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,0.2) inset, 0 10px 26px rgba(0,55,90,0.6); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn-ghost {
  background: rgba(0,42,65,0.04); color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(0,42,65,0.08); border-color: rgba(0,42,65,0.28); }

/* Cards — blue theme block */
.card {
  background: var(--block-bg);
  color: var(--block-text);
  border: 1px solid var(--block-line-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,42,65,0.12);
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(49,176,245,0.18));
  pointer-events: none;
}
.card p, .card li { color: var(--block-text-dim); }
.card h1, .card h2, .card h3, .card h4 { color: var(--block-text); }

/* Nav — light pill */
.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(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,42,65,0.08);
}
.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: none; }
.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 — dark blue block so the white SO logo remains legible */
.footer {
  background: var(--block-bg);
  color: var(--block-text);
  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(--block-text-dim); line-height: 1.2; }
.footer .so-footer-tagline { color: var(--block-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;
  }
}
