/* AIForward — aiforward.one */
:root {
  --blue: #2563EB;
  --orange: #F97316;
  --white: #FFFFFF;
  --grey: #64748B;
  --green: #22C55E;
  --text: #0F172A;
  --muted: #64748B;
  --bg: #F8FAFC;
  --border: #E2E8F0;
  --radius: 12px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1180px;
  --header-h: 76px;
  --slide: 0.45s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:not(.js) .animate-on-scroll,
html:not(.js) .slide-forward {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-on-scroll,
  .slide-forward,
  .progress-bar-fill {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    width: var(--progress-target, 100%) !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange); }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75em;
  color: var(--text);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--muted); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--blue);
  color: var(--white);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Header — white nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.logo span { color: var(--blue); }
.logo::after {
  content: "→";
  color: var(--orange);
  font-size: 1.1rem;
  margin-left: 0.15rem;
}
.logo:hover { color: var(--blue); }

.nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.main-nav a {
  color: var(--grey);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--blue);
}
.btn-white:hover {
  background: var(--orange);
  color: var(--white);
}

main { padding-top: var(--header-h); }

.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.section-header p { margin-bottom: 0; }

/* Slide-forward animation */
.slide-forward,
.animate-on-scroll {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity var(--slide), transform var(--slide);
}
.slide-forward.is-visible,
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

/* Hero dashboard */
.hero-dashboard {
  padding: 3.5rem 0 5rem;
  background: linear-gradient(135deg, #EFF6FF 0%, var(--white) 55%, #FFF7ED 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
}
.hero-tagline {
  font-family: var(--font-display);
  color: var(--blue);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.hero-lead { font-size: 1.12rem; max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }

.dashboard-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
}
.dashboard-panel h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  margin-bottom: 1rem;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.metric-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 0.85rem;
  text-align: center;
}
.metric-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blue);
}
.metric-card span { font-size: 0.75rem; color: var(--grey); }
.progress-track {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.progress-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 999px;
  transition: width 1s ease;
}
.progress-bar-fill.is-filled { width: var(--progress-target, 0%); }
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--grey);
}

/* Assess band */
.forward-band {
  background: var(--blue);
  color: var(--white);
  padding: 1.25rem 0;
}
.band-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}
.band-steps li { display: flex; align-items: center; gap: 1rem; }
.band-steps li:not(:last-child)::after {
  content: "→";
  color: var(--orange);
  font-weight: 700;
}
.band-steps span { opacity: 0.92; }

/* Package cards */
.package-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.package-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.package-card:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
  transform: translateX(4px);
}
.package-card.featured {
  border-color: var(--blue);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.15);
}
.package-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.package-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--blue);
  margin: 0.5rem 0 1rem;
}
.package-price small { font-size: 0.85rem; color: var(--grey); font-weight: 400; }
.package-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex: 1;
  font-size: 0.9rem;
  color: var(--grey);
}
.package-card li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.package-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* Requirements strip */
.requirements-strip {
  background: var(--bg);
  border-block: 1px solid var(--border);
  padding: 2rem 0;
}
.req-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.req-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.req-item h4::before {
  content: "";
  width: 4px;
  height: 1.1em;
  background: var(--orange);
  border-radius: 2px;
}
.req-progress {
  margin-top: 0.75rem;
}

/* Journey steps */
.journey-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}
.journey-step {
  flex: 1 1 160px;
  max-width: 200px;
  text-align: center;
  position: relative;
}
.journey-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -0.75rem;
  top: 1.5rem;
  color: var(--orange);
  font-size: 1.25rem;
  font-weight: 700;
}
.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.journey-step p { font-size: 0.88rem; margin: 0; }

/* Service blocks */
.service-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-left: 4px solid var(--blue);
}
.service-block:hover { border-left-color: var(--orange); }
.service-block h3 { margin-bottom: 0.5rem; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.testimonial-card blockquote {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--text);
}
.testimonial-card cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--grey);
}
.testimonial-card cite strong { display: block; color: var(--text); }

/* CTA band */
.cta-band {
  background: var(--blue);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 52ch; margin-inline: auto; }

.apac-note {
  text-align: center;
  padding: 2rem 0 3rem;
  font-size: 0.95rem;
  color: var(--grey);
}
.apac-note strong { color: var(--text); }

/* Page hero */
.page-hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, #EFF6FF, var(--white));
}
.page-hero h1 { margin-bottom: 0.5rem; }

/* Collection */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--grey);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover,
.filter-btn.is-active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.collection-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: opacity 0.3s, transform 0.3s;
}
.collection-card.is-hidden {
  display: none;
}
.collection-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.collection-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.collection-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  background: #EFF6FF;
  color: var(--blue);
  border-radius: 4px;
}
.collection-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  margin-top: 0.5rem;
}

/* Services page */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.service-detail:nth-child(even) .service-detail-img { order: 2; }
.service-detail:nth-child(even) .service-detail-copy { order: 1; }
.service-detail img {
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.service-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--muted);
}
.service-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* About */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.value-card {
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
  margin: 2rem 0;
}
.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--blue);
}
.stat-item span {
  font-size: 0.88rem;
  color: var(--grey);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #DC2626;
}
.field-error {
  display: block;
  font-size: 0.82rem;
  color: #DC2626;
  margin-top: 0.35rem;
  min-height: 1.1em;
  opacity: 0;
}
.field-error.visible { opacity: 1; }
.form-success {
  display: none;
  padding: 1.5rem;
  background: #ECFDF5;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: #166534;
  font-weight: 500;
}
.form-success.visible { display: block; }

/* Legal */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}
.legal-content h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal-content ul { color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--text);
  color: #CBD5E1;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.footer-grid a { color: #94A3B8; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--text);
  color: #E2E8F0;
  padding: 1rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-inner p { margin: 0; font-size: 0.9rem; color: #CBD5E1; flex: 1 1 280px; }
.cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cookie-actions .btn-outline {
  border-color: #64748B;
  color: #E2E8F0;
}
.cookie-actions .btn-outline:hover {
  background: #334155;
  color: var(--white);
}

@media (max-width: 1024px) {
  .hero-grid,
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) .service-detail-img,
  .service-detail:nth-child(even) .service-detail-copy { order: unset; }
  .package-grid { grid-template-columns: repeat(2, 1fr); }
  .req-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-step:not(:last-child)::after { display: none; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .main-nav .btn { width: 100%; }
  .package-grid,
  .collection-grid,
  .testimonial-grid,
  .service-blocks,
  .values-grid,
  .stats-row,
  .contact-layout,
  .footer-grid,
  .metric-row { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
}
