:root {
  --bg: #06151b;
  --bg-soft: #0b1f28;
  --surface: rgba(9, 26, 35, 0.7);
  --card: rgba(15, 32, 40, 0.72);
  --border: rgba(148, 163, 184, 0.18);
  --ink: #ecfeff;
  --muted: #b9d8dc;
  --primary: #76e4d5;
  --secondary: #3ac3f7;
  --accent: #8b5cf6;
  --shadow: rgba(61, 199, 255, 0.3);
  --gradient: linear-gradient(135deg, rgba(118, 228, 213, 0.35), rgba(58, 195, 247, 0.2), rgba(139, 92, 246, 0.4));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, rgba(58,195,247,0.12), transparent 30%), var(--bg);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 20; transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.topbar.scrolled { backdrop-filter: blur(18px); background: rgba(6, 21, 27, 0.84); border-bottom: 1px solid var(--border); box-shadow: 0 12px 36px rgba(0,0,0,0.16); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; padding: 16px 0; transition: min-height 0.3s ease;
}
.scrolled .nav { min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.02em; }
.brand img { width: 150px; height: auto; object-fit: contain; transition: width 0.3s ease; }
.scrolled .brand img { width: 116px; }
.brand-mark {
  display: inline-flex; width: 38px; height: 38px; border-radius: 12px; align-items: center; justify-content: center;
  background: var(--gradient); box-shadow: 0 0 25px var(--shadow); font-size: 1.1rem;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 0.95rem; }
.nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 40px; height: 40px; padding: 9px; border: 1px solid var(--border); border-radius: 999px; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.cta-button, .secondary-button {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; padding: 0.9rem 1.4rem; transition: transform 0.2s ease, opacity 0.2s ease;
}
.cta-button { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #062026; box-shadow: 0 0 25px rgba(118,228,213,0.35); }
.secondary-button { border: 1px solid var(--border); background: rgba(15,32,40,0.5); color: var(--ink); }
.cta-button:hover, .secondary-button:hover { transform: translateY(-1px); opacity: 0.96; }
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(118,228,213,0.08), transparent), rgba(10,26,34,0.4);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.15; background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 32px 32px;
}
.hero-inner { position: relative; padding: 110px 0 90px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 0.5rem 0.9rem; border-radius: 999px; border: 1px solid var(--border); background: rgba(15, 32, 40, 0.6); color: var(--muted); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.hero h1 { margin: 26px 0 18px; max-width: 850px; font-size: clamp(2.7rem, 5vw, 5.5rem); line-height: 1.04; letter-spacing: -0.06em; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--secondary), #d4b4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 700px; font-size: 1.1rem; line-height: 1.7; color: var(--muted); }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 16px; }
.section { padding: 110px 0; }
.section-label {
  display: inline-block; margin-bottom: 18px; padding: 0.45rem 0.78rem; border-radius: 999px; border: 1px solid var(--border); background: rgba(15, 32, 40, 0.5); color: var(--primary); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
}
.section-header {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: end; margin-bottom: 42px;
}
.section-header h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.04em; }
.section-header p { margin: 0; color: var(--muted); line-height: 1.7; }
.grid-3, .grid-2, .grid-4 { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .feature, .service-card {
  position: relative; background: rgba(11,31,40,0.72); border: 1px solid var(--border); border-radius: 24px; padding: 28px;
  box-shadow: 0 20px 35px rgba(0,0,0,0.15);
}
.icon-box {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--gradient); color: #081d25; font-size: 1.1rem; font-weight: 700;
}
.card h3, .feature h3, .service-card h3 { margin: 20px 0 12px; font-size: 1.3rem; }
.card p, .feature p, .service-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.service-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: center; }
.visual {
  min-height: 260px; border-radius: 30px; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(135deg, rgba(118,228,213,0.12), rgba(58,195,247,0.1), rgba(139,92,246,0.14));
}
.visual-inner {
  height: 100%; min-height: 260px; display: grid; place-items: center; font-weight: 800; letter-spacing: 0.08em; color: rgba(236,254,255,0.9); font-size: clamp(1.3rem, 2vw, 2.5rem);
}
.visual img, .service-image { width: 100%; height: 260px; object-fit: cover; }
.service-image { height: 180px; border-radius: 18px; margin: -8px -8px 0; width: calc(100% + 16px); }
.hero-home { min-height: 560px; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.2; mix-blend-mode: screen; }
.hero-home::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,21,27,0.9), rgba(6,21,27,0.55) 55%, rgba(6,21,27,0.78)); }
.hero-home > *:not(.hero-image) { z-index: 1; }
.split-section { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.split-section h2, .technology-section h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.04em; }
.step-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.step-card { padding: 26px; border: 1px solid var(--border); border-radius: 20px; background: rgba(11,31,40,0.5); }
.step-card span { color: var(--primary); font-family: monospace; }
.step-card h3 { margin: 12px 0 8px; }
.step-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.technology-section { border-top: 1px solid var(--border); background: rgba(9,26,35,0.45); }
.tech-list { margin-top: 30px; color: var(--muted); line-height: 2.2; word-spacing: 0.4em; }
.list { list-style: none; margin: 18px 0 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; color: var(--ink); margin-bottom: 12px; }
.list li::before { content: "•"; color: var(--primary); font-size: 1.5rem; line-height: 1; }
.muted { color: var(--muted); }
.cta-band {
  background: linear-gradient(135deg, rgba(118,228,213,0.08), rgba(58,195,247,0.14), rgba(139,92,246,0.14)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 0; }
.cta-inner h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -0.04em; }
.footer { padding: 36px 0 70px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 26px; }
.page-hero { padding: 110px 0 70px; }
.page-hero h1 { margin: 16px 0 0; font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.06em; }
.page-hero p { max-width: 760px; color: var(--muted); line-height: 1.75; font-size: 1.08rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; }
.contact-card { background: rgba(11,31,40,0.72); border: 1px solid var(--border); border-radius: 28px; padding: 28px; }
.contact-list { list-style: none; margin: 26px 0 0; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.88rem; color: var(--muted); }
.field input, .field textarea {
  width: 100%; border-radius: 14px; border: 1px solid var(--border); background: rgba(7,18,23,0.82); color: var(--ink); padding: 0.9rem 1rem; outline: none;
}
.field textarea { min-height: 160px; resize: vertical; }
@media (max-width: 900px) {
  .nav { min-height: 76px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px 16px 16px; background: rgba(6, 21, 27, 0.97); border-top: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
  .menu-toggle { display: block; }
  .section-header, .service-row, .cta-inner, .contact-grid { grid-template-columns: 1fr; display: grid; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .split-section { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
}
