* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-body);
  background: var(--gradient-page);
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--gradient-aurora);
  pointer-events: none;
  z-index: -4;
  opacity: 0.9;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  width: 100%;
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote {
  margin: 0;
}

address {
  font-style: normal;
}

::selection {
  background: rgba(17, 188, 201, 0.26);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.container--wide {
  width: var(--container-wide);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section--tight {
  padding-block: var(--section-space-tight);
}

.flow-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wrap {
  flex-wrap: wrap;
}

.stack-sm > * + * {
  margin-top: var(--space-3);
}

.stack-md > * + * {
  margin-top: var(--space-5);
}

.stack-lg > * + * {
  margin-top: var(--space-7);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: var(--lh-title);
  letter-spacing: var(--tracking-title);
  color: var(--text);
}

p {
  color: var(--text-soft);
  line-height: var(--lh-body);
}

.site-noise,
.site-bg-orb,
.site-bg-image {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.site-noise {
  z-index: -3;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-bg-image {
  z-index: -5;
  background:
    linear-gradient(180deg, rgba(4, 11, 17, 0.84) 0%, rgba(4, 11, 17, 0.58) 28%, rgba(4, 11, 17, 0.76) 100%),
    url("../images/bg-site-overlay.jpg") center center / cover no-repeat;
  opacity: 0.5;
  transform: scale(1.05);
}

.site-bg-orb {
  z-index: -4;
  filter: blur(110px);
  opacity: 0.42;
}

.site-bg-orb.orb-a {
  background: rgba(17, 188, 201, 0.22);
  transform: translate(-20%, -18%);
}

.site-bg-orb.orb-b {
  background: rgba(241, 176, 95, 0.18);
  transform: translate(56%, -4%);
}

.site-bg-orb.orb-c {
  background: rgba(56, 113, 255, 0.16);
  transform: translate(18%, 48%);
}

.site-scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  z-index: 999;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 24px rgba(17, 188, 201, 0.28);
}

.glass-shell,
.glass-card {
  background: var(--gradient-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  box-shadow: var(--shadow-md);
}

.hairline-border {
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow-md);
}

.premium-card {
  position: relative;
  overflow: clip;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow-md);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.premium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent 30%, transparent 72%, rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.premium-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(17, 188, 201, 0.06);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow--glow {
  box-shadow: 0 0 0 1px rgba(17, 188, 201, 0.12), 0 0 30px rgba(17, 188, 201, 0.14);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--accent {
  color: #fff0d5;
  background: rgba(241, 176, 95, 0.16);
  border-color: rgba(241, 176, 95, 0.24);
}

.section-heading {
  max-width: 840px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.section-heading h2 {
  font-size: var(--fs-h2);
  margin: 12px 0 14px;
  text-wrap: balance;
}

.section-heading p {
  max-width: 760px;
  font-size: var(--fs-body-lg);
}

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 12px 0 0;
  transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base), padding var(--transition-base);
}

.site-header.is-scrolled {
  position: fixed;
  padding-top: 10px;
}

.site-header.is-scrolled .header-shell {
  background: rgba(7, 19, 29, 0.78);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-height);
  padding: 14px 18px;
  border-radius: var(--radius-pill);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand__logo {
  width: auto;
  height: 80px;
  object-fit: contain;
}

.main-nav__list {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-weight: 700;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.main-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.reveal,
.reveal-right {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
  filter: blur(8px);
}

.reveal-right {
  transform: translateX(30px);
}

.is-visible {
  opacity: 1;
  transform: translate(0, 0);
  filter: blur(0);
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

@media (max-width: 1120px) {
  .header-shell {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding-top: 10px;
  }

  .site-header.is-scrolled {
    padding-top: 8px;
  }

  .header-shell {
    gap: 14px;
  }

  .main-nav {
    display: none;
  }

  .brand__logo {
    height: 36px;
  }
}

@media (max-width: 640px) {
  .container,
  .container--wide {
    width: min(100% - 20px, 1240px);
  }

  .section {
    padding-block: var(--section-space-tight);
  }

  .header-shell {
    padding: 12px 14px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .site-bg-image {
    opacity: 0.48;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal,
  .reveal-right {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .premium-card:hover {
    transform: none;
  }
}
