:root {
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f4f4f9;
  --border: #e6e7ec;
  --border-soft: #ececf1;
  --text: #16181d;
  --text-dim: #52565f;
  --text-dimmer: #71757e;
  --primary: #1d6fc2;
  --primary-hover: #175a9e;
  --primary-soft: #eaf2fb;
  --cta: #f0722e;
  --cta-hover: #d45f1e;
  --cta-soft: #fdeee4;
  --tint-purple: #f0722e;
  --tint-blue: #1d6fc2;
  --tint-green: linear-gradient(135deg, #1d6fc2, #f0722e);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.08);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1300px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .logo, .stat-number {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-hover); }

ul { list-style: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { color: inherit; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--cta);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(240, 114, 46, 0.3);
}
.btn-primary:hover { background: var(--cta-hover); color: #ffffff; transform: translateY(-1px); }

.btn-outline {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn-sm { padding: 10px 20px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; padding: 14px; font-size: 15px; margin-top: 6px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6vw;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
}
.logo img { display: block; height: 30px; width: auto; }
.site-footer .logo img { height: 26px; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a:not(.btn) { color: var(--text-dim); font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--text); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 6vw 100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.hero-glow {
  position: absolute;
  top: -100px; left: 10%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(29, 111, 194, 0.16), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  top: 40px; right: 4%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(240, 114, 46, 0.14), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-copy { position: relative; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  border: 1px solid rgba(29, 111, 194, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-hover);
  margin-bottom: 28px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 58px);
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 24px;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 0 36px;
}

.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.stat-number { font-size: 28px; font-weight: 700; }
.stat-label { font-size: 13px; color: var(--text-dimmer); }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ---------- Section shared ---------- */
.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head.tc { max-width: 900px; margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 38px; font-weight: 700; margin: 0 0 16px; }
.section-head p { font-size: 17px; color: var(--text-dim); line-height: 1.6; margin: 0; }

/* ---------- Services ---------- */
.services { padding: 100px 6vw; max-width: var(--max-width); margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(29, 111, 194, 0.3); box-shadow: var(--shadow-lg); }

.service-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #ffffff;
  font-size: 18px;
}
.tint-purple { background: var(--tint-purple); }
.tint-blue { background: var(--tint-blue); }
.tint-green { background: var(--tint-green); }

.service-card h3 { font-size: 21px; font-weight: 600; margin: 0; }
.service-card > p { font-size: 15px; line-height: 1.6; color: var(--text-dim); margin: 0; }

.service-card ul { margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.service-card li {
  font-size: 14px;
  color: var(--text-dim);
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.service-card .arrow { color: var(--primary); }

/* ---------- CTA banner ---------- */
.cta-banner-wrap { padding: 80px 6vw; max-width: var(--max-width); margin: 0 auto; }
.cta-banner {
  background: linear-gradient(135deg, var(--primary-soft), var(--cta-soft));
  border: 1px solid rgba(240, 114, 46, 0.18);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: var(--shadow-md);
}
.cta-banner h3 { font-size: 28px; font-weight: 700; margin: 0 0 10px; }
.cta-banner p { font-size: 16px; color: var(--text-dim); margin: 0; }
.cta-banner .btn { flex-shrink: 0; }

/* ---------- Contact ---------- */
.contact {
  padding: 100px 6vw;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-info h2 { font-size: 38px; font-weight: 700; margin: 0 0 16px; }
.contact-info > p { font-size: 17px; color: var(--text-dim); line-height: 1.6; margin: 0 0 32px; }

.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: center; font-size: 15px; color: var(--text-dim); }
.contact-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-error {
  font-size: 13px;
  color: #b3261e;
  background: #fdecea;
  border: 1px solid #f3c6c2;
  border-radius: 8px;
  padding: 10px 12px;
  margin: -6px 0 0;
}
.form-error a { color: #b3261e; text-decoration: underline; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.contact-form.form-exit { opacity: 0; transform: translateY(-8px); }

.success-state {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.success-state.success-enter { opacity: 1; transform: scale(1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.field input, .field textarea,
.contact-form > .field input, .contact-form > .field textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 111, 194, 0.15);
}

.success-state {
  text-align: center;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.success-state[hidden] { display: none; }
.success-check {
  width: 52px; height: 52px;
  border-radius: 999px;
  background: var(--cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--bg);
}
.success-state h3 { font-size: 20px; margin: 0; }
.success-state p { font-size: 14px; color: var(--text-dim); margin: 0; }

/* ---------- FAQ ---------- */
.faq { padding: 100px 6vw 120px; max-width: 900px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
}
.faq-question span:first-child { font-size: 16px; font-weight: 600; }
.faq-sign {
  font-size: 20px;
  color: var(--primary);
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}
.faq-item.open .faq-sign { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}
.faq-answer p { font-size: 15px; line-height: 1.6; color: var(--text-dim); padding-bottom: 0; }
.faq-item.open .faq-answer { max-height: 240px; padding: 0 24px 22px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 6vw;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-copy { font-size: 13px; color: var(--text-dimmer); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    padding: 0 6vw;
    gap: 18px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 250ms var(--ease-out), opacity 200ms var(--ease-out), padding 250ms var(--ease-out);
  }
  .menu-toggle { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 100px; }
  .hero-visual { order: -1; aspect-ratio: 16/9; }
  .services-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .site-footer { flex-direction: column; gap: 12px; text-align: center; }
}

.nav-links.open {
  max-height: 320px;
  opacity: 1;
  padding: 20px 6vw;
  pointer-events: auto;
  box-shadow: var(--shadow-lg);
}

/* ---------- Scroll reveal (marketing entrance, once per session) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.services-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.services-grid .reveal:nth-child(2) { transition-delay: 60ms; }
.services-grid .reveal:nth-child(3) { transition-delay: 120ms; }

/* ---------- Reduced motion: keep opacity, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .contact-form,
  .success-state {
    transition-duration: 200ms;
    transition-timing-function: ease;
  }
  .reveal,
  .reveal.in-view,
  .contact-form.form-exit,
  .success-state,
  .success-state.success-enter {
    transform: none;
  }
  .menu-toggle span,
  .nav-links,
  .faq-sign {
    transition-duration: 1ms;
  }
}
