/* =============================================
   Vibed.win - Complete Stylesheet
   Chill Neon Lofi Cyber Aesthetic
   ============================================= */

:root {
  /* Colors */
  --bg-dark: #0a0a0f;
  --bg-darker: #050508;
  --bg-card: #12121a;
  --bg-section: #0f0f17;

  --neon-purple: #c026d3;
  --neon-purple-light: #e879f9;
  --neon-teal: #14b8a6;
  --neon-cyan: #22d3ee;

  --text-primary: #f1f1f3;
  --text-secondary: #a3a3b0;
  --text-muted: #6b7280;

  /* Gradients */
  --gradient-brand: linear-gradient(90deg, #c026d3, #22d3ee);
  --gradient-text: linear-gradient(90deg, #e879f9, #67e8f9);

  /* Spacing */
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 2.8rem); }

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

a {
  color: var(--neon-teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--neon-purple-light);
}

hr {
  border: none;
  border-top: 1px solid rgba(192, 38, 211, 0.15);
  margin: 0 auto;
  max-width: 1200px;
  width: 90%;
}

/* Container - wraps the entire page content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 15px;
}

/* Hero background image – fully responsive */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Dark overlay on hero image for readability */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.85) 0%,
    rgba(10, 10, 15, 0.5) 50%,
    rgba(10, 10, 15, 0.85) 100%
  );
  z-index: 2;
}

/* Hero content overlay */
.content-overlay {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 2rem;
}

.badge {
  display: inline-block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--neon-purple-light);
  background: rgba(192, 38, 211, 0.12);
  border: 1px solid rgba(192, 38, 211, 0.25);
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}

/* =============================================
   SINGLE-LINE TEXT FIX FOR SUBHEADING
   ============================================= */
/* Ensures 'a chill corner for vibe coders' stays on one line */
.content-overlay h1 {
  white-space: nowrap;
  text-align: center;
}

/* =============================================
   SECTIONS
   ============================================= */
section {
  padding: 2rem 0;
}

section h2 {
  margin-bottom: 2rem;
  color: var(--neon-purple-light);
}

.lead-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* =============================================
   FEATURE GRID – Cards
   ============================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(192, 38, 211, 0.12);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--neon-purple);
  box-shadow: 0 0 30px rgba(192, 38, 211, 0.15);
  transform: translateY(-6px);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.muted-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  cursor: default;
}

/* =============================================
   QUOTE BLOCK
   ============================================= */
.quote-block {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(192, 38, 211, 0.1);
  border-bottom: 1px solid rgba(192, 38, 211, 0.1);
  margin: 2rem 0;
}

.quote-block p:first-child {
  font-size: 1rem;
  color: var(--neon-purple-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.quote-text {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto;
}

.quote-text strong {
  color: var(--text-primary);
}

/* =============================================
   CTA / JOIN SECTION
   ============================================= */
.cta-area {
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta-heading {
  color: var(--neon-purple-light);
  margin-bottom: 1rem;
}

.cta-description {
  max-width: 550px;
  margin: 0 auto 2rem;
  padding: 1rem 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.button-soft {
  display: inline-block;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 0 25px rgba(192, 38, 211, 0.35);
}

.button-soft:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(192, 38, 211, 0.55);
  color: #fff;
}

.social-links {
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.social-links a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--neon-teal);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer p {
  font-size: 1rem;
  color: var(--text-muted);
}

.footer-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 2rem 0;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-background {
    object-position: center 30%;
  }

  .content-overlay {
    padding: 1.5rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.3rem 1rem;
  }

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

  .feature-card {
    padding: 1.25rem;
  }

  .quote-block {
    padding: 2rem 1rem;
  }

  .cta-area {
    padding: 3rem 1rem;
  }

  .button-soft {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
  }

  .social-links {
    font-size: 0.9rem;
    line-height: 2;
  }

  .footer {
    padding: 2rem 0 1.5rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero {
    min-height: 85vh;
  }

  h1 { font-size: clamp(2rem, 10vw, 3rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

  .feature-card h3 {
    font-size: 1.1rem;
  }
}

/* =============================================
   FIX: Keep "a chill corner for vibe coders" on one line
   ============================================= */
/* Target just the text node after the <br> or the second line */
.content-overlay h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

/* Wrap the second line in an inline-block so it shrinks as a unit */
.content-overlay h1 br + span,
.content-overlay h1 .second-line {
  white-space: nowrap;
  font-size: clamp(0.85rem, 4vw, 1.3rem);
  display: inline-block;
}

/* Small phones */
@media (max-width: 480px) {
  .hero {
    min-height: 85vh;
  }

  h1 { font-size: clamp(2rem, 10vw, 3rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

  .tagline {
    font-size: 0.85rem;
  }

  .feature-card h3 {
    font-size: 1.1rem;
  }

  .content-overlay h1 {
    white-space: nowrap;
    font-size: 1.65rem; /* ensures the whole line fits on smallest screens */
    letter-spacing: -0.02em;
  }
}

/* For extremely narrow screens (e.g., iPhone SE), make sure nothing breaks.
   This keeps the text from overflowing or clipping */
@media (max-width: 360px) {
  .content-overlay h1 {
    font-size: 1.5rem;
    white-space: nowrap;
  }
}
