/* ============================================
   CycleSync — Landing Page Styles
   Colors: Navy #1a2744, Amber #d4a853
   Dark mode default, premium masculine feel
   ============================================ */

:root {
  --navy: #1a2744;
  --navy-light: #243352;
  --navy-dark: #0f1a2e;
  --amber: #d4a853;
  --amber-light: #e4be73;
  --amber-dark: #b8912e;
  --white: #f0f0f0;
  --gray: #8899aa;
  --gray-light: #a8b8c8;
  --dark-bg: #0d1520;
  --card-bg: #162033;
  --card-border: #1e2d45;
  --green: #2ecc71;
  --yellow: #f1c40f;
  --red: #e74c3c;
  --orange: #e67e22;
  --font-main: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--dark-bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
h3 { font-size: 1.4rem; }
p { color: var(--gray-light); }

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

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: var(--navy-dark); box-shadow: 0 4px 24px rgba(212,168,83,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212,168,83,0.45); }
.btn-secondary {
  background: transparent; color: var(--amber);
  border: 2px solid var(--amber); 
}
.btn-secondary:hover { background: rgba(212,168,83,0.1); }
.btn-small { padding: 10px 24px; font-size: 0.9rem; border-radius: 8px; }

/* --- Navigation --- */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(13,21,32,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  padding: 16px 0;
}
nav .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--white); text-decoration: none; }
.logo span { color: var(--amber); }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a { color: var(--gray-light); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--amber); }
.nav-cta { padding: 10px 24px !important; font-size: 0.9rem !important; }
.hamburger { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* --- Hero --- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 80px;
  background: radial-gradient(ellipse at 30% 0%, rgba(212,168,83,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 100%, rgba(26,39,68,0.4) 0%, transparent 60%);
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,168,83,0.1); border: 1px solid rgba(212,168,83,0.3);
  padding: 8px 16px; border-radius: 100px; font-size: 0.85rem; color: var(--amber);
  margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--amber); border-radius: 50%; animation: pulse 2s infinite; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .highlight { color: var(--amber); }
.hero-subtitle { font-size: 1.25rem; color: var(--gray-light); margin-bottom: 40px; max-width: 500px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stat h4 { font-size: 1.8rem; color: var(--amber); }
.hero-stat p { font-size: 0.85rem; color: var(--gray); }

/* --- Phone Mockup --- */
.phone-mockup-wrapper { display: flex; justify-content: center; position: relative; }
.phone-mockup {
  width: 300px; height: 620px;
  background: var(--navy); border: 3px solid var(--card-border);
  border-radius: 40px; padding: 12px; position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}
.phone-notch {
  width: 120px; height: 28px; background: var(--dark-bg);
  border-radius: 0 0 16px 16px; margin: 0 auto 12px;
}
.phone-screen {
  background: var(--dark-bg); border-radius: 28px; height: calc(100% - 40px);
  overflow: hidden; padding: 20px 16px;
}
.phone-glow {
  position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,168,83,0.15) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: -1; animation: glow-pulse 4s ease-in-out infinite;
}

/* Phone screen content */
.screen-header { text-align: center; margin-bottom: 16px; }
.screen-header small { color: var(--gray); font-size: 0.7rem; }
.screen-header h3 { font-size: 1rem; color: var(--white); margin-top: 2px; }
.phase-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(46,204,113,0.15); border: 1px solid rgba(46,204,113,0.3);
  padding: 6px 14px; border-radius: 100px; font-size: 0.75rem; color: var(--green);
  margin: 8px auto; 
}
.screen-cards { display: flex; flex-direction: column; gap: 10px; }
.screen-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 14px;
}
.screen-card .card-label { font-size: 0.65rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }
.screen-card .card-value { font-size: 0.95rem; color: var(--white); margin-top: 4px; font-weight: 600; }
.screen-card .card-sub { font-size: 0.75rem; color: var(--gray-light); margin-top: 2px; }
.intimacy-bar { display: flex; gap: 4px; margin-top: 8px; }
.intimacy-bar span { height: 6px; flex: 1; border-radius: 3px; background: var(--card-border); }
.intimacy-bar span.active { background: var(--green); }
.intimacy-bar span.mid { background: var(--yellow); }

/* --- Features --- */
.features { background: var(--navy-dark); }
.section-label {
  text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem;
  color: var(--amber); margin-bottom: 12px; font-weight: 600;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header p { max-width: 600px; margin: 16px auto 0; font-size: 1.1rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 20px; padding: 36px 28px;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,168,83,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
  background: rgba(212,168,83,0.1); color: var(--amber);
}
.feature-card h3 { margin-bottom: 10px; color: var(--white); }
.feature-card p { font-size: 0.95rem; }

/* --- How It Works --- */
.how-it-works-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; }
.step { text-align: center; position: relative; }
.step-number {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
  color: var(--navy-dark); margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(212,168,83,0.3);
}
.step h3 { margin-bottom: 12px; color: var(--white); }
.step p { font-size: 0.95rem; max-width: 280px; margin: 0 auto; }
.step-connector {
  position: absolute; top: 36px; left: calc(50% + 50px); width: calc(100% - 100px);
  height: 2px; background: linear-gradient(90deg, var(--amber), transparent);
}
.step:last-child .step-connector { display: none; }

/* --- Viral Invite Section --- */
.viral-section { background: var(--navy-dark); }
.invite-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.invite-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 24px; padding: 40px; position: relative; overflow: hidden;
}
.invite-card::after {
  content: ''; position: absolute; bottom: -50px; right: -50px;
  width: 150px; height: 150px; border-radius: 50%;
  background: rgba(212,168,83,0.05);
}
.invite-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--amber); margin-bottom: 8px; font-weight: 600;
}
.invite-from { font-size: 1rem; color: var(--gray); margin-bottom: 20px; }
.invite-bubble {
  background: rgba(212,168,83,0.08); border: 1px solid rgba(212,168,83,0.2);
  border-radius: 20px 20px 20px 4px; padding: 20px 24px;
  font-size: 1.1rem; color: var(--white); line-height: 1.6;
  font-style: italic;
}

/* --- Social Proof / #MyManCares --- */
.social-proof { text-align: center; }
.hashtag {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--amber); margin-bottom: 24px; font-weight: 700;
}
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.testimonial {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 20px; padding: 28px; text-align: left;
}
.testimonial .stars { color: var(--amber); margin-bottom: 12px; font-size: 0.9rem; }
.testimonial p { font-size: 0.95rem; color: var(--gray-light); margin-bottom: 16px; font-style: italic; }
.testimonial .author { font-size: 0.85rem; color: var(--gray); }

/* --- App Mockups Section --- */
.app-screens { background: var(--navy-dark); }
.mockup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 48px; }
.mockup-phone {
  width: 100%; max-width: 300px; margin: 0 auto;
  background: var(--navy); border: 3px solid var(--card-border);
  border-radius: 36px; padding: 10px; 
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.mockup-phone .phone-notch { width: 100px; height: 24px; margin-bottom: 8px; }
.mockup-screen {
  background: var(--dark-bg); border-radius: 26px;
  padding: 16px 14px; min-height: 420px;
}
.mockup-screen h4 { font-size: 0.85rem; color: var(--amber); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }

/* Individual mock screen styles */
.mock-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.mock-calendar .day {
  aspect-ratio: 1; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--gray-light); background: var(--card-bg);
}
.mock-calendar .day.green { background: rgba(46,204,113,0.2); color: var(--green); }
.mock-calendar .day.yellow { background: rgba(241,196,15,0.2); color: var(--yellow); }
.mock-calendar .day.red { background: rgba(231,76,60,0.2); color: var(--red); }
.mock-calendar .day.header { background: none; color: var(--gray); font-weight: 600; font-size: 0.6rem; }

.mock-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: var(--card-bg); border-radius: 12px;
  margin-bottom: 8px; border: 1px solid var(--card-border);
}
.mock-list-item .icon { font-size: 1.2rem; }
.mock-list-item .text { flex: 1; }
.mock-list-item .text h5 { font-size: 0.8rem; color: var(--white); font-weight: 600; }
.mock-list-item .text p { font-size: 0.7rem; color: var(--gray); margin-top: 2px; }

.mock-toggle {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px; background: var(--card-bg); border-radius: 12px;
  margin-bottom: 8px; border: 1px solid var(--card-border);
}
.mock-toggle label { font-size: 0.8rem; color: var(--white); }
.toggle-switch {
  width: 44px; height: 24px; background: var(--amber); border-radius: 12px;
  position: relative;
}
.toggle-switch::after {
  content: ''; position: absolute; width: 20px; height: 20px;
  background: white; border-radius: 50%; top: 2px; right: 2px;
}
.toggle-switch.off { background: var(--card-border); }
.toggle-switch.off::after { right: auto; left: 2px; }

.fertility-ring {
  width: 160px; height: 160px; border-radius: 50%;
  border: 8px solid var(--card-border); margin: 16px auto;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; position: relative;
  background: conic-gradient(var(--green) 0deg 90deg, var(--amber) 90deg 160deg, var(--card-border) 160deg 360deg);
  padding: 8px;
}
.fertility-ring-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--dark-bg); display: flex; align-items: center;
  justify-content: center; flex-direction: column;
}
.fertility-ring-inner .big { font-size: 1.8rem; font-weight: 700; color: var(--amber); }
.fertility-ring-inner small { font-size: 0.7rem; color: var(--gray); }

.invite-flow {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0;
}
.invite-flow .avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.invite-flow .arrow { color: var(--amber); font-size: 1.2rem; }
.invite-flow .invite-text {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 14px 16px; font-size: 0.75rem;
  color: var(--gray-light); text-align: center; line-height: 1.5;
}
.invite-flow .mock-btn {
  background: var(--amber); color: var(--navy-dark); padding: 10px 24px;
  border-radius: 10px; font-size: 0.8rem; font-weight: 600;
}

/* --- Pricing --- */
.pricing { text-align: center; }
.pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 800px; margin: 48px auto 0; }
.pricing-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 24px; padding: 40px 32px; text-align: left;
  position: relative; transition: all 0.3s ease;
}
.pricing-card.featured {
  border-color: var(--amber);
  box-shadow: 0 0 40px rgba(212,168,83,0.15);
}
.pricing-card.featured::before {
  content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: var(--navy-dark); padding: 4px 16px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
}
.pricing-card h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--white); }
.pricing-card .price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--amber); margin: 16px 0; }
.pricing-card .price span { font-size: 1rem; color: var(--gray); font-weight: 400; }
.pricing-card .price-annual { font-size: 0.85rem; color: var(--gray); margin-top: -8px; margin-bottom: 16px; }
.pricing-card ul { list-style: none; margin: 24px 0; }
.pricing-card ul li { padding: 8px 0; color: var(--gray-light); font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.pricing-card ul li i { color: var(--amber); width: 20px; }
.pricing-card .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* --- Waitlist / CTA --- */
.waitlist {
  background: linear-gradient(180deg, var(--dark-bg), var(--navy-dark));
  text-align: center;
}
.waitlist-form {
  display: flex; gap: 12px; max-width: 500px; margin: 32px auto 0;
  flex-wrap: wrap; justify-content: center;
}
.waitlist-form input {
  flex: 1; min-width: 250px; padding: 16px 20px; border-radius: 12px;
  border: 2px solid var(--card-border); background: var(--card-bg);
  color: var(--white); font-size: 1rem; font-family: var(--font-main);
  outline: none; transition: border-color 0.3s;
}
.waitlist-form input:focus { border-color: var(--amber); }
.waitlist-form input::placeholder { color: var(--gray); }
.waitlist-note { font-size: 0.8rem; color: var(--gray); margin-top: 12px; }
.tagline-rotate {
  font-size: 1.1rem; color: var(--amber); margin-top: 32px;
  font-style: italic; min-height: 1.5em;
}

/* --- Footer --- */
footer {
  background: var(--navy-dark); border-top: 1px solid var(--card-border);
  padding: 60px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--gray); font-size: 0.9rem; margin-top: 12px; max-width: 300px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--amber); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--gray); text-decoration: none; font-size: 0.9rem; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid var(--card-border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: var(--gray); font-size: 0.85rem; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--gray); font-size: 1.1rem; transition: color 0.2s; text-decoration: none; }
.footer-social a:hover { color: var(--amber); }

/* --- Animations --- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes glow-pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; } 50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.phone-float { animation: float 6s ease-in-out infinite; }

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

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .phone-mockup-wrapper { margin-top: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .how-it-works-steps { grid-template-columns: 1fr; gap: 48px; }
  .step-connector { display: none; }
  .invite-cards { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .mockup-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .nav-links { display: none; }
  .nav-links.active { 
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--dark-bg);
    padding: 24px; border-bottom: 1px solid var(--card-border);
  }
  .hamburger { display: block; }
}
