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

:root {
  --dark: #06101f;
  --charcoal: #0d1a30;
  --mid: #162140;
  --line: #1d2d50;
  --muted: #6475a0;
  --light: #f1f4fb;
  --cream: #f8f9fd;
  --paper: #e9edf7;
  --accent: #f97316;
  --accent-dark: #ea6a0a;
  --red-genius: #f04e4e;
  --green-genius: #22c97e;
  --radius: 3px;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 min(7vw, 80px); }

/* ---------- TOP NAV ---------- */
nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 24px 7vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  height: 28px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.8));
}

.nav-cta {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.nav-cta:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  background: var(--dark);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 15% top;
}

.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(6,16,31,0.97) 20%, rgba(6,16,31,0.82) 35%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 7vw 8vh;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 0 12px rgba(6,16,31,0.9);
}

.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(42px, 6.5vw, 92px);
  color: #fff;
  line-height: 1.02;
  font-weight: 600;
  margin-bottom: 24px;
  max-width: 16ch;
  letter-spacing: -0.8px;
  text-shadow: 0 0 16px rgba(6,16,31,0.6);
}

.hero-title .serif-em {
  font-style: italic;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  border: none;
  font-family: 'IBM Plex Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary > span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: scale(1.10);
}

.btn-primary:hover > span {
  transform: scale(0.909);
}

.btn-secondary {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 4px;
  transition: all 0.2s;
}

.btn-secondary:hover { color: var(--accent); border-color: var(--accent); }

.hero-creds {
  position: absolute;
  bottom: 32px;
  right: 7vw;
  z-index: 3;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  text-align: right;
  line-height: 1.8;
  font-weight: 300;
}

.hero-creds strong { color: rgba(255,255,255,0.7); font-weight: 500; }

.hero-creds-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}

.hero-creds-logos a {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.hero-creds-logos img {
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.45;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.hero-creds-logos a:hover img {
  filter: grayscale(0);
  opacity: 0.9;
  transform: scale(1.10);
}

/* ---------- THREE PHASES ---------- */
.phases {
  background: var(--cream);
  padding: 100px 0;
}

.phases-header {
  text-align: center;
  margin-bottom: 64px;
}

.phases-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}


.accent-word {
  color: var(--accent);
}

.shine-word {
  display: inline-block;
  background-image: linear-gradient(
    110deg,
    #f5a623 0%,
    #f5a623 45%,
    #fff3b0 48%,
    #ffffff 50%,
    #fff3b0 52%,
    #f5a623 55%,
    #f5a623 100%
  );
  background-size: 1200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  will-change: background-position;
  animation: shine-sweep 3s linear infinite;
  animation-delay: 1s;
}

@keyframes shine-sweep {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}

.burn-word {
  display: inline-block;
  background-image: linear-gradient(
    100deg,
    #8a1e12 0%,
    #b8301f 18%,
    #e74832 36%,
    #a52615 54%,
    #d23c2a 72%,
    #8a1e12 100%
  );
  background-size: 240% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  will-change: background-position;
  animation: burn-flow 7s ease-in-out infinite;
}

@keyframes burn-flow {
  0%   { background-position: 0% 0; }
  50%  { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .shine-word { animation: none; background-position: 0 0; }
  .burn-word  { animation: none; background-position: 50% 0; }
}

.phases-sub {
  font-size: 16px;
  color: #4a5778;
  line-height: 1.7;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

.chain-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.chain-join {
  flex-shrink: 0;
  width: 36px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.chain-join::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--muted);
  opacity: 0.65;
}

.chain-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.link-shape {
  width: 150px;
  height: 74px;
  border: 7px solid var(--dark);
  border-radius: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  position: relative;
  animation: linkPulse 3s ease-in-out infinite;
}

.link-ideate .link-shape { animation-delay: 0s; }
.link-activate .link-shape { animation-delay: 1s; }
.link-finish .link-shape { animation-delay: 2s; }

@keyframes linkPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.link-cog {
  position: relative;
  width: 38px;
  height: 38px;
}

.link-cog img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


.link-label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dark);
}

.link-desc {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.section-eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
  font-weight: 500;
}

.section-eyebrow.dark { color: var(--accent); }

.section-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.section-title.dark { color: #fff; }

.section-intro {
  font-size: 16px;
  color: #4a5778;
  max-width: 620px;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 56px;
}

.section-intro.dark { color: rgba(255,255,255,0.55); }

/* ---------- SERVICES ---------- */
.services {
  padding: 100px 0;
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid #dde4f2;
  border-radius: 6px;
  padding: 40px 36px;
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.service-num {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 2px;
  font-weight: 600;
}

.service-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 23px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.service-tag {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 20px;
  font-weight: 500;
}

.service-body {
  font-size: 14px;
  color: #4a5778;
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 300;
}

.service-meta {
  border-top: 1px solid #dde4f2;
  padding-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.meta-item {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.meta-item strong {
  display: block;
  color: var(--dark);
  font-size: 13px;
  font-weight: 500;
  margin-top: 3px;
  letter-spacing: 0;
}

/* ---------- WIDGET MODEL SECTION ---------- */
.widget-section {
  background: var(--dark);
  padding: 100px 0 110px;
}

/* ---------- TEAM MAP ROW ---------- */
.tm-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 24px;
  margin-bottom: 28px;
}

.tm-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  transition: opacity 0.5s ease;
}

.tm-cog-wrap {
  position: relative;
  width: 72px;
  height: 72px;
}

.tm-cog-wrap svg {
  width: 100%;
  height: 100%;
  transition: fill 0.5s ease, opacity 0.5s ease;
  animation: cogSpin linear infinite;
}

@keyframes cogSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.tm-step[data-key="W"] .tm-cog-wrap svg { animation-duration: 9s; }
.tm-step[data-key="I"] .tm-cog-wrap svg { animation-duration: 13s; }
.tm-step[data-key="D"] .tm-cog-wrap svg { animation-duration: 7s; }
.tm-step[data-key="G"] .tm-cog-wrap svg { animation-duration: 11s; }
.tm-step[data-key="E"] .tm-cog-wrap svg { animation-duration: 15s; }
.tm-step[data-key="T"] .tm-cog-wrap svg { animation-duration: 8s; }

.tm-step.missing .tm-cog-wrap svg { animation-play-state: paused; }

.tm-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  font-weight: 500;
  transition: color 0.5s ease;
}

.tm-arrow {
  flex-shrink: 0;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  margin-bottom: 24px;
}

/* Default (present) state */
.tm-step .tm-cog-wrap svg { fill: var(--accent); opacity: 1; }
.tm-step .tm-label { color: rgba(255,255,255,0.65); }

/* Missing state */
.tm-step.missing .tm-cog-wrap svg { fill: rgba(255,255,255,0.1); }
.tm-step.missing .tm-label { color: rgba(255,255,255,0.15); }


.tm-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(18px, 5.8vw, 44px);
  font-style: italic;
  color: rgba(255,255,255,0.55);
  margin-top: 52px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  height: 180px;
  line-height: 1.35;
  letter-spacing: -0.3px;
  font-weight: 200;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.toggle-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: rgba(255,255,255,0.45);
  padding: 10px 18px;
  cursor: pointer;
  border-radius: var(--radius);
  font-family: 'IBM Plex Sans', sans-serif;
  transition: all 0.3s ease;
  font-weight: 500;
}

.toggle-btn svg {
  width: 18px;
  height: auto;
  fill: currentColor;
  flex-shrink: 0;
}

.toggle-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

.widget-caption {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 36px;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ---------- HOW IT WORKS ---------- */
.process {
  padding: 100px 0;
  background: var(--paper);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.step {
  border-top: 1px solid #d0d8ec;
  padding-top: 24px;
}

.step-num {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-weight: 600;
}

.step-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.step-body {
  font-size: 13px;
  color: #4a5778;
  line-height: 1.7;
  font-weight: 300;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  background: var(--dark);
  padding: 100px 0;
}

.carousel-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 80px;
  will-change: transform;
}

.testimonial {
  flex-shrink: 0;
}

.testimonial-quote {
  font-size: clamp(16px, 1.6vw, 20px);
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 16px;
  letter-spacing: -0.1px;
  border-left: 2px solid var(--accent);
  padding-left: 28px;
}

.testimonial-attr {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}

.carousel-arrow {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.18);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.2s;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 200;
}

.carousel-arrow:hover {
  color: rgba(255,255,255,0.55);
}

/* ---------- ABOUT ---------- */
.about {
  padding: 100px 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.about-photo {
  border-radius: 6px;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-body p {
  font-size: 15px;
  color: #3d4f70;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 18px;
}

.about-list {
  list-style: none;
  margin-top: 24px;
  border-top: 1px solid #d8e0f0;
  padding-top: 20px;
}

.about-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #dde4f2;
  font-size: 13px;
}

.about-list li span:first-child {
  color: var(--muted);
  letter-spacing: 0.5px;
}

.about-list li span:last-child {
  color: var(--dark);
  font-weight: 500;
  text-align: right;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 100px 0;
  background: var(--paper);
}

.faq-list {
  margin-top: 16px;
}

details {
  border-bottom: 1px solid #d0d8ec;
  padding: 22px 0;
  cursor: pointer;
}

details summary {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1.3;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: '+';
  font-size: 24px;
  color: var(--accent-dark);
  font-weight: 300;
  transition: transform 0.3s;
  margin-left: 16px;
  flex-shrink: 0;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  font-size: 14px;
  color: #4a5778;
  line-height: 1.8;
  margin-top: 14px;
  padding-right: 40px;
  font-weight: 300;
}

/* ---------- CTA ---------- */
.cta-section {
  background: var(--dark);
  padding: 110px 0;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--accent);
}

.cta-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(30px, 4vw, 52px);
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 44px;
  font-weight: 300;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ---------- FOOTER ---------- */
body > footer {
  background: #040c1a;
  padding: 36px 7vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-name {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.footer-meta {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 300;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-left: 24px;
  transition: color 0.2s;
}

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

/* ---------- BOOKING POPUP ---------- */
.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 16, 31, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.booking-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.booking-popup {
  position: relative;
  padding: 30px;
}

.booking-close {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  background: rgba(6, 16, 31, 0.6);
  border: none;
  font-size: 28px;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.booking-close:hover {
  background: rgba(6, 16, 31, 0.9);
}

.booking-popup .mg-inline {
  min-width: 50vw !important;
}
