/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #080c1a;
  --bg-secondary: #0d1229;
  --bg-card: #131a35;
  --bg-card-hover: #182044;
  --accent: #4f8cff;
  --accent-glow: rgba(79, 140, 255, 0.2);
  --teal: #00d4aa;
  --teal-glow: rgba(0, 212, 170, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #b8c4e0;
  --text-muted: #6e7a9a;
  --border: #1e2850;
  --border-light: #273060;
  --danger: #ff4f6d;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #7aadff; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--text-primary); }

/* === NAVIGATION === */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(8, 12, 26, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.5px; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; position: relative; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: var(--accent); color: #ffffff !important; padding: 0.6rem 1.5rem; border-radius: 8px; font-weight: 600; transition: background 0.3s, box-shadow 0.3s; }
.nav-cta:hover { background: #3b72e0; box-shadow: 0 4px 20px var(--accent-glow); }

/* === HERO === */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 8rem 2rem 6rem; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79, 140, 255, 0.08) 0%, transparent 60%), radial-gradient(ellipse 40% 50% at 80% 100%, rgba(0, 212, 170, 0.06) 0%, transparent 60%); z-index: 0; }
.hero-grid { position: absolute; inset: 0; opacity: 0.03; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 60px 60px; z-index: 0; }
.hero-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; width: 100%; }
.hero-badge { display: inline-block; background: var(--bg-card); border: 1px solid var(--border); color: var(--accent); padding: 0.5rem 1.2rem; border-radius: 100px; font-size: 0.85rem; font-weight: 600; margin-bottom: 2rem; letter-spacing: 0.5px; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -1px; }
.hero h1 span { display: block; color: var(--accent); }
.hero p { font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin-bottom: 2.5rem; line-height: 1.6; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 2rem; border-radius: 10px; font-weight: 600; font-size: 1rem; border: none; cursor: pointer; transition: all 0.3s; }
.btn-primary { background: var(--accent); color: #ffffff; box-shadow: 0 4px 20px var(--accent-glow); }
.btn-primary:hover { background: #3b72e0; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(79, 140, 255, 0.35); }
.btn-outline { background: transparent; color: var(--text-primary); border: 2px solid var(--border-light); }
.btn-outline:hover { border-color: var(--accent); background: rgba(79, 140, 255, 0.05); transform: translateY(-2px); }
.hero-visual { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 0; width: 50%; max-width: 600px; opacity: 0.6; }
.hero-shape { width: 400px; height: 400px; border: 1px solid var(--border); border-radius: 60px; position: relative; }
.hero-shape::before { content: ''; position: absolute; inset: -20px; border: 1px solid var(--border); border-radius: 80px; }
.hero-dot { position: absolute; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.hero-dot:nth-child(1) { top: 15%; left: 15%; }
.hero-dot:nth-child(2) { top: 25%; right: 20%; background: var(--teal); }
.hero-dot:nth-child(3) { bottom: 25%; left: 25%; }
.hero-dot:nth-child(4) { bottom: 35%; right: 30%; background: var(--teal); }

/* === STATS BAR === */
.stats { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-inner { max-width: 1200px; margin: 0 auto; padding: 2.5rem 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }

/* === SECTION TITLES === */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 0.85rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.5px; }
.section-desc { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin-bottom: 3rem; }

/* === SERVICES === */
.services { background: var(--bg-primary); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem 2rem; transition: all 0.3s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--teal)); opacity: 0; transition: opacity 0.3s; }
.service-card:hover { background: var(--bg-card-hover); border-color: var(--border-light); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
.service-card:hover::before { opacity: 1; }
.service-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; font-size: 1.5rem; }
.service-icon.blue { background: var(--accent-glow); color: var(--accent); }
.service-icon.teal { background: var(--teal-glow); color: var(--teal); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* === PROCESS === */
.process { background: var(--bg-secondary); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.process-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; text-align: center; position: relative; }
.process-step { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; margin: 0 auto 1.5rem; }
.process-card h3 { margin-bottom: 0.6rem; }
.process-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* === INDUSTRIES === */
.industries { background: var(--bg-primary); }
.industries-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.industry-tag { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); padding: 0.6rem 1.2rem; border-radius: 100px; font-size: 0.9rem; font-weight: 500; transition: all 0.2s; }
.industry-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* === CTA SECTION === */
.cta { background: var(--bg-secondary); position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 30% 50%, rgba(79, 140, 255, 0.1) 0%, transparent 70%); }
.cta-inner { max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.cta-inner p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.1rem; }
.cta-contact { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; margin-top: 2rem; }
.cta-contact-item { color: var(--text-secondary); font-size: 0.95rem; }
.cta-contact-item strong { color: var(--text-primary); display: block; margin-bottom: 0.3rem; }

/* === FOOTER === */
.footer { background: #060914; border-top: 1px solid var(--border); padding: 3rem 2rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.2rem; color: var(--text-secondary); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--text-primary); }
.footer-bottom { max-width: 1200px; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }

/* === DOCUMENT PAGES (Privacy / Terms) === */
.doc-page { padding: 8rem 2rem 5rem; }
.doc-inner { max-width: 800px; margin: 0 auto; }
.doc-header { text-align: center; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.doc-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; }
.doc-header .doc-date { color: var(--text-muted); font-size: 0.9rem; }
.doc-body h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; color: var(--accent); }
.doc-body h3 { font-size: 1.15rem; margin: 1.8rem 0 0.8rem; }
.doc-body p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.8; }
.doc-body ul, .doc-body ol { color: var(--text-secondary); margin: 0.5rem 0 1.5rem 1.5rem; }
.doc-body ul li, .doc-body ol li { margin-bottom: 0.5rem; line-height: 1.7; }
.doc-body strong { color: var(--text-primary); }
.doc-toc { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem 2rem; margin-bottom: 2.5rem; }
.doc-toc h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--text-primary); }
.doc-toc ol { margin-left: 1.2rem; }
.doc-toc ol li { margin-bottom: 0.4rem; }
.doc-toc ol li a { color: var(--accent); font-size: 0.9rem; }

/* === 404 PAGE === */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; position: relative; overflow: hidden; }
.error-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.error-bg-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 50px 50px; opacity: 0.5; }
.error-code { font-size: clamp(8rem, 20vw, 14rem); font-weight: 900; line-height: 1; color: var(--accent); position: relative; z-index: 1; }
.error-content { position: relative; z-index: 1; }
.error-content h1 { font-size: 2rem; margin-bottom: 1rem; }
.error-content p { color: var(--text-secondary); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-contact { flex-direction: column; gap: 1.5rem; align-items: center; }
  .hero h1 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .hero-buttons { flex-direction: column; }
}
