/* ============================================================
   MarixApp Limited — corporate landing page
   Premium corporate-tech: dark navy / graphite + electric blue
   ============================================================ */

:root {
  --bg: #070b18;
  --bg-2: #0a1124;
  --bg-alt: #0c1530;
  --panel: #101a36;
  --panel-2: #122046;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #eaf0ff;
  --text-soft: #aab6d4;
  --text-dim: #7585a8;

  --accent: #3b82f6;
  --accent-2: #5b9dff;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --accent-glow: rgba(59, 130, 246, 0.4);

  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 16px 40px -24px rgba(0, 0, 0, 0.65);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
}
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}
h3 {
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn-sm {
  padding: 9px 18px;
  font-size: 0.9rem;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -12px var(--accent-glow);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 24, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(7, 11, 24, 0.92);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.brand-mark {
  color: var(--accent-2);
  display: inline-flex;
}
.brand-suffix {
  color: var(--text-dim);
  font-weight: 500;
}
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  transition: color 0.18s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav a:hover {
  color: #fff;
}
.nav a:hover::after {
  width: 100%;
}
.header-cta {
  margin-left: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 22px;
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 24, 0.98);
}
.mobile-nav a {
  padding: 13px 4px;
  color: var(--text-soft);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child {
  border-bottom: 0;
  margin-top: 12px;
}
.mobile-nav.open {
  display: flex;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(59, 130, 246, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 80%);
}
.hero-glow {
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16), transparent 65%);
  filter: blur(20px);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--accent-soft);
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--text-soft);
  max-width: 540px;
  margin: 20px 0 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 44px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  font-size: 1.02rem;
}

/* Hero dashboard mockup */
.hero-visual {
  position: relative;
}
.dashboard {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
}
.dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(150deg, rgba(91, 157, 255, 0.5), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.dashboard-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-blue {
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-glow);
}
.dashboard-title {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}
.badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-live {
  color: #6ee7a8;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.dashboard-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.metric {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.metric-label {
  font-size: 0.74rem;
  color: var(--text-dim);
}
.metric-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  color: #fff;
}
.metric-trend {
  font-size: 0.74rem;
  font-weight: 600;
}
.metric-trend.up {
  color: #6ee7a8;
}
.metric-trend.steady {
  color: var(--text-dim);
}
.dashboard-chart svg {
  width: 100%;
  height: 90px;
  display: block;
}

/* ---------- Trust strip ---------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 26px;
  padding: 22px 24px;
}
.trust-item {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.trust-sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(64px, 8vw, 110px) 0;
}
.section-alt {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg-2));
  border-block: 1px solid var(--line);
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.section-head {
  max-width: 760px;
  margin-bottom: 52px;
}
.section-lead {
  font-size: 1.06rem;
  color: var(--text-soft);
  margin-top: 16px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.about-body p {
  font-size: 1.05rem;
}
.about-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.about-points li {
  position: relative;
  padding-left: 28px;
  color: var(--text-soft);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}
.about-points li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  width: 4px;
  height: 7px;
  border-right: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(45deg);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: linear-gradient(170deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 28px 60px -30px var(--accent-glow);
}
.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  margin-bottom: 18px;
}
.card-icon svg {
  width: 24px;
  height: 24px;
}
.card h3 {
  margin-bottom: 9px;
}
.card p {
  font-size: 0.96rem;
  margin: 0;
  color: var(--text-soft);
}

/* Cooperation */
.coop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.coop-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease;
}
.coop-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.coop-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  margin-bottom: 16px;
}
.coop-card h3 {
  margin-bottom: 7px;
}
.coop-card p {
  margin: 0;
  font-size: 0.94rem;
}

/* Company info */
.company-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #6ee7a8;
  font-weight: 600;
  font-size: 0.9rem;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 10px rgba(52, 199, 89, 0.7);
}
.info-card {
  background: linear-gradient(170deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 28px;
  box-shadow: var(--shadow-card);
}
.info-list {
  margin: 0;
}
.info-list > div {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.info-list > div:last-child {
  border-bottom: 0;
}
.info-list dt {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
}
.info-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-person {
  margin: 28px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contact-role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.contact-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: #fff;
}
.contact-phone {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-top: 4px;
}
.contact-note {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.contact-address {
  font-style: normal;
  color: var(--text-soft);
  line-height: 1.8;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.contact-address strong {
  color: var(--text);
}
.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.contact-btn:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 22px 50px -30px var(--accent-glow);
}
.contact-btn-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
}
.contact-btn-icon svg {
  width: 22px;
  height: 22px;
}
.contact-btn span:last-child {
  display: flex;
  flex-direction: column;
}
.contact-btn strong {
  color: #fff;
  font-size: 1rem;
}
.contact-btn small {
  color: var(--text-dim);
  font-size: 0.84rem;
}
.contact-btn-lg {
  grid-column: 1 / -1;
  padding: 26px 24px;
}
.contact-btn-lg strong {
  font-size: 1.1rem;
}
.contact-btn-lg small {
  font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .brand {
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 0.92rem;
  max-width: 320px;
  margin: 0 0 6px;
}
.footer-reg {
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-nav a {
  color: var(--text-soft);
  font-size: 0.93rem;
  transition: color 0.18s ease;
}
.footer-nav a:hover {
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-contact a,
.footer-contact span {
  color: var(--text-soft);
  font-size: 0.93rem;
}
.footer-contact a:hover {
  color: var(--accent-2);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner,
  .about-grid,
  .company-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    order: -1;
    max-width: 520px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .coop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .nav,
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .container {
    padding-inline: 18px;
  }
  .cards,
  .coop-grid,
  .contact-actions,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .dashboard-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .hero-stats {
    gap: 22px;
  }
  .info-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .hero-visual {
    order: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  #network-canvas {
    display: none;
  }
}
