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

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #3b82f6;
  --indigo: #4f46e5;
  --bg: #0a0f1e;
  --bg2: #0f1629;
  --bg3: #141c35;
  --surface: #1a2240;
  --border: rgba(255,255,255,0.08);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --green: #22c55e;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

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

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

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

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--blue-light); color: var(--blue-light); }
.btn-lg { padding: 14px 30px; font-size: 1rem; border-radius: 10px; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
}
.logo-icon { font-size: 1.4rem; color: var(--blue-light); }
.logo-text { letter-spacing: -0.3px; }
.logo-text strong { color: var(--blue-light); }
.hero-logo {
  display: block;
  width: 240px;
  height: 240px;
  margin: 0 auto 32px auto;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 16px; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,0.25) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 80% 60%, rgba(79,70,229,0.15) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-actions { justify-content: center; }
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--blue-light), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── SECTION HEADER ── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.section-header.light h2, .section-header.light p { color: #fff; }
.section-header.light p { color: rgba(255,255,255,0.7); }

/* ── SERVICES ── */
.services {
  padding: 100px 0;
  background: var(--bg2);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color .2s, transform .2s;
}
.service-card:hover {
  border-color: rgba(37,99,235,0.4);
  transform: translateY(-4px);
}
.service-card.featured {
  border-color: rgba(37,99,235,0.5);
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(79,70,229,0.08));
}
.featured-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.service-icon {
  width: 48px; height: 48px;
  background: rgba(37,99,235,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg {
  width: 24px; height: 24px;
  color: var(--blue-light);
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── ABOUT ── */
.about {
  padding: 100px 0;
  background: var(--bg);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 12px;
}
.about-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.3;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}
.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.vc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.vc-row:last-of-type { border-bottom: none; }
.vc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vc-dot.green { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,0.6); }
.vc-label { flex: 1; font-size: 0.9rem; font-weight: 500; }
.vc-status { font-size: 0.8rem; color: var(--green); font-weight: 500; }
.vc-divider { height: 1px; background: var(--border); margin: 12px 0; }
.vc-uptime {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.vc-ok { color: var(--green); font-weight: 600; }

/* ── CONTACT ── */
.contact {
  padding: 100px 0;
  background: linear-gradient(135deg, #0d1528, #111827);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color .2s;
}
.contact-card:hover { border-color: rgba(37,99,235,0.35); }
.contact-icon {
  width: 38px; height: 38px;
  background: rgba(37,99,235,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; color: var(--blue-light); }
.contact-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; margin-bottom: 3px; }
.contact-value { font-size: 0.9rem; font-weight: 500; color: var(--text); text-decoration: none; }
a.contact-value:hover { color: var(--blue-light); }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 480px;
  animation: fadeUp .25s ease;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color .2s;
}
.modal-close:hover { color: var(--text); }

/* ── CONTACT FORM ── */
.contact-form {}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color .2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue-light); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-submit { width: 100%; justify-content: center; }
.form-error {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #ef4444;
  min-height: 20px;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links { display: none; }
  .nav-inner { gap: 0; }
  .nav-cta { margin-left: auto; padding: 8px 16px; font-size: 0.85rem; }

  /* Hero */
  .hero-content { padding: 40px 20px 60px; }
  .hero-logo { width: 160px; height: 160px; margin-bottom: 24px; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); letter-spacing: -0.5px; }
  .hero-sub { font-size: 1rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Sections */
  .services { padding: 60px 0; }
  .about { padding: 60px 0; }
  .contact { padding: 60px 0; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { gap: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Modal */
  .modal-overlay { padding: 16px; align-items: flex-end; }
  .modal {
    padding: 24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 92vh;
    overflow-y: auto;
  }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
}
