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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --accent: #4f8fff;
  --accent-hover: #3a7ae8;
  --border: #2a2a2a;
  --radius: 12px;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.navbar .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar .logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

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

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: 120px 24px 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .hero-tagline {
  font-size: 1.4rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Sections ===== */
.section {
  padding: 80px 24px;
}

.section .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

/* ===== App Cards ===== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

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

.app-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.app-card .app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 20px;
  object-fit: cover;
}

.app-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.app-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.app-card .app-subtitle {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.app-card .app-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.app-card .app-store-link {
  display: inline-block;
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}

.app-card .app-store-link:hover {
  background: var(--accent-hover);
  color: #fff;
}

.app-card .link-sep {
  color: var(--text-secondary);
}

.app-card .learn-more-link {
  font-size: 0.9rem;
  font-weight: 500;
}

.app-card .badge {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  background: rgba(79, 143, 255, 0.15);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== Why Offline / About ===== */
.about-content {
  max-width: 720px;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.why-offline-summary {
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 1.15rem !important;
  margin-top: 8px;
}

/* ===== Legal Pages ===== */
.legal {
  padding: 48px 24px 80px;
}

.legal .container {
  max-width: 780px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal .last-updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

.legal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

/* ===== Support Page ===== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.support-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.support-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== Footer ===== */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  background: var(--bg-secondary);
}

.footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

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

.footer .copyright {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}

.social-links a:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ===== Stintly Landing Page ===== */

.stintly-hero {
  padding-top: 100px;
}

.stintly-hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin-bottom: 32px;
  box-shadow: 0 8px 32px rgba(79, 143, 255, 0.2);
}

/* Email Signup Form */
.signup-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 32px auto 0;
}

.signup-input {
  flex: 1;
  padding: 14px 20px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.signup-input:focus {
  border-color: var(--accent);
}

.signup-input::placeholder {
  color: var(--text-secondary);
}

.signup-btn {
  padding: 14px 28px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.signup-btn:hover {
  background: var(--accent-hover);
}

.signup-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.signup-thanks {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 14px 0;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-screenshot-wrap {
  background: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.feature-screenshot {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
}

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

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.pricing-card:hover {
  transform: translateY(-2px);
}

.pricing-featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(79, 143, 255, 0.1);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-badge-premium {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
}

.pricing-tier {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-period {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  padding: 0;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: "\2713\00a0\00a0";
  color: var(--accent);
  font-weight: 700;
}

/* Privacy Callout */
.privacy-callout {
  display: flex;
  align-items: center;
  gap: 64px;
}

.privacy-text {
  flex: 1;
}

.privacy-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 16px;
  line-height: 1.75;
}

.privacy-screenshot-wrap {
  flex: 0 0 240px;
  display: flex;
  justify-content: center;
}

/* Bottom CTA */
.stintly-cta {
  border-top: 1px solid var(--border);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 80px 24px 60px;
  }

  .section {
    padding: 60px 24px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .stintly-hero {
    padding-top: 80px;
  }

  .stintly-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-btn {
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .privacy-callout {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .privacy-screenshot-wrap {
    flex: none;
    width: 200px;
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
