/* ============================================================
   KODREX — Homepage Styles
   ============================================================ */

/* ═══════════════════════════════════════════
   SECTION 1 — HERO
   ═══════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
}

.hero-bg-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    ellipse,
    rgba(200, 57, 43, 0.07) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.hero-bg-glow-2 {
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    ellipse,
    rgba(200, 57, 43, 0.04) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(200, 57, 43, 0.5);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(200, 57, 43, 0);
  }
}

.hero-eyebrow-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(90px, 14vw, 200px);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 36px;
}

.hero-headline .line-accent {
  color: var(--red);
  position: relative;
  display: inline-block;
}

/* Animated underline stroke on accent word */
.hero-headline .line-accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  animation: draw-line 1.2s 0.8s var(--ease-out) forwards;
}

@keyframes draw-line {
  to {
    width: 100%;
  }
}

.hero-sub {
  max-width: 560px;
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 44px;
}

.hero-sub strong {
  color: var(--text-primary);
  font-weight: 600;
}

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

/* Scroll indicator */
.hero-scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 5%;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.4;
}

.hero-scroll-cue-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--text-primary), transparent);
}

.hero-scroll-cue-text {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  writing-mode: vertical-rl;
}

/* ═══════════════════════════════════════════
   MARQUEE STRIP
   ═══════════════════════════════════════════ */

.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee-scroll 32s linear infinite;
  width: max-content;
}

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

.marquee-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.marquee-dot {
  color: var(--red);
  font-size: 16px;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ═══════════════════════════════════════════
   SECTION 2 — ABOUT / CREDIBILITY
   ═══════════════════════════════════════════ */

.about-section {
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-heading {
  font-size: clamp(52px, 7vw, 100px);
  line-height: 0.9;
  margin-bottom: 32px;
}

.about-copy p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-copy p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  margin-top: 8px;
  transition: gap 0.2s;
}

.about-link:hover {
  gap: 12px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
}

.stat-box {
  background: var(--bg-3);
  padding: 32px 28px;
  transition: background 0.2s;
}

.stat-box:hover {
  background: var(--bg-4);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.9;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.stat-value span {
  color: var(--red);
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   SECTION 3 — SERVICES
   ═══════════════════════════════════════════ */

.services-section {
  background: var(--bg-2);
  position: relative;
}

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}

.services-heading {
  font-size: clamp(52px, 7vw, 100px);
  line-height: 0.9;
}

.services-intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-bottom: 8px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--bg-3);
  padding: 36px 32px;
  position: relative;
  transition: background 0.25s var(--ease);
  cursor: default;
}

.service-card:hover {
  background: var(--bg-4);
}

/* Red top border on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-number {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.service-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid var(--border-red);
  border-radius: 2px;
  padding: 3px 8px;
  margin-bottom: 12px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.15;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

/* Service Tags */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.service-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 3px 9px;
  letter-spacing: 0.03em;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.service-card:hover .service-tag {
  color: var(--text-secondary);
  border-color: var(--border-light);
}

/* Make service card a flex column so tags sit at the bottom */
.service-card {
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════
   SECTION 4 — WHY KODREX
   ═══════════════════════════════════════════ */

.why-section {
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

.why-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgba(200, 57, 43, 0.05) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.why-header {
  text-align: center;
  margin-bottom: 72px;
}

.why-heading {
  font-size: clamp(52px, 7vw, 100px);
  line-height: 0.9;
  margin-bottom: 16px;
}

.why-intro {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.why-card {
  background: var(--bg-3);
  padding: 44px 36px;
  transition: background 0.25s;
}

.why-card:hover {
  background: var(--bg-4);
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.1;
}

.why-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════
   SECTION 5 — PROCESS
   ═══════════════════════════════════════════ */

.process-section {
  background: var(--bg-2);
  position: relative;
}

.process-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 72px;
}

.process-heading {
  font-size: clamp(52px, 7vw, 100px);
  line-height: 0.9;
}

.process-intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.process-step:last-child {
  border-bottom: none;
}

.process-step:hover {
  background: var(--bg-3);
}

.process-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border-right: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 32px 0;
  transition:
    background 0.2s,
    color 0.2s;
}

.process-step:hover .process-step-num {
  background: var(--red-dim);
  color: var(--red);
}

.process-step-content {
  padding: 32px 36px;
}

.process-step-content h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.1;
}

.process-step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════
   SECTION 6 — PRICING
   ═══════════════════════════════════════════ */

.pricing-section {
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

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

.pricing-heading {
  font-size: clamp(52px, 7vw, 100px);
  line-height: 0.9;
  margin-bottom: 16px;
}

.pricing-intro {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pricing-card {
  background: var(--bg-3);
  padding: 44px 36px;
  position: relative;
  transition: background 0.25s;
}

.pricing-card.featured {
  background: var(--bg-4);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
}

.pricing-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid var(--border-red);
  border-radius: 2px;
  padding: 3px 8px;
  margin-bottom: 20px;
}

.pricing-tier {
  font-family: var(--font-heading);
  font-size: 32px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: clamp(48px, 5vw, 64px);
  line-height: 1;
  color: var(--text-primary);
  margin: 16px 0 4px;
}

.pricing-price sub {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  vertical-align: middle;
  color: var(--text-secondary);
}

.pricing-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-feature-check {
  color: var(--red);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   SECTION 7 — WORK PREVIEW
   ═══════════════════════════════════════════ */

.work-section {
  /* background: var(--bg-2); */
  background: var(--bg-base);
  position: relative;
}

.work-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}

.work-heading {
  font-size: clamp(52px, 7vw, 100px);
  line-height: 0.9;
}

.work-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s;
}

.work-card:hover {
  border-color: var(--border-light);
}

.work-card-info {
  padding: 52px 48px;
  background: var(--bg-3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.work-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.work-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  padding: 4px 10px;
}

.work-card-info h3 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: 0.03em;
  line-height: 0.95;
  color: var(--text-primary);
}

.work-card-info p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.work-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.work-metric {
  background: var(--bg-4);
  padding: 16px 14px;
  text-align: center;
}

.work-metric-val {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--red);
  margin-bottom: 2px;
}

.work-metric-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.work-card-visual {
  background: var(--bg-4);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
}

.work-card-visual-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px;
}

/* Decorative platform visual */
.work-mockup {
  width: 100%;
  max-width: 320px;
  background: var(--bg-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
}

.work-mockup-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.work-mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
}

.work-mockup-dot:first-child {
  background: #ff5f57;
}
.work-mockup-dot:nth-child(2) {
  background: #febc2e;
}
.work-mockup-dot:nth-child(3) {
  background: #28c840;
}

.work-mockup-line {
  height: 8px;
  background: var(--bg-3);
  border-radius: 4px;
  margin-bottom: 8px;
}

.work-mockup-line.short {
  width: 60%;
}
.work-mockup-line.medium {
  width: 80%;
}
.work-mockup-line.full {
  width: 100%;
}
.work-mockup-line.red {
  background: var(--red-dim);
  border: 1px solid var(--border-red);
}

.work-mockup-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.work-mockup-card-item {
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  padding: 10px;
  border: 1px solid var(--border);
}

.work-mockup-card-item .line {
  height: 6px;
  background: var(--bg-4);
  border-radius: 3px;
  margin-bottom: 6px;
}

.work-mockup-card-item .dot-red {
  width: 20px;
  height: 6px;
  background: var(--red-dim);
  border-radius: 3px;
}

/* ═══════════════════════════════════════════
   SECTION 8 — TESTIMONIAL
   ═══════════════════════════════════════════ */

.testimonial-section {
  /* background: var(--bg-base); */
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.testimonial-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.testimonial-quote-mark {
  font-family: var(--font-heading);
  font-size: 120px;
  line-height: 0.7;
  color: var(--red);
  opacity: 0.18;
  display: block;
  margin-bottom: -20px;
}

.testimonial-quote {
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--text-primary);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 36px;
}

.testimonial-attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.testimonial-divider {
  width: 40px;
  height: 1px;
  background: var(--border-light);
}

.testimonial-author {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════
   SECTION 9 — FINAL CTA
   ═══════════════════════════════════════════ */

.final-cta {
  /* background: var(--bg-2); */
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: var(--section-pad) 5%;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.final-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(
    ellipse,
    rgba(200, 57, 43, 0.08) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 2;
}

.final-cta h2 {
  font-size: clamp(52px, 8vw, 120px);
  line-height: 0.88;
  margin-bottom: 20px;
}

.final-cta p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.final-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .services-header {
    grid-template-columns: 1fr;
  }
  .process-header {
    grid-template-columns: 1fr;
  }
  .work-card {
    grid-template-columns: 1fr;
  }
  .work-card-visual {
    min-height: 280px;
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .work-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
  .work-card-metrics {
    grid-template-columns: 1fr;
  }
  .process-step {
    grid-template-columns: 56px 1fr;
  }
}
