/* Starry Marketing Landing Page */

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #6366f1 100%);
  --border: rgba(148, 163, 184, 0.12);
  --success: #22c55e;
  --error: #ef4444;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animated stars background */
.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    var(--bg-primary);
}

.stars::before,
.stars::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 30% 65%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.5) 50%, transparent 50%),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 15% 85%, rgba(255,255,255,0.6) 50%, transparent 50%),
    radial-gradient(1px 1px at 45% 45%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.35) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 25% 35%, rgba(255,255,255,0.5) 50%, transparent 50%);
  background-size: 100% 100%;
  animation: twinkle 8s ease-in-out infinite alternate;
}

.stars::after {
  animation-delay: -4s;
  opacity: 0.6;
}

@keyframes twinkle {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 14, 26, 0.8);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.app-icon {
  border-radius: 22%;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* App Store badge — official Apple artwork, unmodified per marketing guidelines */
.app-store-badge-link {
  display: inline-block;
  line-height: 0;
  flex-shrink: 0;
}

.app-store-badge-link img {
  display: block;
  height: auto;
  width: auto;
}

.app-store-badge-link--nav img {
  height: 40px;
}

.app-store-badge-link--hero img {
  height: 50px;
}

.app-store-badge-link--cta img {
  height: 60px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 24px 100px;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 100px;
  color: var(--accent-blue);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  width: 280px;
  margin: 0 auto;
  padding: 12px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 36px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow), 0 0 60px rgba(59, 130, 246, 0.15);
}

.phone-screen {
  background: var(--bg-secondary);
  border-radius: 28px;
  overflow: hidden;
  padding: 16px;
}

.mock-header {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 16px;
  text-align: center;
}

.mock-review {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 10px;
}

.mock-review.saved {
  border-color: rgba(239, 68, 68, 0.3);
}

.mock-stars {
  color: #fbbf24;
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.mock-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.mock-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.mock-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Features */
.features {
  padding: 80px 0;
  background: rgba(17, 24, 39, 0.4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Pro section */
.pro-section {
  padding: 100px 0;
}

.pro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.pro-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 100px;
  color: #fbbf24;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.pro-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.pro-text > p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.pro-features-list {
  list-style: none;
  margin-bottom: 32px;
}

.pro-features-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.pro-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 700;
}

.pro-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.pro-card-header {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.sentiment {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.sentiment.positive {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.sentiment.negative {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

.pro-card-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.pro-card-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* CTA */
.cta-section {
  text-align: center;
  padding: 100px 24px;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 32px;
}

/* Newsletter */
.newsletter-section {
  padding: 80px 0;
  background: rgba(17, 24, 39, 0.4);
  border-top: 1px solid var(--border);
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.newsletter-text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.newsletter-text p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.newsletter-form .form-group {
  display: flex;
  gap: 12px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-message {
  margin-top: 12px;
  font-size: 0.875rem;
  min-height: 1.25em;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: var(--error);
}

/* Footer */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.8125rem;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 48px;
    gap: 48px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .value-props,
  .features-grid,
  .pro-content,
  .newsletter-content {
    grid-template-columns: 1fr;
  }

  .nav-links a:not(.app-store-badge-link) {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .newsletter-form .form-group {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .value-props {
    gap: 16px;
  }

  .features-grid {
    gap: 16px;
  }
}
