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

:root {
  --navy:    #0D1B2A;
  --steel:   #1C3144;
  --cyan:    #00C2D1;
  --cyan-dim:#007F8A;
  --white:   #F5F9FC;
  --muted:   #8BA3B4;
  --card-bg: #132230;
  --border:  #1E3446;
}

html { scroll-behavior: smooth; }

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

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 5%;
  background: rgba(13,27,42,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--white); text-decoration: none;
}
.nav-logo span { color: var(--cyan); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--cyan); color: var(--navy);
  padding: 0.55rem 1.3rem; border-radius: 6px;
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 10rem 5% 6rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 100%);
}
.hero::after {
  content: '';
  position: absolute; top: 15%; right: -8%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,194,209,0.15) 0%, transparent 70%);
  animation: pulse 6s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.12); } }

.hero-content { position: relative; z-index: 1; max-width: 720px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 2px; background: var(--cyan);
}

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
h1 em { font-style: normal; color: var(--cyan); }

.hero-sub {
  font-size: 1.1rem; color: var(--muted);
  max-width: 540px; margin-bottom: 2.4rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--cyan); color: var(--navy);
  padding: 0.85rem 2rem; border-radius: 8px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  display: inline-block; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-ghost {
  border: 1px solid var(--border); color: var(--white);
  padding: 0.85rem 2rem; border-radius: 8px;
  font-weight: 500; font-size: 1rem; text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--cyan); transform: translateY(-1px); }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 5%;
  display: flex; align-items: center; justify-content: center;
  gap: 3rem; flex-wrap: wrap;
}
.trust-item {
  font-size: 0.82rem; color: var(--muted);
  font-weight: 500; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 0.5rem;
}
.trust-item .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); flex-shrink: 0;
}

/* ── SECTIONS ── */
section { padding: 6rem 5%; }

.section-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 0.8rem;
}
h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: 1rem;
}
.section-sub {
  color: var(--muted); font-size: 1rem;
  max-width: 520px; line-height: 1.7;
}
.section-header { margin-bottom: 3.5rem; }

/* ── SERVICES ── */
#services { background: var(--steel); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
  transition: border-color 0.25s, transform 0.2s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--cyan); opacity: 0;
  transition: opacity 0.25s;
}
.service-card:hover { border-color: var(--cyan-dim); transform: translateY(-3px); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(0,194,209,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; font-size: 1.4rem;
}
.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem; font-weight: 600;
  margin-bottom: 0.7rem;
}
.service-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; }
.tag {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; padding: 0.3rem 0.65rem;
  border-radius: 4px; background: rgba(0,194,209,0.08);
  color: var(--cyan); border: 1px solid rgba(0,194,209,0.2);
}

/* ── HOW IT WORKS ── */
.steps { display: flex; flex-direction: column; gap: 0; max-width: 680px; }
.step {
  display: flex; gap: 1.8rem; align-items: flex-start;
  position: relative; padding-bottom: 2.5rem;
}
.step:last-child { padding-bottom: 0; }
.step-line {
  display: flex; flex-direction: column; align-items: center; flex-shrink: 0;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cyan); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.step-connector {
  width: 2px; flex: 1; min-height: 40px;
  background: var(--border); margin-top: 6px;
}
.step:last-child .step-connector { display: none; }
.step-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem;
}
.step-body p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

/* ── WHY QUANTUMFLO ── */
#why { background: var(--steel); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.why-card {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 1.6rem; background: var(--navy);
}
.why-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem;
}
.why-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.why-icon { font-size: 1.3rem; margin-bottom: 0.8rem; }

/* ── CONTACT ── */
#contact {
  text-align: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--steel) 100%);
  position: relative; overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute; bottom: -20%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,194,209,0.12) 0%, transparent 70%);
}
#contact .content { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
#contact h2 { margin-bottom: 1rem; }
#contact > .content > p { color: var(--muted); margin-bottom: 2rem; }

#form-response {
  display: none;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
  max-width: 440px; margin: 0 auto 1.5rem;
}
.contact-form input,
.contact-form textarea {
  background: var(--card-bg); border: 1px solid var(--border);
  color: var(--white); border-radius: 8px;
  padding: 0.85rem 1rem; font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none; transition: border-color 0.2s; width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--cyan); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .btn-primary { width: 100%; text-align: center; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 2rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1rem; color: var(--white);
}
.footer-logo span { color: var(--cyan); }
footer p { color: var(--muted); font-size: 0.82rem; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 8rem 6% 4rem; }
  .trust-bar { gap: 1.2rem; }
  section { padding: 4rem 6%; }
  footer { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; }
  * { transition: none !important; }
}

/* Moved out of inline style attributes so the security policy can block inline styles */
.hp-field { display: none; position: absolute; left: -9999px; }
.contact-alt { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; }
.contact-alt a { color: var(--cyan); text-decoration: none; }
