/* =============================================
   LOGS DIGITAL — sections.css
   How It Works, About, Proof, Contact, Footer
   ============================================= */

/* =============================================
   SECTION: HOW IT WORKS
   ============================================= */

#how-it-works .section-header h2 {
  color: var(--text-dark);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: clamp(48px, 5vw, 64px);
}

.step-card {
  background: var(--bg-cream-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

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

.step-number {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.07);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.step-card h3 {
  color: var(--text-dark);
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-dark-2);
  font-size: 15px;
  line-height: 1.65;
}

.hiw-cta {
  text-align: center;
}

/* =============================================
   SECTION: ABOUT
   ============================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about-text h2 {
  color: var(--text-light);
}

.about-text .section-tag {
  margin-bottom: 24px;
}

.about-body p {
  color: var(--text-light-2);
  margin-bottom: 20px;
}

.about-body p:last-of-type {
  margin-bottom: 0;
}

/* =============================================
   SECTION: MEET THE FOUNDER
   ============================================= */

.section-founder {
  background: var(--bg-dark);
  color: var(--text-light);
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

/* Wave divider between About and Founder */
.founder-wave-divider {
  display: block;
  width: 100%;
  height: 80px;
  background: #080808;
  line-height: 0;
  margin-bottom: -1px;
}

.founder-wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Photo frame */
.founder-photo-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  /* Subtle teal glow to tie photo into the palette */
  box-shadow:
    0 0 0 1px rgba(132, 181, 159, 0.20),
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(80, 128, 142, 0.12);
}

.founder-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Text column */
.founder-text-col .section-tag {
  color: #84B59F;
  margin-bottom: 20px;
}

.founder-text-col h2 {
  color: var(--text-light);
  margin-bottom: 32px;
}

.founder-bio p {
  color: var(--text-light-2);
  margin-bottom: 20px;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.75;
}

.founder-bio p:last-child {
  margin-bottom: 0;
}

.founder-bio em {
  font-style: italic;
  color: #84B59F;
}

/* Credentials */
.founder-credentials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--border-light);
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(237, 237, 233, 0.55);
  letter-spacing: 0.02em;
}

.credential-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #84B59F;
  flex-shrink: 0;
}

/* =============================================
   SECTION: PROOF / GLOBE TICKER
   ============================================= */

#proof {
  overflow: hidden;
}

/* Three-column layout: left | globe | right */
.globe-ticker-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(48px, 8vw, 100px) 0;
}

/* Left heading */
.gt-left {
  text-align: right;
  flex-shrink: 0;
}

.gt-label {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin: 0;
}

.gt-label-accent {
  color: var(--accent);
}

.gt-label-sub {
  color: var(--text-dark);
  opacity: 0.35;
  font-size: clamp(20px, 2.8vw, 40px);
  font-weight: 700;
  margin-top: 4px;
}

/* ── SVG Planet Globe ── */
.gt-globe {
  flex-shrink: 0;
  width: clamp(130px, 15vw, 190px);
  height: clamp(130px, 15vw, 190px);
  filter: drop-shadow(0 8px 32px rgba(140, 100, 40, 0.18));
}

.globe-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Continents are static */
.globe-continents {
  transform-origin: 100px 100px;
}

/* ── Right ticker ── */
.gt-right {
  flex-shrink: 0;
  width: clamp(220px, 28vw, 380px);
}

.gt-ticker-mask {
  height: clamp(36px, 4vw, 52px);
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 75%, transparent 100%);
}

.gt-ticker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  /* transition controlled by JS so instant snap-back works */
}

.gt-ticker-list li {
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.6vw, 22px);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.1;
  height: clamp(36px, 4vw, 52px);
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

/* =============================================
   BLUR WORD ANIMATION (About section)
   ============================================= */

.blur-word {
  display: inline;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.6s ease, filter 0.6s ease;
  will-change: opacity, filter;
}

.blur-word.is-visible {
  opacity: 1;
  filter: blur(0px);
}

/* =============================================
   MAGIC TEXT (Founder bio — scroll-driven)
   ============================================= */

.magic-word {
  display: inline;
  opacity: 0.15;
  transition: opacity 0.25s ease;
  will-change: opacity;
}

.magic-word.is-lit {
  opacity: 1;
}

/* =============================================
   SECTION: CONTACT / CTA
   ============================================= */

.section-contact {
  position: relative;
}

.section-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-light), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}

.contact-text h2 {
  color: var(--text-light);
  margin-bottom: 20px;
}

.contact-text .section-tag {
  margin-bottom: 20px;
}

.contact-text p {
  color: var(--text-light-2);
  margin-bottom: 16px;
}

.contact-sub-note {
  font-size: 14px !important;
  color: rgba(237, 237, 233, 0.4) !important;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin-top: 8px;
}

/* Contact form */
.contact-form-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 44px);
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light-2);
}

.form-group input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-light);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-group input::placeholder {
  color: rgba(237, 237, 233, 0.25);
}

.form-group input:focus {
  border-color: var(--accent);
  background: rgba(255, 107, 43, 0.04);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input:focus::placeholder {
  color: transparent;
}

#contact-form .btn-primary {
  margin-top: 4px;
  justify-content: space-between;
}

.btn-label { flex: 1; text-align: center; }
.btn-arrow { flex-shrink: 0; }

.form-disclaimer {
  text-align: center;
  font-size: 12px;
  color: rgba(237, 237, 233, 0.55); /* was 0.3 — failed WCAG AA contrast */
  margin-top: -4px;
}

/* Form success state */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 60px 24px;
  color: var(--text-light);
}

.form-success[hidden] {
  display: none;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-success strong {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--text-light);
}

.form-success p {
  color: var(--text-light-2);
  font-size: 15px;
}

/* =============================================
   FOOTER
   ============================================= */

#footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-light);
  padding: clamp(24px, 3vw, 32px) var(--inner-pad);
}

.footer-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.02em;
}

.footer-location,
.footer-copy {
  font-size: 13px;
  color: rgba(237, 237, 233, 0.55); /* was 0.35 — failed WCAG AA contrast */
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text h2 {
    font-size: clamp(34px, 5vw, 52px);
  }

  .founder-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .founder-photo-frame {
    aspect-ratio: 4 / 3;
    max-height: 380px;
  }
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

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

@media (max-width: 640px) {
  /* Globe ticker: stack horizontally — left | globe — then ticker below */
  .globe-ticker-wrap {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: clamp(40px, 8vw, 64px) clamp(20px, 6vw, 40px);
  }

  /* Top row: left text + globe side by side */
  .gt-left {
    text-align: left;
    order: 1;
  }

  .gt-globe {
    width: 80px;
    height: 80px;
    order: 2;
    align-self: center;
  }

  /* Ticker below, full width, centered */
  .gt-right {
    width: 100%;
    text-align: center;
    order: 3;
  }

  .gt-ticker-mask {
    height: clamp(32px, 8vw, 48px);
  }

  .gt-ticker-list li {
    font-size: clamp(14px, 4.5vw, 20px);
    height: clamp(32px, 8vw, 48px);
    justify-content: center;
  }

  .gt-label {
    font-size: clamp(38px, 11vw, 56px);
  }

  .gt-label-sub {
    font-size: clamp(22px, 6.5vw, 34px);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
