@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root,
[data-theme="light"] {
  color-scheme: light;
  --color-primary: #0f172a;
  --color-on-primary: #ffffff;
  --color-secondary: #334155;
  --color-accent: #0369a1;
  --color-on-accent: #ffffff;
  --color-accent-hover: #075985;
  --color-background: #f8fafc;
  --color-foreground: #020617;
  --color-card: #ffffff;
  --color-muted: #e8ecf1;
  --color-muted-foreground: #475569;
  --color-border: #e2e8f0;
  --color-success: #15803d;
  --color-success-bg: #dcfce7;
  --color-warning: #b45309;
  --color-ring: #0f172a;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --header-bg: rgba(248, 250, 252, 0.92);
  --font-heading: "Lexend", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 10px;
  --max: 1120px;
  --transition: 200ms ease;
}

[data-theme="dark"] {
  color-scheme: dark;
  --color-primary: #e2e8f0;
  --color-on-primary: #0f172a;
  --color-secondary: #cbd5e1;
  --color-accent: #38bdf8;
  --color-on-accent: #0f172a;
  --color-accent-hover: #7dd3fc;
  --color-background: #020617;
  --color-foreground: #f8fafc;
  --color-card: #0f172a;
  --color-muted: #1e293b;
  --color-muted-foreground: #94a3b8;
  --color-border: #1e293b;
  --color-success: #4ade80;
  --color-success-bg: rgba(74, 222, 128, 0.12);
  --color-warning: #fbbf24;
  --color-ring: #38bdf8;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(2, 6, 23, 0.92);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--color-background);
  color: var(--color-foreground);
}

img { max-width: 100%; height: auto; }

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

a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--color-foreground);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand:hover { text-decoration: none; color: var(--color-foreground); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 0.75rem;
  font-weight: 700;
}

[data-theme="dark"] .brand-mark {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.brand-text { font-size: 0.95rem; }
.brand-text span {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--color-muted-foreground);
  letter-spacing: 0;
}

.nav-toggle {
  margin-left: auto;
  display: none;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-foreground);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-family: inherit;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--color-muted-foreground);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

.site-nav a:hover {
  color: var(--color-foreground);
  background: var(--color-muted);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-card);
  color: var(--color-muted-foreground);
  cursor: pointer;
}

.theme-toggle:hover { color: var(--color-accent); }

.theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }

.btn-secondary {
  background: transparent;
  color: var(--color-foreground);
  border-color: var(--color-border);
}

.btn-secondary:hover { background: var(--color-muted); color: var(--color-foreground); }

.btn-header {
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
}

main { flex: 1; }

.hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-muted) 0%, var(--color-background) 100%);
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.85rem;
}

.hero h1,
.page-head h1,
h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.lede,
.hero-lede {
  font-size: 1.15rem;
  color: var(--color-muted-foreground);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.page-head { padding: 2.5rem 0 1.5rem; }
.page-head p { color: var(--color-muted-foreground); margin: 0; }

.section { padding: 3rem 0; }
.section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem 0 0;
}

.trust-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}

.trust-item strong { display: block; font-family: var(--font-heading); font-size: 1.35rem; }
.trust-item span { color: var(--color-muted-foreground); font-size: 0.9rem; }

.product-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-card,
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover,
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-card h2,
.card h2,
h2 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  font-weight: 600;
}

.section-title,
.page-head + .section h2,
article h2 {
  font-size: 1.35rem;
}

.price {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0.75rem 0 0;
  color: var(--color-primary);
}

[data-theme="dark"] .price { color: var(--color-accent); }

.muted { color: var(--color-muted-foreground); }

.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }

.entry-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
  overflow: hidden;
}

.entry-list li {
  margin: 0;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.2rem;
}

.entry-list li:last-child { border-bottom: 0; }

.entry-list a {
  color: var(--color-foreground);
  font-weight: 600;
  font-family: var(--font-heading);
}

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

.entry-meta {
  display: block;
  font-size: 0.88rem;
  color: var(--color-muted-foreground);
  font-weight: 400;
  margin-top: 0.2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

th {
  background: var(--color-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--color-muted); }

.status-ok {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--color-success-bg);
  color: var(--color-success);
  font-weight: 600;
  font-size: 0.85rem;
}

.status-ok::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

.notice {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
  margin: 1.25rem 0;
}

.form-stack { display: grid; gap: 0.85rem; max-width: 32rem; }

label { font-weight: 600; font-size: 0.9rem; }

input[type="text"],
textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-card);
  color: var(--color-foreground);
}

.result {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  display: none;
}

.result.is-visible { display: block; }
.result.is-ok { border-color: var(--color-success); background: var(--color-success-bg); }
.result.is-bad { border-color: var(--color-warning); }

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-card);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.92rem;
  color: var(--color-muted-foreground);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h2 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-foreground);
  margin: 0 0 0.7rem;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.35rem 0; }
.site-footer a { color: var(--color-muted-foreground); }
.site-footer a:hover { color: var(--color-accent); }

.footer-legal {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .product-grid, .card-grid, .trust, .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    margin-left: 0;
  }
  .site-nav.is-open { display: flex; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .btn-header { display: none; }
  .product-grid, .card-grid, .trust, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 2rem; }
}
