/* AutoScope landing — dark + teal + Gammarion gold accents */

:root {
  --bg-deep: #10181c;
  --bg-mid: #141f24;
  --bg-card: #18242a;
  --bg-card-hover: #1c2a31;
  --teal: #2db8a8;
  --teal-light: #48d2c3;
  --teal-dark: #126c62;
  --gold: #c9a227;
  --gold-soft: #ffd060;
  --text: #f4f8fa;
  --muted: #a5b9c3;
  --border: rgba(45, 184, 168, 0.25);
  --gold-border: rgba(201, 162, 39, 0.45);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --hero-max: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(45, 184, 168, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(18, 108, 98, 0.15), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
}

a {
  color: var(--teal-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-soft);
}

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

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(16, 24, 28, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

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

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--teal-dark);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.15);
}

.brand span.teal {
  color: var(--teal);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.header-bar .lang-switch {
  flex-shrink: 0;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

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

/* Language switcher */

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-card);
}

.lang-btn {
  padding: 0.3rem 0.65rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: var(--gold-soft);
}

.lang-btn.is-active {
  background: var(--teal-dark);
  color: var(--text);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(45, 184, 168, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3ad4c4 0%, var(--teal) 100%);
  color: var(--gold-soft);
  box-shadow: 0 4px 28px rgba(45, 184, 168, 0.55);
}

.btn-secondary {
  background: transparent;
  color: var(--teal-light);
  border: 1px solid var(--teal-dark);
}

.btn-secondary:hover {
  background: rgba(45, 184, 168, 0.12);
  color: var(--gold-soft);
  border-color: var(--teal);
  box-shadow: 0 0 20px rgba(45, 184, 168, 0.2);
}

.btn-disabled {
  background: var(--bg-card);
  color: var(--muted);
  border: 1px dashed var(--border);
  cursor: default;
  opacity: 0.85;
}

.btn-disabled:hover {
  transform: none;
  color: var(--muted);
}

/* Hero */

.hero {
  padding: 3.5rem 0 4rem;
}

.hero .container {
  width: min(100% - 2 * var(--gutter), var(--hero-max));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-soft);
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid var(--gold-border);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--teal-light);
  font-weight: 600;
}

.hero .sites {
  margin: 0 0 1.5rem;
  color: var(--gold-soft);
  font-size: 0.95rem;
}

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

.hero-visual {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.hero-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--teal-dark);
  box-shadow: var(--shadow), 0 0 0 1px var(--gold-border);
  background: var(--bg-card);
  max-width: 100%;
}

.hero-frame img {
  width: 100%;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
}

/* Sections */

section {
  padding: 3.5rem 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  text-align: center;
}

.section-sub {
  margin: 0 auto 2.5rem;
  max-width: 36rem;
  text-align: center;
  color: var(--muted);
}

.gold-line {
  width: 4rem;
  height: 2px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}

/* Feature grid */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.35rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-border);
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.08);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--teal-light);
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Flow steps */

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto;
}

.flow-step {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.flow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.flow-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.flow-step p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.flow-arrow {
  display: none;
}

@media (min-width: 768px) {
  .flow-steps {
    gap: 0.5rem;
  }

  .flow-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--teal);
    font-size: 1.25rem;
    font-weight: 700;
    z-index: 1;
  }
}

/* Install cards */

.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 52rem;
  margin: 0 auto;
}

.install-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.install-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.install-card p {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.install-card--gold {
  border-color: var(--gold-border);
}

/* Support */

.support-block {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 36rem;
  margin: 0 auto;
}

.support-block p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Footer */

.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bottom .gammarion {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Privacy page */

.page-main {
  padding: 2.5rem 0 4rem;
}

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

.prose h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.prose .updated {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

.prose h2 {
  font-size: 1.15rem;
  color: var(--teal-light);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 0.95rem;
}

.prose ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose .highlight-box {
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
}

.prose .highlight-box p {
  margin: 0;
  color: var(--text);
}

/* Responsive */

@media (max-width: 768px) {
  .header-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand lang"
      "nav nav";
    align-items: center;
    gap: 0.65rem 0.75rem;
    padding: 0.75rem 0;
  }

  .brand {
    grid-area: brand;
    font-size: 1.05rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .header-bar .lang-switch {
    grid-area: lang;
    justify-self: end;
  }

  .nav {
    grid-area: nav;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(0.85rem, 5vw, 1.35rem);
    width: 100%;
    margin-left: 0;
  }

  .nav a {
    font-size: 0.88rem;
    white-space: nowrap;
  }

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

  .hero-visual {
    order: -1;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 2rem;
  }

  .hero .actions {
    flex-direction: column;
  }

  .hero .actions .btn {
    width: 100%;
  }
}
