:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --text-main: #111827;
  --text-muted: #4b5563;
  --text-light: #9ca3af;
  --bg-color: #ffffff;
  --bg-alt: #f9fafb;
  --border-color: #e5e7eb;
  color-scheme: light dark;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --container-width: 1024px;
} 

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.container.narrow {
  max-width: 768px;
}

.text-center {
  text-align: center;
}

.mt-8 {
  margin-top: 2rem;
}

/* Utility: prevent heading from breaking across lines on larger screens */
.no-break {
  white-space: nowrap;
}

@media (max-width: 640px) {
  /* Allow wrapping on small screens to avoid overflow */
  .no-break {
    white-space: normal;
  }
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .desktop-only {
    display: inline;
  }
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.75;
}

/* Nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.nav-cta {
  font-size: 0.95rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Hero */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  /* Subtle gradient background */
  background: radial-gradient(circle at 50% 0%, #eff6ff 0%, #ffffff 50%);
}

.hero h1 {
  font-size: 3rem; /* Larger on mobile */
  margin-bottom: 1.5rem;
  color: var(--text-main);
  /* subtle, neutral shadow for good legibility on light backgrounds */
  text-shadow: 0 1px 0 rgba(0,0,0,0.08);
} 

.subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.hero-cta-group {
  margin-bottom: 4rem;
}

.hero .screenshot-placeholder {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: transform 0.1s, background-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.cta-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.3);
}

.cta-primary:active {
  transform: translateY(0);
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Images/Screenshots */
.screenshot-placeholder {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.03);
  background: #fff;
  line-height: 0;
}

.screenshot-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

/* Problem Section */
.problem {
  text-align: center;
}

.problem p {
  margin-top: 1.5rem;
}

/* Features Grid */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}

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

.feature-card p {
  font-size: 1rem;
}

/* Split Layout (Solution) */
.split-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.text-content {
  flex: 1;
}

.image-content {
  flex: 1;
  width: 100%;
}

@media (min-width: 768px) {
  .split-layout {
    flex-direction: row;
  }
}

.text-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
}

.text-link:hover {
  text-decoration: underline;
}

/* Final CTA */
.final-cta {
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 1rem;
}

.cta-wrapper {
  margin-top: 2.5rem;
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  background: #fff;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    text-align: left;
  }
}

.footer-brand .logo {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-light);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.1s;
}

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

/* Media Query Refinements */
@media (max-width: 640px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .hero {
    padding-top: 4rem;
  }
  
  .container {
    padding: 0 1.25rem;
  }
  
  .cta-primary {
    width: 100%;
    text-align: center;
  }
}

/* Dark mode: set dark background and ensure the hero headline remains readable */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0b1220;
    --bg-alt: #071022;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-light: #94a3b8;
    --border-color: rgba(255,255,255,0.06);
  }

  body {
    background: var(--bg-color);
    color: var(--text-main);
  }

  header {
    background: rgba(2,6,23,0.6);
    border-bottom-color: rgba(255,255,255,0.04);
  }

  .hero {
    /* dark base plus very subtle highlight at top to preserve depth */
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 6%, transparent 60%), var(--bg-color);
  }

  /* white headline with a dark blur for legibility on dark backgrounds */
  .hero h1 {
    color: var(--text-main);
    text-shadow: 0 2px 6px rgba(2,6,23,0.65);
  }

  .subtitle {
    color: var(--text-muted);
  }

  .screenshot-placeholder {
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.005));
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.03);
  }

  .feature-card {
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.03);
    color: var(--text-main);
    box-shadow: none;
  }

  footer {
    background: transparent;
    border-top-color: rgba(255,255,255,0.03);
  }

  .nav-cta {
    color: var(--text-main);
  }
}
