/* ══════════════════════════════════════
   HOMEPAGE STYLES
   Sections 1–4 specific to index.html
══════════════════════════════════════ */

/* ── SECTION 1: BOLD STATEMENT HERO ── */
.s1-hero {
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  padding-top: clamp(100px, 12vh, 160px);
  padding-bottom: clamp(60px, 8vh, 120px);
  position: relative;
}

.s1-layout {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.s1-top-row {
  display: flex;
  justify-content: center;
}

.s1-left {
  min-width: 0;
}

.s1-headline {
  font-family: var(--font-sans);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

/* Accent font for key words */
.accent-font {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.s1-headline-grain {
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E") repeat, #111;
  background-size: 180px 180px, auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.s1-headline-line2 {
  display: block;
  font-size: clamp(18px, 2.2vw, 34px);
  font-weight: 400;
  color: var(--color-text-mid);
  line-height: 1.5;
  letter-spacing: -0.005em;
  margin-top: 1em;
}

.s1-headline-line3 {
  display: block;
  text-align: center;
  margin-top: 0.5em;
  font-size: clamp(18px, 2.2vw, 34px);
}

.rotating-wrapper {
  display: inline-block;
  position: relative;
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
  color: #fff;
  padding: 0.2em 0.45em;
  border-radius: 0.3em;
  overflow: hidden;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: none;
}

.rotating-inner {
  display: inline-flex;
  white-space: nowrap;
}

.rotating-char {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-style: normal;
  color: #fff;
  transition: none;
  will-change: transform, opacity;
}

.rotating-char.char-enter {
  animation: charSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rotating-char.char-exit {
  animation: charSlideOut 0.3s cubic-bezier(0.55, 0, 1, 0.45) both;
}

@keyframes charSlideUp {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes charSlideOut {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0; }
}

.s1-description {
  display: none;
}

.s1-outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-size: 17px;
  font-weight: 500;
  font-family: var(--font-sans);
  text-decoration: none;
  letter-spacing: 0.01em;
  margin-top: 48px;
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease, transform 0.15s ease;
}

.s1-outline-btn:hover {
  background: var(--color-text);
  color: #fff;
  transform: scale(1.02);
}

.s1-outline-btn:hover .s1-gradient-text {
  background: linear-gradient(135deg, #E87420, #f5a623, #2C4685);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.s1-gradient-text {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-deep) 25%, var(--color-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.s1-btn-arrow {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.s1-outline-btn:hover .s1-btn-arrow {
  transform: translateX(3px);
}

/* ── SECTION 2: DARK HERO WITH VIDEO ── */
.s2-video-section {
  background: var(--color-bg-dark);
  position: relative;
  z-index: 2;
  padding: var(--pad-section-v) var(--pad-section);
  overflow: hidden;
}

.s2-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.s2-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(120px);
  opacity: 0.45;
}

.s2-blob-1 {
  width: 50vw; height: 50vh; top: -15%; left: -10%;
  background: radial-gradient(circle, var(--color-blue) 0%, transparent 70%);
}

.s2-blob-2 {
  width: 60vw; height: 60vh; top: 20%; right: -15%;
  background: radial-gradient(circle, var(--color-orange) 0%, transparent 70%);
}

.s2-blob-3 {
  width: 45vw; height: 45vh; bottom: -10%; left: 25%;
  background: radial-gradient(circle, var(--color-brown) 0%, transparent 70%);
}

.s2-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

.s2-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 40px);
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.s2-text-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.s2-name {
  font-family: var(--font-sans);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 500;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: clamp(20px, 2.5vw, 36px);
}

.s2-name em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.s2-description {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  letter-spacing: 0.005em;
  max-width: 440px;
  margin-bottom: clamp(28px, 3vw, 44px);
}

.s2-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 400;
  font-family: var(--font-sans);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.3s ease, border-color 0.3s ease;
  width: fit-content;
}

.s2-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.s2-cta svg {
  width: 14px; height: 14px;
  transition: transform 0.3s ease;
}

.s2-cta:hover svg {
  transform: translateX(3px);
}

.s2-video-card {
  flex: 0 0 clamp(280px, 26vw, 400px);
  height: clamp(380px, 34vw, 540px);
  border-radius: var(--radius-tile);
  overflow: hidden;
  background: #222;
}

.s2-video-card video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ── SECTION 3: TOOLS SHOWCASE ── */
.section-tools {
  background: var(--color-bg-light);
  padding: var(--pad-section-v) var(--pad-section);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.tools-layout {
  display: flex;
  gap: clamp(32px, 4vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 1;
}

.tools-left { flex: 1; }

.tools-headline {
  font-family: var(--font-sans);
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}

.tools-headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #888;
}

.tools-pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tools-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 400;
  color: var(--color-text);
  width: fit-content;
  cursor: default;
  transition: background 0.3s ease, color 0.3s ease;
}

.tools-pill.active {
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-text);
  font-weight: 500;
}

.tools-pill:not(.active) { color: var(--color-text-muted); }
.tools-pill:not(.active):hover { color: #666; }

.tools-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tools-pill.active .tools-pill-dot { opacity: 1; }

/* Glass gradient CTA button */
.explore-lessons-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 40%, var(--color-blue) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(232, 116, 32, 0.3), 0 2px 8px rgba(44, 70, 133, 0.2);
}

.explore-lessons-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 40%, rgba(255, 255, 255, 0.15) 100%);
  pointer-events: none;
}

.explore-lessons-btn::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 80%; height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.4) 45%, rgba(255, 255, 255, 0.1) 55%, transparent 60%);
  transform: rotate(25deg);
  pointer-events: none;
  transition: left 0.5s ease;
}

.explore-lessons-btn:hover::after { left: 120%; }

.explore-lessons-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 28px rgba(232, 116, 32, 0.4), 0 3px 12px rgba(44, 70, 133, 0.25);
}

.explore-lessons-btn svg {
  width: 14px; height: 14px;
  position: relative; z-index: 1;
  transition: transform 0.3s ease;
}

.explore-lessons-btn:hover svg { transform: translateX(3px); }

.tools-right {
  flex: 0 0 clamp(340px, 36vw, 480px);
}

.tools-card {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-card);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 24px;
}

.tools-card-brand {
  position: absolute;
  top: clamp(20px, 2.5vw, 32px);
  right: clamp(20px, 2.5vw, 32px);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
}

.tools-card-icon {
  width: 40px; height: 40px;
  color: var(--color-text-muted);
}

.tools-card-title {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.tools-card-preview {
  background: var(--color-text);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
}

.tools-card-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tools-card-preview-header span {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.tools-card-preview-nav {
  display: flex;
  gap: 8px;
}

.tools-card-preview-nav button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.tools-card-preview-body {
  flex: 1;
  padding: 16px 18px;
  overflow: hidden;
  position: relative;
}

.tools-card-track {
  display: flex;
  gap: 12px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
}

.tools-card-workflow {
  flex: 0 0 calc(33.333% - 8px);
  border-radius: var(--radius-small);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.tools-card-workflow:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.tools-card-workflow:nth-child(1) {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-burnt) 100%);
}

.tools-card-workflow:nth-child(2) {
  background: linear-gradient(135deg, var(--color-blue-bright) 0%, var(--color-blue-dark) 100%);
}

.tools-card-workflow:nth-child(3) {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-dark) 100%);
}

.tools-card-workflow-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  margin-bottom: 3px;
  line-height: 1.3;
}

.tools-card-workflow-name {
  font-size: 11px;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
}

.tools-card-workflow-num {
  position: absolute;
  top: 10px; left: 12px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

.tools-card-workflow-badge {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.tools-card-desc {
  font-size: clamp(13px, 1vw, 15px);
  color: var(--color-text-muted);
  line-height: 1.6;
  font-weight: 300;
  font-style: italic;
}

/* ── SECTION 4: CTA BANNER ── */
.s4-cta {
  background: var(--color-bg-dark);
  padding: clamp(80px, 10vw, 160px) var(--pad-section);
  text-align: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.s4-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.s4-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(120px);
  opacity: 0.45;
}

.s4-blob-1 {
  width: 50vw; height: 50vh; top: -15%; right: -10%;
  background: radial-gradient(circle, var(--color-blue) 0%, transparent 70%);
}

.s4-blob-2 {
  width: 60vw; height: 60vh; bottom: -20%; left: -15%;
  background: radial-gradient(circle, var(--color-orange) 0%, transparent 70%);
}

.s4-blob-3 {
  width: 45vw; height: 45vh; top: 20%; left: 30%;
  background: radial-gradient(circle, var(--color-brown) 0%, transparent 70%);
}

.s4-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

.s4-headline {
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.5vw, 72px);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.s4-headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.s4-sub {
  font-size: clamp(19px, 1.5vw, 22px);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.s4-igotu {
  font-size: clamp(19px, 1.5vw, 22px);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  max-width: 540px;
  margin: 1.4em auto 40px;
  position: relative;
  z-index: 1;
}

.s4-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--color-text);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-sans);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.3s ease, transform 0.15s ease;
  position: relative;
  z-index: 1;
}

.s4-btn:hover {
  background: #e8e8e8;
  transform: scale(1.03);
}

.s4-btn svg {
  width: 14px; height: 14px;
  transition: transform 0.3s ease;
}

.s4-btn:hover svg { transform: translateX(3px); }

/* ── MOBILE OVERRIDES ── */
@media (max-width: 768px) {
  /* S1 Hero */
  .s1-hero {
    min-height: 68vh;
    padding-top: clamp(70px, 10vh, 110px);
    padding-bottom: clamp(40px, 6vh, 64px);
  }

  .s1-layout {
    max-width: 100%;
    text-align: center;
  }

  .s1-top-row {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .s1-headline {
    font-size: clamp(30px, 8.5vw, 44px);
  }

  .s1-headline-line2 {
    font-size: clamp(17px, 4.8vw, 23px);
    margin-top: 1em;
  }

  .s1-headline-grain {
    display: block;
  }

  .s1-headline-line3 {
    font-size: clamp(15px, 4.2vw, 23px);
    margin-top: 0.4em;
  }

  .rotating-wrapper {
    font-size: 1em;
    padding: 0.25em 0.55em;
    white-space: nowrap;
    max-width: calc(100vw - 2 * var(--pad-section));
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .s1-outline-btn {
    font-size: 11.5px;
    padding: 10px 18px;
    margin: 28px auto 0;
    border-width: 1.5px;
    white-space: nowrap;
    display: block;
    width: fit-content;
  }

  /* S2 Dark Hero */
  .s2-video-section {
    padding-top: clamp(40px, 6vh, 60px);
  }

  .s2-layout {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }

  .s2-text-block { display: contents; }
  .s2-name { order: 1; }
  .s2-description { order: 2; }
  .s2-video-card { order: 3; }
  .s2-cta { order: 4; }

  .s2-video-card {
    flex: none;
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 9 / 11;
    align-self: center;
  }

  .s2-video-card video {
    object-position: center center;
  }

  .s2-name {
    font-size: clamp(28px, 7vw, 42px);
    text-align: left;
    margin-bottom: 12px;
  }

  .s2-name-preload {
    opacity: 1 !important;
    transform: none !important;
  }

  .s2-description {
    font-size: clamp(14px, 3.5vw, 16px);
    text-align: left;
  }

  /* S3 Tools */
  .section-tools {
    padding-top: clamp(40px, 6vh, 60px);
  }

  .tools-layout {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 14px;
  }

  .tools-headline {
    font-size: clamp(28px, 7vw, 40px);
    text-align: left;
    width: 100%;
    margin-bottom: 0;
  }

  .tools-pills {
    width: 100%;
    margin-bottom: 0;
  }

  .tools-left { display: contents; }
  .tools-headline { order: 1; }
  .tools-pills { order: 2; }

  .tools-right {
    flex: none;
    width: 100%;
    order: 3;
  }

  .explore-lessons-btn {
    order: 4;
    font-size: 14px;
    padding: 12px 24px;
    margin-top: 24px;
    width: fit-content;
  }

  .tools-card {
    padding: clamp(20px, 4vw, 28px);
  }

  .tools-card-preview {
    aspect-ratio: 16 / 12;
  }

  .tools-card-workflow {
    flex: 0 0 85%;
    padding: 14px;
  }

  .tools-card-workflow-name { font-size: 12px; }
  .tools-card-workflow-label { font-size: 10px; }
  .tools-card-workflow-badge { font-size: 10px; }
  .tools-card-desc { font-size: 13px; }

  .tools-pill {
    font-size: 13px;
    padding: 10px 16px;
  }

  /* S4 CTA */
  .s4-headline {
    font-size: clamp(28px, 8vw, 48px);
  }

  .s4-sub {
    font-size: clamp(14px, 3.5vw, 16px);
    max-width: 100%;
    text-align: left;
  }

  .s4-igotu {
    font-size: clamp(14px, 3.5vw, 16px);
    text-align: left;
  }
}
