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

/* ── Variables ──────────────────────────────────────────────────────── */
:root {
  --bg-color: #050505;
  --surface-color: #111111;
  --surface-color-light: #1a1a1a;
  --primary-color: #00e5ff;
  --primary-glow: rgba(0, 229, 255, 0.2);
  --secondary-color: #7000ff;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --border-color: #222222;
  --transition-speed: 0.3s;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* ── Typography ─────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 6vw, 4.5rem); letter-spacing: -1px; }
h2 { font-size: clamp(1.6rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); margin-bottom: 0.5rem; }

p {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.5vw, 1.125rem);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

ul { list-style: none; }

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

/* ── Layout ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .container { padding: 0 2rem; }
}

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}

/* ── Effects ────────────────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-panel {
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-speed);
  border: none;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .btn { padding: 1rem 2rem; font-size: 1rem; }
}

.btn-primary {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* ── Header & Nav ───────────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

@media (min-width: 768px) {
  .nav-container { height: 80px; }
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (min-width: 480px) {
  .logo { font-size: 1.5rem; }
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--primary-color);
  flex-shrink: 0;
}

/* Desktop nav */
.nav-links {
  display: none;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 2rem;
  }
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

/* Mobile nav drawer */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.3rem;
  cursor: pointer;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile nav open state */
.nav-links.active {
  display: flex;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100dvh - 70px);
  background: var(--bg-color);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  z-index: 999;
}

.nav-links.active a {
  font-size: 1.25rem;
  font-weight: 600;
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 70px;
}

@media (min-width: 768px) {
  .hero { padding-top: 80px; }
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero p {
  margin-top: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 480px) {
  .hero-btns {
    flex-direction: row;
    width: auto;
    gap: 1rem;
  }
}

/* ── Background shapes ──────────────────────────────────────────────── */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

.shape-1 {
  width: 280px;
  height: 280px;
  background: var(--secondary-color);
  top: 10%;
  right: -80px;
}

.shape-2 {
  width: 220px;
  height: 220px;
  background: var(--primary-color);
  bottom: 10%;
  left: -80px;
  opacity: 0.2;
}

@media (min-width: 768px) {
  .shape-1 { width: 400px; height: 400px; right: -100px; }
  .shape-2 { width: 300px; height: 300px; left: -100px; }
}

/* ── Stats / Value prop ─────────────────────────────────────────────── */
.value-prop {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(1.5rem, 5vw, 3rem);
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: clamp(0.65rem, 2vw, 1rem);
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Services ───────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
}

.service-card {
  padding: 1.75rem;
  transition: transform var(--transition-speed);
}

@media (min-width: 768px) {
  .service-card { padding: 2.5rem; }
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
}

.service-icon {
  width: 46px;
  height: 46px;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

/* ── CTA panel ──────────────────────────────────────────────────────── */
.cta-panel {
  padding: 2.5rem 1.5rem;
}

@media (min-width: 768px) {
  .cta-panel { padding: 4rem; }
}

/* ── Footer ─────────────────────────────────────────────────────────── */
footer {
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.footer-col:first-child {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .footer-col:first-child { grid-column: auto; }
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.footer-col .logo {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.footer-col > p {
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-links li { margin-bottom: 0.35rem; }

.footer-links a {
  color: var(--text-muted);
  font-size: 0.825rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ── Animations ─────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}
