/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white: #ffffff;
  --green-500: #22c55e;
  --red-500: #ef4444;

  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.18);

  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.btn--primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #1d4ed8, var(--blue-600));
  box-shadow: 0 6px 20px rgba(37,99,235,.45);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn--ghost:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.btn--nav {
  background: var(--blue-600);
  color: var(--white);
  padding: .5rem 1rem;
  font-size: .875rem;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.btn--nav:hover { background: #1d4ed8; }

.btn--lg { padding: .875rem 1.75rem; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}
.nav__logo .logo-icon { width: 1.75rem; height: 1.75rem; color: var(--blue-600); }
.logo-text strong { color: var(--blue-600); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav__links a:not(.btn) {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
}
.nav__links a:not(.btn):hover { color: var(--gray-900); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 4rem; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav__links a:not(.btn) {
    padding: .75rem 0;
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav__links .btn--nav { margin-top: 1rem; width: 100%; justify-content: center; }
  .nav__hamburger { display: flex; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gray-950);
  padding-top: 4rem;
}

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

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.hero__glow--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #2563eb, transparent);
  top: -200px; left: -100px;
}
.hero__glow--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #22d3ee, transparent);
  top: 100px; right: -50px;
  opacity: .2;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 10vh, 7rem);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--cyan-300);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .375rem .875rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--cyan-400);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan-400);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 680px;
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--gray-400);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.hero__actions .btn--ghost {
  color: var(--gray-300);
  border-color: rgba(255,255,255,.2);
}
.hero__actions .btn--ghost:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.3);
  color: var(--white);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.stat { display: flex; flex-direction: column; gap: .125rem; }
.stat__num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat__label {
  font-size: .8125rem;
  color: var(--gray-400);
}
.stat__divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255,255,255,.12);
}

/* ===== SECTIONS ===== */
.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}
.section--dark {
  background: var(--gray-950);
  color: var(--white);
}
.section--form {
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
  line-height: 1.2;
}
.section__header p {
  color: var(--gray-600);
  font-size: 1.0625rem;
}
.section__header--light p { color: var(--gray-400); }
.section__header--light h2 { color: var(--white); }

.section__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: rgba(37,99,235,.08);
  padding: .3rem .75rem;
  border-radius: 100px;
  margin-bottom: .875rem;
}
.section__tag--cyan {
  color: var(--cyan-400);
  background: rgba(34,211,238,.08);
}

/* ===== STEPS ===== */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.step:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.step__num {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--blue-600);
  opacity: .5;
  margin-bottom: 1rem;
}

.step__icon {
  width: 3rem; height: 3rem;
  background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(34,211,238,.1));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue-600);
}
.step__icon svg { width: 1.5rem; height: 1.5rem; }

.step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .625rem;
  color: var(--gray-900);
}
.step p { font-size: .9375rem; color: var(--gray-600); line-height: 1.65; }

.step__connector {
  flex-shrink: 0;
  padding-top: 3.5rem;
  color: var(--gray-300);
}
.step__connector svg { width: 2.5rem; }

@media (max-width: 820px) {
  .steps { flex-direction: column; }
  .step__connector { align-self: center; transform: rotate(90deg); padding-top: 0; }
}

/* ===== CATEGORIES ===== */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.category {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: background var(--transition), border-color var(--transition);
}
.category:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(34,211,238,.25);
}

.category__icon {
  width: 2.75rem; height: 2.75rem;
  background: rgba(34,211,238,.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
  margin-bottom: 1.25rem;
}
.category__icon svg { width: 1.375rem; height: 1.375rem; }

.category h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.category ul { display: flex; flex-direction: column; gap: .5rem; }
.category li {
  font-size: .875rem;
  color: var(--gray-400);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.category li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--cyan-400);
  border-radius: 50%;
  margin-top: .55rem;
  flex-shrink: 0;
}

/* ===== BENEFITS ===== */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.benefit {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.benefit:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.benefit__icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.benefit__icon svg { width: 1.5rem; height: 1.5rem; }

.benefit__icon--blue   { background: rgba(37,99,235,.1);  color: var(--blue-600); }
.benefit__icon--cyan   { background: rgba(34,211,238,.1); color: #0891b2; }
.benefit__icon--green  { background: rgba(34,197,94,.1);  color: #16a34a; }
.benefit__icon--purple { background: rgba(139,92,246,.1); color: #7c3aed; }
.benefit__icon--orange { background: rgba(249,115,22,.1); color: #ea580c; }
.benefit__icon--teal   { background: rgba(20,184,166,.1); color: #0d9488; }

.benefit h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--gray-900);
}
.benefit p { font-size: .9375rem; color: var(--gray-600); line-height: 1.65; }

/* ===== FORM SECTION ===== */
.form-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.form-bg__glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.06), transparent 70%);
  top: -200px; right: -200px;
  border-radius: 50%;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; }
}

.form-intro { position: sticky; top: 6rem; }
.form-intro .section__tag { margin-bottom: .875rem; }
.form-intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.form-intro > p { color: var(--gray-600); line-height: 1.7; margin-bottom: 1.5rem; }

.form-tips {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.form-tips__title {
  font-size: .875rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: .75rem;
}
.form-tips ul { display: flex; flex-direction: column; gap: .375rem; }
.form-tips li {
  font-size: .875rem;
  color: var(--gray-600);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.form-tips li::before {
  content: '→';
  color: var(--blue-500);
  font-weight: 700;
  flex-shrink: 0;
}

.form-promise {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--gray-600);
  font-size: .875rem;
}
.form-promise svg { width: 1.125rem; height: 1.125rem; color: var(--green-500); flex-shrink: 0; }

/* ===== QUOTE FORM ===== */
.quote-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row { display: grid; gap: 1.25rem; }
.form-row--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) {
  .form-row--two { grid-template-columns: 1fr; }
}

.form-field { display: flex; flex-direction: column; gap: .375rem; }

.form-field label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
}
.required { color: var(--blue-600); }

.form-field input,
.form-field textarea,
.form-field select {
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .9375rem;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--gray-400); }

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.field-error {
  font-size: .8125rem;
  color: var(--red-500);
  font-weight: 500;
  min-height: 1rem;
}

.form-field--check { flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: .375rem; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-custom {
  width: 1.125rem; height: 1.125rem;
  min-width: 1.125rem;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  margin-top: .1rem;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--blue-600);
  border-color: var(--blue-600);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}
.checkbox-label .link { color: var(--blue-600); text-decoration: underline; }

.form-note {
  font-size: .8125rem;
  color: var(--gray-400);
  text-align: center;
}

.form-submit-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: .875rem;
  font-weight: 500;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  line-height: 1.5;
}

/* Loading state */
.btn-loading { display: inline-flex; align-items: center; gap: .5rem; }
.spin { width: 1rem; height: 1rem; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SUCCESS STATE ===== */
.form-success {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}
.success-icon {
  width: 4rem; height: 4rem;
  background: rgba(34,197,94,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--green-500);
}
.success-icon svg { width: 2rem; height: 2rem; }
.form-success h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: .75rem;
  color: var(--gray-900);
}
.form-success p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-inline: auto;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 3.5rem;
}

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
}

.footer__links { display: contents; }

.footer__brand .nav__logo { color: var(--white); margin-bottom: 1rem; }
.footer__brand p { font-size: .9rem; line-height: 1.65; max-width: 260px; }

.footer__col h4 {
  font-size: .875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: .625rem; }
.footer__col li { font-size: .875rem; }
.footer__col a { color: var(--gray-400); transition: color var(--transition); }
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-block: 1.25rem;
}
.footer__bottom p { font-size: .8125rem; color: var(--gray-600); text-align: center; }

/* ===== MISC ===== */
@media (max-width: 640px) {
  .hero__stats { gap: 1rem; }
  .stat__divider { display: none; }
}
