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

:root {
  --blue:    #2563EB;
  --purple:  #7C3AED;
  --green:   #059669;
  --red:     #DC2626;
  --dark:    #0A0D14;
  --dark2:   #111622;
  --dark3:   #1A2035;
  --border:  rgba(255,255,255,0.08);
  --text:    #E2E8F0;
  --muted:   #94A3B8;
  --white:   #FFFFFF;
  --radius:  16px;
  --shadow:  0 4px 32px rgba(0,0,0,0.4);
  --font:    'Inter', system-ui, sans-serif;
  --font2:   'Space Grotesk', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

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

/* ===========================
   UTILITIES
=========================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.25);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-family: var(--font2);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,0.5); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }

.btn-white {
  background: #fff;
  color: #0A0D14;
  font-weight: 700;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,255,255,0.2); }

.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10,13,20,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10,13,20,0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  font-family: var(--font2);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-maeg   { color: var(--white); }
.brand-systems { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
}
.glow-1 {
  width: 700px; height: 700px;
  background: var(--blue);
  top: -200px; left: -200px;
}
.glow-2 {
  width: 500px; height: 500px;
  background: var(--purple);
  bottom: -100px; right: -100px;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-family: var(--font2);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 36px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.4s ease both;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font2);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===========================
   SERVICES
=========================== */
.services {
  padding: 100px 0;
  background: var(--dark2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  transform: translateY(-4px) !important;
}

.card-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.card-icon { width: 26px; height: 26px; }

.card-title {
  font-family: var(--font2);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-list li {
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.card-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.card-link:hover { color: #60A5FA; }

/* ===========================
   ABOUT
=========================== */
.about {
  padding: 100px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.about-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: var(--purple);
  filter: blur(120px);
  opacity: 0.08;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.about-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-desc {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pillar-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.pillar strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.pillar p { font-size: 0.88rem; color: var(--muted); }

/* About visual */
.about-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
}

.visual-card {
  position: absolute;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}

.vc-icon { font-size: 1.3rem; }

.vc-1 { top: 5%;  left: -5%;   animation-delay: 0s; }
.vc-2 { top: 5%;  right: -5%;  animation-delay: 1s; }
.vc-3 { bottom: 5%; left: -5%; animation-delay: 2s; }
.vc-4 { bottom: 5%; right: -5%; animation-delay: 3s; }

.visual-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font2);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 32px;
  box-shadow: 0 0 80px rgba(37,99,235,0.15);
}

/* ===========================
   CTA BAND
=========================== */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  padding: 64px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-family: var(--font2);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.cta-text p { color: rgba(255,255,255,0.8); font-size: 1rem; }

/* ===========================
   CONTACT
=========================== */
.contact {
  padding: 100px 0;
  background: var(--dark2);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-desc {
  color: var(--muted);
  margin: 16px 0 32px;
  font-size: 1rem;
  line-height: 1.7;
}

.contact-details { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text);
}

.ci-icon {
  width: 38px; height: 38px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); opacity: 0.7; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-group select { cursor: pointer; }
.form-group select option { background: var(--dark2); }

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.form-feedback {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 20px;
}
.form-feedback.success { color: #34D399; }
.form-feedback.error   { color: #F87171; }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .brand { font-size: 1.2rem; display: inline-block; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; color: var(--muted); max-width: 240px; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.footer-links a { font-size: 0.88rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

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

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { max-width: 360px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(10,13,20,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 24px;
    z-index: 99;
  }
  .nav-links.open a { font-size: 1.1rem; color: var(--text); }
  .nav-links.open + .nav-cta { display: none; }

  .hero-stats { gap: 24px; }
  .stat-divider { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  .cta-inner { flex-direction: column; text-align: center; }

  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
}
