:root {
    --gold: #D4AF37;
    --gold-light: #F0D060;
    --red: #C0392B;
    --deep: #0a0a0f;
    --surface: #0f0f1a;
    --card: #14141f;
    --border: rgba(212,175,55,0.2);
    --text: #e8e8f0;
    --muted: #8888aa;
    --accent: #2a2a3a;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    background: var(--deep);
    color: var(--text);
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    cursor: none;
  }

  /* Custom cursor */
  #cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s, opacity 0.2s;
    transform: translate(-50%, -50%);
  }
  #cursor-dot {
    position: fixed;
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
  }

  /* Nav */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 3rem;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }
  .nav-logo {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
  }
  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  .nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s;
    cursor: none;
  }
  .nav-links a:hover { color: var(--gold); }

  /* Hero */
  #hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
  }

  .hero-eyebrow {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.5em;
    color: rgba(212,175,55,0.65);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s 0.3s forwards;
  }

  .hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 1s 0.6s forwards;
  }

  .hero-title .line-gold { color: var(--gold); display: block; }
  .hero-title .line-white { color: var(--text); display: block; }

  .hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 300;
    max-width: 550px;
    margin: 1.5rem auto 2.5rem;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 1s 0.9s forwards;
  }

  .hero-scroll {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0;
    animation: fadeUp 1s 1.2s forwards;
    cursor: none;
  }
  .scroll-line {
    width: 40px;
    height: 1px;
    background: var(--gold);
    animation: scrollPulse 2s ease-in-out infinite;
  }

  @keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.3); }
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Section styles */
  section {
    padding: 6rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
  }

  .section-header {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  @media(max-width: 728px) {
    .section-header {
      align-items: flex-start;
      flex-direction: column;
    }
  }

  .section-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(212,175,55,0.1);
    line-height: 1;
    user-select: none;
  }
  .section-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
  }
  .section-title span { color: var(--gold); }
  .section-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin-top: 0.75rem;
  }

  /* Timeline */
  #timeline-section {
    position: relative;
    padding: 6rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
  }
  .timeline-outer {
    position: relative;
    padding-left: 3rem;
  }
  .timeline-track {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s, transform 0.6s;
    cursor: none;
  }

  @media(max-width: 768px) {
    .timeline-item {
      display: flex;
      flex-direction: column;
    }
  }

  .timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
  }
  .timeline-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--deep);
    box-shadow: 0 0 15px rgba(212,175,55,0.5);
    transform: translateX(-5px);
  }

  .timeline-year {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    padding-top: 1rem;
  }

  .timeline-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  .timeline-card:hover {
    border-color: rgba(212,175,55,0.5);
    box-shadow: 0 0 30px rgba(212,175,55,0.08);
  }
  .timeline-card h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
  }
  .timeline-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
  }
  .timeline-tag {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    background: rgba(212,175,55,0.1);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
  }
  .timeline-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

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

  .transport-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    cursor: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s, box-shadow 0.3s;
    position: relative;
  }
  .transport-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212,175,55,0.4);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(212,175,55,0.05);
  }

  .card-visual {
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .card-emoji {
    font-size: 5rem;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 0 20px currentColor);
    transition: transform 0.4s;
  }
  .transport-card:hover .card-emoji {
    transform: scale(1.15) rotate(-5deg);
  }
  .card-bg-gradient {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    transition: opacity 0.4s;
  }
  .transport-card:hover .card-bg-gradient { opacity: 0.25; }

  .card-body {
    padding: 1.5rem;
  }
  .card-category {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
  }
  .card-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
  }
  .card-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
  }

  .card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .stat-item {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.05);
  }
  .stat-label {
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
  }
  .stat-value {
    font-family: 'Unbounded', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
  }

  /* Facts section */
  .facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }

  .fact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    cursor: none;
  }
  .fact-card:hover {
    transform: scale(1.02);
    border-color: rgba(212,175,55,0.35);
  }
  .fact-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(212,175,55,0.08);
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    line-height: 1;
    user-select: none;
  }
  .fact-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  .fact-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gold);
  }
  .fact-text {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
  }
  .fact-highlight {
    color: var(--text);
    font-weight: 600;
  }

  /* Speed comparison */
  .speed-section {
    background: var(--surface);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--border);
    margin-top: 2rem;
  }

  .speed-bars {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
  }
  .speed-row {
    display: grid;
    grid-template-columns: 140px 1fr 80px;
    align-items: center;
    gap: 1rem;
  }
  /* @media(max-width:768px) {
    .speed-row {
      display: flex;
      flex-direction: column;
    }
  } */
  .speed-label {
    font-size: 0.85rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .speed-bar-wrap {
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
  }
  .speed-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(to right, var(--gold), var(--gold-light));
    width: 0;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .speed-val {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.75rem;
    color: var(--gold);
    text-align: right;
  }

  /* Records */
  .records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    width: min(100%, 980px);
    margin: 0 auto;
  }

  .record-image {
    width: min(280px, 100%);
    max-width: 280px;
    margin: 1.5rem auto 0;
    display: block;
    height: auto;
    object-fit: contain;
  }

  .record-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: none;
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .record-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(212,175,55,0.3);
  }
  .record-icon { font-size: 2.5rem; margin-bottom: 1rem; }
  .record-value {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 0.25rem;
  }
  .record-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
  }
  .record-desc {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.6;
  }

  /* Interactive map section */
  #routes-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  #routes-section section {
    max-width: 1300px;
  }
  .routes-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto 2rem;
    flex-wrap: wrap;
    max-width: 900px;
  }
  .route-tab {
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--muted);
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: none;
    transition: all 0.3s;
  }
  .route-tab.active, .route-tab:hover {
    background: rgba(212,175,55,0.1);
    border-color: var(--gold);
    color: var(--gold);
  }

  .route-content {
    display: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    justify-items: center;
    width: min(100%, 900px);
    margin: 0 auto;
  }
  .route-content.active { display: grid; }

  .route-info {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
  }

  @media (max-width: 768px) {
    .route-content { grid-template-columns: 1fr; }
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .records-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 3rem; }
    .speed-row { grid-template-columns: 100px 1fr 60px; }
  }

  .route-map-svg { width: 100%; border-radius: 12px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); }

  .route-info h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
  .route-info p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; font-size: 0.9rem; }
  .route-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  .route-stat {
    background: var(--card);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid var(--border);
  }
  .route-stat-label { font-size: 0.65rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.25rem; }
  .route-stat-value { font-family: 'Unbounded', sans-serif; font-size: 1.1rem; color: var(--gold); font-weight: 700; }

  /* Footer */
  footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  /* Canvas stars */
  canvas#stars {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  /* Particle container */
  .particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
  }
  .particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFly linear infinite;
  }
  @keyframes particleFly {
    0% { opacity: 0; transform: translateY(100vh) rotate(0deg); }
    10% { opacity: 0.6; }
    90% { opacity: 0.2; }
    100% { opacity: 0; transform: translateY(-10vh) rotate(360deg); }
  }

  /* Glitch animation for hero */
  @keyframes glitch {
    0%, 90%, 100% { clip-path: inset(0 0 100% 0); }
    92% { clip-path: inset(10% 0 60% 0); transform: translateX(-3px); }
    94% { clip-path: inset(40% 0 30% 0); transform: translateX(3px); }
    96% { clip-path: inset(70% 0 10% 0); transform: translateX(-2px); }
    98% { clip-path: inset(0 0 80% 0); }
  }

  .divider {
    text-align: center;
    padding: 2rem;
    color: rgba(212,175,55,0.3);
    font-size: 1.5rem;
    letter-spacing: 1em;
  }

  /* Ukraine flag stripe */
  .ua-stripe {
    height: 3px;
    background: linear-gradient(to right, #0057B7 50%, #FFD700 50%);
    margin-bottom: 0;
  }

  /* Map dots animation */
  @keyframes mapPulse {
    0%, 100% { r: 4; opacity: 0.8; }
    50% { r: 7; opacity: 0.4; }
  }
  .map-city { animation: mapPulse 2s ease-in-out infinite; }
  .map-city:nth-child(2) { animation-delay: 0.3s; }
  .map-city:nth-child(3) { animation-delay: 0.6s; }
  .map-city:nth-child(4) { animation-delay: 0.9s; }
  .map-city:nth-child(5) { animation-delay: 1.2s; }

  @keyframes routeDash {
    from { stroke-dashoffset: 400; }
    to { stroke-dashoffset: 0; }
  }
  .route-path {
    stroke-dasharray: 8 4;
    animation: routeDash 3s linear infinite;
  }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    background: rgba(212,175,55,0.08);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
  }

  /* Intro paragraph */
  .intro-text {
    max-width: 680px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 3rem;
  }
  .intro-text strong { color: var(--text); font-weight: 600; }

  .bottom-share {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.5rem 2rem 3rem;
    background: rgba(255,255,255,0.02);
    text-align: center;
  }
  .bottom-share p {
    max-width: 720px;
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
  }
  .action-button {
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--text);
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    cursor: none;
    transition: background 0.3s, color 0.3s, transform 0.2s;
  }
  .action-button:hover,
  .action-button:focus {
    background: rgba(212,175,55,0.15);
    color: var(--gold);
    outline: none;
    transform: translateY(-1px);
  }

  /* Hover tooltip */
  #tooltip {
    position: fixed;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    color: var(--text);
    pointer-events: none;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.2s;
    max-width: 200px;
  }

  /* Progress bar at top */
  #progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(to right, var(--gold), var(--gold-light));
    z-index: 200;
    transition: width 0.1s;
  }