:root {
  --color-bg: #0c1220;
  --color-bg-alt: #111827;
  --color-surface: #1a2332;
  --color-surface-hover: #243044;
  --color-text: #e8edf5;
  --color-text-muted: #94a3b8;
  --color-accent: #e85d2a;
  --color-accent-light: #ff7a45;
  --color-accent-glow: rgba(232, 93, 42, 0.25);
  --color-water: #3b9eff;
  --color-border: rgba(148, 163, 184, 0.15);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.45s; }

body.is-loaded .hero .reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 18, 32, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  transition:
    transform 0.7s var(--ease-out-expo),
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

body.is-loaded .header {
  transform: translateY(0);
}

.header--scrolled {
  background: rgba(12, 18, 32, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  transition: transform var(--transition);
}

.logo__img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.logo__text strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  white-space: nowrap;
}

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

.logo__sub {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.logo__sub::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--color-accent);
  margin-right: 0.4rem;
  vertical-align: middle;
  border-radius: 1px;
}

.nav {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}

.nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.85rem 0.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.nav a.nav__cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-right: -10px;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  position: relative;
  padding: 6.5rem 0 3rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  pointer-events: none;
  overflow: hidden;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orb-float 12s ease-in-out infinite;
}

.hero__orb--1 {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, var(--color-accent-glow), transparent 70%);
}

.hero__orb--2 {
  width: 220px;
  height: 220px;
  bottom: -60px;
  left: -40px;
  background: radial-gradient(circle, rgba(59, 158, 255, 0.18), transparent 70%);
  animation-delay: -6s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 16px) scale(1.06); }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-water);
}

.hero__lead {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero__actions .btn {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 30px var(--color-accent-glow);
}

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

.btn--full {
  width: 100%;
}

.hero__card {
  background: linear-gradient(160deg, rgba(36, 48, 68, 0.9), rgba(26, 35, 50, 0.95));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 93, 42, 0.08), transparent 50%);
  pointer-events: none;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
}

.hero__stat-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* Trust bar */
.trust {
  border-block: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.trust__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1.25rem 0;
}

.trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text-muted);
}

.trust__item svg {
  color: var(--color-accent);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.section__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section__header p {
  color: var(--color-text-muted);
}

/* Services */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition:
    transform 0.4s var(--ease-out-expo),
    border-color 0.3s ease,
    box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 93, 42, 0.06), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card__icon {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.services .reveal.is-visible:nth-child(1) { transition-delay: 0.05s; }
.services .reveal.is-visible:nth-child(2) { transition-delay: 0.15s; }
.services .reveal.is-visible:nth-child(3) { transition-delay: 0.25s; }
.services .reveal.is-visible:nth-child(4) { transition-delay: 0.35s; }
.services .reveal.is-visible:nth-child(5) { transition-delay: 0.45s; }

.trust__inner .reveal.is-visible:nth-child(1) { transition-delay: 0.05s; }
.trust__inner .reveal.is-visible:nth-child(2) { transition-delay: 0.15s; }
.trust__inner .reveal.is-visible:nth-child(3) { transition-delay: 0.25s; }

/* About */
.about__content {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.about__content p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.about__content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.about__list {
  list-style: none;
  margin-top: 2rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.about__list li {
  position: relative;
  padding-left: 1.75rem;
  font-weight: 500;
}

.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Contact */
.contact {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.contact__info {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
}

.contact__map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}

.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact__info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact__info > p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact__link svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact__link span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact__link strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0 calc(5rem + env(safe-area-inset-bottom));
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Floating action button */
.fab {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
  right: max(1.25rem, env(safe-area-inset-right, 1.25rem));
  width: 52px;
  height: 52px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px var(--color-accent-glow);
  z-index: 90;
  transition: var(--transition);
  animation: fab-pulse 3s ease-in-out infinite;
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 8px 30px var(--color-accent-glow); }
  50% { box-shadow: 0 8px 40px rgba(232, 93, 42, 0.45); }
}

a.contact__link {
  transition:
    transform 0.35s var(--ease-out-expo),
    border-color 0.3s ease,
    background 0.3s ease;
}

@media (hover: hover) {
  .nav a:hover {
    color: var(--color-text);
  }

  .nav__cta:hover {
    background: var(--color-accent-light);
  }

  .btn--primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
  }

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

  .service-card:hover {
    border-color: rgba(232, 93, 42, 0.35);
    transform: translateY(-6px);
    box-shadow: var(--shadow);
  }

  .service-card:hover::after {
    opacity: 1;
  }

  a.contact__link:hover {
    border-color: var(--color-accent);
    background: var(--color-surface-hover);
    transform: translateX(4px);
  }

  .footer a:hover {
    color: var(--color-accent);
  }

  .fab:hover {
    background: var(--color-accent-light);
    transform: scale(1.08);
  }

  .logo:hover {
    transform: translateY(-1px);
  }

}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .header {
    transform: none;
  }

  .hero__orb,
  .fab {
    animation: none;
  }
}

/* Tablet */
@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero__actions .btn {
    width: auto;
  }

  .hero__card {
    padding: 1.5rem;
  }

  .hero__stat-value {
    font-size: 1.6rem;
  }

  .hero__stat-label {
    font-size: 0.8rem;
  }

  .trust__inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
  }

  .trust__item {
    flex-direction: row;
    text-align: left;
    font-size: 0.95rem;
    gap: 0.75rem;
  }

  .trust__item svg {
    width: 24px;
    height: 24px;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .header__inner {
    height: 72px;
  }

  .logo {
    gap: 12px;
  }

  .logo__img {
    width: 46px;
    height: 46px;
  }

  .logo__text strong {
    font-size: 1.05rem;
  }

  .logo__sub {
    font-size: 0.75rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: transparent;
    border-bottom: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a:not(.nav__cta) {
    font-size: 0.95rem;
    padding: 0;
    min-height: auto;
    display: inline;
  }

  .nav a.nav__cta {
    padding: 0.55rem 1.25rem;
    margin-top: 0;
    display: inline-flex;
    min-height: auto;
  }

  .hero {
    padding: 8.75rem 0 5rem;
  }

  .hero__inner {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: end;
  }

  .hero h1 {
    margin-bottom: 1.25rem;
  }

  .hero__lead {
    font-size: 1.125rem;
    max-width: 520px;
    margin-bottom: 2rem;
  }

  .hero__card {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 2rem;
  }

  .hero__stat {
    text-align: left;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--color-border);
  }

  .hero__stat:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  .hero__stat-value {
    font-size: 2rem;
  }

  .hero__stat-label {
    font-size: 0.9rem;
  }

  .hero__orb--1 {
    width: 480px;
    height: 480px;
    top: -120px;
    right: -80px;
  }

  .hero__orb--2 {
    width: 360px;
    height: 360px;
    bottom: -100px;
    left: -60px;
  }

  .section {
    padding: 6rem 0;
  }

  .section__header {
    margin-bottom: 3.5rem;
  }

  .service-card {
    padding: 2rem;
  }

  .footer {
    padding: 2rem 0;
  }

  .footer__inner {
    font-size: 0.9rem;
  }

  .fab {
    width: 56px;
    height: 56px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
  }

  .contact__info {
    margin-inline: 0;
    text-align: left;
  }

  .contact__map {
    aspect-ratio: auto;
    min-height: 320px;
  }
}

@media (min-width: 1024px) {
  .services {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}
