/* ── Fonts ────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Bombardier';
  src: url('assets/fonts/Bombardier.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Design tokens ────────────────────────────────────────────── */
:root {
  --bg-deep:        #111111;
  --bg-surface:     #1e1e1e;
  --bg-card:        rgba(45, 45, 45, 0.72);
  --text-primary:   #c9c9c9;
  --text-dim:       #888888;
  --accent-red:     #cc2222;
  --accent-red-soft: rgba(204, 34, 34, 0.18);
  --accent-red-glow: rgba(204, 34, 34, 0.35);
  --border-subtle:  rgba(255, 255, 255, 0.07);
  --font-main:      'Segoe UI', Roboto, Ubuntu, 'Fira Sans', sans-serif;
  --font-headline:  'Bombardier', 'Segoe UI', sans-serif;
  --font-mono:      'Source Code Pro', Menlo, Monaco, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-main);
  margin: 0;
  overflow-x: hidden;
}

/* ── Navbar ───────────────────────────────────────────────────── */
#main-nav {
  transition: background 0.35s ease, box-shadow 0.35s ease;
  background: transparent !important;
}

#main-nav.scrolled {
  background: rgba(17, 17, 17, 0.95) !important;
  box-shadow: 0 1px 0 var(--border-subtle);
  backdrop-filter: blur(10px);
}

#main-nav .navbar-brand img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 4px var(--accent-red-glow));
}

#main-nav .navbar-brand span {
  font-family: var(--font-headline);
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: 0.1em;
  font-size: 1.15rem;
}

#main-nav .nav-link {
  color: var(--text-dim) !important;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

#main-nav .nav-link:hover { color: var(--text-primary) !important; }

#main-nav .navbar-toggler {
  border-color: var(--border-subtle);
}

#main-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(201,201,201,0.8)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#main-nav .navbar-collapse {
  background: rgba(17, 17, 17, 0.97);
  border-top: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
}

@media (min-width: 992px) {
  #main-nav .navbar-collapse {
    background: transparent;
    border-top: none;
    padding: 0;
  }
}

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

#hero::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: url('assets/background_map_2.jpg') center/cover no-repeat;
  filter: brightness(0.12) blur(3px);
  z-index: 0;
}

/* tactical grid overlay */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,   transparent, transparent 59px, rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px),
    repeating-linear-gradient(90deg,  transparent, transparent 59px, rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px);
  z-index: 1;
}

#hero .hero-content {
  position: relative;
  z-index: 2;
}

#hero .hero-logo {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 18px var(--accent-red-glow));
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 12px var(--accent-red-glow)); }
  50%       { filter: drop-shadow(0 0 28px rgba(204,34,34,0.6)); }
}

#hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

#hero h1 span { color: var(--accent-red); }

#hero .hero-sub {
  color: var(--text-dim);
  font-size: clamp(0.875rem, 2vw, 1.05rem);
  letter-spacing: 0.04em;
  max-width: 480px;
}

.btn-ft-primary {
  background: var(--accent-red);
  border: none;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.6rem;
  border-radius: 3px;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-ft-primary:hover {
  background: #a81c1c;
  box-shadow: 0 0 16px var(--accent-red-glow);
  color: #fff;
}

.btn-ft-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-primary);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.6rem;
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ft-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* ── Section shared ───────────────────────────────────────────── */
.ft-section {
  padding: 96px 0;
}

.ft-section-alt {
  background: var(--bg-surface);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent-red);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Feature cards ────────────────────────────────────────────── */
.ft-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2rem;
  height: 100%;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.ft-card:hover {
  border-color: rgba(204,34,34,0.4);
  box-shadow: 0 0 24px rgba(204,34,34,0.08), inset 0 0 0 1px rgba(204,34,34,0.15);
  transform: translateY(-2px);
}

.ft-card .card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.ft-card h3 {
  font-family: var(--font-headline);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.ft-card p {
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Showcase ─────────────────────────────────────────────────── */
.showcase-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.75rem;
}

/* Browser frame */
.browser-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.browser-chrome {
  background: #2a2a2a;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #1a1a1a;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #444;
}

.browser-dot:nth-child(1) { background: #e05555; }
.browser-dot:nth-child(2) { background: #e0a040; }
.browser-dot:nth-child(3) { background: #40b060; }

.browser-url-bar {
  flex: 1;
  background: #1a1a1a;
  border-radius: 3px;
  height: 18px;
  margin-left: 8px;
}

.browser-screen {
  background: #1a1a1a;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.browser-screen .placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.2;
}

.browser-screen .placeholder-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0.5;
}

/* Phone frame */
.phone-wrapper {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 180px;
  border-radius: 28px;
  border: 2px solid #3a3a3a;
  background: #111;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  width: 60px;
  height: 16px;
  background: #111;
  border-radius: 0 0 10px 10px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  border: 2px solid #2a2a2a;
  border-top: none;
}

.phone-screen {
  background: #1a1a1a;
  aspect-ratio: 9/18;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  margin: 0 4px;
}

.phone-screen .placeholder-icon {
  font-size: 2rem;
  opacity: 0.2;
}

.phone-screen .placeholder-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  opacity: 0.5;
  text-align: center;
  padding: 0 8px;
}

.phone-home-bar {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.phone-home-bar span {
  display: block;
  width: 48px;
  height: 4px;
  background: #3a3a3a;
  border-radius: 2px;
}

/* ── Roadmap / Timeline ───────────────────────────────────────── */
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-subtle);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 2.5rem 3rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #444;
  border: 2px solid var(--bg-deep);
}

.timeline-item:nth-child(odd) .timeline-dot  { right: -7px; }
.timeline-item:nth-child(even) .timeline-dot { left: -7px; }

.timeline-item.done .timeline-dot   { background: #c9c9c9; }
.timeline-item.active .timeline-dot {
  background: var(--accent-red);
  box-shadow: 0 0 0 4px var(--accent-red-soft);
  animation: ping-dot 1.8s ease-in-out infinite;
}
.timeline-item.planned .timeline-dot { background: #333; border-color: #444; }

@keyframes ping-dot {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-red-soft); }
  50%       { box-shadow: 0 0 0 8px rgba(204,34,34,0.08); }
}

.timeline-item h4 {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 0.2rem;
}

.timeline-item.planned h4 { color: var(--text-dim); }

.timeline-item p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

.timeline-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  margin-bottom: 0.4rem;
}

.badge-done    { background: rgba(201,201,201,0.1); color: #c9c9c9; }
.badge-active  { background: var(--accent-red-soft); color: var(--accent-red); }
.badge-planned { background: rgba(255,255,255,0.04); color: var(--text-dim); }

@media (max-width: 767px) {
  .timeline::before { left: 14px; }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
    width: 100%;
    padding: 0 1rem 2.5rem 3rem;
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 8px;
    right: auto;
  }
}

/* ── Contact / CTA ────────────────────────────────────────────── */
#contact {
  background:
    repeating-linear-gradient(0deg,   transparent, transparent 29px, rgba(255,255,255,0.02) 29px, rgba(255,255,255,0.02) 30px),
    repeating-linear-gradient(90deg,  transparent, transparent 29px, rgba(255,255,255,0.02) 29px, rgba(255,255,255,0.02) 30px),
    var(--bg-surface);
}

.ft-form .form-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}

.ft-form .form-control,
.ft-form .form-control:focus {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 3px;
  font-size: 0.9rem;
  box-shadow: none;
}

.ft-form .form-control::placeholder { color: #555; }

.ft-form .form-control:focus {
  border-color: rgba(204,34,34,0.5);
  background: rgba(255,255,255,0.06);
}

.contact-pitch h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff;
}

.contact-pitch p { color: var(--text-dim); line-height: 1.7; }

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}

footer img { width: 22px; height: 22px; opacity: 0.7; }

footer .brand-name {
  font-family: var(--font-headline);
  font-weight: 400;
  letter-spacing: 0.1em;
  font-size: 1rem;
}

footer a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--text-primary); }

/* ── Language switcher ───────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 2px 5px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.lang-btn:hover { color: var(--text-primary); }
.lang-btn.active { color: var(--text-primary); }

.lang-sep {
  color: var(--border-subtle);
  font-size: 0.72rem;
  user-select: none;
}

/* ── Roadmap fade-out ────────────────────────────────────────── */
#roadmap {
  position: relative;
}

#roadmap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 33%;
  background: linear-gradient(to bottom, transparent, var(--bg-deep));
  pointer-events: none;
  z-index: 1;
}

/* ── FAQ accordion ───────────────────────────────────────────── */
.ft-accordion .accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px !important;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.ft-accordion .accordion-button {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--text-primary);
  padding: 1.1rem 1.4rem;
  box-shadow: none !important;
}

.ft-accordion .accordion-button:not(.collapsed) {
  color: #fff;
  background: rgba(204,34,34,0.08);
}

.ft-accordion .accordion-button::after {
  filter: invert(0.7);
}

.ft-accordion .accordion-button:not(.collapsed)::after {
  filter: invert(1);
}

.ft-accordion .accordion-body {
  background: transparent;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 0 1.4rem 1.2rem;
}

/* ── Scroll-reveal ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
