:root {
  color-scheme: light;
  --background: #edf1f5;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-muted: rgba(248, 250, 252, 0.92);
  --border: rgba(15, 23, 42, 0.1);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --shadow-lg: 0 28px 60px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 36px rgba(15, 23, 42, 0.06);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.09), transparent 28%),
    linear-gradient(180deg, #f9fbfd 0%, var(--background) 100%);
  color: var(--text-primary);
}

img {
  max-width: 100%;
  display: block;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

p,
ul {
  margin: 0;
}

.language-target {
  position: absolute;
  inset: 0 auto auto 0;
  width: 0;
  height: 0;
}

.localized-es {
  display: none;
}

.header-panel .localized {
  display: none;
}

.header-panel .localized-en {
  display: flex;
}

#es:target ~ .localized-en {
  display: none;
}

#es:target ~ .localized-es {
  display: block;
}

#es:target ~ .page-shell .localized-en {
  display: none;
}

#es:target ~ .page-shell .localized-es {
  display: block;
}

#es:target ~ .page-shell .header-panel .localized-en {
  display: none;
}

#es:target ~ .page-shell .header-panel .localized-es {
  display: flex;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text-primary);
  color: #ffffff;
}

.skip-link:focus {
  top: 16px;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.header-panel .localized {
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
}

.lang-option {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
}

.lang-option.is-active {
  background: var(--surface-strong);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.site-nav a[aria-current="page"] {
  color: var(--text-primary);
  font-weight: 700;
}

.surface-card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  padding: 48px;
}

.eyebrow {
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  line-height: 1.02;
}

h2 {
  font-size: 1.1rem;
  line-height: 1.3;
}

h3 {
  font-size: 1rem;
  line-height: 1.4;
}

.subtitle {
  margin-top: 16px;
  font-size: 1.24rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.description,
.content-card p,
.feature-list li,
.info-card p,
.preview-copy p,
.support-meta p,
.footer-note,
.site-footer p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.description {
  margin-top: 24px;
  max-width: 58ch;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.button-secondary {
  background: var(--surface-strong);
  border-color: var(--border);
  color: var(--text-primary);
}

.button-secondary:hover {
  border-color: rgba(37, 99, 235, 0.24);
  color: var(--text-primary);
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.meta-list li {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
}

.preview-stack {
  display: flex;
}

.preview-card {
  width: 100%;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 4px 0 14px;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.window-dot.red {
  background: #ff5f57;
}

.window-dot.yellow {
  background: #febc2e;
}

.window-dot.green {
  background: #28c840;
}

.app-preview {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--surface-muted);
}

.preview-copy {
  padding: 20px 8px 6px;
}

.preview-copy h2 {
  margin-bottom: 10px;
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.shot-card {
  overflow: hidden;
}

.shot-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  background: #0f172a;
}

.shot-copy {
  padding: 20px 24px 24px;
}

.shot-copy h2 {
  margin-bottom: 10px;
}

.detail-card {
  padding: 28px;
}

.detail-list {
  margin: 18px 0 0;
  padding-left: 20px;
}

.detail-list li + li {
  margin-top: 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.info-card,
.content-card {
  padding: 28px;
}

.info-card h2,
.content-card h2 {
  margin-bottom: 14px;
}

.content-page {
  display: grid;
  gap: 20px;
}

.support-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.support-meta > div {
  padding: 18px;
  border-radius: 8px;
  background: var(--surface-muted);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.feature-list {
  margin: 0;
  padding-left: 20px;
}

.feature-list li + li {
  margin-top: 10px;
}

.faq-item + .faq-item {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  margin-bottom: 8px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(220px, 1.15fr) minmax(150px, 0.8fr) minmax(220px, 1fr);
  gap: 32px;
  margin-top: 36px;
  padding: 32px 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.footer-block {
  min-width: 0;
}

.footer-brand-block strong {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 1rem;
}

.footer-block h2 {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.footer-block a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-block p + p {
  margin-top: 6px;
}

.footer-note {
  grid-column: 1 / -1;
  padding-top: 10px;
}

@media (max-width: 920px) {
  .hero,
  .info-grid,
  .shots-grid,
  .details-grid,
  .support-meta,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .info-card,
  .content-card {
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
    padding-bottom: 28px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-panel,
  .header-panel .localized,
  .site-nav {
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .header-panel .localized-en,
  .header-panel .localized-es {
    align-items: flex-start;
  }

  .language-switcher {
    align-self: flex-start;
  }

  h1 {
    font-size: 2.45rem;
  }

  .subtitle {
    font-size: 1.08rem;
  }

  .meta-list li {
    width: 100%;
    border-radius: 8px;
  }
}
