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

:root {
  --navy-950: #0a101e;
  --navy-900: #0f192b;
  --navy-800: #152238;
  --navy-700: #1a2d4a;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93bbfd;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-50: #f0fdfa;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-600); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-500); }

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

/* ── NAVIGATION ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 16, 30, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--blue-400); }
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  color: var(--slate-300);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(20, 184, 166, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 80%, rgba(37, 99, 235, 0.06) 0%, transparent 50%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  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: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 70%);
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--blue-300);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.hero h1 span { background: linear-gradient(135deg, var(--blue-400), var(--teal-400)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p {
  font-size: 1.2rem;
  color: var(--slate-300);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover { background: #1d4ed8; color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); color: var(--white); border-color: rgba(255,255,255,0.35); }

/* ── SECTIONS ── */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--slate-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── SERVICES ── */
#services { background: var(--slate-50); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--slate-200);
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--slate-500);
  line-height: 1.65;
}

/* ── ABOUT ── */
#about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius-xl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-image-inner {
  text-align: center;
  color: var(--white);
  z-index: 1;
}
.about-image-inner .big-number {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-400), var(--teal-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.about-image-inner .big-label {
  font-size: 1rem;
  color: var(--slate-300);
  margin-top: 8px;
}
.about-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.about-text p {
  color: var(--slate-600);
  margin-bottom: 16px;
  line-height: 1.7;
}
.about-stats { display: flex; gap: 40px; margin-top: 32px; }
.about-stat h4 { font-size: 2rem; font-weight: 800; color: var(--blue-600); }
.about-stat span { font-size: 0.9rem; color: var(--slate-500); }

/* ── TECH STACK ── */
#stack { background: var(--navy-900); color: var(--white); }
#stack .section-header h2 { color: var(--white); }
#stack .section-header p { color: var(--slate-400); }
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.stack-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  transition: all 0.3s;
}
.stack-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}
.stack-item .stack-icon { font-size: 2rem; margin-bottom: 12px; }
.stack-item h4 { font-size: 0.95rem; font-weight: 600; color: var(--white); }

/* ── CTA ── */
#contact { background: linear-gradient(135deg, var(--blue-600), var(--navy-800)); color: var(--white); }
#contact .section-header h2 { color: var(--white); }
#contact .section-header p { color: rgba(255,255,255,0.75); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.contact-icon { font-size: 2rem; margin-bottom: 14px; }
.contact-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.contact-card p { color: rgba(255,255,255,0.8); font-size: 0.95rem; line-height: 1.6; }

/* ── FOOTER ── */
.footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}
.footer-brand h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 10px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-links h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--slate-400); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── PAGE HEADER (subpages) ── */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  text-align: center;
}
.page-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.page-header p { color: var(--slate-300); font-size: 1.05rem; }

/* ── PRIVACY / TERMS CONTENT ── */
.policy-content {
  padding: 64px 0 80px;
  background: var(--white);
}
.policy-content .container { max-width: 820px; }
.policy-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 40px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--slate-200);
}
.policy-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.policy-content p, .policy-content li {
  font-size: 1rem;
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: 12px;
}
.policy-content ul, .policy-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.policy-content strong { color: var(--slate-800); }
.effective-date {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-600);
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  margin-bottom: 24px;
}

/* ── 404 ── */
.not-found-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  text-align: center;
  color: var(--white);
}
.not-found-content { max-width: 560px; padding: 48px 24px; }
.not-found-code {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue-400), var(--teal-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.not-found-content h1 { font-size: 2rem; font-weight: 700; margin: 20px 0 14px; }
.not-found-content p { color: var(--slate-300); margin-bottom: 32px; font-size: 1.05rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 24px;
    gap: 4px;
  }
  .hero h1 { font-size: 2.4rem; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
  .section-header h2 { font-size: 1.8rem; }
  .page-header h1 { font-size: 2rem; }
  .about-stats { flex-wrap: wrap; gap: 24px; }
}
