/* ===========================
   Variables & Reset
   =========================== */
:root {
  --color-bg: #09090b;
  --color-bg-card: #111114;
  --color-bg-elevated: #18181c;
  --color-surface: #1c1c21;
  --color-text: #f0f0f3;
  --color-text-secondary: #a0a0b0;
  --color-text-muted: #6b6b80;
  --color-accent: #00d4ff;
  --color-accent-2: #6366f1;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(255, 255, 255, 0.12);
  --color-white: #ffffff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --max-width: 1200px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}

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

.section__label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  text-align: center;
}

.section__label--light {
  color: rgba(0, 212, 255, 0.8);
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 56px;
  color: var(--color-text);
}

.section__title--left {
  text-align: left;
}

.text-accent {
  color: var(--color-accent);
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 12px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.25);
}

.btn__arrow {
  transition: transform var(--transition);
  font-size: 1.1em;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.btn--nav {
  padding: 9px 20px;
  font-size: 0.825rem;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 0.95rem;
  border-radius: 10px;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-hover);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  filter: none;
}

.btn--white {
  background: var(--color-white);
  color: var(--color-bg);
}

.btn--white:hover {
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.2);
  filter: none;
}

/* ===========================
   Navigation
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.nav--scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(9, 9, 11, 0.92);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.nav__logo-mark {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-weight: 500;
  margin-right: 2px;
}

.nav__logo-accent {
  color: var(--color-accent);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__link:hover::after {
  width: 100%;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero__glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, rgba(99, 102, 241, 0.04) 40%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 8px 18px;
  margin-bottom: 32px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(0, 212, 255, 0);
  }
}

.hero__title {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero__metrics {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 20px 32px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.hero__metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__metric + .hero__metric {
  padding-left: 32px;
  border-left: 1px solid var(--color-border);
}

.hero__metric-num {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.hero__metric-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===========================
   Services
   =========================== */
.services {
  padding: 120px 0;
  position: relative;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card {
  background: var(--color-bg-card);
  padding: 40px 36px;
  position: relative;
  transition: background var(--transition);
}

.card:hover {
  background: var(--color-bg-elevated);
}

.card__number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.card__text {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.card__list {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card__list li {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.6;
}

.card__line {
  position: absolute;
  bottom: 0;
  left: 36px;
  right: 36px;
  height: 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  transition: height var(--transition);
}

.card:hover .card__line {
  height: 2px;
}

/* ===========================
   About
   =========================== */
.about {
  padding: 120px 0;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about__text {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.about .section__title {
  margin-bottom: 24px;
}

.about__highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), background var(--transition);
}

.highlight:hover {
  border-color: var(--color-border-hover);
  background: var(--color-bg-elevated);
}

.highlight__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  background: rgba(0, 212, 255, 0.08);
  border-radius: var(--radius);
  padding: 8px;
}

.highlight__icon svg {
  width: 100%;
  height: 100%;
}

.highlight h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.highlight p {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===========================
   Process
   =========================== */
.process {
  padding: 120px 0;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.step {
  padding: 0 28px;
  position: relative;
}

.step__head {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.step__number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.step__line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
  margin-left: 16px;
}

.step:last-child .step__line {
  display: none;
}

.step__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.step__text {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}



/* ===========================
   CTA Section
   =========================== */
.cta-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
}

.cta-section__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, rgba(99, 102, 241, 0.03) 40%, transparent 70%);
  pointer-events: none;
}

.cta-section__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-section__text {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ===========================
   Footer
   =========================== */
.footer {
  padding: 64px 0 0;
  background: var(--color-bg);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand .nav__logo {
  margin-bottom: 12px;
  display: inline-block;
}

.footer__tagline {
  font-size: 0.875rem;
  margin-top: 10px;
  color: var(--color-text-muted);
}

.footer__links h4,
.footer__contact h4 {
  font-family: var(--font-mono);
  color: var(--color-text-secondary);
  font-size: 0.725rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer__links a {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 12px;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-text);
}

.footer__contact a {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer__contact a:hover {
  color: var(--color-text);
}

.footer__contact p {
  font-size: 0.875rem;
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 24px;
  text-align: center;
  font-size: 0.775rem;
  color: var(--color-text-muted);
}

/* ===========================
   Scroll Animations
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.services__grid .card:nth-child(2) {
  transition-delay: 0.08s;
}

.services__grid .card:nth-child(3) {
  transition-delay: 0.16s;
}

.services__grid .card:nth-child(4) {
  transition-delay: 0.24s;
}

.services__grid .card:nth-child(5) {
  transition-delay: 0.32s;
}

.services__grid .card:nth-child(6) {
  transition-delay: 0.40s;
}

.process__steps .step:nth-child(2) {
  transition-delay: 0.1s;
}

.process__steps .step:nth-child(3) {
  transition-delay: 0.2s;
}

.process__steps .step:nth-child(4) {
  transition-delay: 0.3s;
}

.testimonials__grid .testimonial:nth-child(2) {
  transition-delay: 0.1s;
}

.testimonials__grid .testimonial:nth-child(3) {
  transition-delay: 0.2s;
}

/* ===========================
   Responsive — Tablet
   =========================== */
@media (max-width: 1024px) {
  .process__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .step__line {
    display: none;
  }

  .testimonials__grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials__grid .testimonial:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    justify-self: center;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__inner {
    gap: 48px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ===========================
   Responsive — Mobile
   =========================== */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 48px;
    background: var(--color-bg-elevated);
    border-left: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav__menu.open {
    transform: translateX(0);
  }

  .nav__menu .nav__link {
    font-size: 1.05rem;
  }

  .nav__menu .nav__link::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 130px 0 80px;
  }

  .hero__title {
    font-size: clamp(2.25rem, 8vw, 3rem);
  }

  .hero__metrics {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
  }

  .hero__metric + .hero__metric {
    padding-left: 0;
    padding-top: 16px;
    border-left: none;
    border-top: 1px solid var(--color-border);
    width: 100%;
  }

  .hero__actions {
    margin-bottom: 48px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about .section__title--left {
    text-align: center;
  }

  .about .section__label {
    text-align: center;
  }

  .about__text {
    text-align: center;
  }

  .process__steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .testimonials__grid .testimonial:last-child {
    max-width: 100%;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: auto;
  }
}