/* ============================================
   ClubDeck Marketing Site — style.css
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img, svg {
  display: block;
}

/* --- Layout --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: #6366f1;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: #818cf8;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 18px;
  font-size: 0.85rem;
  border-radius: 6px;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
}

/* --- Hero --- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  margin-bottom: 16px;
}

.hero-note {
  font-size: 0.85rem;
  color: #64748b;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto;
}

/* --- Screenshots --- */
.screenshots {
  padding: 80px 0 120px;
  overflow: hidden;
  position: relative;
}

.screenshots-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  margin-top: 60px;
  perspective: 1200px;
}

.phone-mockup {
  flex-shrink: 0;
  text-align: center;
  transition: transform 0.4s ease;
}

/* Side phones: smaller, tilted */
.phone-mockup:first-child {
  transform: rotateY(8deg) scale(0.85);
  opacity: 0.8;
}
.phone-mockup:last-child {
  transform: rotateY(-8deg) scale(0.85);
  opacity: 0.8;
}
.phone-mockup:first-child:hover,
.phone-mockup:last-child:hover {
  transform: rotateY(0) scale(0.9);
  opacity: 1;
}

/* Center phone: larger, prominent */
.phone-mockup.featured {
  transform: scale(1.05);
  z-index: 2;
}
.phone-mockup.featured:hover {
  transform: scale(1.08);
}

.phone-bezel {
  width: 220px;
  background: #1a1a2e;
  border-radius: 36px;
  padding: 12px 10px;
  box-shadow:
    0 0 0 2px rgba(99, 102, 241, 0.3),
    0 30px 80px -20px rgba(99, 102, 241, 0.35),
    0 0 120px -40px rgba(139, 92, 246, 0.2);
  position: relative;
}

.phone-mockup.featured .phone-bezel {
  width: 240px;
  box-shadow:
    0 0 0 2px rgba(99, 102, 241, 0.5),
    0 40px 100px -20px rgba(99, 102, 241, 0.45),
    0 0 160px -40px rgba(139, 92, 246, 0.3);
}

.phone-notch {
  width: 80px;
  height: 6px;
  background: #2a2a4a;
  border-radius: 3px;
  margin: 0 auto 8px;
}

.phone-screen {
  border-radius: 24px;
  overflow: hidden;
  background: #0f172a;
}

.phone-screen img {
  width: 100%;
  display: block;
}

.phone-label {
  display: block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .screenshots-row { gap: 24px; }
  .phone-bezel { width: 180px; }
  .phone-mockup.featured .phone-bezel { width: 200px; }
  .phone-mockup:first-child,
  .phone-mockup:last-child {
    transform: rotateY(0) scale(0.8);
  }
}

@media (max-width: 640px) {
  .screenshots-row {
    gap: 16px;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 20px 20px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    perspective: none;
  }
  .phone-mockup,
  .phone-mockup:first-child,
  .phone-mockup:last-child,
  .phone-mockup.featured {
    transform: none;
    opacity: 1;
    scroll-snap-align: center;
  }
  .phone-bezel,
  .phone-mockup.featured .phone-bezel { width: 180px; }
}

/* --- Features --- */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: rgba(30, 27, 75, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 14px;
  padding: 32px 28px;
  transition: border-color 0.25s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 10px;
  color: #818cf8;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* --- How It Works --- */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.3) 0%, transparent 100%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  text-align: center;
  padding: 0 16px;
}

.step-number {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  margin-bottom: 24px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.65;
}

/* --- Pricing --- */
.pricing {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: rgba(30, 27, 75, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 18px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
}

.pricing-card-featured {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
  transform: scale(1.03);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(99, 102, 241, 0.4);
  color: #818cf8;
}
.btn-outline:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

.pricing-badge {
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 100px;
  margin-bottom: 16px;
}

.pricing-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.pricing-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: #64748b;
}

.pricing-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 32px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 36px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li svg {
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  padding: 64px 0 0;
  border-top: 1px solid rgba(99, 102, 241, 0.12);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #64748b;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.9rem;
  color: #64748b;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #e2e8f0;
}

.footer-bottom {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid rgba(99, 102, 241, 0.08);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #475569;
}

/* --- Legal Pages --- */
.legal-page {
  padding: 120px 0 80px;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin: 40px 0 12px;
}

.legal-page h2:first-of-type {
  margin-top: 0;
}

.legal-page p,
.legal-page li {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page ul li {
  margin-bottom: 6px;
}

.legal-page a {
  color: #818cf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: #a5b4fc;
}

/* --- Docs Page --- */
.docs-page {
  padding: 96px 0 80px;
}

.docs-container {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.docs-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-nav-group h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #818cf8;
  margin-bottom: 8px;
}

.docs-nav a {
  font-size: 0.88rem;
  color: #94a3b8;
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.docs-nav a:hover {
  color: #e2e8f0;
  background: rgba(99, 102, 241, 0.08);
}

.docs-nav a.active {
  color: #fff;
  border-left-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

.nav-links a.active {
  color: #fff;
}

.docs-content {
  min-width: 0;
  max-width: 760px;
}

.docs-header {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.docs-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #818cf8;
  margin-bottom: 12px;
}

.docs-header h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}

.docs-lead {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.7;
}

.docs-lead a {
  color: #818cf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.docs-section {
  margin-bottom: 56px;
  scroll-margin-top: 96px;
}

.docs-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}

.docs-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 28px 0 10px;
}

.docs-section p,
.docs-section li {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.75;
}

.docs-section p {
  margin-bottom: 14px;
}

.docs-section ul,
.docs-section ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.docs-section ul {
  list-style: disc;
}

.docs-section ol {
  list-style: decimal;
}

.docs-section li {
  margin-bottom: 8px;
}

.docs-section li > ul,
.docs-section li > ol {
  margin-top: 8px;
  margin-bottom: 4px;
}

.docs-section a {
  color: #818cf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.docs-section a:hover {
  color: #a5b4fc;
}

.docs-section strong {
  color: #e2e8f0;
  font-weight: 600;
}

.docs-section em {
  color: #cbd5e1;
  font-style: italic;
}

.docs-callout {
  margin: 20px 0;
  padding: 16px 20px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-left: 3px solid #6366f1;
  border-radius: 10px;
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.docs-callout strong {
  color: #fff;
}

@media (max-width: 900px) {
  .docs-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  }

  .docs-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }

  .docs-nav-group {
    flex: 1 1 200px;
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps .step:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 130px 0 72px;
  }

  .features {
    padding: 64px 0;
  }

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

  .how-it-works {
    padding: 64px 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps .step:last-child {
    max-width: none;
  }

  .pricing {
    padding: 64px 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card-featured {
    transform: none;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
