/* SunBuddy — sunbuddy.app */

:root {
  --coral: #ff6b4a;
  --orange: #ff8c42;
  --gold: #ffc857;
  --navy: #1a1f36;
  --navy-mid: #2d3561;
  --text: #1a1f36;
  --text-soft: #4a5568;
  --muted: #718096;
  --cream: #fff9f5;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(26, 31, 54, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

a {
  color: var(--coral);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 249, 245, 0.85);
  border-bottom: 1px solid rgba(26, 31, 54, 0.06);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.logo .sun {
  color: var(--orange);
}

.logo .buddy {
  color: var(--coral);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--coral);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--orange), var(--gold));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(255, 107, 74, 0.35);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid rgba(26, 31, 54, 0.1);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Hero */
.hero {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 45%, var(--coral) 100%);
  color: var(--white);
  padding: 72px 0 96px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 200, 87, 0.2), transparent 45%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  font-weight: 800;
}

.hero .tagline {
  font-size: 1.2rem;
  opacity: 0.92;
  margin: 0 0 8px;
}

.hero .slogan {
  font-size: 0.95rem;
  opacity: 0.72;
  font-style: italic;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mock {
  width: min(280px, 80vw);
  background: rgba(14, 18, 34, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 36px;
  padding: 16px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}

.phone-screen {
  background: linear-gradient(180deg, #2d3561, #1a1f36);
  border-radius: 24px;
  padding: 24px 20px;
  min-height: 360px;
}

.phone-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.phone-stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--gold);
}

.phone-stat span {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-title p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(26, 31, 54, 0.06);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.premium-band {
  background: linear-gradient(135deg, #ff5e62, var(--orange), var(--gold));
  color: var(--white);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
}

.premium-band h2 {
  margin: 0 0 12px;
  font-size: 1.75rem;
}

.premium-band p {
  margin: 0 0 24px;
  opacity: 0.92;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.premium-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.premium-list span {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.download {
  background: var(--white);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.store-badge {
  background: var(--navy);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  opacity: 0.85;
}

.store-badge.soon {
  background: var(--text-soft);
}

/* Legal pages */
.legal-page {
  padding: 48px 0 80px;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-page .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.legal-page h2 {
  font-size: 1.15rem;
  margin-top: 28px;
}

.legal-page p,
.legal-page li {
  color: var(--text-soft);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: var(--white);
  margin: 0 0 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.85rem;
  text-align: center;
}

.disclaimer {
  font-size: 0.8rem;
  opacity: 0.65;
  margin-top: 12px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .nav {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
