/* VORXI — Decision Intelligence for the Energy Economy — Light / Data-Intelligence Theme */

:root {
  --bg: #f6f8fa;
  --bg-alt: #eef2f6;
  --bg-deep: #e8edf2;
  --card: #ffffff;
  --border: #dde4ec;
  --text: #12202e;
  --text-dim: #56606c;
  --accent: #0d8f80;
  --accent-bright: #10a894;
  --accent-dim: #0a6b60;
  --accent-tint: #e3f5f2;
  --gold: #a9752f;
  --gold-tint: #f6ecdd;
  --radius: 10px;
  --max-w: 1180px;
  --shadow-sm: 0 1px 2px rgba(18, 32, 46, 0.05), 0 1px 1px rgba(18, 32, 46, 0.03);
  --shadow-md: 0 8px 24px rgba(18, 32, 46, 0.07), 0 2px 6px rgba(18, 32, 46, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(circle at 1px 1px, rgba(13, 143, 128, 0.10) 1px, transparent 0) 0 0 / 28px 28px,
    var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
  font-weight: 700;
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(34px, 5.5vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 20px; }

p { color: var(--text-dim); }

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head p { font-size: 17px; }

/* Pillar tabs (secondary nav) */
.pillar-tabs-wrap {
  position: sticky;
  top: 105px;
  z-index: 90;
  background: rgba(246, 248, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.pillar-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: thin;
}

.pillar-tabs::-webkit-scrollbar { height: 4px; }

.pillar-tab {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--card);
  white-space: nowrap;
  transition: all 0.15s;
}

.pillar-tab:hover { border-color: var(--accent); color: var(--accent-dim); }

.pillar-tab[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 248, 250, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--text);
}

/* Spinning-vortex logo badge */
.logo-badge {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.logo-badge-mark {
  position: absolute;
  inset: 0;
}

.logo-badge-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.logo-badge-glow {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(13,143,128,0.20), rgba(201,154,74,0.12) 55%, transparent 75%);
  filter: blur(2px);
}

.logo-vortex-ring {
  animation: logo-spin-cw 14s linear infinite;
  transform-origin: 50% 50%;
}

.logo-vortex-arms {
  animation: logo-spin-ccw 18s linear infinite;
  transform-origin: 23px 23px;
}

.logo-vortex-arms.rev {
  animation: logo-spin-cw 24s linear infinite;
}

@keyframes logo-spin-cw { to { transform: rotate(360deg); } }
@keyframes logo-spin-ccw { to { transform: rotate(-360deg); } }

.logo-badge-word {
  position: relative;
  z-index: 5;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--text);
  text-shadow: 0 0 2px var(--bg), 0 0 3px var(--bg), 0 0 6px var(--bg), 0 0 9px var(--bg);
}

.logo-badge-word span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.15s;
}

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

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #ffffff;
}

.nav-links a[aria-current="page"]:not(.btn) {
  color: var(--text);
  position: relative;
}

.nav-links a[aria-current="page"]:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { background: var(--accent-bright); }

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: var(--card);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding: 128px 0 0;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #eef6f4 0%, #f6f8fa 55%, var(--bg) 100%);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 20px;
}

.hero .eyebrow { display: block; text-align: center; }

.hero h1 { margin-bottom: 18px; }

.hero .lede {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 18px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 44px;
}

.vorxi-acronym {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.vorxi-acronym b { color: var(--accent-dim); }

.pillars-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
}

.pillar-chip {
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-dim);
}

.hero-scene {
  position: relative;
  z-index: 1;
  height: 220px;
  margin-top: 56px;
}

.hero-scene svg { width: 100%; height: 100%; display: block; }

/* Pulsing data nodes */
.node-pulse {
  animation: node-pulse 2.6s ease-in-out infinite;
  transform-origin: center;
}
.node-pulse.d1 { animation-delay: 0s; }
.node-pulse.d2 { animation-delay: .5s; }
.node-pulse.d3 { animation-delay: 1s; }
.node-pulse.d4 { animation-delay: 1.5s; }
.node-pulse.d5 { animation-delay: .8s; }

@keyframes node-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.6); }
}

.beam-flow {
  stroke-dasharray: 4 7;
  animation: beam-flow 6s linear infinite;
}
@keyframes beam-flow {
  to { stroke-dashoffset: -110; }
}

/* Proposition */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.prop-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.prop-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.prop-icon svg { width: 22px; height: 22px; stroke: var(--accent-dim); }

.prop-num {
  font-size: 13px;
  color: var(--accent-dim);
  font-weight: 700;
  margin-bottom: 14px;
}

.prop-card h3 { margin-bottom: 10px; }

/* Context strip */
.context-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

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

.context-card h4 {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 8px;
}

.context-card p { font-size: 14px; }

.callout {
  text-align: center;
  font-size: 19px;
  color: var(--text);
  font-weight: 600;
  max-width: 720px;
  margin: 0 auto;
}

/* Engines / Offerings */
.engine-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.engine-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

.engine-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.engine-head h3 { font-size: 24px; }

.engine-url {
  font-size: 13px;
  color: var(--accent-dim);
  font-family: 'SFMono-Regular', Consolas, monospace;
}

.engine-tagline {
  color: var(--text-dim);
  margin-bottom: 22px;
}

.engine-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  list-style: none;
}

.engine-features li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}

.engine-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.core-banner {
  text-align: center;
  padding: 28px;
  border: 1px dashed var(--accent-dim);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 0.04em;
  background: var(--accent-tint);
}

.core-banner b { color: var(--accent-dim); }

/* Delivery timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.tl-step {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
}

.tl-week {
  font-size: 12px;
  color: var(--accent-dim);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.tl-step h4 { font-size: 15px; margin-bottom: 8px; }

.tl-step p { font-size: 13px; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.price-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
}

.price-card h3 { margin-bottom: 6px; }

.price-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-dim);
  margin: 14px 0 20px;
}

.price-value span { font-size: 14px; color: var(--text-dim); font-weight: 500; }

.price-list {
  list-style: none;
  font-size: 14px;
}

.price-list li {
  padding: 8px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
}

.price-list li:first-child { border-top: none; }

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

/* Leadership */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}

.team-card h4 { font-size: 16px; }

.team-role {
  font-size: 12px;
  color: var(--accent-dim);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.team-card p { font-size: 13px; margin-bottom: 14px; }

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--bg-alt);
}

.team-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 48px;
  flex-wrap: wrap;
  text-align: center;
}

.stat-num { font-size: 30px; font-weight: 800; color: var(--accent-dim); }

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

/* Next steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-size: 13px;
  color: var(--accent-dim);
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card h3 { margin-bottom: 10px; font-size: 18px; }

.step-card p { font-size: 14px; margin-bottom: 18px; }

.step-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dim);
  letter-spacing: 0.02em;
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }

.contact-info p { margin-bottom: 24px; }

.info-line {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.info-line b { color: var(--text); display: block; font-size: 13px; }

.info-line span { color: var(--text-dim); }

.engine-links {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.engine-links a {
  display: inline-block;
  font-size: 13px;
  color: var(--accent-dim);
  margin-right: 18px;
  margin-bottom: 8px;
}

form.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

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

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

.contact-form .btn-primary { width: 100%; padding: 14px; font-size: 15px; }

.form-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 12px;
  text-align: center;
}

#form-success {
  display: none;
  background: var(--accent-tint);
  border: 1px solid var(--accent-dim);
  color: var(--accent-dim);
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 18px;
}

/* Footer */
footer {
  padding: 48px 0;
  text-align: center;
  background: var(--bg-alt);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a { font-size: 13px; color: var(--text-dim); }

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

footer .copyright { font-size: 12px; color: var(--text-dim); }

/* Responsive */
@media (max-width: 900px) {
  .prop-grid, .context-grid, .pricing-grid, .team-grid, .steps-grid, .timeline {
    grid-template-columns: 1fr 1fr;
  }
  .contact-wrap { grid-template-columns: 1fr; }
  .hero-scene { height: 160px; }
}

@media (max-width: 640px) {
  .menu-toggle { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 105px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    z-index: 50;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a { padding: 14px 4px; border-top: 1px solid var(--border); font-size: 15px; }
  .nav-links a:first-child { border-top: none; }
  .nav-links a[aria-current="page"]:not(.btn)::after { display: none; }
  .nav-links a.btn { margin-top: 14px; text-align: center; }

  body.nav-open { overflow: hidden; }

  .prop-grid, .context-grid, .pricing-grid, .team-grid, .steps-grid, .timeline, .engine-features, .form-row {
    grid-template-columns: 1fr;
  }
  .hero { padding: 90px 0 0; }
  .section { padding: 64px 0; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-scene { height: 130px; margin-top: 36px; }
}
