/* ========================================================================
   Punn -- Shared Stylesheet
   Color palette: deep navy, sky blue accent, cool grays
   Mobile-first responsive design
   ======================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  background-color: #0F172A;
  color: #CBD5E1;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #38BDF8;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #7DD3FC;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: #F8FAFC;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

/* --- Layout --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #F8FAFC;
  letter-spacing: -0.03em;
}

.nav-logo span {
  color: #38BDF8;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: #94A3B8;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #F8FAFC;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 64px;
  background: linear-gradient(
    170deg,
    #0F172A 0%,
    #1E293B 40%,
    #0F172A 100%
  );
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #38BDF8;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #F8FAFC 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #94A3B8;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

.cta-btn--primary {
  background: #F8FAFC;
  color: #0F172A;
}

.cta-btn--primary:hover {
  color: #0F172A;
  box-shadow: 0 8px 32px rgba(248, 250, 252, 0.15);
}

.cta-btn--secondary {
  background: rgba(248, 250, 252, 0.08);
  color: #F8FAFC;
  border: 1px solid rgba(248, 250, 252, 0.15);
}

.cta-btn--secondary:hover {
  color: #F8FAFC;
  background: rgba(248, 250, 252, 0.12);
  box-shadow: 0 8px 32px rgba(248, 250, 252, 0.08);
}

.cta-icon {
  font-size: 1.25rem;
}

/* --- Features --- */
.features {
  background: #0F172A;
}

.features .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.features .section-header h2 {
  margin-bottom: 0.75rem;
}

.features .section-header p {
  color: #64748B;
  font-size: 1.0625rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.08);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: #94A3B8;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Privacy-First Section --- */
.privacy-first {
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  text-align: center;
}

.privacy-first .container {
  max-width: 720px;
}

.privacy-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 16px;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.privacy-first h2 {
  margin-bottom: 1rem;
}

.privacy-first p {
  color: #94A3B8;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* --- Medical Disclaimer --- */
.disclaimer {
  background: #0F172A;
  padding: 3rem 0;
}

.disclaimer-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: 12px;
  text-align: center;
}

.disclaimer-box p {
  color: #94A3B8;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.disclaimer-box strong {
  color: #FBBF24;
}

/* --- Footer --- */
.footer {
  background: #0B1120;
  border-top: 1px solid rgba(56, 189, 248, 0.08);
  padding: 3rem 0;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: #64748B;
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: #94A3B8;
}

.footer-contact {
  color: #64748B;
  font-size: 0.875rem;
}

.footer-contact a {
  color: #38BDF8;
}

.footer-copyright {
  color: #475569;
  font-size: 0.8125rem;
}

/* ==========================================
   Legal Pages (Privacy Policy, Terms)
   ========================================== */

.legal-page {
  padding-top: 96px;
  padding-bottom: 5rem;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: #64748B;
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: #E2E8F0;
}

.legal-content h3 {
  font-size: 1.0625rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #CBD5E1;
}

.legal-content p,
.legal-content li {
  color: #94A3B8;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content strong {
  color: #CBD5E1;
}

.legal-content em {
  color: #64748B;
  font-style: italic;
}

.legal-highlight {
  padding: 1rem 1.5rem;
  background: rgba(56, 189, 248, 0.05);
  border-left: 3px solid #38BDF8;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.legal-highlight p {
  margin-bottom: 0;
}

/* --- Back Link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #38BDF8;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.back-link:hover {
  color: #7DD3FC;
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */

/* Tablet (768px+) */
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

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

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .feature-card {
    padding: 2.5rem;
  }
}
