:root {
  --bg: #050505;
  --ink: #090806;
  --panel: rgba(14, 13, 11, .78);
  --panel-solid: #11100d;
  --panel-soft: #18150f;
  --text: #fff8e8;
  --muted: #c9c0ac;
  --soft: #8f8879;
  --gold: #c99a32;
  --gold-light: #f7dc86;
  --gold-dark: #8a5d15;
  --silver: #a9b0b8;
  --line: rgba(247, 220, 134, .22);
  --line-soft: rgba(255, 255, 255, .09);
  --shadow: 0 28px 90px rgba(0, 0, 0, .42);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 154, 50, .12), transparent 34%),
    linear-gradient(135deg, #050505 0%, #0b0905 48%, #050505 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 42vh;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to top, #050505, rgba(5,5,5,0));
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
p { color: var(--muted); line-height: 1.7; }

.site-header {
  position: sticky;
  top: 12px;
  z-index: 30;
  width: min(var(--max), calc(100% - 32px));
  min-height: 78px;
  margin: 12px auto 0;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(247, 220, 134, .18);
  border-radius: 12px;
  background: rgba(5, 5, 5, .72);
  box-shadow: 0 18px 55px rgba(0,0,0,.26);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled { background: rgba(5,5,5,.93); }

.brand {
  min-width: 248px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(247,220,134,.24);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(247,220,134,.14), rgba(255,255,255,.04));
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -70% 30% auto auto;
  width: 34px;
  height: 140px;
  background: rgba(255,255,255,.28);
  transform: rotate(28deg);
  animation: shine 5.5s ease-in-out infinite;
}

.brand-mark img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(201,154,50,.28));
}

.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 18px; line-height: 1; font-weight: 950; }
.brand-copy small { color: var(--gold-light); font-size: 11px; line-height: 1.2; font-weight: 850; text-transform: uppercase; }

.nav { display: flex; justify-content: center; gap: 24px; color: #ded4bf; font-size: 14px; font-weight: 800; }
.nav a { transition: color .18s ease; }
.nav a:hover { color: var(--gold-light); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.phone-link { color: var(--gold-light); font-size: 14px; font-weight: 900; white-space: nowrap; }
.mobile-nav,
.mobile-flow,
.mobile-cta { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(247, 220, 134, .35);
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--gold-light);
  box-shadow: 0 16px 40px rgba(201,154,50,.2);
}

.button-gold {
  color: #130f07;
  border: 0;
  background: linear-gradient(135deg, #fff1ae, var(--gold), var(--gold-dark));
}

.button-glass { background: rgba(255,255,255,.055); }
.button-compact { min-height: 46px; padding: 0 18px; }

.hero {
  position: relative;
  min-height: calc(100svh - 96px);
  overflow: hidden;
  margin-top: -90px;
  padding-top: 150px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .82;
  transform: scale(1.01);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.82) 35%, rgba(5,5,5,.34) 74%, rgba(5,5,5,.74) 100%),
    linear-gradient(to bottom, rgba(5,5,5,.52), rgba(5,5,5,.1) 42%, #050505 100%);
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: calc(100svh - 150px);
  margin: 0 auto;
  padding: 92px 0 74px;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(320px, .54fr);
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 24px var(--gold);
}

h1 {
  max-width: 800px;
  margin-bottom: 20px;
  font-size: clamp(44px, 5.7vw, 76px);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 { margin-bottom: 10px; font-size: 21px; }
.hero-text { max-width: 660px; color: #e5dcc7; font-size: clamp(17px, 1.55vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.proof-strip {
  max-width: 720px;
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.proof-strip span {
  min-height: 68px;
  padding: 14px 15px;
  border: 1px solid rgba(247,220,134,.2);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255,255,255,.055);
}

.proof-strip b { display: block; color: var(--gold-light); font-size: 18px; }

.hero-console {
  align-self: end;
  border: 1px solid rgba(247,220,134,.24);
  border-radius: 14px;
  padding: 18px;
  background: rgba(7,7,7,.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.console-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.console-top i { color: var(--gold-light); font-style: normal; }
.console-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.console-grid article {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(247,220,134,.15);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.console-grid small { display: block; color: var(--muted); margin-bottom: 12px; }
.console-grid strong { font-size: 34px; line-height: 1; }
.console-wide { grid-column: 1 / -1; }
.console-wide p { margin-bottom: 0; font-size: 13px; }

.flow-line {
  position: relative;
  height: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.flow-line::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.flow-line span {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 22px rgba(247,220,134,.5);
  animation: pulse 2.4s ease-in-out infinite;
}

.flow-line span:nth-child(2) { animation-delay: .2s; }
.flow-line span:nth-child(3) { animation-delay: .4s; }
.flow-line span:nth-child(4) { animation-delay: .6s; }

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-head p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 16px;
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.why-item,
.case-card,
.contact-card,
.system-list article,
.timeline li {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.service-card {
  position: relative;
  min-height: 265px;
  padding: 24px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247,220,134,.55), transparent);
  opacity: 0;
  transition: opacity .2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(247,220,134,.42);
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035));
}

.service-card:hover::after { opacity: 1; }
.service-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
}

.system-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 36px;
  align-items: center;
  border-top: 1px solid rgba(247,220,134,.12);
  border-bottom: 1px solid rgba(247,220,134,.12);
}

.system-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(247,220,134,.2);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.system-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.16), transparent 22%, transparent 68%, rgba(247,220,134,.12));
  pointer-events: none;
}

.system-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.system-copy h2 { margin-bottom: 24px; }
.system-list { display: grid; gap: 12px; }
.system-list article { padding: 20px; }
.system-list strong { display: block; margin-bottom: 8px; color: var(--gold-light); font-size: 18px; }
.system-list p { margin-bottom: 0; }

.why-grid,
.case-grid,
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.why-item,
.case-card,
.timeline li { padding: 24px; }
.why-item { min-height: 240px; }
.why-item strong,
.timeline span { color: var(--gold-light); font-weight: 950; }

.case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-card { min-height: 245px; }
.case-card small {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--gold-light);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.timeline {
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li { min-height: 255px; }
.timeline span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 26px;
  border-radius: 50%;
  color: #120f08;
  background: linear-gradient(135deg, #fff2b4, var(--gold));
}

.contact-section { padding-bottom: 48px; }
.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 6vw, 68px);
  background:
    linear-gradient(120deg, rgba(247,220,134,.16), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
}

.contact-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(247,220,134,.18);
  border-radius: 50%;
}

.contact-card p { max-width: 780px; font-size: 18px; }

.footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 46px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--soft);
  border-top: 1px solid rgba(247,220,134,.14);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

@keyframes pulse {
  0%, 100% { transform: scale(.8); opacity: .72; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes shine {
  0%, 72% { transform: translateX(-120px) rotate(28deg); opacity: 0; }
  80% { opacity: 1; }
  100% { transform: translateX(140px) rotate(28deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .service-card { transition: none; }
  .flow-line span, .brand-mark::after { animation: none; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; align-items: end; padding-top: 126px; }
  .hero-console { max-width: 620px; }
  .service-grid, .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid, .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-section { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { padding-bottom: 76px; }

  .site-header {
    top: 8px;
    width: min(100% - 24px, var(--max));
    min-height: 70px;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 9px;
  }

  .brand { min-width: 0; gap: 9px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-mark img { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 9px; }
  .phone-link { display: none; }
  .button-compact { min-height: 42px; padding: 0 14px; font-size: 14px; }

  .mobile-nav {
    position: sticky;
    top: 88px;
    z-index: 25;
    width: min(100% - 24px, var(--max));
    margin: 8px auto 0;
    padding: 7px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    border: 1px solid rgba(247,220,134,.16);
    border-radius: 12px;
    background: rgba(5,5,5,.76);
    box-shadow: 0 14px 36px rgba(0,0,0,.26);
    backdrop-filter: blur(14px);
  }

  .mobile-nav a {
    min-height: 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #e7dcc4;
    background: rgba(255,255,255,.045);
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-nav a:active {
    color: #120f08;
    background: linear-gradient(135deg, #fff2b4, var(--gold));
  }

  .hero {
    min-height: auto;
    margin-top: -138px;
    padding-top: 188px;
  }

  .hero-bg { object-position: 70% center; opacity: .66; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5,5,5,.97), rgba(5,5,5,.78)),
      radial-gradient(circle at 85% 22%, rgba(201,154,50,.2), transparent 34%),
      linear-gradient(to bottom, rgba(5,5,5,.64), rgba(5,5,5,.18) 46%, #050505 100%);
  }

  .hero-inner {
    width: min(100% - 24px, var(--max));
    min-height: auto;
    padding: 58px 0 50px;
    gap: 18px;
  }

  h1 { font-size: 39px; line-height: 1.04; }
  h2 { font-size: 31px; }
  h3 { font-size: 20px; }
  .hero-text, .section-head p:not(.eyebrow), .contact-card p { font-size: 17px; }
  .hero-actions { grid-template-columns: 1fr; display: grid; margin-top: 24px; }
  .button { width: 100%; white-space: normal; text-align: center; }

  .proof-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 22px;
  }

  .proof-strip span {
    min-height: 58px;
    display: grid;
    grid-template-columns: 68px 1fr;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(8,8,8,.64);
    backdrop-filter: blur(10px);
  }

  .proof-strip b {
    min-height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(247,220,134,.2);
    border-radius: 8px;
    background: rgba(247,220,134,.08);
  }

  .mobile-flow {
    margin-top: 12px;
    padding: 16px;
    display: block;
    border: 1px solid rgba(247,220,134,.2);
    border-radius: 12px;
    background:
      linear-gradient(145deg, rgba(247,220,134,.1), rgba(255,255,255,.035)),
      rgba(5,5,5,.62);
    box-shadow: 0 16px 40px rgba(0,0,0,.24);
  }

  .mobile-flow strong {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-light);
    font-size: 15px;
  }

  .mobile-flow p {
    margin-bottom: 0;
    color: #f4ead3;
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-console {
    display: block;
    max-width: none;
    margin-top: 4px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(5,5,5,.68);
  }

  .console-grid { gap: 8px; }
  .console-grid article {
    min-height: 90px;
    padding: 13px;
  }
  .console-grid strong { font-size: 28px; }
  .flow-line { height: 38px; }
  .console-wide p { font-size: 12px; }

  .section {
    width: min(100% - 24px, var(--max));
    padding: 56px 0;
  }

  .section-head { margin-bottom: 22px; }
  .eyebrow { font-size: 11px; line-height: 1.3; }

  .service-grid,
  .case-grid,
  .why-grid,
  .timeline { grid-template-columns: 1fr; }

  .service-card,
  .why-item,
  .case-card,
  .timeline li,
  .system-list article {
    min-height: auto;
    padding: 20px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.03));
  }

  .service-card span { margin-bottom: 18px; }
  .system-section { gap: 22px; }
  .system-visual { border-radius: 14px; }
  .system-visual img {
    min-height: 260px;
    object-position: 58% center;
  }
  .case-card small { margin-bottom: 16px; }
  .timeline span { margin-bottom: 18px; }
  .contact-section { padding-bottom: 36px; }
  .contact-card { padding: 24px 20px; }
  .contact-card::after { width: 210px; height: 210px; }
  .footer { flex-direction: column; }

  .mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(247,220,134,.22);
    border-radius: 16px;
    background: rgba(5,5,5,.82);
    box-shadow: 0 18px 55px rgba(0,0,0,.45);
    backdrop-filter: blur(16px);
  }

  .mobile-cta a {
    min-height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-weight: 950;
  }

  .mobile-cta a:first-child {
    color: var(--gold-light);
    border: 1px solid rgba(247,220,134,.22);
    background: rgba(255,255,255,.055);
  }

  .mobile-cta a:last-child {
    color: #120f08;
    background: linear-gradient(135deg, #fff2b4, var(--gold), var(--gold-dark));
  }
}

@media (max-width: 390px) {
  h1 { font-size: 34px; }
  .brand-copy small { display: none; }
  .button-compact { padding: 0 12px; }
  .mobile-nav a { font-size: 11px; }
  .console-grid { grid-template-columns: 1fr; }
  .console-wide { grid-column: auto; }
}
