/* ============================================================
   Root variables: colors, spacing, typography, layout
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --bg-soft: #0f1722;
  --surface: #121b27;
  --border: rgba(140, 200, 214, 0.18);
  --text: #e9f2f6;
  --muted: #b6c6d1;
  --accent: #4bd6e6;
  --accent-soft: rgba(75, 214, 230, 0.16);
  --shadow: 0 16px 48px rgba(5, 12, 18, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --spacing-1: 8px;
  --spacing-2: 12px;
  --spacing-3: 16px;
  --spacing-4: 24px;
  --spacing-5: 32px;
  --spacing-6: 48px;
  --spacing-7: 72px;
  --max-width: 1120px;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ============================================================
   Base reset
   ============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   Body / page base
   ============================================================ */
body {
  background: radial-gradient(
      circle at top,
      rgba(75, 214, 230, 0.12),
      transparent 35%
    ),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ============================================================
   Media defaults
   ============================================================ */
img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   Links
   ============================================================ */
a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   Focus styles (keyboard navigation)
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================================
   Layout container
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

/* ============================================================
   Site header / navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(9, 14, 20, 0.6);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-3) 0;
  gap: var(--spacing-4);
}

/* ============================================================
   Logo
   ============================================================ */
.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo img {
  width: 150px;
  height: auto;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-4);
  align-items: center;
}

.nav-menu a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: rgb(75, 199, 199);
}

/* ============================================================
   Language switch
   ============================================================ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(75, 214, 230, 0.35);
  background: rgba(75, 214, 230, 0.08);
  color: var(--text);
  font-size: 0.85rem;
}

/* ============================================================
   Hero section
   ============================================================ */
.hero {
  padding: var(--spacing-7) 0 var(--spacing-6);
}

.hero-grid {
  display: grid;
  gap: var(--spacing-6);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 3.2vw, 3.2rem);
  margin-bottom: var(--spacing-3);
  line-height: 1.2;
}

.hero p {
  color: var(--muted);
  margin-bottom: var(--spacing-4);
  font-size: 1.05rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-3);
}

.button {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 500;
  /* HOVER GLOW DELAY PARAMETERS BELOW: TWEAK 0.7S FOR BOX-SHADOW DELAY */
  transition: transform 0.2s ease, box-shadow 0.2s ease 0.7s, border 0.2s ease;
}

.button.primary {
  background: linear-gradient(
    135deg,
    rgba(75, 214, 230, 0.25),
    rgba(75, 214, 230, 0.05)
  );
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(75, 214, 230, 0.2);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(8, 16, 24, 0.4);
}

/* ============================================================
   Generic sections
   ============================================================ */
.section {
  padding: var(--spacing-6) 0;
}

.section h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: var(--spacing-4);
}

.section p {
  color: var(--muted);
}

/* ============================================================
   Cards
   ============================================================ */
.card-grid {
  display: grid;
  gap: var(--spacing-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--spacing-4);
  box-shadow: var(--shadow);
  /* HOVER GLOW DELAY PARAMETERS BELOW: TWEAK 0.7S FOR BOX-SHADOW DELAY */
  transition: transform 0.5s ease, box-shadow 0.7s ease 0.7s, border 0.5s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(75, 214, 230, 0.4);
  box-shadow: 0 18px 50px rgba(6, 20, 28, 0.5);
}
/* ============================================================
   Tags
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid rgba(75, 214, 230, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: var(--spacing-2);
}

/* ============================================================
   Timeline
   ============================================================ */
.timeline {
  display: grid;
  gap: var(--spacing-3);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.timeline-step {
  padding: var(--spacing-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(18, 27, 39, 0.65);
}

/* ============================================================
   Lists
   ============================================================ */
.list {
  display: grid;
  gap: var(--spacing-2);
  margin-top: var(--spacing-3);
}

.list li {
  list-style: none;
  padding-left: 22px;
  position: relative;
  color: var(--muted);
}

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

/* ============================================================
   Forms
   ============================================================ */
.form {
  display: grid;
  gap: var(--spacing-3);
  margin-top: var(--spacing-4);
}

.form label {
  font-weight: 500;
  color: var(--muted);
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(10, 15, 22, 0.8);
  color: var(--text);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form .helper {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================================
   Form status messages
   ============================================================ */
.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  display: none;
}

.form-status.success {
  display: block;
  border-color: rgba(75, 214, 230, 0.4);
  background: rgba(75, 214, 230, 0.1);
  color: var(--text);
}

.form-status.error {
  display: block;
  border-color: rgba(255, 120, 120, 0.4);
  background: rgba(255, 120, 120, 0.08);
  color: #ffd4d4;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--spacing-5) 0;
  margin-top: var(--spacing-6);
  background: rgba(9, 14, 20, 0.9);
}

.footer-grid {
  display: grid;
  gap: var(--spacing-4);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Skip link
   ============================================================ */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #051018;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 50;
}

.skip-link:focus {
  left: var(--spacing-3);
  top: var(--spacing-3);
}

/* ============================================================
   Responsive navigation
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    right: var(--spacing-4);
    top: 70px;
    flex-direction: column;
    align-items: flex-start;
    background: var(--surface);
    padding: var(--spacing-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }
}

/* ============================================================
   Reduced motion preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
