/* ===========================================================
   SkillSharing — Premium landing page
   =========================================================== */

   
:root {
  --bg: #030304;
  --bg-elevated: #08080b;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #f5f5f7;
  --text-secondary: rgba(245, 245, 247, 0.68);
  --text-tertiary: rgba(245, 245, 247, 0.44);
  --blue: #5b9dff;
  --purple: #b060ff;
  --gradient: linear-gradient(120deg, var(--blue) 0%, #8b6bff 55%, var(--purple) 100%);
  --gradient-soft: linear-gradient(120deg, rgba(91,157,255,0.18), rgba(176,96,255,0.18));
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
}

/* ===================== Background orbs ===================== */

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.orb-a {
  width: 620px;
  height: 620px;
  top: -220px;
  left: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(91,157,255,0.55), transparent 70%);
  animation: drift-a 26s ease-in-out infinite;
}

.orb-b {
  width: 560px;
  height: 560px;
  top: 120px;
  right: -220px;
  background: radial-gradient(circle at 60% 40%, rgba(176,96,255,0.5), transparent 70%);
  animation: drift-b 30s ease-in-out infinite;
}

.orb-c {
  width: 480px;
  height: 480px;
  bottom: -200px;
  left: 30%;
  background: radial-gradient(circle at 50% 50%, rgba(139,107,255,0.4), transparent 70%);
  animation: drift-c 34s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 60px) scale(1.06); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
}

/* ===================== Nav ===================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(3, 3, 4, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark { flex-shrink: 0; }

.brand-word {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-sm .brand-word { font-size: 0.95rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.btn-nav {
  padding: 9px 20px;
  font-size: 0.9rem;
  background: var(--gradient);
  color: #04040a;
  box-shadow: 0 4px 20px rgba(91, 157, 255, 0.25);
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(139, 107, 255, 0.4);
}

/* ===================== Hero ===================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}

.eyebrow.center { text-align: center; }

.hero-title {
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 24px;
  color: var(--text-primary);
}

@media (max-width: 980px) {
  .hero-title {
    font-size: clamp(2.4rem, 7vw, 3.6rem);
  }
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 40px;
  font-weight: 400;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cta-row-center { justify-content: center; }

.badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.badge-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 34px rgba(91, 157, 255, 0.18);
}

.badge-btn svg { flex-shrink: 0; }

.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-weight: 600;
  font-size: 0.98rem;
}

.badge-text small {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

/* ---------- Hero visual: phone mockup ---------- */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.phone {
  position: relative;
  width: 264px;
  height: 540px;
  border-radius: 46px;
  background: linear-gradient(160deg, #1a1a20, #08080b);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255,255,255,0.03);
  padding: 14px;
  animation: float-phone 7s ease-in-out infinite;
}

@keyframes float-phone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #08080b;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  background: radial-gradient(circle at 30% 0%, rgba(91,157,255,0.22), transparent 55%),
              radial-gradient(circle at 90% 90%, rgba(176,96,255,0.2), transparent 55%),
              #0c0c11;
  overflow: hidden;
  padding: 46px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.phone-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

.phone-title-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.phone-title-lines .line {
  height: 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.16);
}

.line.l1 { width: 70%; }
.line.l2 { width: 45%; background: rgba(255,255,255,0.08); }

.phone-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 12px 14px;
  backdrop-filter: blur(8px);
  animation: card-pulse 6s ease-in-out infinite;
}

.card-2 { animation-delay: 0.6s; }
.card-3 { animation-delay: 1.2s; }

@keyframes card-pulse {
  0%, 100% { transform: translateY(0); box-shadow: none; }
  50% { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(91,157,255,0.12); }
}

.phone-card .tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(91,157,255,0.18);
  color: #a9c8ff;
  margin-bottom: 8px;
}

.phone-card .tag-alt {
  background: rgba(176,96,255,0.18);
  color: #d3aeff;
}

.phone-card .card-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.phone-card .card-sub {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.floating-chip {
  position: absolute;
  padding: 10px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  animation: float-chip 8s ease-in-out infinite;
}

.chip-1 { top: 8%; left: -6%; animation-delay: 0.4s; }
.chip-2 { bottom: 10%; right: -8%; animation-delay: 1.6s; }

@keyframes float-chip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border-radius: 100px;
  border: 1.5px solid var(--border-strong);
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--text-secondary);
  animation: scroll-cue 1.8s ease infinite;
}

@keyframes scroll-cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { opacity: 0.2; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ===================== Value proposition ===================== */

.value-section { position: relative; z-index: 1; }

.statement {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: center;
  color: var(--text-primary);
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 0;
}

.statement-alt {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===================== Section head ===================== */

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* ===================== Features ===================== */

.features-section { position: relative; z-index: 1; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 28px;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ===================== How it works ===================== */

.how-section { position: relative; z-index: 1; }

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0 18px;
}

.step {
  text-align: center;
  padding: 0 8px;
}

.step-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.55;
  max-width: 260px;
  margin: 0 auto;
}

.step-line {
  height: 1px;
  margin-top: 10px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  align-self: center;
  width: 100%;
}

/* ===================== Community / emotional ===================== */

.community-section { position: relative; z-index: 1; }

.community-quote {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.community-quote em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===================== Final CTA ===================== */

.final-cta {
  position: relative;
  z-index: 1;
  text-align: center;
}

.final-cta-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 64px);
  position: relative;
  overflow: hidden;
}

.final-cta-inner::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 50% 0%, rgba(139,107,255,0.22), transparent 60%);
  pointer-events: none;
}

.final-title {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 20px;
  position: relative;
}

.final-sub {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin-bottom: 36px;
  position: relative;
}

.final-note {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  position: relative;
}

/* ===================== Footer ===================== */

.footer {
  position: relative;
  z-index: 1;
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ===================== Scroll reveal ===================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1.is-visible { transition-delay: 0.12s; }
.reveal-delay-2.is-visible { transition-delay: 0.24s; }
.reveal-delay-3.is-visible { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .phone-card, .floating-chip, .scroll-cue span { animation: none; }
}

/* ===================== Responsive ===================== */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy { order: 1; }
  .hero-visual { order: 2; margin-top: 20px; }

  .hero-sub { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .steps {
    grid-template-columns: 1fr;
    gap: 36px 0;
  }

  .step-line { display: none; }

  .chip-1, .chip-2 { display: none; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }

  .br-desktop { display: none; }

  .phone { width: 220px; height: 450px; }

  .badge-btn { padding: 10px 16px; }

  .final-cta-inner { border-radius: 24px; }
}
