/* Root variables and theme handling */
:root {
  color-scheme: light dark;
  --bg: #f4f6fb;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --text: #0b1626;
  --text-soft: #475569;
  --accent: #1e90ff;
  --accent-soft: rgba(30, 144, 255, 0.12);
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.15);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --surface: rgba(15, 23, 42, 0.65);
    --surface-strong: #131c32;
    --text: #f8fafc;
    --text-soft: #cbd5f5;
    --accent-soft: rgba(59, 130, 246, 0.16);
    --border: rgba(148, 163, 184, 0.08);
    --shadow: 0 24px 64px rgba(2, 6, 23, 0.5);
  }
}

body[data-theme="light"] {
  --bg: #f4f6fb;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --text: #0b1626;
  --text-soft: #475569;
  --accent-soft: rgba(30, 144, 255, 0.12);
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.15);
}

body[data-theme="dark"] {
  --bg: #0f172a;
  --surface: rgba(15, 23, 42, 0.65);
  --surface-strong: #131c32;
  --text: #f8fafc;
  --text-soft: #cbd5f5;
  --accent-soft: rgba(59, 130, 246, 0.16);
  --border: rgba(148, 163, 184, 0.08);
  --shadow: 0 24px 64px rgba(2, 6, 23, 0.5);
}

/* Base layout */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top right, rgba(30, 144, 255, 0.12), transparent 45%), var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  overflow: visible;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

main {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

section {
  padding: 0 1.5rem;
}

.container {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface-strong);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(30, 144, 255, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: background 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

/* Hero */
.hero {
  padding-top: 6rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.75rem, 4vw + 1rem, 4rem);
  margin: 0;
  letter-spacing: -0.015em;
}

.hero p {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  width: fit-content;
  font-size: 0.9rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 16px;
  padding: 0.85rem 1.4rem;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 20px 40px rgba(30, 144, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 26px 50px rgba(30, 144, 255, 0.35);
  outline: none;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.hero-note {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: min(540px, 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 15% -8% -15% 35%;
  background: var(--accent-soft);
  border-radius: var(--radius-xl);
  z-index: -1;
  filter: blur(60px);
}

/* Screenshots */
.screenshot-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.screenshot-card {
  margin: 0;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.screenshot-link {
  display: block;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.screenshot-link::after {
  content: "View full size";
  position: absolute;
  inset: auto 1rem 1rem auto;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.screenshot-link:hover::after,
.screenshot-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.screenshot-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.screenshot-card img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
  transition: transform 0.3s ease;
}

.screenshot-link:hover img,
.screenshot-link:focus-visible img {
  transform: scale(1.02);
}

.screenshot-card figcaption {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Features */
.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.feature-card p {
  color: var(--text-soft);
  margin: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(244, 114, 182, 0.2);
  color: #f472b6;
  font-weight: 600;
  font-size: 0.8rem;
}

/* How it works */
.steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.step {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.step h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.step p {
  margin-bottom: 0;
  color: var(--text-soft);
}

/* Pricing */
.pricing-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}

.pricing-card h3 {
  margin: 0;
  font-size: 1.8rem;
}

.pricing-card p {
  margin: 0;
  color: var(--text-soft);
}

/* FAQ */
.faq {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.faq-item h4 {
  margin: 0 0 0.5rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-soft);
}

.faq-item a {
  color: var(--accent);
}

/* Contact */
.contact {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.contact-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.contact-card p {
  margin-top: 0;
  color: var(--text-soft);
}

.contact-card form {
  display: grid;
  gap: 0.75rem;
}

label {
  font-weight: 600;
}

input,
textarea {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  color: inherit;
  font: inherit;
}

@media (prefers-color-scheme: dark) {
  input,
  textarea {
    background: rgba(15, 23, 42, 0.65);
  }
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

textarea {
  min-height: 120px;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding: 3rem 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
}

.footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

small {
  color: rgba(226, 232, 240, 0.75);
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-media::after {
    inset: 10% -15% -10% -15%;
  }

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

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0.85rem 1rem;
  }

  section {
    padding: 0 1rem;
  }

  .feature-card,
  .step,
  .faq-item,
  .contact-card {
    padding: 1.25rem;
  }
}
