/* eCore premium landing — dark SaaS + 3D product aesthetic */
:root {
  --ec-bg: #070b14;
  --ec-bg-2: #0c1220;
  --ec-panel: rgba(18, 28, 48, 0.72);
  --ec-border: rgba(148, 163, 184, 0.16);
  --ec-text: #e8eef9;
  --ec-muted: #94a3b8;
  --ec-accent: #3b82f6;
  --ec-accent-2: #38bdf8;
  --ec-glow: rgba(59, 130, 246, 0.35);
  --ec-font: "DM Sans", system-ui, sans-serif;
  --ec-display: "Outfit", "DM Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body.ecore-landing {
  margin: 0;
  font-family: var(--ec-font);
  color: var(--ec-text);
  background: var(--ec-bg);
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.ec-container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Nav */
.ec-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.ec-nav.is-solid {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--ec-border);
}
.ec-nav-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
}
.ec-logo {
  font-family: var(--ec-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .02em;
}
.ec-logo span { color: var(--ec-accent-2); margin-left: .15rem; }
.ec-nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: .9rem;
}
.ec-nav-links a { color: var(--ec-muted); }
.ec-nav-links a:hover { color: #fff; }
.ec-nav-cta {
  color: #fff !important;
  background: var(--ec-accent);
  padding: .45rem .9rem;
  border-radius: 999px;
  font-weight: 600;
}
.ec-nav-login {
  border: 1px solid var(--ec-border);
  padding: .4rem .85rem;
  border-radius: 999px;
  color: #fff !important;
}
.ec-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ec-border);
  border-radius: 10px;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}
.ec-nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
}

/* Hero */
.ec-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(37, 99, 235, 0.18), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(56, 189, 248, 0.08), transparent 45%),
    linear-gradient(180deg, #05080f 0%, #0a1222 55%, #070b14 100%);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.ec-hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
}
.ec-core-fallback {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(56,189,248,.35), transparent 40%),
    radial-gradient(circle at 60% 60%, rgba(59,130,246,.25), transparent 45%),
    rgba(15, 23, 42, .6);
  border: 1px solid rgba(56, 189, 248, .25);
  box-shadow: 0 0 80px var(--ec-glow);
}
.ec-hero-grid {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
}
.ec-badge {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--ec-accent-2);
  border: 1px solid rgba(56, 189, 248, .35);
  padding: .35rem .7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  background: rgba(56, 189, 248, .08);
}
.ec-hero h1 {
  font-family: var(--ec-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -.02em;
}
.ec-lead {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 34rem;
  margin: 0 0 .75rem;
}
.ec-sub {
  color: var(--ec-muted);
  max-width: 34rem;
  font-size: .95rem;
}
.ec-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}
.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.35rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.ec-btn:hover { transform: translateY(-1px); }
.ec-btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, .35);
}
.ec-btn-ghost {
  background: rgba(255,255,255,.04);
  border-color: var(--ec-border);
  color: #fff;
}
.ec-btn-block { width: 100%; margin-top: 1rem; }
.ec-scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--ec-muted);
  font-size: .8rem;
}
.ec-hero-stage { position: relative; min-height: 320px; }
.ec-orbit-label {
  position: absolute;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(15, 23, 42, .75);
  border: 1px solid var(--ec-border);
  color: #e2e8f0;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.ec-orbit-label[data-orbit="sales"] { top: 8%; right: 18%; }
.ec-orbit-label[data-orbit="ops"] { top: 28%; right: 0; }
.ec-orbit-label[data-orbit="acct"] { bottom: 30%; right: 8%; }
.ec-orbit-label[data-orbit="hrm"] { bottom: 12%; left: 22%; }
.ec-orbit-label[data-orbit="mgmt"] { top: 18%; left: 8%; }

/* Strip */
.ec-strip {
  border-block: 1px solid var(--ec-border);
  background: rgba(12, 18, 32, .9);
  overflow: hidden;
  padding: .9rem 0;
}
.ec-strip-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: ec-marquee 40s linear infinite;
  color: var(--ec-muted);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ec-strip-track span::after {
  content: "·";
  margin-left: 1.5rem;
  opacity: .4;
}
@keyframes ec-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.ec-section { padding: 6rem 0; }
.ec-section-alt {
  background:
    linear-gradient(180deg, rgba(12,18,32,.6), rgba(7,11,20,.3));
}
.ec-section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}
.ec-kicker {
  display: inline-block;
  color: var(--ec-accent-2);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .75rem;
  font-weight: 600;
}
.ec-section h2 {
  font-family: var(--ec-display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 .85rem;
  letter-spacing: -.02em;
}
.ec-section-head p,
.ec-muted { color: var(--ec-muted); }

.ec-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ec-glass-card,
.ec-tax-card,
.ec-passenger-card,
.ec-demo-card,
.ec-ticket,
.ec-metric {
  background: var(--ec-panel);
  border: 1px solid var(--ec-border);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.ec-glass-card,
.ec-tax-card {
  padding: 1.35rem;
}
.ec-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(59,130,246,.12);
  margin-bottom: .75rem;
  font-size: 1.1rem;
}
.ec-glass-card h3,
.ec-tax-card h3 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  font-family: var(--ec-display);
}
.ec-glass-card p,
.ec-tax-card ul {
  margin: 0;
  color: var(--ec-muted);
  font-size: .92rem;
}
.ec-tax-card ul {
  padding-left: 1.1rem;
  margin-top: .75rem;
}

/* Ecosystem */
.ec-ecosystem {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}
.ec-eco-core {
  width: 140px;
  height: 140px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--ec-display);
  font-weight: 700;
  background: linear-gradient(145deg, rgba(59,130,246,.35), rgba(15,23,42,.9));
  border: 1px solid rgba(56,189,248,.4);
  box-shadow: 0 0 60px var(--ec-glow);
  z-index: 2;
}
.ec-eco-node {
  --angle: calc(var(--i) * 36deg);
  position: absolute;
  top: 50%;
  left: 50%;
  transform:
    rotate(var(--angle))
    translate(170px)
    rotate(calc(-1 * var(--angle)))
    translate(-50%, -50%);
  padding: .45rem .8rem;
  border-radius: 999px;
  font-size: .8rem;
  background: rgba(15, 23, 42, .85);
  border: 1px solid var(--ec-border);
  white-space: nowrap;
}

/* Tickets */
.ec-ticket-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.ec-ticket { padding: 1.1rem; transform: perspective(900px) rotateY(-4deg); }
.ec-ticket-hotel { transform: perspective(900px) rotateY(0deg); }
.ec-ticket-visa { transform: perspective(900px) rotateY(4deg); }
.ec-ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px dashed rgba(148,163,184,.25);
}
.ec-ticket-top span {
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--ec-accent-2);
}
.ec-ticket-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem .8rem;
  font-size: .85rem;
}
.ec-ticket-body label,
.ec-meta-grid label,
.ec-metric label {
  display: block;
  color: var(--ec-muted);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Split / passenger */
.ec-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.ec-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.ec-list li {
  padding: .4rem 0 .4rem 1.4rem;
  position: relative;
  color: #cbd5e1;
}
.ec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85rem;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--ec-accent-2);
  box-shadow: 0 0 10px var(--ec-glow);
}
.ec-passenger-card { padding: 1.5rem; }
.ec-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  font-weight: 700;
  margin-bottom: .75rem;
}
.ec-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: 1rem;
}

.ec-flow,
.ec-docs {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
}
.ec-flow span,
.ec-docs span,
.ec-flow-vertical span {
  padding: .55rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--ec-border);
  background: rgba(15,23,42,.7);
  font-size: .85rem;
}
.ec-flow-vertical {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: center;
  margin-top: 2rem;
}

.ec-acct-dashboard,
.ec-mgmt-dash {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.ec-mgmt-dash { grid-template-columns: repeat(3, 1fr); }
.ec-metric { padding: 1.2rem 1.3rem; }
.ec-metric strong {
  font-family: var(--ec-display);
  font-size: 1.7rem;
  font-weight: 700;
}

.ec-branch-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  place-items: center;
}
.ec-hq,
.ec-branch {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--ec-border);
  background: var(--ec-panel);
  text-align: center;
  min-width: 140px;
}
.ec-hq {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(37,99,235,.3), rgba(15,23,42,.9));
  border-color: rgba(56,189,248,.35);
  font-family: var(--ec-display);
  font-weight: 700;
}

.ec-arch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ec-arch-core {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.5rem;
  border-radius: 20px;
  font-family: var(--ec-display);
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(37,99,235,.35), rgba(8,15,30,.95));
  border: 1px solid rgba(56,189,248,.35);
  box-shadow: 0 0 50px var(--ec-glow);
}
.ec-arch-col {
  padding: 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--ec-border);
  background: var(--ec-panel);
}
.ec-arch-col h4 { margin: 0 0 .4rem; font-family: var(--ec-display); }
.ec-arch-col p { margin: 0; color: var(--ec-muted); font-size: .9rem; }

/* CTA */
.ec-cta {
  padding: 6rem 0;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(37,99,235,.22), transparent 55%),
    var(--ec-bg);
}
.ec-cta h2 {
  font-family: var(--ec-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 1rem;
}
.ec-cta p {
  color: var(--ec-muted);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}
.ec-cta .ec-hero-actions { justify-content: center; }

/* Demo form */
.ec-demo-wrap { max-width: 760px; }
.ec-demo-card { padding: 2rem; }
.ec-demo-card h2 {
  font-family: var(--ec-display);
  margin: 0 0 .5rem;
}
.ec-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
.ec-form-grid label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .85rem;
  color: #cbd5e1;
}
.ec-span-2 { grid-column: 1 / -1; }
.ec-input {
  width: 100%;
  background: rgba(7,11,20,.75);
  border: 1px solid var(--ec-border);
  border-radius: 12px;
  color: #fff;
  padding: .75rem .9rem;
  font: inherit;
}
.ec-input:focus {
  outline: 2px solid rgba(59,130,246,.45);
  border-color: rgba(59,130,246,.6);
}
.ec-err { color: #fca5a5; font-size: .78rem; }
.ec-alert {
  padding: .85rem 1rem;
  border-radius: 12px;
  margin: 1rem 0;
  font-size: .92rem;
}
.ec-alert-ok {
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.35);
  color: #a7f3d0;
}
.ec-alert-err {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.35);
  color: #fecaca;
}

/* Footer */
.ec-footer {
  border-top: 1px solid var(--ec-border);
  padding: 3rem 0 2rem;
  background: #05080f;
}
.ec-footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.ec-footer p { color: var(--ec-muted); max-width: 18rem; }
.ec-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.ec-footer-cols h4 {
  margin: 0 0 .75rem;
  font-size: .85rem;
  color: #fff;
}
.ec-footer-cols a {
  display: block;
  color: var(--ec-muted);
  font-size: .88rem;
  margin-bottom: .4rem;
}
.ec-footer-cols a:hover { color: var(--ec-accent-2); }
.ec-footer-bottom {
  display: flex;
  justify-content: space-between;
  color: var(--ec-muted);
  font-size: .82rem;
  border-top: 1px solid var(--ec-border);
  padding-top: 1rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .ec-hero-grid,
  .ec-split,
  .ec-ticket-row,
  .ec-acct-dashboard,
  .ec-mgmt-dash,
  .ec-arch,
  .ec-footer-top {
    grid-template-columns: 1fr;
  }
  .ec-grid-3 { grid-template-columns: 1fr 1fr; }
  .ec-hero-stage { display: none; }
  .ec-eco-node {
    transform:
      rotate(var(--angle))
      translate(130px)
      rotate(calc(-1 * var(--angle)))
      translate(-50%, -50%);
  }
  .ec-nav-toggle { display: flex; }
  .ec-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(7,11,20,.96);
    border: 1px solid var(--ec-border);
    border-radius: 16px;
  }
  .ec-nav-links.is-open { display: flex; }
  .ec-ticket { transform: none; }
}

@media (max-width: 640px) {
  .ec-grid-3,
  .ec-form-grid,
  .ec-branch-map,
  .ec-footer-cols,
  .ec-mgmt-dash {
    grid-template-columns: 1fr;
  }
  .ec-footer-bottom { flex-direction: column; gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ec-strip-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #hero-canvas { display: none; }
}
