/* ===========================================================
   EdgeX11 — production stylesheet
   Theme: Deep Ocean Blue — calm, professional, enterprise
     --bg      #071a28  Deep Ocean
     --accent  #6fa8c7  Muted Ocean Steel
     --accent-2#88bcd6  Soft Steel (used sparingly)
     --text    #e9f0f6  Soft White
     --muted   #8299ad  Slate
   =========================================================== */

:root {
  --bg: #071a28;
  --bg-1: #09202f;
  --bg-2: #0c2537;
  --bg-3: #102c41;
  --bg-elev: #0e293d;

  --accent: #6fa8c7;      /* muted ocean steel */
  --accent-2: #88bcd6;    /* soft steel highlight */
  --accent-deep: #3a6a88; /* deep azure */
  --accent-soft: rgba(111, 168, 199, 0.12);

  --text: #e9f0f6;
  --text-dim: #bccbd8;
  --muted: #8299ad;
  --line: rgba(130, 153, 173, 0.15);
  --line-strong: rgba(111, 168, 199, 0.24);

  --maxw: 1160px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(2, 10, 20, 0.5);
  --shadow-sm: 0 12px 34px rgba(2, 10, 20, 0.36);
  --glow: 0 10px 34px rgba(58, 106, 136, 0.3);

  --grad-accent: linear-gradient(135deg, #6fa8c7, #3a6a88);
  --grad-text: linear-gradient(120deg, #e9f0f6 0%, #b7d0de 70%);

  --font-head: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 0.4em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--accent-2); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 26px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #041018; padding: 10px 16px; z-index: 200;
  border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px; border-radius: 12px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  letter-spacing: 0.1px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary {
  background: var(--grad-accent);
  color: #04202b; box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(58, 106, 136, 0.45); }
.btn-ghost {
  background: rgba(111, 168, 199, 0.05); color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(111, 168, 199, 0.12); transform: translateY(-2px); border-color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; }
.wordmark {
  font-family: var(--font-head); font-weight: 700; font-size: 22px;
  letter-spacing: -0.01em; color: var(--text);
}
.wordmark-accent { color: var(--accent-2); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 24, 38, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: #04202b; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(80px, 13vw, 168px) 0 clamp(64px, 9vw, 118px); }
#graph-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(1100px 560px at 75% 6%, rgba(111, 168, 199, 0.12), transparent 62%),
    radial-gradient(820px 520px at 6% 92%, rgba(46, 127, 191, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(6, 24, 38, 0.15), var(--bg) 94%);
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 2.4px; font-size: 12.5px; font-weight: 600;
  color: var(--accent-2); margin-bottom: 20px; padding: 7px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(111, 168, 199, 0.05);
}
.hero h1 { font-size: clamp(40px, 6.6vw, 74px); font-weight: 800; letter-spacing: -0.03em; }
.hero h1 .accent {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(17px, 2.1vw, 21px); color: var(--text-dim); max-width: 680px; margin-top: 6px; }
.lede-sub { font-size: clamp(15.5px, 1.8vw, 17.5px); color: var(--muted); max-width: 680px; }
.hero-punch {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(17px, 2.3vw, 22px);
  color: var(--text); margin: 4px 0 0; letter-spacing: -0.01em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 46px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 42px; margin: 0; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats div { margin: 0; }
.hero-stats dt { font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; color: var(--text); }
.hero-stats dd { margin: 5px 0 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); }

/* ---------- Integrations strip ---------- */
.strip { padding: 30px 0; border-block: 1px solid var(--line); background: var(--bg-1); }
.strip-label { text-align: center; font-size: 12.5px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin: 0 0 16px; }
.strip-logos {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 14px 40px;
}
.strip-logos li {
  font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--text-dim);
  opacity: 0.72; transition: opacity 0.2s, color 0.2s;
}
.strip-logos li:hover { opacity: 1; color: var(--accent-2); }

/* ---------- Sections ---------- */
.section { padding: clamp(66px, 9vw, 118px) 0; }
.section-alt { background: linear-gradient(180deg, var(--bg), var(--bg-1)); border-block: 1px solid var(--line); }
.section-kicker {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 2.2px;
  font-size: 12.5px; font-weight: 600; color: var(--accent); margin-bottom: 14px;
}
.section-kicker-center { text-align: center; }
.section h2 { font-size: clamp(29px, 4.2vw, 46px); font-weight: 700; max-width: 18ch; }
.section-lead { color: var(--text-dim); max-width: 720px; font-size: clamp(16px, 1.9vw, 19px); }
.section-lead strong { color: var(--accent-2); font-weight: 600; }

/* Reveal on scroll */
[data-animate] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-animate].in { opacity: 1; transform: none; }

.mini-head { font-size: 15px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-family: var(--font-head); font-weight: 600; }

/* ---------- Problem ---------- */
.problem-inner { max-width: 760px; }
.check-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-dim); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.pull-quote {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(21px, 2.9vw, 30px);
  color: var(--text); margin: 30px 0 0; letter-spacing: -0.02em; line-height: 1.3;
  padding-left: 22px; border-left: 3px solid var(--accent); max-width: 22ch;
}

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.feature-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: var(--bg-3); }
.feature-icon {
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 24px;
  border-radius: 14px; color: var(--accent-2);
  background: rgba(111, 168, 199, 0.09); border: 1px solid var(--line-strong);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 20px; }
.feature-card p { color: var(--text-dim); margin: 0; font-size: 15.5px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 50px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 34px; transition: border-color 0.22s ease;
  position: relative; overflow: hidden;
}
.step::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-accent); opacity: 0.7;
}
.step:hover { border-color: var(--line-strong); }
.step-num {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
  color: var(--accent-2); background: rgba(111, 168, 199, 0.09); border: 1px solid var(--line-strong);
}
.step-body h3 { font-size: 21px; margin-bottom: 8px; }
.step-body p { color: var(--text-dim); margin: 0 0 10px; font-size: 15.5px; }
.step-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.step-tags span {
  font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 999px;
  background: rgba(111, 168, 199, 0.07); border: 1px solid var(--line); color: var(--muted);
}

/* ---------- Attributes grid ---------- */
.attr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 46px; }
.attr {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 20px; text-align: center; transition: transform 0.2s, border-color 0.2s, color 0.2s;
}
.attr span { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--text-dim); }
.attr:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.attr:hover span { color: var(--accent-2); }

/* ---------- Knowledge graph ---------- */
.graph-panel {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 30px; margin-top: 50px; align-items: center;
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px; overflow: hidden;
}
.graph-viz-wrap {
  background: radial-gradient(600px 460px at 50% 42%, rgba(111, 168, 199, 0.1), transparent 66%);
  border-radius: var(--radius-sm);
}
#ontology-graph { width: 100%; height: auto; }
.graph-legend h3 { margin-bottom: 16px; }
.legend-copy { color: var(--text-dim); font-size: 15.5px; margin: 0 0 16px; }
.legend-strong {
  color: var(--accent-2); font-family: var(--font-head); font-weight: 600; font-size: 17px;
  margin: 0; letter-spacing: -0.01em;
}

/* ---------- Governance ---------- */
.gov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 48px; }
.gov-col {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 34px;
}
.gov-ai { border-color: var(--line-strong); }
.gov-human { background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); }
.gov-col h3 { margin-bottom: 8px; }
.gov-badge {
  display: inline-block; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.4px;
  text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
}
.gov-badge-ai { background: var(--grad-accent); color: #04202b; }
.gov-badge-human { background: rgba(141, 166, 188, 0.14); color: var(--text); border: 1px solid var(--line); }
.check-list-human li::before { background: var(--text); box-shadow: none; }

/* ---------- Why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.why-item {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 26px 24px; min-height: 120px; display: flex; align-items: flex-end;
  transition: transform 0.2s, border-color 0.2s, background 0.2s; position: relative;
}
.why-item::after {
  content: ""; position: absolute; top: 22px; left: 24px; width: 26px; height: 3px; border-radius: 3px;
  background: var(--grad-accent);
}
.why-item h3 { font-size: 17px; margin: 0; color: var(--text); }
.why-item:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--bg-3); }

/* ---------- Vision banner ---------- */
.banner {
  padding: clamp(70px, 10vw, 120px) 0; text-align: center;
  background:
    radial-gradient(760px 340px at 50% 0%, rgba(111, 168, 199, 0.13), transparent 62%),
    linear-gradient(180deg, var(--bg-1), var(--bg));
  border-block: 1px solid var(--line);
}
.banner-inner { max-width: 820px; margin-inline: auto; }
.banner-line {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 4.4vw, 42px);
  letter-spacing: -0.02em; margin: 0 0 24px;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.banner-body { color: var(--text-dim); font-size: clamp(16px, 1.9vw, 18.5px); margin: 0 auto 16px; max-width: 680px; }

/* ---------- CTA ---------- */
.cta-section { background: linear-gradient(180deg, var(--bg), var(--bg-1)); }
.cta-inner { max-width: 760px; margin-inline: auto; text-align: center; }
.cta-inner h2 { margin-inline: auto; }
.cta-inner .section-lead { margin-inline: auto; }
.cta-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 38px; text-align: left;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; color: var(--text); font-family: var(--font-body); font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(141, 166, 188, 0.6); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(111, 168, 199, 0.16);
}
.cta-form .btn { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; margin: 4px 0 0; font-size: 14px; min-height: 20px; text-align: center; }
.form-status.ok { color: var(--accent-2); }
.form-status.err { color: #ff8199; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.cta-contact { margin-top: 18px; font-size: 15px; color: var(--muted); }
.cta-contact a { color: var(--accent-2); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.cta-contact a:hover { border-color: var(--accent-2); }
.cta-foot { margin-top: 22px; font-family: var(--font-head); font-weight: 600; color: var(--muted); letter-spacing: 0.3px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0; background: var(--bg-1); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
.footer-brand p { margin: 12px 0 0; font-size: 14px; max-width: 340px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-legal { grid-column: 1 / -1; font-size: 13px; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .attr-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(6, 24, 38, 0.98); border-bottom: 1px solid var(--line);
    padding: 8px 26px 24px; transform: translateY(-130%); transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.btn { margin-top: 14px; justify-content: center; }
  .nav-toggle { display: flex; }
  .split { grid-template-columns: 1fr; }
  .graph-panel { grid-template-columns: 1fr; }
  .gov-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .feature-grid { grid-template-columns: 1fr; }
  .attr-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .cta-form { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 16px; padding: 26px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  [data-animate] { opacity: 1; transform: none; transition: none; }
}
