/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --spring-green: #00c96e;
  --spring-teal:  #00b8d9;
  --flip-orange:  #ff6b2b;
  --flip-purple:  #7c3aed;
  --flip-pink:    #f43f8e;
  --dark:         #0d0f14;
  --dark-2:       #13161e;
  --dark-3:       #1c2030;
  --mid:          #2e3347;
  --muted:        #6b7280;
  --text:         #e8eaf0;
  --text-sub:     #9ca3af;
  --white:        #ffffff;
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    40px;
  --shadow-card:  0 4px 24px rgba(0,0,0,0.35);
  --transition:   all 0.25s ease;
}

html { scroll-behavior: smooth; }

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--spring-green) 0%, var(--spring-teal) 50%, var(--flip-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--spring-green);
  background: rgba(0, 201, 110, 0.1);
  border: 1px solid rgba(0, 201, 110, 0.25);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.label-light {
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--white);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-sub);
  max-width: 580px;
  margin-bottom: 56px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--spring-green), var(--spring-teal));
  color: var(--dark);
  box-shadow: 0 0 24px rgba(0, 201, 110, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 201, 110, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--mid);
}

.btn-ghost:hover {
  border-color: var(--spring-green);
  color: var(--spring-green);
}

.btn-nav {
  background: linear-gradient(135deg, var(--spring-green), var(--spring-teal));
  color: var(--dark);
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-nav:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.logo-spring { color: var(--spring-green); }
.logo-works  { color: var(--white); }

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

.nav-links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: var(--transition);
}

.nav-links a:not(.btn):hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 600px; height: 600px;
  background: var(--spring-green);
  top: -150px; left: -200px;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px; height: 500px;
  background: var(--flip-purple);
  top: 100px; right: -150px;
  animation-delay: 3s;
}

.blob-3 {
  width: 400px; height: 400px;
  background: var(--spring-teal);
  bottom: -100px; left: 40%;
  animation-delay: 6s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(30px, -30px) scale(1.05); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--flip-orange);
  background: rgba(255, 107, 43, 0.12);
  border: 1px solid rgba(255, 107, 43, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-badge::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--flip-orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-sub);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== PHONE MOCKUP ===== */
.phone-frame {
  position: relative;
  width: 260px;
  height: 520px;
  background: var(--dark-3);
  border-radius: 40px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  margin: 0 auto;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 24px;
  background: var(--dark);
  border-radius: 12px;
  z-index: 5;
}

.phone-screen {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  overflow: hidden;
  background: linear-gradient(160deg, #111320, #0d0f1a);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 16px 24px;
}

.flipbook-preview {
  position: relative;
  width: 100%;
  height: 100%;
}

.flip-page {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.page-1 {
  background: linear-gradient(135deg, #1a2a1e, #162620);
  border: 1px solid rgba(0, 201, 110, 0.2);
  transform: perspective(800px) rotateY(-30deg) scale(0.88) translateX(-20px);
  z-index: 1;
}

.page-2 {
  background: linear-gradient(135deg, #1a1e2a, #16162a);
  border: 1px solid rgba(124, 58, 237, 0.2);
  transform: perspective(800px) rotateY(-15deg) scale(0.93) translateX(-10px);
  z-index: 2;
}

.page-3.active {
  background: linear-gradient(135deg, #1c2030, #181c28);
  border: 1px solid rgba(0, 184, 217, 0.25);
  transform: perspective(800px) rotateY(0deg) scale(1);
  z-index: 3;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.page-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--spring-teal);
  background: rgba(0, 184, 217, 0.15);
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 8px;
}

.page-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
}
.page-line.long  { width: 85%; }
.page-line.med   { width: 65%; }
.page-line.short { width: 45%; }

/* ===== FEATURES ===== */
.features {
  padding: 120px 0;
  background: var(--dark-2);
}

.features .section-subtitle { margin-bottom: 64px; }

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

.feature-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--spring-green), var(--spring-teal));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(0, 201, 110, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg { width: 22px; height: 22px; }

.icon-flip   { background: rgba(0, 201, 110, 0.15); color: var(--spring-green); }
.icon-feeds  { background: rgba(0, 184, 217, 0.15); color: var(--spring-teal); }
.icon-smart  { background: rgba(255, 107, 43, 0.15); color: var(--flip-orange); }
.icon-offline{ background: rgba(244, 63, 142, 0.15); color: var(--flip-pink); }
.icon-share  { background: rgba(124, 58, 237, 0.15); color: var(--flip-purple); }
.icon-themes { background: rgba(0, 201, 110, 0.1);  color: var(--spring-teal); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.65;
}

/* ===== ABOUT ===== */
.about {
  padding: 120px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  color: var(--text-sub);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.75;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--mid);
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--spring-green), var(--spring-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* About visual */
.about-visual {
  position: relative;
  height: 340px;
}

.about-card {
  position: absolute;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 260px;
  box-shadow: var(--shadow-card);
  animation: cardFloat 6s ease-in-out infinite;
}

.card-a { top: 0; left: 20px; animation-delay: 0s; }
.card-b { top: 110px; right: 0; animation-delay: 2s; }
.card-c { bottom: 0; left: 40px; animation-delay: 4s; }

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.card-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.card-dot.green  { background: linear-gradient(135deg, var(--spring-green), #00e67d); }
.card-dot.orange { background: linear-gradient(135deg, var(--flip-orange), #ff9a00); }
.card-dot.purple { background: linear-gradient(135deg, var(--flip-purple), var(--flip-pink)); }

.card-lines { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cl { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.1); }
.cl.long { width: 100%; }
.cl.med  { width: 65%; }

/* ===== WAITLIST ===== */
.waitlist {
  padding: 120px 0;
  background: linear-gradient(160deg, #0c1a20, #0a0f18, #120c1e);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.waitlist-glow {
  position: absolute;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0, 201, 110, 0.12), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

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

.waitlist-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 16px;
}

.waitlist-subtitle {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 520px;
  margin: 0 auto 48px;
}

.waitlist-form { max-width: 520px; margin: 0 auto; }

.form-row {
  display: flex;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 6px 6px 6px 16px;
  transition: var(--transition);
}

.form-row:focus-within {
  border-color: var(--spring-green);
  box-shadow: 0 0 0 3px rgba(0, 201, 110, 0.12);
}

.form-row input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--white);
  font-family: inherit;
  min-width: 0;
}

.form-row input::placeholder { color: var(--muted); }

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 14px;
}

.form-success {
  font-size: 0.95rem;
  color: var(--spring-green);
  font-weight: 600;
  margin-top: 16px;
  min-height: 24px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--spring-green); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-mockup { display: flex; justify-content: center; }

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

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual { display: none; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--dark-2);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--mid);
  }
  .nav-toggle { display: flex; }

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

  .form-row {
    flex-direction: column;
    padding: 12px;
    gap: 8px;
  }

  .form-row input {
    width: 100%;
    padding: 4px 0;
  }

  .form-row .btn { width: 100%; }

  .about-stats {
    flex-direction: column;
    gap: 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 300px; }
}
