@font-face {
  font-family: SwissNow;
  font-weight: 700;
  src: url("https://static-assets.veed.io/fonts/SwissNow/SwissNow-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: SwissNow;
  font-weight: 400;
  src: url("https://static-assets.veed.io/fonts/SwissNow/SwissNow-Regular.woff2") format("woff2");
}

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

:root {
  --bg:       #080809;
  --surface:  #0f0f12;
  --surface2: #16161b;
  --border:   #1e1e26;
  --border2:  #2a2a36;
  --text:     #f0f0f4;
  --text2:    #7a7a96;
  --text3:    #3e3e54;
  --red:      #FF3B30;
  --blue:     #00669A;
  --font: 'Ubuntu', sans-serif;
  --font-swiss: 'SwissNow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,154,0.07) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
  animation: glow-drift 8s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-60px, 80px); }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── NAV with frosted glass ── */
nav {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(8,8,9,0.6);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-swiss);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}
.logo span { color: var(--red); }
.nav-tag {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  color: var(--text2);
  border: 1px solid var(--border2);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── HERO ── */
.hero {
  padding: 120px 0 80px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  color: var(--text2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--text3);
}
.hero-title-block { margin-bottom: 32px; }
.hero-title {
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.hero-title .dim { color: var(--text3); }
.hero-title-row2 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* ── TAGLINE with cascade opacity ── */
.hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--text2);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 32px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── CTA BUTTON ── */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 56px;
  padding: 12px 22px;
  background: rgba(0,102,154,0.12);
  border: 1px solid rgba(0,102,154,0.3);
  border-top: 1px solid rgba(0,102,154,0.5);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.hero-cta:hover {
  background: rgba(0,102,154,0.2);
  border-color: rgba(0,102,154,0.5);
  box-shadow: 0 0 16px rgba(0,102,154,0.15);
}
.hero-cta-arrow {
  color: var(--red);
  transition: transform 0.2s;
  font-size: 15px;
}
.hero-cta:hover .hero-cta-arrow {
  transform: translateX(4px);
}

/* ── STATS ── */
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.stat-num span { color: var(--text3); }
.stat-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--text3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.divider {
  position: relative;
  z-index: 1;
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── TOOLS ── */
.tools-section {
  position: relative;
  z-index: 1;
  padding: 80px 0 120px;
}
.section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

/* ── TOOL CARDS ── */
.tool-card {
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.04); /* subtle top highlight */
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease forwards;
}
.tool-card:nth-child(1) { animation-delay: 0.2s; }
.tool-card:nth-child(2) { animation-delay: 0.35s; }
.tool-card:nth-child(3) { animation-delay: 0.5s; }
.tool-card:hover { background: var(--surface2); }
.tool-card.live { cursor: pointer; }
.tool-card.live:hover {
  box-shadow: inset 0 0 0 1px rgba(0,102,154,0.3), 0 0 24px rgba(0,102,154,0.06);
}

/* Coming soon cards are visually dimmed */
.tool-card.coming {
  cursor: default;
  opacity: 0;
  filter: grayscale(0.3);
}
.tool-card.coming:nth-child(2) { animation-delay: 0.35s; }
.tool-card.coming:nth-child(3) { animation-delay: 0.5s; }

/* After animation, set coming cards to subdued opacity */
@keyframes fadeUpDim {
  to { opacity: 0.55; transform: translateY(0); }
}
.tool-card.coming {
  animation-name: fadeUpDim;
}

/* Live card left accent border */
.tool-card.live::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--blue), transparent);
  opacity: 0.6;
}

.tool-number {
  font-size: 11px;
  font-weight: 400;
  color: var(--text3);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

/* No icon box — removed emojis, number acts as identifier */

.tool-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.tool-desc {
  font-size: 12px;
  font-weight: 300;
  color: var(--text2);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 32px;
}
.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tool-badge {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}
.badge-live {
  background: rgba(0,102,154,0.12);
  color: #4da8d4;
  border: 1px solid rgba(0,102,154,0.3);
}
.badge-soon {
  background: rgba(255,255,255,0.04);
  color: var(--text3);
  border: 1px solid var(--border2);
}
.tool-arrow {
  font-size: 16px;
  color: var(--red);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
}
.tool-card.live:hover .tool-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-swiss);
  font-weight: 700;
  font-size: 14px;
}
.footer-logo span { color: var(--red); }
.footer-copy {
  font-size: 11px;
  font-weight: 300;
  color: var(--text3);
  text-align: right;
  line-height: 1.8;
}
.footer-copy a {
  color: var(--text2);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-copy a:hover { color: var(--text); }

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.6s ease forwards;
}
.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.3s; }
.fade-up:nth-child(4) { animation-delay: 0.4s; }
.fade-up:nth-child(5) { animation-delay: 0.5s; }

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

/* ── BLINKING CURSOR ── */
.cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--red);
  margin-left: 4px;
  vertical-align: middle;
  border-radius: 1px;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@media (max-width: 768px) {
  .wrap, .nav-inner, .footer-inner { padding: 0 24px; }
  .hero { padding: 80px 0 60px; }
  .tools-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer-copy { text-align: left; }
}
</style>
</head>
<body>

<!-- TRAIN MAP BACKGROUND -->
<canvas id="trainMap"></canvas>
<style>
#trainMap {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tool-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--text2);
}

.tool-card.live .tool-icon {
  background: rgba(0,102,154,0.1);
  border-color: rgba(0,102,154,0.25);
}

.tool-card.live .tool-icon svg {
  stroke: #4da8d4;
}

.tool-number {
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--text3);
  transition: color 0.15s;
}

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