:root {
  --bg: #07070c;
  --bg-elev: #0d0d16;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ececf1;
  --text-muted: #9a9aab;
  --text-dim: #6a6a7c;
  --accent-a: #a78bfa;
  --accent-b: #38bdf8;
  --accent-c: #f472b6;
  --gradient: linear-gradient(135deg, #a78bfa 0%, #38bdf8 60%, #f472b6 120%);
  --radius: 14px;
  --radius-lg: 22px;
  --max-w: 1180px;
  --shadow-soft: 0 10px 40px -12px rgba(80, 60, 200, 0.35);
}

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

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

::selection {
  background: rgba(167, 139, 250, 0.35);
  color: #fff;
}

/* Splash loader — covers the page until window.load fires */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
      ellipse 70% 55% at 50% 45%,
      rgba(60, 40, 130, 0.35) 0%,
      transparent 70%
    ),
    var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.loader-logo {
  width: 140px;
  height: 140px;
  display: block;
  animation: loaderIntro 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) both,
    loaderBreathe 2.2s ease-in-out 0.55s infinite;
  filter: drop-shadow(0 0 24px rgba(167, 139, 250, 0.35));
}
.loader-bar {
  width: 140px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}
.loader-bar span {
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--gradient);
  border-radius: inherit;
  animation: loaderTrack 1.35s cubic-bezier(0.65, 0.05, 0.35, 1) infinite;
}
@keyframes loaderIntro {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes loaderBreathe {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.28));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 44px rgba(120, 200, 255, 0.55));
  }
}
@keyframes loaderTrack {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}
html.loading,
body.loading {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .loader-logo {
    animation: none;
  }
  .loader-bar span {
    animation: none;
    width: 100%;
    opacity: 0.6;
  }
}

/* Background effects */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 90% 60% at 50% 20%,
    black 40%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 90% 60% at 50% 20%,
    black 40%,
    transparent 100%
  );
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  animation: floatGlow 18s ease-in-out infinite alternate;
}
.glow-1 {
  top: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
}
.glow-2 {
  top: 20%;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
  animation-delay: -8s;
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(40px, 60px);
  }
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 120px 0;
  position: relative;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7, 7, 12, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 7, 12, 0.8);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.brand-logo {
  height: 100%;
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 4px 14px rgba(120, 90, 240, 0.22));
}
.brand:hover .brand-mark {
  transform: translateY(-1px) scale(1.03);
}
.brand:hover .brand-logo {
  filter: drop-shadow(0 6px 18px rgba(120, 90, 240, 0.4));
}

.brand-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text) !important;
  transition: all 0.2s ease;
}
.nav-cta:hover {
  border-color: var(--accent-a);
  background: rgba(167, 139, 250, 0.08);
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-family: "Instrument Serif", "Inter", serif;
  font-weight: 400;
}

.gradient-text.serif {
  font-family: "Instrument Serif", serif;
  font-style: italic;
}

.hero-sub {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 44px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #0a0a12;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px -12px rgba(120, 90, 240, 0.55);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--accent-a);
}

.btn-large {
  padding: 16px 28px;
  font-size: 15.5px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding: 22px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-wrap: wrap;
  justify-content: center;
}

.stat {
  text-align: left;
}
.stat-value {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 3px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-dim);
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Section head */
.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 72px;
}

.section-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--accent-a);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
  background: rgba(167, 139, 250, 0.06);
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 22px;
}

.section-lead {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.65;
}

/* Offer grid */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.offer-card {
  padding: 34px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.offer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.offer-card:hover {
  transform: translateY(-4px);
  background: var(--surface-hover);
  border-color: transparent;
}
.offer-card:hover::before {
  opacity: 1;
}

.offer-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.18),
    rgba(56, 189, 248, 0.12)
  );
  color: #cdb8ff;
  margin-bottom: 22px;
}
.offer-icon svg {
  width: 26px;
  height: 26px;
}

.offer-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.offer-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.offer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offer-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 14px;
}
.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

/* Approach pillars */
.section-approach {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(20, 15, 45, 0.25) 50%,
    transparent 100%
  );
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pillar {
  padding: 40px 32px;
  background: var(--bg);
  transition: background 0.3s ease;
  position: relative;
}
.pillar:hover {
  background: var(--bg-elev);
}

.pillar-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-a);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}

.pillar h4 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.pillar p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* Vision */
.section-vision {
  padding: 100px 0 120px;
}

.vision-card {
  padding: 80px 60px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(
      140deg,
      rgba(167, 139, 250, 0.08) 0%,
      rgba(56, 189, 248, 0.05) 50%,
      rgba(244, 114, 182, 0.06) 100%
    ),
    var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vision-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.4),
    transparent 40%,
    transparent 60%,
    rgba(56, 189, 248, 0.4)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.vision-title {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 20px auto 20px;
  max-width: 820px;
}

.vision-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.vision-marks {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.vision-marks span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.6;
}
.vision-marks span:nth-child(2) {
  opacity: 0.9;
  transform: scale(1.2);
}

/* Contact */
.section-contact {
  padding: 60px 0 140px;
}
.contact-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.contact-title {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.contact-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: rgba(7, 7, 12, 0.6);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-tagline {
  color: var(--text-dim);
  font-size: 13.5px;
}
.footer-meta {
  color: var(--text-dim);
  font-size: 13px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 780px) {
  .section {
    padding: 90px 0;
  }
  .hero {
    padding: 80px 0 60px;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .vision-card {
    padding: 50px 28px;
  }
  .hero-stats {
    gap: 18px;
    padding: 18px 22px;
  }
  .stat-divider {
    display: none;
  }
  .offer-card {
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
