/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #68b4e5;
  --blue-light: #86cdfc;
  --blue-pale: #c5e4f8;
  --dark: #1b1c1c;
  --body: #454557;
  --muted: #757589;
  --slate: #64748b;
  --nav-link: #475569;
  --border: rgba(197, 196, 218, 0.3);
  --bg-page: #faf9f9;
  --bg-section: #f4f3f3;
  --white: #ffffff;
  --tag: #c5c4da;
  --max-w: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg-page);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 20px rgba(30, 28, 56, 0.08);
}

.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
}

.navbar-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -1.2px;
  color: #636363;
  text-transform: uppercase;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 48px;
}

.navbar-links a {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.4px;
  color: var(--nav-link);
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--blue);
}

.navbar-links a.active {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: var(--blue);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--blue);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.btn-primary {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  background: var(--blue);
  border: none;
  border-radius: 9999px;
  padding: 12px 32px;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(104, 180, 229, 0.2),
    0 4px 6px -4px rgba(104, 180, 229, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 20px -3px rgba(104, 180, 229, 0.3),
    0 6px 8px -4px rgba(104, 180, 229, 0.25);
}

/* ===== Hero ===== */
.hero {
  padding-top: 96px;
  background: linear-gradient(
    to bottom,
    var(--white),
    rgba(179, 217, 242, 0.68) 75%,
    rgba(0, 155, 255, 0.64)
  );
  overflow: hidden;
  position: relative;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 40px 48px 0;
  min-height: 600px;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 31px;
  justify-content: center;
  padding-right: 40px;
}

.hero-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 4.2px;
  text-transform: uppercase;
  color: var(--blue);
}

.hero-heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 78px;
  line-height: 1.15;
  letter-spacing: -6.4px;
  text-transform: uppercase;
  color: var(--dark);
}

.hero-heading .highlight {
  color: var(--blue);
}

.hero-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 20px;
  line-height: 32.5px;
  color: var(--body);
  max-width: 612px;
  padding-top: 16px;
}

.hero-buttons {
  display: flex;
  gap: 24px;
  padding-top: 17px;
}

.btn-hero-primary {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  border: none;
  border-radius: 70px;
  padding: 20px 40px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero-primary:hover {
  transform: scale(1.03);
}

.btn-hero-secondary {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--tag);
  border-radius: 70px;
  padding: 21px 41px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-hero-secondary:hover {
  transform: scale(1.03);
  border-color: var(--blue);
}

.hero-image {
  flex-shrink: 0;
  width: 446px;
  height: 648px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Trusted Partners ===== */
.partners {
  position: relative;
  z-index: 10;
  padding: 0 48px;
  margin-top: -36px;
  margin-bottom: -36px;
}

.partners-card {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(197, 196, 218, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(30, 28, 56, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 28px 0;
  overflow: hidden;
}

.partners-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tag);
  text-align: center;
  margin-bottom: 24px;
}

.partners-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 10px;
  transition: background 0.3s, transform 0.3s;
}

.partner:hover {
  background: rgba(104, 180, 229, 0.06);
  transform: scale(1.05);
}

.partner-logo {
  height: 30px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.45;
  filter: grayscale(100%);
  transition: opacity 0.4s, filter 0.4s;
}

.partner:hover .partner-logo {
  opacity: 1;
  filter: grayscale(0%);
}

.partners-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tag);
  flex-shrink: 0;
  opacity: 0.4;
}

/* ===== Services Section ===== */
.services {
  background: var(--bg-section);
  padding: 106px 48px 84px;
}

.services-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.services-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -1.8px;
  text-transform: uppercase;
  color: var(--dark);
}

.services-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--body);
  text-transform: uppercase;
  margin-top: 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

/* ===== Service Card ===== */
.service-card {
  background: var(--white);
  border-radius: 60px;
  border-top: 4px solid var(--blue);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 48px;
  display: flex;
  flex-direction: column;
  min-height: 494px;
  position: relative;
}

.service-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--tag);
  text-transform: uppercase;
  margin-bottom: 47px;
}

.service-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 32px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 24px;
}

.service-desc {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: var(--body);
  flex: 1;
}

.service-cta {
  background: rgba(244, 243, 243, 0.5);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.service-cta span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--blue-light);
  line-height: 16.5px;
}

.service-cta .accent {
  color: var(--blue-light);
}

/* ===== Quote Section ===== */
.quote-section {
  background: var(--blue-pale);
  padding: 98px 48px 128px;
  overflow: hidden;
  position: relative;
}

.quote-bg-text {
  position: absolute;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 640px;
  line-height: 960px;
  letter-spacing: -32px;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.03;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}

.quote-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.quote-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 4.2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 32px;
}

.quote-text {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 48px;
  color: var(--dark);
  margin-bottom: 32px;
}

.quote-author {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.45px;
  text-transform: uppercase;
  color: var(--dark);
  padding-left: 24px;
  padding-top: 16px;
}

/* ===== Workflow / How To Work ===== */
.workflow {
  background: var(--white);
  padding: 34px 48px 82px;
}

.workflow-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.workflow-header {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px;
  margin-bottom: 96px;
}

.workflow-heading {
  grid-column: 1 / span 8;
  align-self: end;
  padding-bottom: 32px;
}

.workflow-heading h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 60px;
  line-height: 75px;
  letter-spacing: -3px;
  text-transform: uppercase;
  color: var(--dark);
}

.workflow-meta {
  grid-column: 9 / span 4;
  align-self: end;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.workflow-meta-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.workflow-meta-line {
  width: 114px;
  border-bottom: 1px solid var(--blue);
  height: 25px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.workflow-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.workflow-card-img {
  background: var(--bg-section);
  overflow: hidden;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.workflow-card-img img {
  width: 100%;
  height: 453px;
  object-fit: cover;
}

.workflow-card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workflow-card-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--dark);
}

.workflow-card-desc {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--body);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-section);
  padding: 42px 48px 48px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 106px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 37px;
}

.footer-logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 101px;
  line-height: 0.8;
  letter-spacing: -6px;
  color: rgba(104, 180, 229, 0.85);
  text-transform: uppercase;
}

.footer-logo-line2 {
  font-size: 62px;
}

.footer-tagline {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--slate);
  max-width: 384px;
}

.footer-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: var(--slate);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-bottom {
  border-top: 1px solid rgba(197, 196, 218, 0.2);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: var(--slate);
}

.footer-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* ===== Subpage Hero Variants ===== */
.hero--edu,
.hero--prod,
.hero--agency {
  min-height: auto;
  padding-bottom: 80px;
}

.hero--edu .hero-inner,
.hero--prod .hero-inner,
.hero--agency .hero-inner {
  min-height: 480px;
}

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--dark);
  padding: 48px;
}

.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 42px;
  letter-spacing: -2px;
  color: var(--blue);
}

.stat-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Subpage Process ===== */
.sub-process {
  background: var(--white);
  padding: 80px 48px;
}

.sub-process-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.sub-process-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 64px;
}

.sub-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.sub-process-step {
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s;
}

.sub-process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(104, 180, 229, 0.1);
  border-color: var(--blue);
}

.sub-process-num {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -2px;
  color: var(--blue);
  opacity: 0.3;
  margin-bottom: 24px;
}

.sub-process-step:hover .sub-process-num {
  opacity: 1;
}

.sub-process-step h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--dark);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sub-process-step p {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  color: var(--body);
}

/* ===== Subpage CTA ===== */
.sub-cta {
  background: var(--bg-section);
  padding: 80px 48px 100px;
}

.sub-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sub-cta-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
}

.sub-cta-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -2px;
  color: var(--dark);
  text-transform: uppercase;
}

.sub-cta-heading span {
  color: var(--blue);
}

.sub-cta-desc {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 26px;
  color: var(--body);
  max-width: 500px;
  margin-bottom: 8px;
}

/* ===== Legal Pages ===== */
.legal {
  padding: 140px 48px 80px;
  background: var(--white);
}

.legal-inner {
  max-width: 780px;
  margin: 0 auto;
}

.legal-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.legal-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -2px;
  color: var(--dark);
  text-transform: uppercase;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-body h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--dark);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-body h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--dark);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-body p {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: var(--body);
  margin-bottom: 16px;
}

.legal-body ul {
  margin: 8px 0 16px 24px;
  list-style: disc;
}

.legal-body li {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: var(--body);
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .legal {
    padding: 120px 24px 48px;
  }

  .legal-title {
    font-size: 32px;
    letter-spacing: -1px;
  }
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 28, 28, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay.closing {
  opacity: 0;
}

.modal-card {
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 32px 64px rgba(30, 28, 56, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 560px;
  padding: 48px;
  position: relative;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-overlay.closing .modal-card {
  transform: translateY(16px) scale(0.97);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-section);
  border-radius: 50%;
  font-size: 20px;
  color: var(--body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(104, 180, 229, 0.12);
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 32px;
}

.modal-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 12px;
}

.modal-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -1.2px;
  color: var(--dark);
  margin-bottom: 8px;
}

.modal-title span {
  color: var(--blue);
}

.modal-desc {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
}

/* --- Form --- */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--body);
}

.form-group input,
.form-group textarea {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  border: 1.5px solid rgba(197, 196, 218, 0.4);
  border-radius: 12px;
  background: var(--bg-page);
  color: var(--dark);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--tag);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(104, 180, 229, 0.12);
}

/* --- Chip selectors --- */
.form-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.form-chip {
  cursor: pointer;
}

.form-chip input {
  display: none;
}

.form-chip span {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1.5px solid rgba(197, 196, 218, 0.4);
  color: var(--body);
  background: var(--white);
  transition: all 0.25s;
  user-select: none;
}

.form-chip span:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.form-chip input:checked + span {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(104, 180, 229, 0.3);
}

/* --- Submit button --- */
.modal-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  border: none;
  border-radius: 14px;
  background: var(--dark);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
  position: relative;
  overflow: hidden;
}

.modal-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue), #4da0d8);
  opacity: 0;
  transition: opacity 0.3s;
}

.modal-submit:hover::before {
  opacity: 1;
}

.modal-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(104, 180, 229, 0.3);
}

.modal-submit:active {
  transform: translateY(0) scale(0.98);
}

.modal-submit-text {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.modal-submit-arrow {
  font-size: 18px;
  color: var(--white);
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}

.modal-submit:hover .modal-submit-arrow {
  transform: translateX(4px);
}

/* --- Success state --- */
.modal-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}

.modal-success.show {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: successPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-success-icon {
  animation: successBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes successBounce {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.modal-success h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.modal-success p {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
  max-width: 320px;
}

.modal-card.success {
  max-width: 420px;
}

/* --- Modal responsive --- */
@media (max-width: 640px) {
  .modal-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

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

  .modal-title {
    font-size: 26px;
  }
}

/* ===== Animations ===== */

/* --- Scroll reveal base --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale in */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Hero entrance animations --- */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSlideRight {
  from {
    opacity: 0;
    transform: translateX(80px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hero-tag {
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-heading {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.hero-desc {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-buttons {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

.hero-image {
  animation: heroSlideRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-image img {
  animation: heroFloat 6s ease-in-out 1.5s infinite;
}

/* --- Navbar scroll state --- */
.navbar {
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 30px rgba(30, 28, 56, 0.12);
}

.navbar.scrolled .navbar-inner {
  padding-top: 16px;
  padding-bottom: 16px;
}

.navbar-inner {
  transition: padding 0.35s;
}

/* --- Partners card entrance --- */
.partners-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.partners.visible .partners-card {
  opacity: 1;
  transform: translateY(0);
}

/* --- Service card hover & entrance --- */
.service-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(104, 180, 229, 0.15),
    0 8px 16px rgba(0, 0, 0, 0.06);
}

.service-cta {
  transition: background 0.3s, transform 0.3s;
}

.service-card:hover .service-cta {
  background: rgba(104, 180, 229, 0.1);
  transform: scale(1.02);
}

/* --- Quote parallax text --- */
@keyframes quoteDrift {
  0% { transform: translate(-50%, -50%) translateX(0); }
  50% { transform: translate(-50%, -50%) translateX(-30px); }
  100% { transform: translate(-50%, -50%) translateX(0); }
}

.quote-bg-text {
  animation: quoteDrift 12s ease-in-out infinite;
}

/* Quote text word-by-word reveal via clip-path */
.quote-text {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote-section.visible .quote-text {
  clip-path: inset(0 0% 0 0);
}

/* --- Workflow card image zoom on hover --- */
.workflow-card-img img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.workflow-card:hover .workflow-card-img img {
  transform: scale(1.05);
}

.workflow-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.workflow-card:hover {
  transform: translateY(-6px);
}

/* --- Footer logo shimmer --- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.footer-logo-text {
  background: linear-gradient(
    90deg,
    rgba(104, 180, 229, 0.85) 0%,
    rgba(134, 205, 252, 1) 25%,
    rgba(104, 180, 229, 0.85) 50%,
    rgba(134, 205, 252, 1) 75%,
    rgba(104, 180, 229, 0.85) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

/* --- Footer links hover slide --- */
.footer-links a {
  position: relative;
  display: inline-block;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover::after {
  width: 100%;
}

/* --- Button press effect --- */
.btn-hero-primary:active,
.btn-hero-secondary:active,
.btn-primary:active {
  transform: scale(0.97);
}

/* --- Navbar link hover underline --- */
.navbar-links a:not(.active) {
  position: relative;
}

.navbar-links a:not(.active)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.3s, left 0.3s;
}

.navbar-links a:not(.active):hover::after {
  width: 100%;
  left: 0;
}

/* --- Reduce motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .partners-card {
    opacity: 1;
    transform: none;
  }

  .partners-track {
    animation: none;
  }

  .quote-text {
    clip-path: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    text-align: left;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-heading {
    font-size: 56px;
    letter-spacing: -4px;
  }

  .hero-image {
    width: 100%;
    max-width: 400px;
    height: 500px;
    margin-top: 40px;
  }

  .services-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-header {
    grid-template-columns: 1fr;
  }

  .workflow-heading {
    grid-column: 1;
  }

  .workflow-meta {
    grid-column: 1;
    align-items: flex-start;
    text-align: left;
  }

  .partners {
    padding: 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-logo-text {
    font-size: 64px;
  }

  .footer-logo-line2 {
    font-size: 40px;
  }

  .quote-text {
    font-size: 32px;
    line-height: 38px;
  }

  .navbar-links {
    display: none;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .sub-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sub-process-title {
    font-size: 36px;
  }

  .sub-cta-heading {
    font-size: 36px;
  }
}

@media (max-width: 640px) {
  .navbar-inner {
    padding: 16px 24px;
  }

  .hero-inner {
    padding: 24px 24px 0;
  }

  .hero-heading {
    font-size: 40px;
    letter-spacing: -2px;
  }

  .hero-desc {
    font-size: 16px;
    line-height: 26px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .partners {
    padding: 0 16px;
  }

  .services,
  .quote-section,
  .workflow,
  .footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .services-heading {
    font-size: 28px;
  }

  .service-card {
    border-radius: 32px;
    padding: 32px;
    min-height: auto;
  }

  .workflow-heading h2 {
    font-size: 36px;
    line-height: 42px;
    letter-spacing: -1.5px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .stats-bar {
    padding: 32px 24px;
  }

  .stat-number {
    font-size: 32px;
  }

  .sub-process {
    padding: 48px 24px;
  }

  .sub-process-grid {
    grid-template-columns: 1fr;
  }

  .sub-process-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .sub-cta {
    padding: 48px 24px 64px;
  }

  .sub-cta-heading {
    font-size: 28px;
    letter-spacing: -1px;
  }
}
