@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* ─── Design Tokens ─── */
:root {
  --bg:           #03060d;
  --bg-1:         #070e1a;
  --bg-2:         #0c1526;
  --bg-3:         #111d35;
  --card:         rgba(255,255,255,0.035);
  --card-hover:   rgba(255,255,255,0.065);
  --glass:        rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.09);
  --text:         #eef2ff;
  --text-2:       #a8b8d8;
  --text-3:       #6a7fa0;
  --primary:      #6366f1;
  --primary-light:#818cf8;
  --primary-glow: rgba(99,102,241,0.35);
  --accent:       #06b6d4;
  --accent-glow:  rgba(6,182,212,0.28);
  --emerald:      #10b981;
  --amber:        #f59e0b;
  --rose:         #f43f5e;
  --border:       rgba(255,255,255,0.08);
  --border-strong:rgba(99,102,241,0.4);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:    0 24px 64px rgba(0,0,0,0.6);
  --shadow-glow:  0 0 40px rgba(99,102,241,0.18);
  --radius-xs:    6px;
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --container:    min(1180px, 92vw);
  --nav-h:        76px;
  --font-head:    'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --ease-bounce:  cubic-bezier(0.34,1.56,0.64,1);
  --ease-out:     cubic-bezier(0.16,1,0.3,1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99,102,241,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(6,182,212,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(16,185,129,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; }

/* ─── Layout ─── */
.container { width: var(--container); margin: 0 auto; position: relative; z-index: 1; }

/* ─── Navigation ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  background: rgba(3,6,13,0.72);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.site-header.scrolled {
  background: rgba(3,6,13,0.92);
  border-bottom-color: var(--glass-border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.3px;
  color: var(--text);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px var(--primary-glow), var(--shadow-sm);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}

.nav-links a.active {
  color: var(--primary-light);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  color: #fff !important;
  padding: 0.5rem 1.1rem !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px var(--primary-glow);
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s !important;
}

.nav-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px var(--primary-glow) !important;
  background: rgba(255,255,255,0.07) !important;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.nav-toggle:hover { background: var(--card-hover); border-color: var(--glass-border); }

/* ─── Hero ─── */
.hero {
  padding: 7rem 0 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(99,102,241,0.10);
  border: 1px solid rgba(99,102,241,0.25);
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: pulse-dot 2s infinite;
}

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

h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  color: var(--text);
}

h1 .gradient-text,
h2 .gradient-text {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 56ch;
  margin-bottom: 2rem;
}

.btn-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  transition: transform 0.22s var(--ease-bounce), box-shadow 0.22s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-primary:hover { box-shadow: 0 12px 32px var(--primary-glow); }

.btn-secondary {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover { background: var(--card-hover); border-color: var(--glass-border); }

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid rgba(99,102,241,0.4);
}

.btn-outline:hover { background: rgba(99,102,241,0.08); }

/* ─── Hero Stats Panel ─── */
.hero-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 70%);
  pointer-events: none;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s, background 0.2s;
}

.metric:last-child { margin-bottom: 0; }

.metric:hover { border-color: var(--glass-border); background: rgba(255,255,255,0.06); }

.metric-label {
  font-size: 0.83rem;
  color: var(--text-3);
  font-weight: 500;
}

.metric-value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Section ─── */
.section { padding: 5rem 0; position: relative; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section-heading { margin-bottom: 2.5rem; }
.section-heading p { color: var(--text-2); max-width: 60ch; margin-top: 0.75rem; }

/* ─── Cards ─── */
.cards-grid {
  display: grid;
  gap: 1.25rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

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

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(99,102,241,0.1);
  background: var(--card-hover);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.icon-indigo  { background: rgba(99,102,241,0.12); color: var(--primary-light); }
.icon-cyan    { background: rgba(6,182,212,0.12);   color: var(--accent); }
.icon-emerald { background: rgba(16,185,129,0.12);  color: var(--emerald); }
.icon-amber   { background: rgba(245,158,11,0.12);  color: var(--amber); }
.icon-rose    { background: rgba(244,63,94,0.12);   color: var(--rose); }

.card p { color: var(--text-2); font-size: 0.92rem; line-height: 1.7; margin: 0; }

/* ─── Highlight card ─── */
.card-highlight {
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(6,182,212,0.04) 100%);
  border-color: rgba(99,102,241,0.3);
}

.card-highlight:hover { border-color: rgba(99,102,241,0.55); }

/* ─── Tag / Badge ─── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: rgba(6,182,212,0.10);
  border: 1px solid rgba(6,182,212,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

/* ─── Feature list ─── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-2);
}

.feature-list li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── CTA Strip ─── */
.cta-strip {
  background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(6,182,212,0.08) 100%);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-xl);
  padding: 3rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.10), transparent 60%);
  pointer-events: none;
}

.cta-strip::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(6,182,212,0.08), transparent 60%);
  pointer-events: none;
}

/* ─── Page Hero ─── */
.page-hero {
  padding: 6rem 0 3.5rem;
  position: relative;
}

.page-hero .lead { font-size: 1.05rem; }

/* ─── Contact Form ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--text-2); }
.contact-info p  { font-size: 0.9rem; color: var(--text-3); margin-bottom: 1.5rem; }

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.contact-info-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99,102,241,0.10);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info-item span { font-size: 0.9rem; color: var(--text-2); }

.form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
}

.form-group { margin-bottom: 1.2rem; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

input, textarea, select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}

input:focus, textarea:focus {
  border-color: var(--primary);
  background: rgba(99,102,241,0.05);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

input::placeholder, textarea::placeholder { color: var(--text-3); }
textarea { resize: vertical; min-height: 130px; }

.error {
  font-size: 0.8rem;
  color: #f87171;
  margin-top: 0.35rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--emerald);
}

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-3);
  margin-top: 0.75rem;
  max-width: 28ch;
  line-height: 1.7;
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-list a {
  font-size: 0.88rem;
  color: var(--text-2);
  transition: color 0.2s;
}

.footer-links-list a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-3);
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-3);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-social a:hover { color: var(--text); border-color: var(--glass-border); background: var(--glass); }

/* ─── Animations ─── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s var(--ease-out) forwards;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.7s var(--ease-out) forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.40s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ─── Page not found ─── */
.not-found-section {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}

.not-found-code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 20vw, 10rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid, .contact-layout { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cta-strip { padding: 2rem; }
  .hero { padding: 5rem 0 4rem; }
}

@media (max-width: 700px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(3,6,13,0.97);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 5vw 1.25rem;
    display: none;
    gap: 2px;
  }

  .nav-links.is-open { display: flex; }
  .nav-links a { border-radius: 8px; padding: 0.7rem 0.85rem; }
  .nav-cta { margin-top: 4px; text-align: center; justify-content: center; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-strip { text-align: center; justify-content: center; }
  .cta-strip > div { text-align: center; }
}
