/* ══════════════════════════════════════════
   SOLUTRIX SOLUTIONS — Production CSS
   Mobile-first, no framework dependencies
   Target: <1s load, 100 Lighthouse perf
══════════════════════════════════════════ */

/* ── RESET & CUSTOM PROPERTIES ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #0A1628;
  --navy2:      #0F1E38;
  --navy3:      #070F1D;
  --card:       #131F35;
  --teal:       #00C2A8;
  --teal2:      #00A38D;
  --white:      #FFFFFF;
  --grey:       #8A9BB5;
  --light-grey: #EEF2F8;
  --border:     rgba(255,255,255,0.07);
  --teal-border: rgba(0,194,168,0.15);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.25);
  --transition: 0.2s ease;

  --max-width: 1180px;
  --section-pad: clamp(4rem, 8vw, 7rem) 5%;
}

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

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
ol { list-style: none; }
button { font-family: inherit; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  background: var(--teal); color: var(--navy);
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ── NAVIGATION ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,22,40,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--teal-border);
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo span { color: var(--teal); }

#nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

#nav-menu a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--grey);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
#nav-menu a:hover { color: var(--white); }
#nav-menu a.active { color: var(--white); }

.nav-cta {
  background: var(--teal) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 0.45rem 1.1rem !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--teal2) !important; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
#home {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 5% 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* dot grid */
#home::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,194,168,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* radial vignette */
#home::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, transparent 40%, var(--navy) 100%);
  pointer-events: none;
}

/* pulse rings */
.pulse-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(0,194,168,0.15);
  animation: pulse-expand 5s ease-out infinite;
  pointer-events: none;
}
.pulse-ring:nth-child(1) { width: 280px;  height: 280px;  animation-delay: 0s; }
.pulse-ring:nth-child(2) { width: 500px;  height: 500px;  animation-delay: 1.2s; }
.pulse-ring:nth-child(3) { width: 720px;  height: 720px;  animation-delay: 2.4s; }
.pulse-ring:nth-child(4) { width: 940px;  height: 940px;  animation-delay: 3.6s; }

@keyframes pulse-expand {
  0%   { opacity: 0.55; transform: translate(-50%,-50%) scale(0.88); }
  100% { opacity: 0;    transform: translate(-50%,-50%) scale(1.06); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(0,194,168,0.28);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.6rem;
}

.blink-dot {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }

.hero-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.3rem;
}
.hero-inner h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--grey);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-btns {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Shared button styles */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  cursor: pointer;
}
.btn-primary:hover, .btn-ghost:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--teal);
  color: var(--navy);
  border: 2px solid transparent;
}
.btn-primary:hover { background: var(--teal2); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat span { font-size: 0.82rem; color: var(--grey); }
.stat-divider {
  width: 1px; height: 40px;
  background: var(--border);
}

/* ── SECTION BASE ── */
section {
  padding: var(--section-pad);
}

.section-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.7rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.028em;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--grey);
  max-width: 540px;
  line-height: 1.75;
}

.section-header { margin-bottom: 3.5rem; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

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

.services-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-color: rgba(0,194,168,0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.service-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: rgba(0,194,168,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.15rem;
}
.service-icon svg {
  width: 22px; height: 22px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.65;
}

/* ── HOW IT WORKS ── */
#how { background: var(--navy); }

#how .section-header {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.steps {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: steps;
  padding: 0;
}

.step {
  padding: 0 2rem 0 0;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1.1rem; right: 0;
  width: 1px;
  height: calc(100% - 2rem);
  background: var(--teal-border);
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}
.step p {
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.65;
}

/* ── ABOUT ── */
#about { background: var(--navy2); }

.about-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-features {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-feat {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.about-feat-icon {
  width: 34px; height: 34px; min-width: 34px;
  border-radius: 8px;
  background: rgba(0,194,168,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.about-feat-icon svg {
  width: 16px; height: 16px;
  stroke: var(--teal); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.about-feat h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.about-feat p { font-size: 0.87rem; color: var(--grey); line-height: 1.6; }

/* performance card */
.about-visual {
  background: var(--card);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  box-shadow: var(--shadow-card);
}
.about-visual-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey);
}
.metric-row { display: flex; flex-direction: column; gap: 0.45rem; }
.metric-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--grey);
}
.metric-val { color: var(--teal); font-weight: 600; }
.metric-bar {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.metric-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal2), var(--teal));
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

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

.why-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.why-card {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color var(--transition), transform var(--transition);
}
.why-card:hover {
  border-color: rgba(0,194,168,0.28);
  transform: translateY(-2px);
}

.why-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(0,194,168,0.18);
  line-height: 1;
  margin-bottom: 0.7rem;
  letter-spacing: -0.04em;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.why-card p { font-size: 0.87rem; color: var(--grey); line-height: 1.65; }

/* ── CONTACT ── */
#contact { background: var(--navy2); }

.contact-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-top: 1.75rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: rgba(0,194,168,0.1);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg {
  width: 18px; height: 18px;
  stroke: var(--teal); fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.contact-item h3 {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--grey);
  margin-bottom: 0.18rem;
}
.contact-item p { font-size: 0.92rem; color: var(--white); }
.contact-item a {
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--teal); }

/* Form */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--grey);
}
.form-group label span { color: var(--teal); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(138,155,181,0.6); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,194,168,0.12);
}
.form-group input.error,
.form-group textarea.error { border-color: #e05252; }

.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--navy2); }
.form-group textarea { resize: vertical; min-height: 110px; }

.field-error { font-size: 0.78rem; color: #e05252; min-height: 1em; }

.form-submit {
  background: var(--teal);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.9rem 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}
.form-submit:hover:not(:disabled) { background: var(--teal2); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(10,22,40,0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.form-submit.loading .btn-text { opacity: 0.5; }
.form-submit.loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0,194,168,0.1);
  border: 1px solid rgba(0,194,168,0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 500;
}
.form-success svg {
  width: 20px; height: 20px;
  stroke: var(--teal); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.form-error-msg {
  background: rgba(224,82,82,0.1);
  border: 1px solid rgba(224,82,82,0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: #e05252;
  font-size: 0.9rem;
}
.form-error-msg a { color: #e05252; text-decoration: underline; }
[hidden] { display: none !important; }

/* ── FOOTER ── */
footer {
  background: var(--navy3);
  border-top: 1px solid var(--border);
  padding: 3.5rem 5% 2rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.footer-brand .logo { font-size: 1.15rem; }
.footer-brand p {
  font-size: 0.86rem;
  color: var(--grey);
  max-width: 270px;
  margin-top: 0.65rem;
  line-height: 1.65;
}

.footer-links { display: flex; gap: 4rem; flex-wrap: wrap; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--grey);
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem 0; }
  .step:nth-child(3)::after { display: none; }
  .about-grid { gap: 3rem; }
  .contact-wrap { gap: 3rem; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --section-pad: 3.5rem 5%; }

  /* Nav mobile */
  .hamburger { display: flex; }

  #nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy2);
    border-bottom: 1px solid var(--teal-border);
    padding: 0.75rem 5%;
    gap: 0;
  }
  #nav-menu.open { display: flex; }
  #nav-menu li { border-bottom: 1px solid var(--border); }
  #nav-menu li:last-child { border: none; padding-top: 0.5rem; }
  #nav-menu a {
    display: block;
    padding: 0.7rem 0;
    font-size: 0.95rem;
    border-radius: 0;
  }
  .nav-cta {
    text-align: center;
    border-radius: var(--radius-sm) !important;
    padding: 0.65rem 1rem !important;
  }

  /* Hero */
  .hero-stats { gap: 1.5rem; }
  .stat-divider { display: none; }
  .pulse-ring:nth-child(3),
  .pulse-ring:nth-child(4) { display: none; }

  /* Grids */
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Steps */
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step {
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--teal-border);
  }
  .step:last-child { border: none; }
  .step::after { display: none !important; }

  /* Footer */
  .footer-links { gap: 2rem; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .pulse-ring { animation: none; opacity: 0.1; }
  .blink-dot  { animation: none; }
  .btn-spinner { animation: none; }
  * { transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
