:root {
  /* dark base tuned to the logo's near-black navy */
  --bg: #070b14;
  --bg-2: #0a1020;
  --surface: #0e1626;
  --surface-2: #121c30;
  --border: #1c2a4a;
  --text: #e9eef9;
  --muted: #97a4c2;
  --muted-2: #6a7794;
  /* brand blue sampled from the Dragon logo */
  --brand: #2f6fe0;
  --brand-2: #5a96ff;
  --brand-deep: #173a8f;
  /* complementary orange accent */
  --orange: #ff8a1f;
  --orange-2: #ffb24d;
  --accent: #5a96ff;
  --ring: rgba(47, 111, 224, 0.40);
  --ring-orange: rgba(255, 138, 31, 0.38);
  --maxw: 1180px;
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.75);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 14px;
}

.grad {
  background: linear-gradient(100deg, var(--brand-2) 0%, var(--brand) 48%, var(--orange) 118%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { object-fit: contain; filter: drop-shadow(0 0 12px rgba(47, 111, 224, .55)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: "Space Grotesk", sans-serif; }
.brand__name { font-weight: 700; letter-spacing: .14em; font-size: 1.02rem; }
.brand__sub { font-weight: 500; letter-spacing: .26em; font-size: .58rem; color: var(--muted); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--text) !important;
  background: linear-gradient(180deg, rgba(47,111,224,.20), rgba(47,111,224,.05));
}
.nav__cta:hover { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }

.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: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 0 96px; overflow: hidden; }
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(61,169,252,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,169,252,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero__glow {
  position: absolute; top: -200px; left: 38%; transform: translateX(-50%);
  width: 920px; height: 560px;
  background: radial-gradient(closest-side, rgba(47,111,224,.30), rgba(90,150,255,.10) 42%, transparent 70%);
  filter: blur(22px);
  pointer-events: none;
}
.hero__mark {
  position: absolute;
  right: -40px; top: 50%; transform: translateY(-50%);
  width: min(480px, 42vw);
  opacity: .14;
  filter: drop-shadow(0 0 60px rgba(47,111,224,.55));
  pointer-events: none;
  animation: floaty 9s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(-50%); } 50% { transform: translateY(-54%); } }
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 660px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__tags span {
  font-size: .8rem; color: var(--muted);
  border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.02);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease;
  will-change: transform;
}
.btn--lg { padding: 16px 34px; font-size: 1.02rem; }
.btn--primary {
  color: #2a1500;
  background: linear-gradient(100deg, var(--orange-2), var(--orange));
  box-shadow: 0 10px 30px -10px var(--ring-orange);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--ring-orange); }
.btn--ghost { color: var(--text); border: 1px solid var(--border); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 0 0 4px var(--ring); }

/* ---------- Strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.strip__item { padding: 28px 22px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.strip__item:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 22px; bottom: 22px; width: 1px; background: var(--border); }
.strip__k { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--text); }
.strip__v { font-size: .88rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 680px; margin-bottom: 52px; }
.section__title { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.section__desc { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2) 55%, var(--orange));
  opacity: 0; transition: opacity .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: #2c3c60; box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(160deg, rgba(47,111,224,.22), rgba(255,138,31,.12));
  border: 1px solid var(--border);
  background-repeat: no-repeat; background-position: center; background-size: 26px 26px;
}
.card h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.18rem; font-weight: 600; margin-bottom: 14px; }
.card ul { display: flex; flex-direction: column; gap: 9px; }
.card li { position: relative; padding-left: 20px; font-size: .92rem; color: var(--muted); }
.card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: linear-gradient(135deg, var(--orange), var(--orange-2)); }

/* icon glyphs via inline svg */
.card__icon[data-icon="substation"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a96ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V8l4-3 4 3v13'/%3E%3Cpath d='M12 21V11l4-3 4 3v10'/%3E%3Cpath d='M2 21h20'/%3E%3Cpath d='M8 11h0M16 14h0'/%3E%3C/svg%3E"); }
.card__icon[data-icon="line"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a96ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3v18M19 3v18'/%3E%3Cpath d='M5 6l14 3M5 11l14 3'/%3E%3C/svg%3E"); }
.card__icon[data-icon="study"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a96ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 14l3-4 3 3 4-6'/%3E%3C/svg%3E"); }
.card__icon[data-icon="grid"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a96ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E"); }
.card__icon[data-icon="datacenter"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a96ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='6' rx='1.5'/%3E%3Crect x='3' y='14' width='18' height='6' rx='1.5'/%3E%3Cpath d='M7 7h0M7 17h0'/%3E%3C/svg%3E"); }
.card__icon[data-icon="commission"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a96ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }

/* ---------- Capabilities / timeline ---------- */
.capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.timeline { display: flex; flex-direction: column; gap: 4px; }
.timeline li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: 0; }
.timeline__n { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--orange); font-size: 1rem; min-width: 34px; }
.timeline h4 { font-size: 1.02rem; font-weight: 600; margin-bottom: 3px; }
.timeline p { color: var(--muted); font-size: .92rem; }

/* ---------- Why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .25s, transform .25s;
}
.why:hover { border-color: #2c3c60; transform: translateY(-3px); }
.why h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.08rem; margin-bottom: 10px; }
.why h3::before { content: ""; display: block; width: 36px; height: 3px; border-radius: 3px; margin-bottom: 14px; background: linear-gradient(90deg, var(--brand), var(--orange)); }
.why p { color: var(--muted); font-size: .94rem; }

/* ---------- CTA ---------- */
.cta { padding: 88px 0; position: relative; }
.cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  background: linear-gradient(120deg, #0f1830, #0b1322 62%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 52px 48px;
  position: relative; overflow: hidden;
}
.cta__inner::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  background: radial-gradient(closest-side, rgba(47,111,224,.26), transparent 70%);
}
.cta__inner::before {
  content: ""; position: absolute; left: -100px; bottom: -140px; width: 320px; height: 320px;
  background: radial-gradient(closest-side, rgba(255,138,31,.16), transparent 70%);
}
.cta__copy { max-width: 620px; position: relative; }
.cta__contacts { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; }
.cta__email { font-family: "Space Grotesk", sans-serif; font-size: 1.16rem; font-weight: 600; color: var(--orange); }
.cta__email:hover { text-decoration: underline; }
.cta__loc { color: var(--muted); font-size: .92rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 44px 0; }
.footer__inner { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__name { font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: .14em; font-size: .92rem; }
.footer__tag { color: var(--muted); font-size: .76rem; letter-spacing: .1em; }
.footer__line { color: var(--muted); font-size: .9rem; }
.footer__copy { color: var(--muted-2); font-size: .82rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .capabilities { grid-template-columns: 1fr; gap: 36px; }
  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(2)::after { display: none; }
}
@media (max-width: 720px) {
  .nav__links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: rgba(10,14,26,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); padding: 10px 24px 22px; transform: translateY(-130%); transition: transform .35s ease; }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav__cta { text-align: center; margin-top: 12px; border-bottom: 0; }
  .nav__toggle { display: flex; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cards, .why-grid, .strip__inner { grid-template-columns: 1fr; }
  .strip__item::after { display: none !important; }
  .section { padding: 72px 0; }
  .cta__inner { padding: 38px 26px; }
  .hero { padding: 138px 0 72px; }
  .hero__mark { display: none; }
}
@media (max-width: 1080px) {
  .hero__mark { opacity: .08; right: -90px; }
}

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