﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&family=Unbounded:wght@600;800&display=swap');

:root {
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-alt: #eef2f7;
  --line: rgba(11, 15, 23, 0.14);
  --text: #0b0f17;
  --muted: rgba(11, 15, 23, 0.78);
  --accent: #2fd39a;
  --accent-2: #4a8dff;
  --accent-3: #ff9f55;
  --shadow: 0 18px 40px rgba(15, 20, 30, 0.12);
  --radius: 18px;
  --grad-1: rgba(86, 168, 255, 0.18);
  --grad-2: rgba(60, 255, 178, 0.16);
  --grad-3: rgba(255, 159, 85, 0.14);
  --orb-1: rgba(86, 168, 255, 0.25);
  --orb-2: rgba(60, 255, 178, 0.2);
  --orb-3: rgba(255, 159, 85, 0.2);
  --header-bg: rgba(246, 247, 251, 0.75);
  --header-border: rgba(15, 20, 30, 0.08);
  --step-bg: rgba(15, 20, 30, 0.06);
  --icon-bg: rgba(15, 20, 30, 0.06);
  --chip-bg: rgba(255, 255, 255, 0.85);
  --chip-border: rgba(11, 15, 23, 0.18);
  --field-bg: rgba(255, 255, 255, 0.9);
  --modal-backdrop: rgba(8, 10, 14, 0.35);
  --modal-bg: #ffffff;
  --close-bg: rgba(15, 20, 30, 0.05);
  --eyebrow: #168a68;
  --toggle-shadow: 0 8px 20px rgba(15, 20, 30, 0.12);
  --hover-border: rgba(11, 15, 23, 0.2);
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0c10;
  --bg-soft: #111318;
  --card: #16181f;
  --card-alt: #1a1d24;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --muted: rgba(244, 246, 251, 0.65);
  --accent: #3cffb2;
  --accent-2: #56a8ff;
  --accent-3: #ff9f55;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --grad-1: rgba(86, 168, 255, 0.15);
  --grad-2: rgba(60, 255, 178, 0.12);
  --grad-3: rgba(255, 159, 85, 0.12);
  --orb-1: rgba(86, 168, 255, 0.35);
  --orb-2: rgba(60, 255, 178, 0.25);
  --orb-3: rgba(255, 159, 85, 0.25);
  --header-bg: rgba(11, 12, 16, 0.55);
  --header-border: rgba(255, 255, 255, 0.05);
  --step-bg: rgba(255, 255, 255, 0.08);
  --icon-bg: rgba(255, 255, 255, 0.08);
  --chip-bg: rgba(255, 255, 255, 0.05);
  --chip-border: rgba(255, 255, 255, 0.15);
  --field-bg: rgba(255, 255, 255, 0.05);
  --modal-backdrop: rgba(8, 10, 14, 0.7);
  --modal-bg: #151820;
  --close-bg: rgba(255, 255, 255, 0.05);
  --eyebrow: var(--accent);
  --toggle-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  --hover-border: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color-scheme: light;
  background: radial-gradient(circle at 10% 20%, var(--grad-1), transparent 45%),
    radial-gradient(circle at 90% 10%, var(--grad-2), transparent 40%),
    radial-gradient(circle at 50% 80%, var(--grad-3), transparent 45%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

.bg-orbs span {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.bg-orbs span:nth-child(1) {
  background: var(--orb-1);
  top: -120px;
  left: -80px;
}

.bg-orbs span:nth-child(2) {
  background: var(--orb-2);
  top: 60vh;
  right: -120px;
}

.bg-orbs span:nth-child(3) {
  background: var(--orb-3);
  bottom: -140px;
  left: 30vw;
}

main {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(14px, 5vw, 56px);
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  z-index: 10;
}

.logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: url('assets/logo-skillflow.png.png') center/contain no-repeat;
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #62ffc6);
  color: #0b0c10;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 12px 26px rgba(60, 255, 178, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(60, 255, 178, 0.28);
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 30;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--toggle-shadow);
  display: grid;
  place-items: center;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--hover-border);
}

.theme-icon {
  display: none;
  width: 20px;
  height: 20px;
}

.theme-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.theme-icon-moon {
  display: block;
}

body[data-theme="dark"] .theme-icon-moon {
  display: none;
}

body[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.ghost-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.ghost-link:hover {
  color: var(--text);
}

.hero {
  padding: 80px clamp(20px, 6vw, 110px) 60px;
}

.hero-small {
  padding: 64px clamp(20px, 6vw, 110px) 80px;
}

.hero-content {
  max-width: 720px;
}

.hero-bottom {
  margin-top: 32px;
  display: grid;
  gap: 24px;
}

h1, h2, h3 {
  font-family: 'Unbounded', sans-serif;
  margin: 0 0 16px;
  line-height: 1.2;
}

h1 {
  font-size: clamp(36px, 5vw, 64px);
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
}

.subtitle {
  color: var(--muted);
  font-size: 18px;
  max-width: 700px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 16px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #62ffc6);
  color: #0b0c10;
  box-shadow: 0 14px 30px rgba(60, 255, 178, 0.25);
}

.btn.secondary {
  background: linear-gradient(135deg, var(--accent-2), #7fb9ff);
  color: #0b0c10;
  box-shadow: 0 14px 30px rgba(86, 168, 255, 0.25);
}

.btn:hover {
  transform: translateY(-2px);
}

.steps-block {
  margin-top: 56px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.steps-title {
  font-weight: 700;
  margin-bottom: 20px;
}

.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step-card {
  padding: 18px;
  border-radius: 14px;
  background: var(--card-alt);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--step-bg);
  font-weight: 700;
}

.tags-row {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.tags-title {
  font-weight: 700;
}

.tags-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.tags-scroll::-webkit-scrollbar {
  display: none;
}

.tag {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--text);
  white-space: nowrap;
  font-weight: 600;
}

.testimonial-carousel {
  margin-top: 32px;
  display: grid;
}

.testimonial {
  margin-top: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.testimonial-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.testimonial-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  flex: 0 0 68px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  font-size: 24px;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  display: block;
}

.quote {
  margin: 0;
  font-weight: 600;
}

.author {
  margin: 4px 0 0;
  color: var(--muted);
}

.section {
  padding: 80px clamp(20px, 6vw, 110px);
}

.section-head {
  max-width: 760px;
}

.feature-list {
  margin-top: 32px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-list.vertical {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.feature-card p {
  color: var(--muted);
  margin: 0;
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--icon-bg);
  font-size: 20px;
}

.footnote {
  margin-top: 24px;
  color: rgba(11, 15, 23, 0.6);
  font-size: 13px;
}

.divider {
  margin-top: 40px;
  height: 1px;
  background: var(--line);
}

.cta {
  text-align: center;
}

.cta-content {
  max-width: 760px;
  margin: 0 auto;
}

.teachers-carousel {
  margin-top: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.teachers-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px;
  scrollbar-width: none;
}

.teachers-track::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--toggle-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.carousel-btn:hover {
  transform: translateY(-1px);
  border-color: var(--hover-border);
}

.carousel-btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.teacher-card {
  text-decoration: none;
  color: var(--text);
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  scroll-snap-align: start;
  min-width: 240px;
}

.teacher-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #62ffc6);
  color: #0b0c10;
  font-weight: 700;
  font-size: 14px;
  width: 170px;
  align-self: center;
  box-shadow: 0 12px 26px rgba(60, 255, 178, 0.25);
}

.teacher-card:hover {
  transform: translateY(-3px);
  border-color: var(--hover-border);
}

.teacher-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.teacher-name {
  font-weight: 700;
  font-size: 18px;
}

.rating {
  color: var(--muted);
  font-size: 14px;
}

.skill-form {
  margin-top: 40px;
  max-width: 560px;
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.field span {
  color: var(--muted);
}

input,
textarea {
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(15, 20, 30, 0.25);
  box-shadow: 0 0 0 3px rgba(86, 168, 255, 0.2);
}

.form-note {
  margin: 0;
  color: rgba(244, 246, 251, 0.5);
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 20;
}

.modal.is-visible {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(520px, 90vw);
  padding: 24px;
  border-radius: var(--radius);
  background: var(--modal-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal.is-visible .modal-card {
  transform: translateY(0) scale(1);
}

.modal-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.modal-card p {
  margin: 0;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--close-bg);
  color: var(--text);
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--hover-border);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.32s; }

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .steps-block {
    padding: 20px;
  }

  .testimonial {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding: 6px 10px;
  }

  .logo {
    font-size: 14px;
    gap: 5px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .header-actions {
    gap: 8px;
    row-gap: 6px;
  }

  .ghost-link {
    font-size: 13px;
  }

  .header-cta {
    padding: 8px 12px;
    font-size: 13px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .theme-icon {
    width: 18px;
    height: 18px;
  }

  .hero,
  .section,
  .hero-small {
    padding: 56px 18px;
  }

  .hero {
    padding-top: 64px;
  }

  .subtitle {
    font-size: 16px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }


  .steps-block,
  .testimonial,
  .feature-card,
  .teacher-card {
    padding: 16px;
  }

  .step-card {
    padding: 14px;
  }

  .avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    font-size: 22px;
  }

  .teachers-carousel {
    grid-template-columns: 1fr;
    position: relative;
  }

  .teachers-track {
    grid-auto-columns: 85%;
    padding: 8px 28px;
    scroll-padding-inline: 28px;
  }

  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .carousel-btn.prev {
    left: 6px;
  }

  .carousel-btn.next {
    right: 6px;
  }

  .carousel-btn:hover {
    transform: translateY(-50%);
  }

  .skill-form {
    width: 100%;
  }

  .modal-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
  }

  .btn,
  .teacher-card {
    transition: none;
  }
}
