/* =========================================================
   Pharoah Technology Ltd — brand stylesheet
   Gold #D4AF37 · Light Gold #F4D47A · Graphite #0F1115
   Dark Grey #181E24 · Silver #A7A7A7 · Electric Blue #0066FF
   Type: Exo 2 (display) · Inter (body)
   ========================================================= */

:root {
  --gold: #D4AF37;
  --gold-lt: #F4D47A;
  --gold-dk: #9c7d1f;
  --graphite: #0F1115;
  --grey: #181E24;
  --grey-2: #20262e;
  --silver: #A7A7A7;
  --white: #FFFFFF;
  --blue: #0066FF;

  --bg: var(--graphite);
  --panel: rgba(255, 255, 255, 0.03);
  --line: rgba(212, 175, 55, 0.16);
  --text: #E7E9EC;
  --muted: #9aa1ab;

  --gold-grad: linear-gradient(120deg, var(--gold-lt), var(--gold) 55%, var(--gold-dk));
  --maxw: 1180px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient radial background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(212,175,55,0.10), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(0,102,255,0.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: 'Exo 2', sans-serif; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; color: var(--white); }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }

.grad {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.kicker {
  display: inline-block;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn--gold { background: var(--gold-grad); color: #1a1407; box-shadow: 0 8px 30px rgba(212,175,55,0.28); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(212,175,55,0.42); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--white); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(15,17,21,0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { object-fit: cover; border-radius: 9px; filter: drop-shadow(0 2px 10px rgba(212,175,55,0.35)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
/* Wordmark matched to the logo: gold PHAROAH, silver TECHNOLOGY LTD */
.brand__name { font-family: 'Exo 2', sans-serif; font-weight: 900; font-size: 1.15rem; letter-spacing: 0.18em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.brand__sub { font-family: 'Exo 2', sans-serif; font-weight: 600; font-size: 0.6rem; letter-spacing: 0.4em; color: var(--silver); margin-top: 3px; }
.nav__links { margin-left: auto; display: flex; gap: 30px; }
.nav__links a { font-size: 0.92rem; color: var(--silver); font-weight: 500; position: relative; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold-grad); transition: width .25s var(--ease); }
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: 9px 22px; font-size: 0.88rem; }
.nav__toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--gold); transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 80px; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* Cinematic background video (hidden until it can actually play) */
.hero__video { position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: 0; transition: opacity 1.1s var(--ease); pointer-events: none; }
.hero.has-video .hero__video { opacity: 1; }
.hero.has-video .hero__canvas { opacity: 0; } /* 3D powers down when video runs */
.hero__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,17,21,0.92) 0%, rgba(15,17,21,0.6) 45%, rgba(15,17,21,0.25) 100%),
    linear-gradient(0deg, rgba(15,17,21,0.95), rgba(15,17,21,0.1) 55%);
}

.hero__glow {
  position: absolute; top: -10%; right: -5%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(212,175,55,0.18), transparent 62%);
  filter: blur(20px); z-index: 0; pointer-events: none;
}
.hero__inner { max-width: 860px; }
.eyebrow { font-family: 'Exo 2', sans-serif; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; font-size: 0.8rem; color: var(--gold); margin-bottom: 24px; }
.eyebrow .dot { color: var(--silver); margin: 0 4px; }
.hero__title { font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-weight: 900; line-height: 1.04; margin-bottom: 24px; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 620px; color: var(--silver); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__pills li {
  font-family: 'Exo 2', sans-serif; font-weight: 600; font-size: 0.82rem; color: var(--text);
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); backdrop-filter: blur(4px);
}
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--gold); font-size: 1.4rem; z-index: 2; animation: bob 2s infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Capability strip ---------- */
.strip { padding: 60px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(24,30,36,0.5), transparent); }
.strip__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.cap { text-align: center; padding: 6px; }
.cap__icon { font-size: 1.6rem; color: var(--gold); margin-bottom: 12px; }
.cap h3 { font-size: 1.02rem; margin-bottom: 6px; }
.cap p { font-size: 0.86rem; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, rgba(24,30,36,0.55), rgba(15,17,21,0)); border-top: 1px solid var(--line); }
.section__head { max-width: 680px; margin-bottom: 52px; }
.section__lead { font-size: 1.08rem; margin-top: 14px; }

/* ---------- Divisions ---------- */
.divisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.division {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .3s var(--ease), border-color .3s, background .3s;
  position: relative; overflow: hidden;
}
.division::before { content: ""; position: absolute; inset: 0; background: var(--gold-grad); opacity: 0; transition: opacity .3s; }
.division:hover { transform: translateY(-6px); border-color: rgba(212,175,55,0.5); background: rgba(212,175,55,0.04); }
.division header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.division__tag {
  font-family: 'Exo 2', sans-serif; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--gold); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; min-width: 44px; text-align: center;
}
.division p { font-size: 0.95rem; }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 24px; transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s;
  position: relative; overflow: hidden; color: inherit;
}
.product::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold-grad); opacity: 0; transition: opacity .3s;
}
.product--live { cursor: pointer; }
.product--live:hover { transform: translateY(-6px); border-color: rgba(212,175,55,0.5); background: rgba(212,175,55,0.04); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.product--live:hover::after { opacity: 1; }
.product--soon { opacity: 0.92; }
.product--soon:hover { transform: translateY(-4px); border-color: rgba(167,167,167,0.4); }
.product--more { border-style: dashed; }
.product--more:hover { border-color: rgba(212,175,55,0.5); transform: translateY(-4px); }
.product__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product__name { font-family: 'Exo 2', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--white); letter-spacing: 0.02em; }
.product__tag { font-family: 'Exo 2', sans-serif; font-weight: 600; font-size: 0.98rem; color: var(--gold-lt); }
.product__desc { font-size: 0.92rem; color: var(--muted); flex: 1; }
.product__link { font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: 0.88rem; color: var(--gold); margin-top: 4px; }
.product__link a { color: var(--gold); }
.badge {
  font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px; white-space: nowrap; flex-shrink: 0;
}
.badge--live { color: #0c1f12; background: linear-gradient(120deg, #8fe3a6, #36c46a); }
.badge--soon { color: var(--silver); background: rgba(167,167,167,0.12); border: 1px solid rgba(167,167,167,0.3); }

/* ---------- What we build ---------- */
.build { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.build__copy h2 { margin-bottom: 18px; }
.build__copy p { margin-bottom: 26px; font-size: 1.05rem; }
.build__list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: transform .3s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(212,175,55,0.45); }
.feature h4 { font-size: 1.05rem; margin-bottom: 8px; color: var(--gold-lt); }
.feature p { font-size: 0.92rem; }

/* ---------- Stats & values ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 60px; }
.stat { text-align: center; padding: 30px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.stat__num { display: block; font-family: 'Exo 2', sans-serif; font-weight: 900; font-size: clamp(2rem, 4vw, 2.8rem); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { font-size: 0.85rem; color: var(--silver); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { padding: 24px; border-left: 2px solid var(--gold); background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; }
.value h4 { font-size: 1rem; margin-bottom: 8px; }
.value p { font-size: 0.9rem; }

/* ---------- Roadmap ---------- */
.roadmap { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: phase; }
.phase { position: relative; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.phase::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 3px; background: var(--gold-grad); border-radius: 3px; opacity: 0.7; }
.phase__no { font-family: 'Exo 2', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; }
.phase h4 { font-size: 1.2rem; margin: 8px 0 8px; }
.phase p { font-size: 0.92rem; margin-bottom: 14px; }
.phase__when { font-size: 0.82rem; color: var(--silver); }

/* ---------- About ---------- */
.about__inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 56px; align-items: center; }
.about__copy h2 { margin-bottom: 20px; }
.about__copy p { font-size: 1.05rem; margin-bottom: 16px; }
.about__sig { color: var(--gold-lt); font-family: 'Exo 2', sans-serif; font-weight: 600; }
.about__benefits { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about__benefits li {
  font-family: 'Exo 2', sans-serif; font-weight: 600; font-size: 0.92rem; color: var(--text);
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  position: relative; padding-left: 38px;
}
.about__benefits li::before { content: "◆"; position: absolute; left: 16px; color: var(--gold); font-size: 0.7rem; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__copy h2 { margin-bottom: 16px; }
.contact__copy p { font-size: 1.05rem; margin-bottom: 28px; }
.contact__details { list-style: none; display: grid; gap: 16px; }
.contact__details li { display: flex; flex-direction: column; gap: 2px; }
.contact__details span:first-child { font-family: 'Exo 2', sans-serif; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.contact__details a { font-size: 1.05rem; color: var(--white); transition: color .2s; }
.contact__details a:hover { color: var(--gold-lt); }
.contact__form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--silver); }
.field input, .field textarea {
  font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--white);
  background: rgba(0,0,0,0.25); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.15); }
.form__note { font-size: 0.88rem; min-height: 1.2em; }
.form__note.ok { color: var(--gold-lt); }
.form__note.err { color: #ff8585; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(10,11,14,0.6); padding-top: 50px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-bottom: 36px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__logo { width: 260px; max-width: 72vw; height: auto; display: block; }
.footer__brand .brand__name { display: block; font-family: 'Exo 2', sans-serif; font-weight: 900; letter-spacing: 0.18em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.footer__brand .brand__sub { display: block; font-family: 'Exo 2', sans-serif; font-size: 0.58rem; letter-spacing: 0.36em; color: var(--silver); }
.footer__links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { font-size: 0.9rem; color: var(--silver); transition: color .2s; }
.footer__links a:hover { color: var(--gold-lt); }
.footer__tag { font-family: 'Exo 2', sans-serif; letter-spacing: 0.18em; font-size: 0.78rem; color: var(--gold); width: 100%; text-align: center; padding-top: 8px; }
.footer__bar { border-top: 1px solid var(--line); padding: 18px 0; }
.footer__bar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer__bar-inner span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Elite chrome: scrollbar / cursor / grain ---------- */
.scrollbar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform; box-shadow: 0 0 12px rgba(212,175,55,0.5);
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px; margin: -230px 0 0 -230px;
  border-radius: 50%; pointer-events: none; z-index: 5; opacity: 0;
  background: radial-gradient(circle, rgba(212,175,55,0.10), transparent 60%);
  mix-blend-mode: screen; transition: opacity .4s; will-change: transform;
}
.grain {
  position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero HUD frame + status chip ---------- */
.hero__hud { position: absolute; inset: 26px; z-index: 1; pointer-events: none; }
.hud__bracket { position: absolute; width: 26px; height: 26px; border: 2px solid var(--gold); opacity: 0.45; }
.hud__bracket--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud__bracket--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud__bracket--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud__bracket--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.status {
  display: inline-flex; align-items: center; gap: 10px; font-family: 'Exo 2', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; background: var(--panel);
  backdrop-filter: blur(6px); margin-bottom: 22px;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-lt); box-shadow: 0 0 0 0 rgba(212,175,55,0.6); animation: ping 2s infinite; }
.status__sep { color: var(--gold); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.55); } 70% { box-shadow: 0 0 0 9px rgba(212,175,55,0); } 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); } }

/* ---------- Reveal animation ---------- */
/* Only hide-and-animate when JS is active; without JS everything stays visible. */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .strip__grid { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .divisions { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .build { grid-template-columns: 1fr; gap: 36px; }
  .stats, .values, .roadmap { grid-template-columns: repeat(2, 1fr); }
  .about__inner, .contact__inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .nav__links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(15,17,21,0.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 10px 0; }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 14px 20px; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .build__list { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .stats, .values, .roadmap, .about__benefits { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
