/* =========================================================
   OFDV — Quantum-Tech Cryptocurrency
   Palette: Midnight Blue × Platinum-Silver
   American/European light-luxury · Sci-fi
   ========================================================= */

:root {
  --bg:        #070E1A;   /* near-black navy */
  --bg-2:      #0E1C3A;   /* raised navy panel */
  --bg-3:      #122A52;   /* deeper blue panel */
  --emerald:   #1E4E8C;   /* deep blue (primary) */
  --emerald-2: #5AA0E0;   /* luminous blue */
  --emerald-soft: rgba(90,160,224,0.14);
  --gold:      #AEBED2;   /* platinum */
  --gold-2:    #E6ECF2;   /* bright platinum / silver */
  --platinum:  #C9D4E0;   /* platinum accent */
  --gold-soft: rgba(201,212,224,0.10);
  --text:      #EAF0F8;   /* cool off-white */
  --muted:     #9DB2C8;   /* muted blue-grey */
  --border:    rgba(90,160,224,0.26);
  --border-gold: rgba(201,212,224,0.34);
  --glow-v:    rgba(90,160,224,0.42);
  --glow-g:    rgba(201,212,224,0.34);
  --maxw:      1200px;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Layered cosmic backdrop — midnight blue + platinum */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 50% at 15% 8%, rgba(30,78,140,0.26), transparent 60%),
    radial-gradient(55% 45% at 88% 22%, rgba(201,212,224,0.10), transparent 60%),
    radial-gradient(70% 60% at 50% 100%, rgba(46,111,183,0.16), transparent 60%);
}
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.04;
  background-image: radial-gradient(rgba(255,255,255,0.6) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.4px;
  color: var(--text);
  margin: 0 0 0.45em;
}
h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }

p { margin: 0 0 1.1em; color: var(--muted); }
a { color: var(--gold-2); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase; letter-spacing: 5px; font-size: 0.72rem;
  color: var(--gold-2); font-weight: 600; margin-bottom: 16px; display: inline-block;
}
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 1px; background: var(--gold-2); vertical-align: middle; margin-right: 12px; opacity: .8; }

.gold-text {
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 50%, var(--emerald-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--emerald-2), var(--gold));
  z-index: 100; transition: width .1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.4px;
  padding: 14px 32px; border-radius: 4px; cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(100deg, var(--emerald), var(--emerald-2));
  color: #061021; box-shadow: 0 12px 34px -12px var(--glow-v);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 46px -12px var(--glow-v); color:#061021; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-gold); }
.btn-ghost:hover { background: var(--gold-soft); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: rgba(7,14,26,0.74); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.55rem; font-weight: 700; letter-spacing: 2px; color: var(--text); }
.brand img { height: 36px; width: 36px; border-radius: 50%; object-fit: cover; }
.brand .dot { color: var(--gold-2); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.5px; font-weight: 500; position: relative; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:1px; background: var(--gold-2); transition: width .25s; }
.nav-links a:hover { color: var(--gold-2); }
.nav-links a:hover::after { width:100%; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 94vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-bg::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(7,14,26,0.5), rgba(7,14,26,0.82) 68%, var(--bg)); }
.hero::before {
  content:""; position:absolute; width: 620px; height: 620px; right: -160px; top: -120px; z-index: 0;
  background: radial-gradient(circle, rgba(90,160,224,0.32), transparent 65%); filter: blur(20px);
}
.hero .container { z-index: 2; }
.hero h1 { max-width: 940px; }
.hero p.lead { max-width: 640px; font-size: 1.18rem; color: var(--text); opacity: 0.88; margin-top: 22px; }
.hero-cta { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-cue { position:absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--muted); font-size: .72rem; letter-spacing: 3px; text-transform: uppercase; opacity:.7; }
.scroll-cue span { display:block; width:1px; height:34px; margin:8px auto 0; background: linear-gradient(var(--gold-2), transparent); }

/* ---------- Section heading ---------- */
.section-title { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section-title h2 { margin-bottom: 6px; }
.section-title p { margin: 0 auto; max-width: 560px; }

/* ---------- Principles band ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.principle { padding: 26px 22px; border-top: 1px solid var(--border-gold); }
.principle .num { font-family: var(--serif); font-size: 1.4rem; color: var(--gold-2); opacity: .85; }
.principle h4 { font-family: var(--serif); font-size: 1.2rem; margin: 10px 0 8px; color: var(--text); }
.principle p { font-size: .92rem; margin: 0; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative;
  background: linear-gradient(160deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border); border-radius: 14px; padding: 34px 30px;
  transition: transform .3s, border-color .3s, box-shadow .3s; overflow: hidden;
}
.card::before { content:""; position:absolute; left:0; top:0; height:3px; width:0; background: linear-gradient(90deg, var(--emerald-2), var(--gold-2)); transition: width .35s; }
.card:hover { transform: translateY(-6px); border-color: var(--border-gold); box-shadow: 0 26px 54px -24px var(--glow-v); }
.card:hover::before { width:100%; }
.card .ico { width: 48px; height: 48px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid var(--border-gold); margin-bottom: 18px; color: var(--gold-2); font-size: 1.35rem; }
.card .idx { position:absolute; top: 22px; right: 26px; font-family: var(--serif); font-size: 1.1rem; color: var(--emerald-2); opacity:.5; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.96rem; margin: 0; }

/* ---------- Tech pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.pillar { text-align: left; padding: 30px 26px; background: rgba(12,24,48,0.6); border: 1px solid var(--border); border-radius: 14px; }
.pillar .k { font-family: var(--serif); font-size: 2.2rem; color: var(--gold-2); display:block; margin-bottom: 8px; }
.pillar h3 { margin-bottom: 8px; }
.pillar p { font-size: .95rem; margin: 0; }

/* ---------- Split / media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { width: 100%; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 34px 70px -34px var(--glow-v); }
.split.reverse .media { order: 2; }

/* ---------- Quote block ---------- */
.quote { text-align: center; max-width: 920px; margin: 0 auto; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.35; color: var(--text); font-style: italic; margin: 0; }
.quote .mark { font-family: var(--serif); font-size: 3rem; color: var(--gold-2); opacity: .5; line-height: 1; }

/* ---------- Pills ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.pill { border: 1px solid var(--border-gold); color: var(--gold-2); padding: 8px 18px; border-radius: 999px; font-size: 0.85rem; letter-spacing: 0.5px; background: var(--gold-soft); }

/* ---------- CTA ---------- */
.cta { text-align:center; background: linear-gradient(160deg, var(--bg-2), var(--bg-3)); border: 1px solid var(--border-gold); border-radius: 20px; padding: 70px 30px; }
.cta h2 { margin-bottom: 14px; }
.cta p { max-width: 560px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 60px 0 42px; background: var(--bg-2); position: relative; z-index: 1; }
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: center; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 0.9rem; }
.foot-links a:hover { color: var(--gold-2); }
.foot-copy { color: var(--muted); font-size: 0.85rem; margin-top: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-2, .principles, .pillars { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .media { order: 0; }
  .nav-links { display: none; }
}
