/* === Base variables & reset === */
:root {
  --color-bg: #020b1f;              /* deep dark blue */
  --color-surface: #07152f;         /* card / section surfaces */
  --color-surface-soft: #051025;
  --color-primary: #27c5f3;         /* accent blue */
  --color-accent: #7ef0ff;
  --color-text: #f5f7ff;
  --color-muted: #9aa7c7;
  --color-border-soft: rgba(255, 255, 255, 0.06);
  --color-light: rgba(255, 255, 255, 0.03);
  --border-radius: 10px;

  --page-padding-x: 4vw;           /* unified horizontal gutters */
  --max-width: 100%;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #07152f 0, var(--color-bg) 52%);
  color: var(--color-text);
  line-height: 1.5;
}

/* === Helpers === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding-x); /* same gutters everywhere */
}

.section {
  padding: 3.5rem 0;
  position: relative;
}

.section-contrast {
  background: var(--color-surface-soft);
}

h1, h2, h3 {
  color: #ffffff;
  margin-top: 0;
}

p {
  margin: 0.5rem 0 0.75rem;
  color: var(--color-muted);
}

/* === Header & Nav === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(2, 11, 31, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-soft);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #ffffff;
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.logo-text {
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-muted);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.main-nav .nav-cta {
  border: 1px solid var(--color-primary);
}

/* Language switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.lang-option {
  border: none;
  background: transparent;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--color-muted);
}

.lang-option.active {
  background: #ffffff;
  color: #020b1f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* === Hero === */
.hero {
  padding-top: 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top left, rgba(39, 197, 243, 0.15), transparent 60%),
    radial-gradient(circle at top right, rgba(126, 240, 255, 0.12), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-text {
  flex: 1;
}

.hero-visual {
  flex: 1;
  max-width: 480px;
}

.hero-placeholder {
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  padding: 2.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

/* Mission block in hero */
.mission-block {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.mission-title {
  font-size: 2.35rem;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.mission-sub {
  font-size: 0.98rem;
  color: var(--color-muted);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease,
    background 0.1s ease,
    color 0.1s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #020b1f;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(39, 197, 243, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* === Media / Video Section (matching gutters) === */
.section-media {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.media-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding-x); /* same as .container */
}

.media-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.media-frame {
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(39, 197, 243, 0.7), rgba(2,11,31,0.4));
}

.media-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  outline: none;
  background: #000;
}

/* === Grids & Cards === */
.grid-3,
.grid-2 {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--color-border-soft);
}

/* Technology layout */
.tech-layout {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tech-step {
  padding: 0.9rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border-soft);
  background: var(--color-surface);
  font-size: 0.9rem;
}

/* Enhanced Technology cards */
.tech-layout-cards {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.tech-step-card {
  background: radial-gradient(circle at top, rgba(39,197,243,0.10), rgba(5,16,37,0.98));
  border-radius: 18px;
  padding: 1.6rem 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tech-step-card h3 {
  margin: 0.4rem 0 0.1rem;
  font-size: 1.05rem;
}

.tech-step-card p {
  margin: 0;
  font-size: 0.9rem;
}

/* Icon circle */
.tech-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(126, 240, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3rem;
}

/* Line icons inside */
.tech-icon-svg {
  width: 26px;
  height: 26px;
}

.tech-icon-svg * {
  stroke: rgba(228, 239, 255, 0.95);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hover effect */
.tech-step-card:hover {
  border-color: rgba(126, 240, 255, 0.8);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.75);
  transform: translateY(-2px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* Responsive: 3 cols on desktop */
@media (min-width: 960px) {
  .tech-layout-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


.tech-diagram {
  margin-top: 2.5rem;
}

.tech-diagram-svg {
  width: 100%;
  max-width: 640px;
  display: block;
  margin: 0 auto;
  overflow: visible;
}

/* Animated triangle edge */
.tech-edge-animated {
  fill: none;
  stroke: rgba(39, 197, 243, 0.9);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 12 12;
  stroke-dashoffset: 0;
  animation: dash-flow 7s linear infinite;
  filter: drop-shadow(0 0 12px rgba(39, 197, 243, 0.65));
  transition: stroke 0.25s ease, filter 0.25s ease;
}

.tech-diagram-svg:hover .tech-edge-animated {
  stroke: rgba(126, 240, 255, 1);
  filter: drop-shadow(0 0 18px rgba(126, 240, 255, 0.9));
}

/* Nodes */
.tech-node-circle {
  fill: rgba(5, 16, 37, 0.92);
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.4;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
  transition: stroke 0.25s ease, filter 0.25s ease;
}

/* Vector icon style inside nodes */
.tech-node-icon-shape * {
  stroke: rgba(228, 239, 255, 0.95);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tech-node:hover .tech-node-circle {
  stroke: rgba(126, 240, 255, 0.6);
  filter: drop-shadow(0 0 16px rgba(126, 240, 255, 0.9));
}

/* Labels */
.tech-node-label {
  font-size: 0.8rem;
  fill: var(--color-muted);
  pointer-events: none;
}

/* Center caption */
.tech-center-caption {
  font-size: 0.8rem;
  fill: var(--color-muted);
  opacity: 0.8;
}

/* Keyframes */
@keyframes dash-flow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -240;
  }
}

.sector-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.8rem;
}

.sector-list li::before {
  content: "•";
  color: var(--color-primary);
  margin-right: 0.6rem;
}




/* Roadmap */
.roadmap {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.25rem;
}

.roadmap-item {
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
}

.roadmap-stage {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

/* === Roadmap Timeline (Scroll-reactive) === */
.roadmap-diagram {
  margin-top: 2rem;
}

.roadmap-svg {
  width: 100%;
  max-width: 1000px; 
  display: block;
  margin: 0 auto;
}

/* Base line (empty pipe) */
.roadmap-line-base {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 5;
  stroke-linecap: round;
}

/* Progress line (filled part) */
.roadmap-line-progress {
  stroke: rgba(39, 197, 243, 0.95);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 0;   /* set via JS */
  stroke-dashoffset: 0;  /* set via JS */
}

/* Stage circles */
.roadmap-stage-circle {
  fill: rgba(2, 8, 22, 0.95);
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 2;
  transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}

/* Active circle – NO SIZE CHANGE */
.roadmap-stage-circle.active {
  fill: #ffffff;
  stroke: rgba(39, 197, 243, 1);
  filter: drop-shadow(0 0 6px rgba(39, 197, 243, 0.7));
}


/* Current stage still slightly highlighted (optional) */
.roadmap-stage-current .roadmap-stage-circle {
  stroke-width: 2.2; /* tiny, visually stronger line but not enough to shift */
}

/* Titles & subtitles */
.roadmap-node-title {
  font-size: 0.7rem;
  fill: #ffffff;
}

.roadmap-node-sub {
  font-size: 0.6rem;
  fill: var(--color-muted);
}

.tech-node-car-icon {
  filter: invert(1) brightness(0.9);
}



/* About note */
.about-note {
  font-size: 0.85rem;
  margin-top: 0.8rem;
}

/* CTA section */
.cta-section {
  background: radial-gradient(circle at top right, #0a2e63, #020b1f);
  color: #ffffff;
}

.cta-section h2 {
  color: #ffffff;
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-actions .btn-primary {
  background: #ffffff;
  color: #020b1f;
  border-color: #ffffff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border-soft);
  padding: 1rem 0;
  font-size: 0.85rem;
  background: #020816;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: space-between;
}

.footer-right {
  display: flex;
  gap: 0.75rem;
}

.footer-right a {
  text-decoration: none;
  color: var(--color-muted);
}

.footer-right a:hover {
  text-decoration: underline;
}

/* === Reveal-on-scroll hooks === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* === Responsive (tablet & desktop) === */
@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-content {
    flex-direction: row;
    align-items: center;
  }

  .tech-layout {
    flex-direction: row;
  }

  .roadmap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .mission-title {
    font-size: 2.7rem;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.section-base {
  background: radial-gradient(circle at top, #07152f 0%, #020b1f 52%);
}

.section-contrast {
  background: var(--color-surface-soft);
}
