:root {
  --bg: #07111f;
  --bg-soft: #0d1b2f;
  --text: #101827;
  --muted: #667085;
  --white: #ffffff;
  --line: rgba(255,255,255,.14);
  --primary: #2f7df6;
  --primary-2: #59d5ff;
  --accent: #8b5cf6;
  --card: #ffffff;
  --shadow: 0 24px 80px rgba(13, 27, 47, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: #f6f8fb;
}
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(7, 17, 31, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.navbar {
  width: min(1180px, calc(100% - 40px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 900; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 30px rgba(47,125,246,.35);
}
.brand-text { font-size: 1.25rem; letter-spacing: -.03em; }
.brand-text span { color: var(--primary-2); }
.nav-links { display: flex; align-items: center; gap: 26px; color: rgba(255,255,255,.82); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--white); }
.nav-cta { padding: 12px 18px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.menu-toggle { display: none; background: transparent; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; }

.hero {
  min-height: 100vh;
  padding: 150px max(24px, calc((100vw - 1180px) / 2)) 90px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 60px;
  overflow: hidden;
}
.section-gradient {
  background:
    radial-gradient(circle at 80% 20%, rgba(89,213,255,.28), transparent 32%),
    radial-gradient(circle at 10% 10%, rgba(139,92,246,.34), transparent 28%),
    linear-gradient(135deg, #07111f 0%, #0d1b2f 55%, #111827 100%);
  color: var(--white);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}
.hero .eyebrow { color: var(--primary-2); }
.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: .95;
  letter-spacing: -.07em;
}
.hero p { max-width: 650px; color: rgba(255,255,255,.72); font-size: 1.12rem; line-height: 1.8; }
.hero-actions, .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--white); box-shadow: 0 18px 42px rgba(47,125,246,.35); }
.btn-secondary { background: rgba(255,255,255,.11); color: var(--white); border: 1px solid rgba(255,255,255,.16); }
.cta-card .btn-secondary { color: var(--text); background: #eef3ff; border-color: #dce7ff; }
.hero-metrics { display: flex; gap: 18px; margin-top: 38px; flex-wrap: wrap; }
.hero-metrics div { min-width: 130px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.06); }
.hero-metrics strong { display: block; font-size: 1.5rem; }
.hero-metrics span { color: rgba(255,255,255,.62); font-size: .86rem; }

.hero-card { position: relative; min-height: 520px; }
.code-window {
  margin-top: 28px;
  padding: 22px;
  border-radius: 30px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 35px 100px rgba(0,0,0,.35);
  backdrop-filter: blur(20px);
}
.window-dots { display: flex; gap: 8px; margin-bottom: 22px; }
.window-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.45); }
pre { margin: 0; white-space: pre-wrap; color: #e5f3ff; font-size: 1rem; line-height: 1.8; }
.floating-card {
  position: absolute;
  width: 220px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  color: var(--text);
  box-shadow: var(--shadow);
}
.floating-card span { display: block; color: var(--muted); font-size: .82rem; margin-bottom: 6px; }
.card-one { top: 20px; right: 0; }
.card-two { bottom: 70px; left: 20px; }

.section { padding: 100px max(24px, calc((100vw - 1180px) / 2)); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2, .split-content h2, .cta-card h2 {
  margin: 14px 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.section-heading p, .split-content p, .cta-card p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card, .portfolio-grid article {
  padding: 30px;
  border-radius: 30px;
  background: var(--card);
  box-shadow: 0 14px 50px rgba(16,24,39,.08);
  border: 1px solid #edf1f7;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover, .portfolio-grid article:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: #eef5ff; font-size: 1.5rem; }
.service-card h3, .portfolio-grid h3 { margin: 22px 0 10px; font-size: 1.25rem; }
.service-card p, .portfolio-grid p { color: var(--muted); line-height: 1.7; margin: 0; }

.split-section { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 60px; }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; color: #344054; font-weight: 600; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: -2px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #e9f7ef; color: #16a34a; }
.premium-panel {
  min-height: 420px;
  padding: 34px;
  border-radius: 36px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(47,125,246,.9), rgba(139,92,246,.92)),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.35), transparent 30%);
  box-shadow: 0 30px 90px rgba(47,125,246,.35);
}
.panel-top { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: 24px; }
.panel-top span { color: rgba(255,255,255,.7); }
.panel-bars { display: grid; gap: 18px; margin: 64px 0; }
.panel-bars span { height: 18px; width: var(--w); border-radius: 999px; background: rgba(255,255,255,.75); }
.panel-stat { padding: 24px; border-radius: 26px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); }
.panel-stat small { color: rgba(255,255,255,.75); }
.panel-stat strong { display: block; font-size: 2.4rem; margin-top: 6px; }

.dark-section { background: var(--bg); color: var(--white); }
.section-heading.light p { color: rgba(255,255,255,.68); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.timeline-item { padding: 28px; border-radius: 28px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.timeline-item span { color: var(--primary-2); font-weight: 900; }
.timeline-item p { color: rgba(255,255,255,.66); line-height: 1.7; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portfolio-grid article span { color: var(--primary); font-weight: 900; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }

.cta-section { padding: 100px 24px; background: linear-gradient(180deg, #f6f8fb, #eaf0ff); }
.cta-card {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 7vw, 70px);
  text-align: center;
  border-radius: 42px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.cta-actions { justify-content: center; }
.cta-card small { display: block; margin-top: 20px; color: var(--muted); }

.footer {
  padding: 34px max(24px, calc((100vw - 1180px) / 2));
  background: #050b14;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.footer p { color: rgba(255,255,255,.55); margin: 6px 0 0; }
.footer-links { display: flex; gap: 18px; color: rgba(255,255,255,.72); }
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: .2s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border-radius: 24px;
    background: rgba(7, 17, 31, .98);
  }
  .nav-links.active { display: flex; }
  .hero, .split-section { grid-template-columns: 1fr; }
  .hero-card { min-height: 420px; }
  .cards-grid, .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .navbar { width: min(100% - 28px, 1180px); height: 70px; }
  .nav-links { top: 70px; }
  .hero { padding-top: 120px; }
  .hero-actions, .cta-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-metrics { flex-direction: column; }
  .cards-grid, .timeline, .portfolio-grid { grid-template-columns: 1fr; }
  .floating-card { position: static; width: 100%; margin-top: 16px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
