:root {
  --bg: #060b14;
  --bg-soft: #0b1322;
  --card: rgba(11, 19, 34, 0.78);
  --line: rgba(120, 183, 255, 0.18);
  --text: #eef6ff;
  --muted: #9db3cf;
  --blue: #4da3ff;
  --blue-2: #8fd3ff;
  --blue-3: #163456;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(77, 163, 255, 0.16), transparent 26%),
    radial-gradient(circle at left center, rgba(143, 211, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #04070d 0%, #07111d 45%, #05090f 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.topbar {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.92rem;
  color: var(--muted);
}

.topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.topbar__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(5, 10, 18, 0.82);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  display: grid;
  place-items: center;
  color: #02101f;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(77, 163, 255, 0.25);
  flex-shrink: 0;
}

.brand__text strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand__text span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--white);
  cursor: pointer;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__links a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #d6e7fb;
  transition: 0.2s ease;
  font-size: 0.96rem;
}

.nav__links a:hover,
.nav__links a.active {
  background: rgba(77, 163, 255, 0.11);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #04111d;
  box-shadow: 0 14px 30px rgba(77, 163, 255, 0.23);
}

.btn--ghost {
  border-color: rgba(255,255,255,0.1);
  color: var(--white);
  background: rgba(255,255,255,0.03);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 36px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent 90%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.subhero {
  padding: 80px 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(77, 163, 255, 0.08);
  border-radius: 999px;
  color: var(--blue-2);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.hero h1,
.subhero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.hero p,
.subhero p {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero__trust {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-card {
  background: linear-gradient(180deg, rgba(15, 26, 44, 0.9), rgba(8, 13, 23, 0.9));
  border: 1px solid rgba(143, 211, 255, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card__visual {
  min-height: 420px;
  padding: 26px;
  background:
    radial-gradient(circle at top left, rgba(143, 211, 255, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(77, 163, 255, 0.18), rgba(255,255,255,0.02));
  display: flex;
  align-items: end;
}

.hero-card__panel {
  width: 100%;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(4, 10, 19, 0.7);
  border-radius: 22px;
  backdrop-filter: blur(10px);
}

.hero-card__panel h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.hero-card__panel p {
  margin: 0;
  color: #bfd4ea;
  line-height: 1.65;
  font-size: 0.98rem;
}

section {
  padding: 42px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 65ch;
  line-height: 1.7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
}

.stat h3 {
  margin: 0 0 8px;
  font-size: 2rem;
  color: var(--blue-2);
}

.stat p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.services-grid,
.blog-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  opacity: 0.9;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(77, 163, 255, 0.1);
  border: 1px solid rgba(143, 211, 255, 0.2);
  color: var(--blue-2);
  font-weight: 900;
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.24rem;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.card a {
  color: var(--blue-2);
  font-weight: 700;
}

.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.blog-card__thumb {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(77, 163, 255, 0.2), rgba(143, 211, 255, 0.06)),
    linear-gradient(180deg, #102038, #08101c);
  border: 1px solid rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  color: var(--blue-2);
  font-size: 1.1rem;
  font-weight: 800;
}

.blog-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.contact-card,
.form-card {
  padding: 28px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
}

.contact-points {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-point {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

.contact-point strong {
  display: block;
  margin-bottom: 5px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field,
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--white);
  padding: 15px 16px;
  border-radius: 14px;
  outline: none;
  font: inherit;
}

.field::placeholder,
textarea::placeholder {
  color: #7f98b8;
}

.field:focus,
textarea:focus {
  border-color: rgba(143, 211, 255, 0.5);
}

textarea {
  min-height: 150px;
  resize: vertical;
  margin-top: 14px;
  margin-bottom: 16px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 22px;
  align-items: stretch;
}

.profile-card,
.profile-info {
  padding: 28px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
}

.profile-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(77, 163, 255, 0.15), transparent 30%),
    linear-gradient(180deg, rgba(14, 25, 42, 0.88), rgba(7, 12, 21, 0.9));
}

.profile-image {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
}

.profile-info h2 {
  margin: 0 0 14px;
  font-size: 2rem;
}

.profile-info p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.75;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding: 22px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
}

.timeline-item h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.footer-grid {
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  padding: 32px 0 20px;
}

.footer h4 {
  margin: 0 0 14px;
  font-size: 1.04rem;
}

.footer p,
.footer li,
.footer a {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  list-style: none;
  padding: 0;
}

.footer ul {
  margin: 0;
  padding: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 16px 0 28px;
  color: #7f98b8;
  font-size: 0.93rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .hero__grid,
  .contact,
  .services-grid,
  .blog-grid,
  .stats,
  .footer-grid,
  .profile-layout {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(8, 14, 24, 0.98);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 16px;
    box-shadow: var(--shadow);
  }

  .nav.open { display: flex; }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav__links a {
    display: block;
  }

  .hero,
  section {
    padding-top: 28px;
  }

  .hero__grid,
  .contact,
  .services-grid,
  .blog-grid,
  .stats,
  .footer-grid,
  .form-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .hero-card__visual { min-height: 320px; }
  .site-header__inner { min-height: 74px; }
  .topbar { display: none; }
}
