/* Autoro.tech — dark system aligned with blog-autoro */
:root {
  --canvas: #0f172a;
  --canvas-soft: #111827;
  --surface: #1e293b;
  --ink: #f8fafc;
  --body: #cbd5e1;
  --muted: #94a3b8;
  --hairline: rgba(0, 245, 212, 0.14);
  --hairline-soft: rgba(148, 163, 184, 0.12);
  --hairline-strong: rgba(0, 245, 212, 0.28);
  --primary: #00f5d4;
  --primary-active: #2dd4bf;
  --primary-ink: #0f172a;
  --accent-soft: rgba(0, 245, 212, 0.12);
  --font-sans: "Plus Jakarta Sans", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --section-y: 5rem;
  --max-w: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--canvas);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 245, 212, 0.08), transparent 55%),
    radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.08) 1px, transparent 0);
  background-size: auto, 28px 28px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(12px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

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

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: transparent;
}

.nav {
  display: none;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.75rem;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0.4rem;
  border-radius: 0.35rem;
  border: 1px solid transparent;
}

.lang-switch a[aria-current="page"] {
  color: var(--primary);
  border-color: var(--hairline);
  background: var(--accent-soft);
}

.lang-switch a:hover {
  color: var(--ink);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary:hover {
  background: var(--primary-active);
  color: var(--primary-ink);
}

.btn-ghost {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero {
  padding: calc(var(--section-y) + 1rem) 0 var(--section-y);
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--accent-soft);
}

.hero-lead {
  max-width: 40rem;
  margin: 1rem auto 2rem;
  font-size: 1.125rem;
  color: var(--body);
}

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

.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--hairline-soft);
}

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.section-head p {
  color: var(--muted);
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

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

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--hairline);
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.card:hover {
  border-color: var(--hairline-strong);
  background: color-mix(in srgb, var(--surface) 100%, transparent);
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--muted);
  flex: 1;
}

.card-meta {
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--primary);
}

.card-cta {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.card-cta::after {
  content: " →";
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.contact-box {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--hairline);
  border-radius: 0.75rem;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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