:root {
  --bg: #06080b;
  --bg-soft: #0b0e14;
  --surface: #10141c;
  --surface-2: #161c27;
  --surface-3: #1d2433;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --line-glow: rgba(255, 114, 20, 0.35);
  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;
  --orange: #ff6e14;
  --orange-soft: #ff9142;
  --orange-deep: #e05300;
  --orange-glow: rgba(255, 110, 20, 0.22);
  --cyan: #38bdf8;
  --green: #4ade80;
  --purple: #a855f7;
  --max: 1240px;
  --radius: 20px;
  --radius-sm: 10px;
  --display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  color-scheme: dark;
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% -10%, rgba(255, 110, 20, 0.12), transparent 45rem),
    radial-gradient(circle at 85% 25%, rgba(56, 189, 248, 0.05), transparent 35rem),
    radial-gradient(circle at 15% 65%, rgba(255, 110, 20, 0.06), transparent 35rem);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle background noise grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 9999;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #222a38; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #333f54; }

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

/* ============================================================
   STICKY HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 8, 11, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 110, 20, 0.25), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 110, 20, 0.35);
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px rgba(255, 110, 20, 0.2);
}

.brand-logo-wrap img { width: 22px; height: 22px; }

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-title {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}

.brand-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 110, 20, 0.12);
  border: 1px solid rgba(255, 110, 20, 0.3);
  color: var(--orange-soft);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links > a:not(.button) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
}

.nav-links > a:not(.button):hover {
  color: #fff;
}

.nav-links > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
  border-radius: 2px;
}

.nav-links > a:not(.button):hover::after {
  transform: scaleX(1);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(135deg, #ff7b25 0%, #ea580c 100%);
  color: #0d0703;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff8c3b 0%, #f97316 100%);
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}

.button.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 9px;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: #f1f5f9;
  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

.button .arrow {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.button:hover .arrow {
  transform: translateX(3px);
}

/* ============================================================
   TYPOGRAPHY & SECTION HEADERS
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 110, 20, 0.08);
  border: 1px solid rgba(255, 110, 20, 0.25);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.display {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(44px, 7.5vw, 84px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: #fff;
}

.display .accent {
  background: linear-gradient(135deg, #ff8c3b 0%, #ff5500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  max-width: 780px;
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: #fff;
}

.section-copy {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.section-head.center { text-align: center; }
.section-head.center .eyebrow { margin-inline: auto; }
.section-head.center .section-title,
.section-head.center .section-copy { margin-inline: auto; }

.section { padding: 110px 0; position: relative; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  background: #040608;
  position: relative;
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer-copy {
  max-width: 500px;
  margin-top: 16px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 28px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--dim);
  font-size: 12px;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .footer-main { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .nav { height: 64px; }
  .nav-links > a:not(.button) { display: none; }
  .nav .button.small { min-height: 38px; padding: 0 14px; font-size: 13px; }
  .section { padding: 64px 0; }
  .section-copy { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
