:root {
  --bg: #060914;
  --bg-soft: #10182e;
  --card: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(255, 255, 255, 0.09);
  --text: #eef2ff;
  --muted: #b8c1d9;
  --primary: #5b8cff;
  --primary-2: #7b63ff;
  --accent: #35d2b6;
  --accent-2: #ffb86b;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(91, 140, 255, 0.35), 0 18px 40px rgba(91, 140, 255, 0.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(91, 140, 255, 0.18), transparent 60%),
              radial-gradient(900px 500px at 110% 10%, rgba(53, 210, 182, 0.12), transparent 60%),
              radial-gradient(circle at top, #13244f, var(--bg));
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ----- Scroll progress + canvas ----- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(91, 140, 255, 0.7);
}

.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ----- Header / Hero ----- */
.site-header {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 140, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 140, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 75%);
  animation: gridShift 18s linear infinite;
  z-index: 0;
}

@keyframes gridShift {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(7, 11, 26, 0.92);
  border-bottom-color: var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(91, 140, 255, 0.35);
  box-shadow: 0 8px 22px rgba(91, 140, 255, 0.25);
  transition: transform 0.4s ease;
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.brand-text { font-size: 1.05rem; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(91, 140, 255, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(91, 140, 255, 0.5);
}
.nav-cta span { transition: transform 0.3s ease; display: inline-block; }
.nav-cta:hover span { transform: translateX(3px); }

.nav-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-search-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.nav-search-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 140, 255, 0.6);
  background: rgba(91, 140, 255, 0.14);
}

.nav-search {
  width: min(1140px, 92%);
  margin: 0.6rem auto 0;
  display: none;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(7, 11, 26, 0.9);
  backdrop-filter: blur(12px);
}
.nav-search.open {
  display: grid;
}
.nav-search input {
  width: 100%;
  margin: 0;
}
.nav-search button {
  padding: 0.72rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(91, 140, 255, 0.5);
  background: rgba(91, 140, 255, 0.2);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.nav-search p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.search-hit {
  outline: 2px solid rgba(53, 210, 182, 0.95);
  outline-offset: 4px;
  border-radius: 8px;
  animation: hitPulse 1.3s ease;
}
@keyframes hitPulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 210, 182, 0.6); }
  100% { box-shadow: 0 0 0 16px rgba(53, 210, 182, 0); }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  cursor: pointer;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.hero {
  position: relative;
  z-index: 2;
  padding: 6rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-left { max-width: 620px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: 100px;
  background: rgba(53, 210, 182, 0.08);
  border: 1px solid rgba(53, 210, 182, 0.25);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(53, 210, 182, 0.7);
  animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 210, 182, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(53, 210, 182, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 210, 182, 0); }
}

.hero-title {
  margin: 0;
  font-size: clamp(2.1rem, 5.4vw, 2rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.015em;
  display: grid;
  gap: 0.15em;
}

.title-line { display: block; }

.gradient-text {
  background: linear-gradient(120deg, #ffffff 0%, #b9c8ff 35%, #35d2b6 70%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-typed { color: var(--text); }
.caret {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  margin-left: 4px;
  background: var(--accent);
  vertical-align: -0.12em;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-subtitle {
  max-width: 560px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 2.4rem;
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.9rem 1.3rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.meta-item { display: flex; flex-direction: column; gap: 0.1rem; }
.meta-item strong {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.meta-item span { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.meta-divider { width: 1px; height: 28px; background: var(--border); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.btn span { position: relative; z-index: 2; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  z-index: 1;
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(91, 140, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 18px 38px rgba(91, 140, 255, 0.5); }

.btn-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.btn-secondary:hover { border-color: rgba(91, 140, 255, 0.6); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(53, 210, 182, 0.55); background: rgba(53, 210, 182, 0.06); }

/* ----- Hero visual (terminal + shield) ----- */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
}

.terminal {
  position: absolute;
  inset: 6% 4% 18% 6%;
  border-radius: 16px;
  background: rgba(8, 12, 26, 0.85);
  border: 1px solid rgba(91, 140, 255, 0.25);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(91, 140, 255, 0.08) inset;
  backdrop-filter: blur(14px);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(6deg);
  transition: transform 0.6s ease;
}
.hero-visual:hover .terminal { transform: perspective(1200px) rotateY(-4deg) rotateX(3deg); }

.terminal-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.terminal-head .dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.terminal-head .red { background: #ff5f56; }
.terminal-head .yellow { background: #ffbd2e; }
.terminal-head .green { background: #27c93f; }
.terminal-title {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}

.terminal-body {
  padding: 0.85rem 1rem;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
}
.terminal-body p { margin: 0; color: #d6def0; }
.terminal-body .prompt { color: var(--accent); margin-right: 6px; }
.terminal-body .key { color: #8fb3ff; }
.terminal-body .ok { color: #4ade80; }
.terminal-body .muted { color: #6b7795; }
.terminal-body .hash { color: #ffb86b; }

.cursor-blink { animation: blink 0.9s step-end infinite; color: var(--accent); }

.shield {
  position: absolute;
  bottom: 4%;
  right: 4%;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 140, 255, 0.1);
  border: 1px solid rgba(91, 140, 255, 0.4);
  box-shadow: 0 18px 40px rgba(91, 140, 255, 0.35);
  animation: floatY 5s ease-in-out infinite;
}
.shield .ring,
.shield .ring-2 {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(91, 140, 255, 0.45);
  animation: spin 14s linear infinite;
}
.shield .ring-2 {
  inset: -18px;
  border-color: rgba(53, 210, 182, 0.35);
  animation-duration: 22s;
  animation-direction: reverse;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 100px;
  background: rgba(7, 11, 26, 0.85);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 500;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  z-index: 3;
}
.floating-tag span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.tag-1 { top: 8%; left: -4%; animation: floatY 5.5s ease-in-out infinite; }
.tag-2 { top: 32%; right: -8%; animation: floatY 6.5s ease-in-out infinite 0.6s; }
.tag-2 span { background: #ffb86b; box-shadow: 0 0 10px #ffb86b; }
.tag-3 { bottom: 12%; left: 2%; animation: floatY 5s ease-in-out infinite 1.2s; }
.tag-3 span { background: var(--primary); box-shadow: 0 0 10px var(--primary); }

.hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: float 8s ease-in-out infinite;
  will-change: transform;
}
.orb-1 { width: 380px; height: 380px; background: #4f7bff; top: -120px; left: -90px; }
.orb-2 { width: 280px; height: 280px; background: #4ad5bf; right: 4%; top: 14%; animation-delay: 1.5s; }
.orb-3 { width: 420px; height: 420px; background: #7f61ff; bottom: -160px; right: 18%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -28px); }
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bob 2.4s ease-in-out infinite;
}
.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  display: inline-block;
  position: relative;
}
.wheel {
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 8px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { top: 8px; opacity: 1; } 100% { top: 22px; opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ----- Sections ----- */
.section { padding: 5rem 0; position: relative; z-index: 2; }

h2 { margin-top: 0; font-size: clamp(1.7rem, 4.4vw, 2.5rem); }

.section-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.title-bar {
  width: 6px;
  height: 28px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: 0 0 14px rgba(91, 140, 255, 0.5);
}

h3 { font-size: clamp(1.2rem, 3.5vw, 1.65rem); margin-top: 2rem; }

h4 { margin: 0 0 0.7rem; font-size: 1.1rem; }

p, li { color: var(--muted); }

.cards, .download-grid, .team-grid, .timeline {
  display: grid;
  gap: 1.1rem;
}

.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ----- Card base ----- */
.card,
.download-item,
.team-card,
.milestone,
.contact-form,
.contact-details {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.4rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.3s ease, background 0.3s ease;
}

.card { overflow: hidden; }

.card:hover,
.download-item:hover,
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 140, 255, 0.45);
  background: var(--card-hover);
}

.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(91, 140, 255, 0.22), transparent 40%);
  transition: opacity 0.3s ease;
}
.card:hover .card-glow { opacity: 1; }

.card-number {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.7), rgba(53, 210, 182, 0.4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.6;
}

.tilt { transform-style: preserve-3d; will-change: transform; }

.tech-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}
.tech-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.tech-panel h4 {
  margin: 0 0 0.95rem;
  color: var(--text);
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.82rem 0.9rem;
  border-radius: 12px;
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.tech-chip i {
  width: 18px;
  text-align: center;
  font-size: 1rem;
  color: #8fb3ff;
}
.tech-chip:hover {
  transform: translateY(-3px);
  background: rgba(91, 140, 255, 0.24);
  border-color: rgba(91, 140, 255, 0.55);
  box-shadow: 0 12px 28px rgba(91, 140, 255, 0.24);
}

/* ----- Architecture flow ----- */
.architecture-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.4rem;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.flow-node {
  flex: 1 1 180px;
  min-width: 160px;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(91, 140, 255, 0.08);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.flow-node:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 140, 255, 0.5);
  box-shadow: 0 14px 28px rgba(91, 140, 255, 0.2);
}
.flow-node strong { font-size: 1rem; color: var(--text); }
.flow-node small { color: var(--muted); font-size: 0.82rem; }
.flow-index {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0a1024;
  margin-bottom: 0.25rem;
}
.flow-arrow {
  align-self: center;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, rgba(91, 140, 255, 0.5), rgba(53, 210, 182, 0.7));
  position: relative;
}
.flow-arrow::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 8px; height: 8px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

/* ----- Timeline / Milestones ----- */
.timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.milestone {
  position: relative;
  overflow: hidden;
}
.milestone::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}
.milestone:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 140, 255, 0.45);
}
.milestone-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.ms-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  font-weight: 700;
  background: rgba(91, 140, 255, 0.18);
  border: 1px solid rgba(91, 140, 255, 0.4);
  color: var(--text);
}
.milestone-head h4 { margin: 0; }

.milestone strong {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 1.2rem;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.progress {
  margin-top: 0.85rem;
  height: 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 16px rgba(91, 140, 255, 0.6);
  transition: width 1.6s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shine 2.4s linear infinite;
}
@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.vertical-timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 1.05rem;
  padding: 0.5rem 0;
}

.vt-line {
  position: absolute;
  left: 31%;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(143, 179, 255, 0.85), rgba(143, 179, 255, 0.28));
}

.vt-item {
  display: grid;
  grid-template-columns: 28% 6% 66%;
  align-items: center;
  column-gap: 0.8rem;
}

.vt-date {
  margin: 0;
  text-align: right;
  color: #d5e0ff;
  font-size: 0.92rem;
  font-weight: 600;
}

.vt-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #72ace7;
  border: 3px solid #b8d6ff;
  box-shadow: 0 0 0 6px rgba(114, 172, 231, 0.18);
  justify-self: center;
  z-index: 2;
}

.vt-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.vt-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 140, 255, 0.5);
}

.timeline-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(53, 210, 182, 0.15);
  border: 1px solid rgba(53, 210, 182, 0.35);
  color: #74e9d5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

.vt-card h4 { margin: 0 0 0.35rem; }
.vt-card p { margin: 0; }

.timeline-marks {
  color: #8fb3ff;
  font-weight: 700;
  margin-top: 0.45rem;
}

/* ----- Downloads ----- */
.download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.download-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.85rem;
  margin-top: 0.7rem;
  color: #8fb3ff;
  font-weight: 600;
  transition: color 0.3s ease, gap 0.3s ease;
}
.download-item a:hover { color: var(--accent); gap: 0.7rem; }
.download-item a .arrow { transition: transform 0.3s ease; }
.download-item a:hover .arrow { transform: translateX(4px); }

.download-item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.download-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.download-head h4 {
  margin: 0;
}

.download-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 140, 255, 0.2);
  border: 1px solid rgba(91, 140, 255, 0.45);
  color: #9ec0ff;
  font-size: 1rem;
  flex-shrink: 0;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.download-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #dbe7ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.doc-card .download-meta span:last-child,
.slide-card .download-meta span:last-child {
  color: #7aeed9;
  border-color: rgba(53, 210, 182, 0.35);
  background: rgba(53, 210, 182, 0.12);
}

.slide-title {
  margin: 0.1rem 0 0;
  color: #b8ccff;
  font-weight: 600;
}

.drive-link {
  margin-top: auto;
}

/* ----- Team ----- */
.team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.team-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin: 0 auto;
}

.team-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.team-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.4rem;
}
.team-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.team-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0a1024;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 auto 0.85rem;
  position: relative;
  box-shadow: 0 10px 24px rgba(91, 140, 255, 0.4);
  transition: transform 0.4s ease;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.avatar::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(91, 140, 255, 0.4);
  animation: spin 18s linear infinite;
}
.team-card:hover .avatar { transform: scale(1.06) rotate(-3deg); }

.team-card .role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 0.4rem;
}
.team-card .sid {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background: rgba(91, 140, 255, 0.14);
  border: 1px solid rgba(91, 140, 255, 0.35);
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
}

.team-card a {
  color: #8fb3ff;
  font-size: 0.86rem;
  word-break: break-word;
}

.editable-space { margin-top: auto; min-height: 16px; }

/* ----- Contact ----- */
.contact-form { display: grid; gap: 0.9rem; }
.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 500;
}
input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0.85rem;
  font: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
input:hover, textarea:hover { background: rgba(255, 255, 255, 0.09); }
input:focus, textarea:focus {
  outline: none;
  border-color: #8fb3ff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.25);
}

.contact-details { margin-top: 1.1rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--muted);
  position: relative;
  z-index: 2;
}

/* ----- Reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.8,.2,1);
}
.reveal.show { opacity: 1; transform: translateY(0); }

.reveal.pop {
  transform: scale(0.9);
}
.reveal.pop.show { transform: scale(1); }

.stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.stagger.show > * { opacity: 1; transform: translateY(0); }
.stagger.show > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.show > *:nth-child(2) { transition-delay: 0.15s; }
.stagger.show > *:nth-child(3) { transition-delay: 0.25s; }
.stagger.show > *:nth-child(4) { transition-delay: 0.35s; }
.stagger.show > *:nth-child(5) { transition-delay: 0.45s; }
.stagger.show > *:nth-child(6) { transition-delay: 0.55s; }
.stagger.show > *:nth-child(7) { transition-delay: 0.65s; }
.stagger.show > *:nth-child(8) { transition-delay: 0.75s; }
.stagger.show > *:nth-child(9) { transition-delay: 0.85s; }

/* ----- Back to top ----- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(7, 11, 26, 0.85);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.back-top:hover { background: rgba(91, 140, 255, 0.25); }
.back-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: floatBtn 2.6s ease-in-out infinite;
}
@keyframes floatBtn {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  .nav-cta { display: none; }
}

@media (max-width: 960px) {
  .cards,
  .timeline,
  .download-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-layout { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-arrow { transform: rotate(90deg); margin: 0.4rem 0; }
  .architecture-flow { flex-direction: column; align-items: stretch; }

  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-left { max-width: none; text-align: center; margin: 0 auto; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-self: center; }
  .hero-visual { max-width: 380px; margin: 0 auto; }

  .team-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .vertical-timeline { max-width: 100%; }
  .vt-line { left: 35%; }
  .vt-item { grid-template-columns: 32% 6% 62%; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav-tools { margin-left: auto; }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 4%;
    right: 4%;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(7, 11, 26, 0.96);
    transform: translateY(-12px) scaleY(0.95);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(.2,.8,.2,1);
  }
  .nav-links.open {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; }
  .nav-search {
    grid-template-columns: 1fr;
  }
  .nav-search button {
    width: 100%;
  }

  .hero { padding-top: 5rem; padding-bottom: 4rem; }
  .hero-meta {
    gap: 0.9rem;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .meta-divider { display: none; }
  .meta-item strong { font-size: 1.2rem; }
  .hero-visual { max-width: 320px; }
  .floating-tag { font-size: 0.72rem; padding: 0.4rem 0.7rem; }
  .tag-1 { left: 0; }
  .tag-2 { right: 0; }
  .terminal-body { font-size: 0.72rem; padding: 0.7rem 0.85rem; }
  .shield { width: 70px; height: 70px; }

  .team-grid,
  .team-grid-2,
  .team-grid-4,
  .tech-layout,
  .tech-grid { grid-template-columns: 1fr; }
  .vt-line {
    left: 10px;
    top: 0.4rem;
    bottom: 0.4rem;
  }
  .vt-item {
    grid-template-columns: 1fr;
    row-gap: 0.45rem;
    padding-left: 2rem;
    position: relative;
  }
  .vt-dot {
    position: absolute;
    left: 1px;
    top: 0.48rem;
    width: 16px;
    height: 16px;
  }
  .vt-date {
    text-align: left;
    font-size: 0.85rem;
  }
  .section { padding: 3.5rem 0; }
  .card-number { font-size: 2rem; top: 10px; right: 12px; }
  .back-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* ── Product Video ─────────────────────────────────────────── */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 16px;
  overflow: hidden;
  background: #0a1024;
  box-shadow: 0 8px 40px rgba(91,140,255,.25);
  margin-top: 1.5rem;
}
.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
