/* StreamCube Landing Page */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Rajdhani:wght@500;600;700&display=swap');

/* ── Variables ── */
:root {
  --bg-primary: #08080f;
  --bg-secondary: #0e0e1a;
  --bg-surface: #141422;
  --bg-elevated: #1a1a2e;

  --accent: #6C63FF;
  --accent-bright: #8B83FF;
  --accent-glow: rgba(108, 99, 255, 0.3);

  --green: #00D4AA;
  --orange: #FF8C42;
  --pink: #FF4D6A;
  --cyan: #06B6D4;
  --blue: #3B82F6;

  --text-primary: #f0f0f5;
  --text-secondary: #9090a8;
  --text-tertiary: #5a5a72;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-brand: 'Rajdhani', var(--font-sans);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --container: 1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-tertiary); border-radius: 3px; }

/* ── Scroll reveal ── */
.feature-card,
.showcase__item,
.platform-card,
.dev-section__inner {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card.revealed,
.showcase__item.revealed,
.platform-card.revealed,
.dev-section__inner.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* stagger feature cards */
.feature-card:nth-child(2) { transition-delay: 0.08s; }
.feature-card:nth-child(3) { transition-delay: 0.16s; }
.feature-card:nth-child(4) { transition-delay: 0.24s; }
.feature-card:nth-child(5) { transition-delay: 0.32s; }
.feature-card:nth-child(6) { transition-delay: 0.40s; }
.feature-card:nth-child(7) { transition-delay: 0.48s; }
.feature-card:nth-child(8) { transition-delay: 0.56s; }
.feature-card:nth-child(9) { transition-delay: 0.64s; }

.platform-card:nth-child(2) { transition-delay: 0.06s; }
.platform-card:nth-child(3) { transition-delay: 0.12s; }
.platform-card:nth-child(4) { transition-delay: 0.18s; }
.platform-card:nth-child(5) { transition-delay: 0.24s; }

/* ═══════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}
.nav--scrolled {
  background: rgba(8, 8, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.nav__logo-text {
  font-family: var(--font-brand);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1;
}
.nav__logo-stream { color: var(--text-primary); }
.nav__logo-cube { color: var(--accent-bright); font-weight: 700; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a:not(.nav__btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav__links a:not(.nav__btn):hover { color: var(--text-primary); }

.nav__btn {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.nav__btn--ghost {
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
}
.nav__btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}
.nav__btn--primary {
  background: var(--accent);
  color: white;
}
.nav__btn--primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ═══════════════════════════════════
   BUTTONS
   ═══════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn--lg {
  padding: 16px 36px;
  font-size: 16px;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #5548d9);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════
   HERO
   ═══════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108, 99, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255, 77, 106, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin-bottom: 64px;
}
.hero__badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-bright);
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--font-brand);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.hero__title-accent {
  background: linear-gradient(135deg, var(--accent-bright), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero__platforms {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__platforms-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero__platforms-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.hero__platforms-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.hero__image {
  position: relative;
  width: 100%;
  max-width: 1100px;
}
.hero__image-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-hover);
  box-shadow:
    0 20px 80px rgba(0, 0, 0, 0.5),
    0 0 60px var(--accent-glow);
}
.hero__image-frame img {
  width: 100%;
  display: block;
}

/* ═══════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════ */

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-title {
  font-family: var(--font-brand);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════════════════════════
   FEATURES GRID
   ═══════════════════════════════════ */

.features {
  padding: 120px 0;
  position: relative;
}
.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 36px 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}
.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card__icon--purple { background: rgba(108, 99, 255, 0.12); color: var(--accent-bright); }
.feature-card__icon--blue { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.feature-card__icon--green { background: rgba(0, 212, 170, 0.12); color: var(--green); }
.feature-card__icon--orange { background: rgba(255, 140, 66, 0.12); color: var(--orange); }
.feature-card__icon--pink { background: rgba(255, 77, 106, 0.12); color: var(--pink); }
.feature-card__icon--cyan { background: rgba(6, 182, 212, 0.12); color: var(--cyan); }

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════
   SHOWCASE
   ═══════════════════════════════════ */

.showcase {
  padding: 80px 0;
}
.showcase__item {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 120px;
}
.showcase__item:last-child { margin-bottom: 0; }

.showcase__item--reverse {
  grid-template-columns: 1.3fr 1fr;
}
.showcase__item--reverse .showcase__text { order: 2; }
.showcase__item--reverse .showcase__image { order: 1; }

.showcase__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-bright);
  margin-bottom: 12px;
}
.showcase__title {
  font-family: var(--font-brand);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  line-height: 1.15;
}
.showcase__desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}
.showcase__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.showcase__list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}
.showcase__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.showcase__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.showcase__item:hover .showcase__image {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.showcase__image img {
  width: 100%;
  display: block;
}

/* ═══════════════════════════════════
   PLATFORMS
   ═══════════════════════════════════ */

.platforms {
  padding: 120px 0;
  position: relative;
}
.platforms::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}
.platforms__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.platform-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s;
}
.platform-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.platform-card svg {
  margin: 0 auto 16px;
  color: var(--accent-bright);
}
.platform-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.platform-card p {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════
   DEVELOPER SECTION
   ═══════════════════════════════════ */

.dev-section {
  padding: 120px 0;
  position: relative;
}
.dev-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}
.dev-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.dev-section__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.dev-badge {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: var(--accent-bright);
}

.dev-code {
  background: #0c0c18 !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 28px 32px !important;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-x: auto;
}

/* ═══════════════════════════════════
   CTA
   ═══════════════════════════════════ */

.cta {
  padding: 120px 0;
}
.cta__inner {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.08), rgba(6, 182, 212, 0.06));
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.cta__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 0%, var(--accent-glow), transparent);
  pointer-events: none;
}
.cta__title {
  font-family: var(--font-brand);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}
.cta__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  position: relative;
}
.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */

.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 48px;
}
.footer__tagline {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 8px;
}
.footer__links {
  display: flex;
  gap: 80px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.footer__col a {
  font-size: 14px;
  color: var(--text-tertiary);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--text-primary); }

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer__bottom p {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */

@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .platforms__grid { grid-template-columns: repeat(3, 1fr); }
  .showcase__item,
  .showcase__item--reverse { grid-template-columns: 1fr; gap: 40px; }
  .showcase__item--reverse .showcase__text { order: 1; }
  .showcase__item--reverse .showcase__image { order: 2; }
  .dev-section__inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
  }
  .nav--open .nav__links { right: 0; }
  .nav__mobile-toggle { display: flex; }

  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero__title { font-size: clamp(36px, 8vw, 56px); }
  .hero__subtitle { font-size: 16px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__platforms-icons { flex-wrap: wrap; justify-content: center; }

  .features { padding: 80px 0; }
  .features__grid { grid-template-columns: 1fr; }

  .showcase { padding: 60px 0; }
  .showcase__item { margin-bottom: 80px; }

  .platforms { padding: 80px 0; }
  .platforms__grid { grid-template-columns: repeat(2, 1fr); }

  .dev-section { padding: 80px 0; }

  .cta { padding: 80px 0; }
  .cta__inner { padding: 48px 24px; }

  .footer__inner { flex-direction: column; gap: 40px; }
  .footer__links { flex-wrap: wrap; gap: 40px; }
}

@media (max-width: 480px) {
  .platforms__grid { grid-template-columns: 1fr 1fr; }
  .btn--lg { padding: 14px 28px; font-size: 15px; }
}
