/* ============================================================
   SYSTAME — Modern Website Styles
   ============================================================ */

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

:root {
  --blue: #0483f6;
  --blue-dark: #0267c7;
  --blue-light: #d1e7fc;
  --blue-xlight: #eef6ff;
  --purple: #7c3aed;
  --red: #ef4444;
  --green: #10b981;
  --orange: #f59e0b;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 48px rgba(4,131,246,.12), 0 8px 24px rgba(0,0,0,.06);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.2rem; }

p { color: var(--text-muted); line-height: 1.75; }

.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(4,131,246,.35);
}

.btn--primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 8px 28px rgba(4,131,246,.45);
  transform: translateY(-2px);
}

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

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn--ghost-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.3);
}

.btn--ghost-light:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-2px);
}

.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 16px 32px;
  transition: all var(--transition);
  background: white;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  border: 1px solid rgba(148,163,184,0.15);
  border-top: none;
  width: fit-content;
}

.nav.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border: 1px solid rgba(148,163,184,0.2);
  border-top: none;
}

/* Clean white navbar styling */
.nav {
  color: var(--text);
}

.nav__links a {
  color: var(--text-muted) !important;
  background: none !important;
  padding: 8px 16px;
  border-radius: 0;
}

.nav__links a:hover {
  color: var(--text) !important;
  background: none !important;
}

.nav__cta {
  background: var(--blue) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(4,131,246,.3) !important;
}

.nav__cta:hover {
  background: var(--blue-dark) !important;
  transform: translateY(-1px);
}

.nav.scrolled {
  color: var(--text);
}

.nav.scrolled .nav__links a {
  color: var(--text) !important;
  background: none !important;
}

.nav.scrolled .nav__links a:hover {
  color: var(--text) !important;
  background: var(--bg-alt) !important;
}

.nav.scrolled .nav__cta {
  background: var(--blue) !important;
  color: white !important;
  border: none !important;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 36px;
  width: auto;
}

.nav__logo-img--footer {
  height: 32px;
  filter: brightness(0) invert(1);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__links a {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.nav__links a:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.nav__cta {
  background: var(--blue) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(4,131,246,.3);
}

.nav__cta:hover {
  background: var(--blue-dark) !important;
  transform: translateY(-1px);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero--blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 25%, #1e40af 100%);
  color: white;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__pattern {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    radial-gradient(circle, rgba(4,131,246,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero__glow--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(4,131,246,0.08) 0%, transparent 70%);
  top: -150px; right: -100px;
}

.hero__glow--2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
  bottom: -50px; left: -50px;
}

/* Hero floating elements */
.hero__floating-elements {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.floating-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: rgba(255,255,255,0.8);
  animation: float 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-icon--1 {
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.floating-icon--2 {
  top: 25%;
  right: 15%;
  animation-delay: 2s;
}

.floating-icon--3 {
  top: 60%;
  left: 5%;
  animation-delay: 4s;
}

.floating-icon--4 {
  top: 70%;
  right: 8%;
  animation-delay: 1s;
}

.floating-icon--5 {
  top: 20%;
  left: 15%;
  animation-delay: 3s;
}

.floating-icon--6 {
  top: 35%;
  right: 5%;
  animation-delay: 5s;
}

.floating-icon--7 {
  top: 55%;
  left: 25%;
  animation-delay: 1.5s;
}

.floating-icon--8 {
  top: 75%;
  right: 25%;
  animation-delay: 4s;
}

.floating-icon--9 {
  top: 10%;
  right: 35%;
  animation-delay: 2.5s;
}

.floating-icon--10 {
  top: 45%;
  left: 12%;
  animation-delay: 6s;
}

.floating-icon--11 {
  top: 85%;
  left: 15%;
  animation-delay: 0.5s;
}

.floating-icon--12 {
  top: 30%;
  right: 45%;
  animation-delay: 3.5s;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  animation: float 8s ease-in-out infinite reverse;
}

.floating-shape--1 {
  width: 80px; height: 80px;
  top: 35%; right: 25%;
  animation-delay: 3s;
}

.floating-shape--2 {
  width: 60px; height: 60px;
  top: 45%; left: 20%;
  animation-delay: 1.5s;
}

.floating-shape--3 {
  width: 40px; height: 40px;
  top: 80%; right: 35%;
  animation-delay: 5s;
}

.floating-shape--4 {
  width: 70px; height: 70px;
  top: 15%; left: 35%;
  animation-delay: 2s;
}

.floating-shape--5 {
  width: 30px; height: 30px;
  top: 65%; left: 35%;
  animation-delay: 4.5s;
}

.floating-shape--6 {
  width: 55px; height: 55px;
  top: 25%; left: 50%;
  animation-delay: 1s;
}

.floating-shape--7 {
  width: 35px; height: 35px;
  top: 50%; right: 10%;
  animation-delay: 6.5s;
}

.floating-shape--8 {
  width: 45px; height: 45px;
  top: 75%; left: 45%;
  animation-delay: 3s;
}

.floating-shape--9 {
  width: 25px; height: 25px;
  top: 40%; left: 40%;
  animation-delay: 2.5s;
}

.floating-shape--10 {
  width: 65px; height: 65px;
  top: 85%; right: 15%;
  animation-delay: 0.8s;
}

.hero__grid-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.4;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Enhanced content box with more visual interest */
.hero--blue .hero__content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 56px;
  box-shadow:
    0 25px 50px rgba(0,0,0,0.15),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text);
  position: relative;
  overflow: hidden;
}


.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.75;
}

.hero__blob--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(4,131,246,.28) 0%, transparent 70%);
  top: -220px; right: -120px;
}

.hero__blob--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,.22) 0%, transparent 70%);
  bottom: -130px; left: -80px;
}

.hero__blob--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,.14) 0%, transparent 70%);
  top: 35%; left: 35%;
}

/* Decorative ring outlines on top of blobs */
.hero__bg::before {
  content: '';
  position: absolute;
  width: 580px; height: 580px;
  border-radius: 50%;
  border: 1.5px solid rgba(4,131,246,.18);
  top: -120px; right: 0;
  pointer-events: none;
}

.hero__bg::after {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(124,58,237,.14);
  bottom: -60px; left: 25%;
  pointer-events: none;
}

.hero__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* min-width: 0 prevents the nowrap typewriter from forcing the grid column wider than 1fr. */
.hero__content {
  min-width: 0;
}

/* Text box for better readability on blue background */
.hero--blue .hero__content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
}

.hero--blue .hero__content .hero__badge {
  background: rgba(4,131,246,0.1);
  border: 1px solid rgba(4,131,246,0.2);
  color: var(--blue-dark);
}

.hero--blue .hero__content .hero__title {
  color: var(--text);
}

.hero--blue .hero__content .hero__sub {
  color: var(--text-muted);
}

.hero--blue .hero__content .stat__num {
  color: var(--text);
}

.hero--blue .hero__content .stat__label {
  color: var(--text-muted);
}

.hero--blue .hero__content .stat__divider {
  background: var(--border);
}

/* Blue hero theme overrides */
.hero--blue .hero__badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #dbeafe;
  backdrop-filter: blur(10px);
}

.hero--blue .hero__title {
  color: white;
}

.hero--blue .hero__sub {
  color: #e0e7ff;
}

.hero--blue .stat__num {
  color: white;
}

.hero--blue .stat__label {
  color: #cbd5e1;
}

.hero--blue .stat__divider {
  background: rgba(255,255,255,0.2);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue-dark);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  width: fit-content;
}

.hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  50%       { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.badge-pulse {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero__title {
  margin-bottom: 4px;
  color: var(--text);
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

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

.stat__num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.stat__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat__divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero Visual */
.hero__visual {
  display: flex;
  align-items: stretch;
}

/* ---- Terminal ---- */
.hero__terminal {
  width: 100%;
  background: #0d1117;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.07),
    0 24px 64px rgba(0,0,0,.5),
    0 0 80px rgba(4,131,246,.08);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,.06);
  user-select: none;
}

.tbar-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tbar-dot--red    { background: #ff5f57; }
.tbar-dot--yellow { background: #febc2e; }
.tbar-dot--green  { background: #28c840; }

.tbar-title {
  margin-left: 6px;
  font-size: 0.72rem;
  color: rgba(255,255,255,.28);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

.terminal__body {
  padding: 14px 22px 22px;
  font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.85;
  color: #c9d1d9;
  height: 340px;
  overflow: hidden;
  white-space: pre;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.tl          { display: block; }
.tl-ascii         { font-size: 0.58rem; line-height: 1.1; letter-spacing: 0; }
.tl-ascii-logo    { color: #0483f6; }
.tl-ascii-text    { color: #ffffff; }
.tl-cmd      { color: #79c0ff; }
.tl-dim      { color: rgba(201,209,217,.42); }
.tl-warn     { color: #ffa657; }
.tl-ok       { color: #56d364; }
.tl-info     { color: #79c0ff; }
.tl-success  { color: #fff; font-weight: 600; letter-spacing: 0.02em; }

.term-cursor {
  display: none;
  width: 7px;
  height: 0.85em;
  background: #c9d1d9;
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: tblink 1.1s step-end infinite;
}
.term-cursor.visible { display: inline-block; }

@keyframes tblink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ---- Enhanced Terminal for Blue Hero ---- */
.hero--blue .hero__terminal {
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 40px rgba(0,0,0,.3),
    0 8px 24px rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.1);
}

.hero--blue .terminal__bar {
  padding: 14px 20px;
  background: linear-gradient(135deg, #21262d 0%, #161b22 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.hero--blue .tbar-title {
  color: #f0f6fc;
  font-weight: 600;
}

.hero--blue .terminal__body {
  padding: 24px 28px 28px;
  font-family: 'Fira Code', 'Consolas', 'SF Mono', monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #e6edf3;
  height: calc(100% - 50px);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Enhanced text styles for blue theme */
.hero--blue .tl-cmd {
  color: #79c0ff;
  font-weight: 600;
}

.hero--blue .tl-success {
  color: #fff;
  font-weight: 700;
}

.hero--blue .tl-ok {
  color: #56d364;
}

.hero--blue .tl-warn {
  color: #ffa657;
}

.hero--blue .tl-info {
  color: #79c0ff;
}

/* ---- Headline typewriter ---- */

/* Typewriter sits outside the h1 — h1 is now static and never reflowes.
   Font styling mirrors h1 exactly. Fixed height = exactly one line, always. */
.hero__tw-line {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  height: 1.2em;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 20px;
}

.hero__typewriter {
  background: linear-gradient(135deg, var(--blue) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tw-cursor {
  color: var(--blue);
  -webkit-text-fill-color: var(--blue);
  font-weight: 300;
  animation: twblink 0.75s step-end infinite;
  margin-left: 1px;
}

@keyframes twblink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================================
   MANIFESTO
   ============================================================ */

.manifesto {
  background: linear-gradient(135deg, #0369a1 0%, var(--blue) 45%, #1d4ed8 100%);
  padding: 110px 0 120px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 88px, 100% 0, 100% calc(100% - 88px), 0 100%);
  margin-top: -88px;
  margin-bottom: -88px;
  z-index: 2;
}

.manifesto__ghost {
  position: absolute;
  font-size: clamp(7rem, 20vw, 18rem);
  font-weight: 800;
  color: rgba(255,255,255,.055);
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-2.8deg);
  transform-origin: center center;
  line-height: 1;
}

.manifesto__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.manifesto__text {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.22;
  letter-spacing: -0.025em;
  max-width: 720px;
  margin: 0;
}

.manifesto__highlight {
  position: relative;
  display: inline;
}

.manifesto__highlight::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='10'%3E%3Cpath d='M0,5 Q15,0 30,5 Q45,10 60,5 Q75,0 90,5 Q105,10 120,5' stroke='%23fbbf24' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: auto 100%;
}

.manifesto__cta {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding-bottom: 4px;
  transition: all var(--transition);
}

.manifesto__cta:hover {
  color: #fff;
  border-bottom-color: #fff;
  gap: 14px;
}

@media (max-width: 640px) {
  .manifesto {
    clip-path: polygon(0 44px, 100% 0, 100% calc(100% - 44px), 0 100%);
    margin-top: -44px;
    margin-bottom: -44px;
    padding: 80px 0 90px;
  }
  .manifesto__ghost { display: none; }
}

/* ============================================================
   SECTIONS COMMON
   ============================================================ */

.section {
  padding: 100px 0;
}

/* ============================================================
   ALTERNATING SECTION BACKGROUNDS
   ============================================================ */

.services--colored {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
  padding: 120px 0;
}

.services--colored::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(148,163,184,0.3) 50%, transparent 100%);
}

/* Services visual enhancements */
.services__bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.services__shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(4,131,246,0.04) 0%, rgba(59,130,246,0.02) 100%);
  filter: blur(40px);
}

.services__shape--1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: 10%;
}

.services__shape--2 {
  width: 200px;
  height: 200px;
  bottom: -80px;
  left: 5%;
  background: linear-gradient(135deg, rgba(16,185,129,0.03) 0%, transparent 100%);
}

.services__pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(4,131,246,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
}

.about--enhanced {
  background:
    radial-gradient(circle at 20% 80%, rgba(16,185,129,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(4,131,246,0.04) 0%, transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #fefffe 100%);
  position: relative;
  padding: 120px 0;
}

/* About visual enhancements */
.about__bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.about__decoration {
  position: absolute;
  background: linear-gradient(135deg, rgba(4,131,246,0.05) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
}

.about__decoration--1 {
  width: 400px;
  height: 400px;
  top: -150px;
  left: -100px;
}

.about__decoration--2 {
  width: 250px;
  height: 250px;
  bottom: -80px;
  right: -60px;
  background: linear-gradient(135deg, rgba(16,185,129,0.04) 0%, transparent 70%);
}

.about__grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(4,131,246,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4,131,246,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
}

.why--enhanced {
  background: linear-gradient(135deg, #1e293b 0%, #334155 25%, #1e293b 100%);
  color: white;
  padding: 120px 0;
  position: relative;
}

.why--enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(4,131,246,0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(124,58,237,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.why--enhanced .section__header,
.why--enhanced .section__badge,
.why--enhanced .why__grid,
.why--enhanced .why-card {
  position: relative;
  z-index: 1;
}

.why--enhanced .section__badge {
  background: rgba(4,131,246,0.1);
  border: 1px solid rgba(4,131,246,0.2);
  color: #79c0ff;
}

.why--enhanced .section__header h2 {
  color: white;
}

.why--enhanced .section__header p {
  color: rgba(255,255,255,0.8);
}

.why--enhanced .why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.why--enhanced .why-card h3 {
  color: white;
}

.why--enhanced .why-card p {
  color: rgba(255,255,255,0.8);
}

/* Contact visual enhancements */
.contact__bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(4,131,246,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(16,185,129,0.02) 0%, transparent 50%);
  pointer-events: none;
}

/* Enhanced section badges with icons */
.section__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue-dark);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  width: fit-content;
  border: 1px solid rgba(4,131,246,0.15);
  box-shadow: 0 2px 8px rgba(4,131,246,0.08);
}

.section__badge svg {
  opacity: 0.8;
}

/* Enhanced visual hierarchy */
.section {
  position: relative;
  overflow: hidden;
}

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

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

.section__header h2 { margin-bottom: 16px; }
.section__header p { font-size: 1.05rem; }

.section__badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-dark);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ============================================================
   SERVICES
   ============================================================ */

.services {
  background: var(--bg-alt);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.services .container {
  position: relative;
  z-index: 1;
}

.services__rows {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.service-row.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.service-row--reverse .service-row__visual { order: 2; }
.service-row--reverse .service-row__content { order: 1; }

/* Illustration panel */
.service-row__visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
  padding: 28px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-row__visual--blue   { background: #eff6ff; }
.service-row__visual--red    { background: #fef2f2; }
.service-row__visual--purple { background: #f5f3ff; }
.service-row__visual--orange { background: #fffbeb; }

.service-row__visual svg {
  width: 100%;
  height: auto;
}

/* Content */
.service-row__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.service-row__tag--blue   { color: var(--blue); }
.service-row__tag--red    { color: var(--red); }
.service-row__tag--purple { color: var(--purple); }
.service-row__tag--orange { color: var(--orange); }

.service-row__content h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 14px;
  color: var(--text);
}

.service-row__content > p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.service-row__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.service-row__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.service-row__list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background-color: var(--blue-xlight);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%230483f6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 8px;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4,131,246,.07) 0%, transparent 70%);
  top: -160px; right: -120px;
  pointer-events: none;
}

.about::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.05) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  pointer-events: none;
}

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

.about__visual {
  position: relative;
  display: flex;
  justify-content: center;
  isolation: isolate;
}

.about__visual::before {
  content: '';
  position: absolute;
  width: 330px; height: 330px;
  border-radius: 50%;
  border: 2px solid var(--blue-light);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

.about__visual::after {
  content: '';
  position: absolute;
  width: 410px; height: 410px;
  border-radius: 50%;
  border: 1px dashed rgba(4,131,246,.25);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

.about__avatar {
  width: 280px; height: 280px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(4,131,246,.25);
  border: 4px solid #fff;
  outline: 2px solid var(--blue-light);
  flex-shrink: 0;
}

.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about__badge-float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.about__badge-float--1 {
  top: 20px; right: -20px;
  border-left: 3px solid var(--green);
  animation: float 3.5s ease-in-out infinite;
}

.about__badge-float--2 {
  bottom: 20px; left: -20px;
  border-left: 3px solid var(--blue);
  animation: float 3.5s ease-in-out infinite 1.75s;
}

.about__badge-float svg {
  color: var(--blue);
  flex-shrink: 0;
}

.about__content .section__badge { display: block; margin-bottom: 16px; }

.about__content h2 {
  margin-bottom: 24px;
  color: var(--text);
}

.about__content p {
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0 36px;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.value-icon {
  width: 44px; height: 44px;
  background: var(--blue-xlight);
  color: var(--blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-item strong { display: block; color: var(--text); margin-bottom: 2px; font-size: 0.95rem; }
.value-item p { font-size: 0.88rem; margin: 0; }

/* ============================================================
   WHY
   ============================================================ */

.why {
  background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.why .container {
  position: relative;
  z-index: 1;
}

.why .section__badge {
  background: rgba(255,255,255,.2);
  color: #fff;
}

.why .section__header h2 { color: #fff; }
.why .section__header p { color: rgba(255,255,255,.75); }

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.why-card:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-4px);
}

.why-card__num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,.2);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  line-height: 1;
}

.why-card h3 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.why-card p {
  color: rgba(255,255,255,.7);
  font-size: 0.9rem;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact {
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4,131,246,.07) 0%, transparent 70%);
  top: -250px; right: -200px;
  pointer-events: none;
}

.contact::after {
  content: '';
  position: absolute;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.05) 0%, transparent 70%);
  bottom: -150px; left: -100px;
  pointer-events: none;
}

.contact .container {
  position: relative;
  z-index: 1;
}

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

.contact__info h2 { margin-bottom: 16px; }
.contact__info p { font-size: 1.02rem; margin-bottom: 40px; }

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

a.contact-item:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.contact-item__icon {
  width: 40px; height: 40px;
  background: var(--blue-xlight);
  color: var(--blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item__value {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 0.92rem;
}

.contact-item__note {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Form */
.contact__form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(4,131,246,.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.btn-icon { font-size: 1.1rem; transition: transform var(--transition); }
.btn--primary:hover .btn-icon { transform: translateX(4px); }

.form__success {
  display: none;
  margin-top: 16px;
  padding: 14px 20px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  color: #065f46;
  font-size: 0.9rem;
  font-weight: 500;
  align-items: center;
  gap: 8px;
}

.form__success.show {
  display: flex;
}

.form__error {
  display: none;
  margin-top: 16px;
  padding: 14px 20px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #991b1b;
  font-size: 0.9rem;
  font-weight: 500;
}

.form__error.show {
  display: block;
}

.form__error a {
  color: var(--blue);
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--text);
  color: rgba(255,255,255,.6);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding: 64px 24px;
  flex-wrap: wrap;
}

.footer__brand p {
  margin-top: 12px;
  font-size: 0.88rem;
  color: rgba(255,255,255,.45);
}

.footer__brand .nav__logo {
  color: #fff;
}

.footer__brand .nav__logo strong {
  color: #60a5fa;
}

.footer__links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer__col a,
.footer__col span {
  font-size: 0.88rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}

.footer__col a:hover { color: rgba(255,255,255,.9); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero__badge { margin: 0 auto 24px; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }

  /* Tablet: scale down terminal font slightly */
  .terminal__body { font-size: 0.73rem; height: 300px; }

  .service-row {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0;
  }

  .service-row--reverse .service-row__visual,
  .service-row--reverse .service-row__content { order: unset; }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .value-item { text-align: left; }
  .about__visual { height: 300px; }
  .about__visual::before, .about__visual::after { display: none; }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-row { grid-template-columns: 1fr; }
  .contact__form { padding: 28px; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 99;
  }

  .nav__links.open a {
    font-size: 1.2rem;
    padding: 12px 32px;
  }

  .nav__burger { display: flex; z-index: 101; }
  .nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

  .footer__inner { flex-direction: column; }
  .footer__links { gap: 32px; }

  .hero__visual { display: none; }
}
