/* =============================================
   VELA Technologies — Institutional Dark Gold
   ============================================= */

:root {
  --bg: #0d0d14;
  --bg-surface: #141420;
  --bg-elevated: #1a1a2e;
  --gold: #e8c547;
  --gold-dim: rgba(232, 197, 71, 0.12);
  --gold-glow: rgba(232, 197, 71, 0.06);
  --ivory: #f5f0e8;
  --ivory-dim: rgba(245, 240, 232, 0.55);
  --ivory-muted: rgba(245, 240, 232, 0.28);
  --border: rgba(232, 197, 71, 0.18);
  --border-subtle: rgba(232, 197, 71, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: 'Sora', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
.serif { font-family: 'Fraunces', serif; }

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.label {
  font-family: 'Sora', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,197,71,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,197,71,0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 100%);
}

.hero-nodes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero-nodes svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.4rem 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
  background: var(--gold-dim);
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--ivory);
  margin-bottom: 1.8rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
  display: inline;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--ivory-dim);
  font-weight: 300;
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.75;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-stat-value {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hero-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  font-weight: 500;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--ivory-muted);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-scroll-bar {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── ENGINE SECTION ── */
.engines {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.engines-header {
  max-width: 600px;
  margin-bottom: 4rem;
}

.engines-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ivory);
  margin-bottom: 1rem;
}

.engines-header p {
  color: var(--ivory-dim);
  font-size: 1rem;
}

.engine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

.engine-card {
  background: var(--bg-surface);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.engine-card:hover {
  background: var(--bg-elevated);
}

.engine-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.engine-card:hover::before { opacity: 1; }

.engine-number {
  font-family: 'Fraunces', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--border-subtle);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.engine-name {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 0.6rem;
}

.engine-tagline {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.engine-desc {
  color: var(--ivory-dim);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.engine-metrics {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.engine-metric-val {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ivory);
}

.engine-metric-lbl {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  margin-top: 0.2rem;
}

/* ── PRINCIPLES SECTION ── */
.principles {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
}

.principles-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 768px) {
  .principles-inner { grid-template-columns: 1fr; }
}

.principles-left h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--ivory);
  margin-bottom: 1.2rem;
}

.principles-left p {
  color: var(--ivory-dim);
  font-size: 1rem;
  line-height: 1.8;
}

.principles-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.principle-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.2rem;
  border: 1px solid var(--border-subtle);
  background: var(--gold-glow);
  transition: border-color 0.3s;
}

.principle-item:hover { border-color: var(--border); }

.principle-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gold-dim);
}

.principle-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.principle-text strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 0.3rem;
}

.principle-text span {
  font-size: 0.85rem;
  color: var(--ivory-dim);
  line-height: 1.6;
}

/* ── VISION SECTION ── */
.vision {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.vision-inner {
  max-width: 860px;
  margin: 0 auto;
}

.vision h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--ivory);
  margin-bottom: 1.5rem;
}

.vision h2 em {
  font-style: normal;
  color: var(--gold);
}

.vision-body {
  font-size: 1.1rem;
  color: var(--ivory-dim);
  line-height: 1.85;
  margin-bottom: 3rem;
  font-weight: 300;
}

.vision-path {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.vision-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border-subtle);
  position: relative;
  flex: 1;
  min-width: 140px;
  background: var(--bg);
}

.vision-phase::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid var(--border);
  transform: translateY(-50%);
}

.vision-phase:last-child::after { display: none; }

.vision-phase-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.vision-phase-title {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 0.4rem;
}

.vision-phase-desc {
  font-size: 0.72rem;
  color: var(--ivory-muted);
  line-height: 1.4;
}

/* ── CLOSING SECTION ── */
.closing {
  padding: clamp(6rem, 12vw, 10rem) clamp(1.5rem, 5vw, 5rem);
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gold-dim) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--ivory);
  margin-bottom: 1.5rem;
  font-weight: 900;
}

.closing h2 em {
  font-style: italic;
  color: var(--gold);
}

.closing p {
  font-size: 1.15rem;
  color: var(--ivory-dim);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.closing-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 2rem;
  opacity: 0.6;
}

.closing-founder {
  font-size: 0.82rem;
  color: var(--ivory-muted);
  letter-spacing: 0.05em;
}

.closing-founder strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ivory-dim);
  margin-bottom: 0.2rem;
  letter-spacing: 0;
}

/* ── FOOTER ── */
.footer {
  padding: 2rem clamp(1.5rem, 5vw, 5rem);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-size: 0.72rem;
  color: var(--ivory-muted);
  margin-top: 0.2rem;
  letter-spacing: 0.08em;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--ivory-muted);
  letter-spacing: 0.05em;
}

/* ── MOBILE ── */
@media (max-width: 640px) {
  .hero-stats { gap: 2rem; }
  .hero-stat-value { font-size: 1.6rem; }
  .vision-path { gap: 1rem; }
  .vision-phase::after { display: none; }
  .footer { flex-direction: column; align-items: flex-start; }
}
