/* LEDO-TECH marketing site — mobile-first, semantic layout */

:root {
  --color-bg: #f6f7fb;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #475569;
  --color-border: #e2e8f0;
  --color-accent: #512bd4;
  --color-accent-hover: #3d1fa3;
  --color-accent-soft: #ede9fe;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  --max: 1120px;
  --focus: 2px solid var(--color-accent);
  --focus-offset: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: var(--focus);
  outline-offset: var(--focus-offset);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-accent), #7c3aed);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}

.site-nav a {
  color: var(--color-muted);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
  color: var(--color-text);
  background: var(--color-bg);
}

.site-nav a:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
}

.site-nav a.active {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

main {
  flex: 1;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.hero {
  padding: 2.5rem 0 2rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 3.5rem 0 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
  }
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-copy .lede {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
}

.hero-visual {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.hero-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-panel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.hero-panel h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .platform-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.platform-tile {
  text-align: center;
  padding: 0.85rem 0.5rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
}

.platform-tile span {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 1.75rem;
  color: var(--color-muted);
  max-width: 60ch;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.35rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.privacy-banner {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-accent-soft);
  border: 1px solid #ddd6fe;
  border-radius: var(--radius);
}

.privacy-banner p {
  margin: 0;
  font-size: 0.9375rem;
  color: #4c1d95;
}

.privacy-banner a {
  color: var(--color-accent-hover);
  font-weight: 600;
}

/* Legal / inner pages */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.page-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--color-muted);
  margin: 0 0 1rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose a {
  color: var(--color-accent);
  font-weight: 500;
}

.prose a:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
}

.callout {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Support */
.support-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Downloads */
.download-cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .download-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.download-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.download-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.download-card p {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.page-preview-wrap {
  margin: 0 0 2rem;
  max-width: 560px;
}

.page-preview-wrap .hero-visual {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .page-preview-wrap {
    margin-left: auto;
    margin-right: auto;
  }
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-footer {
  margin-top: auto;
  background: var(--color-text);
  color: #e2e8f0;
  padding: 2rem 1.25rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 4px;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid #334155;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.footer-bottom p {
  margin: 0.35rem 0;
}

.footer-bottom a {
  color: #cbd5e1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-sponsorship {
  font-size: 0.875rem;
  color: #94a3b8;
}
