/* ============================================
   Sidekick — Marketing site styles
   Dark SaaS theme adapted from Nanoswarm,
   accent color set to Sidekick green (#2E8B57).
   ============================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color: #ffffff;
  background: #09090f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Logo ---------- */

.logo-link {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 20;
  display: block;
  pointer-events: auto;
  opacity: 0.75;
  transition: opacity 0.2s;
  text-decoration: none;
}

.logo-link:hover {
  opacity: 1;
}

.logo-link img {
  height: 32px;
  width: 32px;
  display: block;
  border-radius: 7px;
}

/* ---------- Main ---------- */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 42rem;
  padding: 6rem 1.5rem 3rem;
}

main.landing {
  max-width: 52rem;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ---------- Hero ---------- */

.hero-glow {
  position: absolute;
  top: -10rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(46, 139, 87, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-headline {
  font-size: 4.25rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-headline .accent {
  color: #2E8B57;
}

.hero-headline .nowrap {
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 1.5rem;
  line-height: 1.55;
  color: #d1d5db;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 1;
}

.badge-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
  margin-bottom: 4rem;
}

.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.appstore-badge,
.playstore-badge {
  display: inline-flex;
  align-items: center;
}

.appstore-badge img,
.playstore-badge img {
  height: 3.75rem;
  width: auto;
  display: block;
}

/* ---------- Features grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 48rem;
}

.feature {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: left;
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: #ffffff;
}

.feature-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #9ca3af;
}

/* ---------- Content pages (privacy/terms/contact) ---------- */

.content-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  width: 100%;
}

.content-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.content-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}

.content-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #d1d5db;
  margin-bottom: 1rem;
}

.content-card ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.content-card li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #d1d5db;
  margin-bottom: 0.25rem;
}

.content-card a {
  color: #3CB371;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-card a:hover {
  color: #ffffff;
}

/* ---------- Contact form ---------- */

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: #d1d5db;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: #ffffff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(46, 139, 87, 0.45);
}

.form-group textarea {
  min-height: 7rem;
  resize: vertical;
}

.submit-btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  color: #fff;
  background: #2E8B57;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #3CB371;
}

.success-banner {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  border: 1px solid rgba(52, 211, 153, 0.15);
}

/* ---------- Footer ---------- */

footer {
  width: 100%;
  max-width: 42rem;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 0.75rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #e5e7eb;
}

.footer-copy {
  font-size: 0.75rem;
  color: #6b7280;
}

.footer-badge {
  margin-top: 3rem;
}

.footer-badge img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-badge a:hover img {
  opacity: 1;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .hero-headline {
    font-size: 3.375rem;
    max-width: min(28rem, 92vw);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
  }
  .hero-subtitle {
    font-size: 1.1875rem;
    max-width: 30rem;
    margin-bottom: 2rem;
  }
  .badge-area {
    margin-bottom: 2rem;
  }
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  main.landing {
    padding-top: 5.5rem;
  }
  main {
    padding-top: 5.5rem;
  }
  .logo-link {
    top: 1.25rem;
    left: 1.25rem;
  }
  .hero-headline {
    font-size: 2.875rem;
    max-width: min(24rem, 92vw);
    margin-bottom: 1.75rem;
  }
  .hero-headline .accent {
    display: block;
  }
  .hero-subtitle {
    margin-bottom: 1.75rem;
  }
  .badge-area {
    gap: 0.75rem;
    margin-bottom: 1.75rem;
  }
  .store-badges {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  main {
    padding: 5rem 1rem 2rem;
  }
  main.landing {
    padding: 5rem 1rem 2rem;
  }
  .content-card {
    padding: 1.5rem 1.25rem;
  }
  .content-card h1 {
    font-size: 1.25rem;
  }
}
