* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
}

/* ===== HEADER / NAV ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 40px;
  background: #fffffd; /* matches hero so it blends initially */
  position: sticky; /* stays at top while scrolling */
  top: 0;
  z-index: 1000; /* above page content */
  width: 100%;
  border-bottom: 1px solid transparent; /* invisible line initially */
  transition: border-bottom-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
  background: #fff; /* ensure contrast as soon as you scroll */
  border-bottom: 1px solid #e4e4e4; /* visible line fades in */
  box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.18); /* clearer separation */
}

.navbar .logo-link {
  display: flex;
  align-items: center;
}

/* User preference: remove external CSS border to avoid double border */
.navbar .logo-img {
  height: 40px;
  border: none;
  padding: 0;
  border-radius: 8px; /* keep radius if the image has rounded corners */
}

.navbar .beta-link {
  display: inline-block;
  background: #f5c518;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.navbar .beta-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  text-decoration: none;
}

/* Right-side action links container */
.navbar .right-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar .contact-link,
.navbar .contact-link:visited,
.navbar .contact-link:hover,
.navbar .contact-link:active,
.navbar .contact-link:focus {
  font-size: 13px;
  font-weight: 600;
  color: #000;
  background: none;
  text-decoration: none;
  padding: 0;
}

.navbar .contact-link:hover {
  text-decoration: underline;
}

/* ===== HERO SECTION ===== */
.hero {
  text-align: center;
  padding: 60px 20px 80px;
  background: linear-gradient(135deg, #fffffd 0%, #fffcfa 100%);
}

.hero .badge {
  display: inline-block;
  background: #f5c518;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: #d4a017;
}

.hero .subtitle {
  color: #666;
  font-size: 18px;
  max-width: 625px;
  margin: 0 auto 50px;
}

/* ===== SIGNUP CARD ===== */
.signup-card {
  background: #fff;
  max-width: 460px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  text-align: left;
}

.signup-card h2 {
  font-size: 24px;
  color: #1a1a2e;
  margin-bottom: 10px;
  text-align: center;
}

.signup-card .card-subtitle {
  font-size: 14px;
  color: #888;
  text-align: center;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #800080;
}

.form-group input::placeholder {
  color: #bbb;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.4);
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.submit-btn .arrow {
  font-size: 18px;
}

.beta-app-link {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: #999;
}

.beta-app-link a {
  color: #999;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.beta-app-link a:hover {
  color: #555;
}

.message {
  padding: 12px;
  border-radius: 8px;
  margin-top: 20px;
  display: none;
  text-align: center;
  font-size: 14px;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message.show {
  display: block;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 80px 40px;
  background: linear-gradient(135deg, #fdfaff 0%, #f9f0ff 100%);
}

.features-section h2 {
  text-align: center;
  font-size: 36px;
  color: #1a1a2e;
  margin-bottom: 15px;
}

.features-section .section-subtitle {
  text-align: center;
  color: #888;
  font-size: 16px;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: grid;
  grid-template-columns: 56px 1fr; /* icon column + content column */
  gap: 16px;
  align-items: start;
}

/* THE FEATURE CARD POPS UP WHEN YOU HOVER */
/* .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
} */

.feature-card .icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0; /* keep icon independent from title wrapping */
  grid-column: 1;
  grid-row: 1;
}

.feature-card .icon.gold { 
  background: #fff8e1; /* very light gold background */
  color: #b8860b; /* dark gold icon color */
}

/* Individual Pastel Colors with Darker Icons */
.feature-card .icon.green { 
  background: #e8f5e9; 
  color: #2e7d32; 
}

.feature-card .icon.purple { 
  background: #f3e5f5; 
  color: #7b1fa2; 
}

.feature-card .icon.blue { 
  background: #e3f2fd; 
  color: #0077b5; /* LinkedIn Blue-ish */
}

.feature-card .icon.orange { 
  background: #fff3e0; 
  color: #ef6c00; 
}

.feature-card .icon.yellow { 
  background: #fff8e1; 
  color: #fbc02d; 
}

.feature-card .icon.pink { 
  background: #fce4ec; 
  color: #c2185b; 
}

/* Old Icon Classes (kept for reference or if you want mix/match later) */
/* .feature-card .icon.yellow { background: #fff8e1; }
.feature-card .icon.purple { background: #f3e5f5; }
.feature-card .icon.blue { background: #e3f2fd; }
.feature-card .icon.pink { background: #fce4ec; }
.feature-card .icon.orange { background: #fff3e0; }
.feature-card .icon.gray { background: #f5f5f5; } */

.feature-card h3 {
  font-size: 18px;
  color: #1a1a2e;
  margin: 0 0 6px 0;
  grid-column: 2; /* ensure heading lives in the content column */
  grid-row: 1;
  align-self: center;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  grid-column: 1 / -1; /* span full width */
  grid-row: 2;
}

@media (max-width: 900px) {
  .feature-card .icon {
    margin: 0; /* remove bottom margin since icon stays inline with header */
  }
}

/* ===== APP MOCKUP ===== */
.app-mockup {
  text-align: center;
  margin: -10px auto 50px;
  max-width: 900px;
  padding: 0 20px; /* prevents edge overflow on mobile */
}

.app-mockup .mockup-img {
  display: block;
  margin: 0 auto;
  width: auto;          /* lets height constraint shrink width too */
  height: auto;         /* lets width constraint shrink height too */
  max-width: 100%;      /* shrinks to fit container on mobile */
  max-height: 400px;    /* caps height on desktop — adjust to taste */
  /* No border-radius here — combining it with filter: drop-shadow breaks Firefox */
  filter: drop-shadow(0 20px 60px rgba(106, 27, 154, 0.15)); /* follows transparent pixels, not the bounding box */
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  color: #888;
  font-size: 14px;
  border-top: 1px solid #eee;
}

footer .footer-links {
  margin-top: 10px;
}

footer .footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

footer .footer-links a:hover {
  color: #6a1b9a;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 15px 20px;
  }

  .hero {
    padding: 40px 20px 60px;
  }

  .hero h1 {
    font-size: 28px;
  }

  /* Match .feature-card width and horizontal padding */
  .signup-card {
    margin: 0 auto;       /* remove extra side gutters */
    width: 100%;
    max-width: none;      /* allow full-width like feature cards at this breakpoint */
    padding: 30px 25px;   /* vertical 30px, horizontal 25px to match .feature-card */
    box-sizing: border-box;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-section {
    padding: 60px 20px;
  }
}

/* Prevent signup card reflow below 400px */
@media (max-width: 400px) {
/*   .signup-card {
    max-width: 360px; 
    margin: 12px auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: none; 
  }

  .signup-card h2 {
    font-size: 20px;
  }

  .signup-card .card-subtitle {
    font-size: 13px;
    margin-bottom: 18px;
  } */

  .form-group input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .submit-btn {
    padding: 12px;
    font-size: 14px;
  }
}

/* Hide the small beta badge on very narrow screens (<370px) */
@media (max-width: 370px) {
  .navbar .beta-link {
    display: none !important;
    visibility: hidden;
  }
}
