:root {
  --bg-dark: #12151a;
  --bg-card: #1a1f28;
  --bg-hero: linear-gradient(160deg, #0d2847 0%, #1a4a7a 45%, #0d2847 100%);
  --accent: #f5c518;
  --accent-hover: #ffd84d;
  --text: #f4f6f8;
  --text-muted: #9aa8b8;
  --border: rgba(255, 255, 255, 0.08);
  --max-width: 1100px;
  --header-h: 4.5rem;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-dark);
}

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg-dark);
}

.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 21, 26, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

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

.logo-mark {
  display: flex;
  gap: 3px;
}

.logo-mark span {
  width: 7px;
  height: 7px;
  background: var(--accent);
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--text-muted);
  padding: 0.2rem 0.35rem;
}

.lang-switch a.active {
  color: var(--accent);
}

/* Hero */
.hero {
  background: var(--bg-hero);
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 40%, rgba(74, 159, 212, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(245, 197, 24, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.hero-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  text-align: left;
  position: relative;
}

.hero-layout .hero-inner {
  margin: 0;
  max-width: none;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.35));
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero .sub {
  margin: 0;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-layout .sub {
  margin-inline: 0;
  max-width: none;
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2.5rem;
  color: var(--text-muted);
  max-width: 640px;
}

.section-alt {
  background: var(--bg-card);
  border-block: 1px solid var(--border);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.section-alt .card {
  background: var(--bg-dark);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: var(--accent);
}

.card p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  flex: 1;
}

.card .btn {
  align-self: flex-start;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--accent-hover);
  color: var(--bg-dark);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

/* Lists */
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.feature-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 1px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.step {
  padding: 1.25rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.02);
}

.step h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

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

/* Section graphics */
.section-with-visual {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

.section-visual {
  width: 72px;
  flex-shrink: 0;
  padding-top: 0.25rem;
}

.section-visual img {
  width: 72px;
  height: 72px;
}

.feature-grid-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-item-icon {
  text-align: center;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.feature-item-icon img {
  width: 56px;
  height: 56px;
  margin-bottom: 0.75rem;
}

.feature-item-icon h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--accent);
}

.feature-item-icon p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Page header (inner pages) */
.page-hero {
  background: var(--bg-hero);
  padding: 3.5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(74, 159, 212, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.page-hero-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.page-hero-visual img {
  width: 200px;
  max-width: 40vw;
  opacity: 0.92;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 640px;
  font-size: 1.1rem;
}

/* About */
.about-block {
  margin-bottom: 2.5rem;
}

.about-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--accent);
}

.about-block p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.highlight-section h2 {
  color: var(--accent);
}

.highlight-section .section-intro {
  max-width: 720px;
}

.cta-box {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}

.cta-box h3 {
  margin: 0 0 0.5rem;
}

.cta-box p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: #0a0c0f;
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-inner h4 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-inner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-inner a {
  color: var(--text);
}

.footer-copy {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-layout .hero-inner {
    order: 1;
  }

  .hero-visual {
    order: 0;
  }

  .hero-visual img {
    max-width: 280px;
  }

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

  .page-hero-visual {
    display: none;
  }

  .section-with-visual {
    grid-template-columns: 1fr;
  }

  .section-visual {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
