/* ── VividMetriX Site Styles ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1a1a1a;
  --surface: #1f1f1f;
  --tile: #1e1e1e;
  --blue: #4169E1;
  --blue-lt: #5B8DEF;
  --blue-dim: rgba(65,105,225,0.12);
  --green: #7FFF00;
  --white: #ffffff;
  --muted: #8a8a9a;
  --body: #b0b0c0;
  --border: rgba(65,105,225,0.2);
}

html, body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Josefin Sans', 'Arial Narrow', sans-serif;
  overflow-x: hidden;
}

/* ── Canvas / overlay ── */
#canvas-bg { position: fixed; inset: 0; z-index: 0; opacity: 0.25; pointer-events: none; }
body::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.07) 2px, rgba(0,0,0,0.07) 4px);
  pointer-events: none; z-index: 999;
}

/* ── Corner accents ── */
.corner { position: fixed; z-index: 2; pointer-events: none; }
.corner-tr { top: 80px; right: 20px; width: 36px; height: 36px; border-top: 1.5px solid rgba(127,255,0,0.3); border-right: 1.5px solid rgba(127,255,0,0.3); }
.corner-bl { bottom: 34px; left: 20px; width: 36px; height: 36px; border-bottom: 1.5px solid rgba(65,105,225,0.35); border-left: 1.5px solid rgba(65,105,225,0.35); }

/* ── Nav ── */
#sitenav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px,4vw,60px); height: 64px;
  background: rgba(26,26,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-wordmark { font-size: 18px; font-weight: 700; color: var(--white); letter-spacing: 0.5px; }
.nav-wordmark .light { font-weight: 300; }
.nav-wordmark .green { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  font-family: 'Josefin Sans', sans-serif !important;
  font-weight: 700 !important; font-size: 11px !important; letter-spacing: 2px !important;
  color: var(--white) !important;
  background: var(--blue); padding: 8px 18px; border-radius: 3px;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover { background: var(--blue-lt) !important; box-shadow: 0 0 16px rgba(65,105,225,0.4) !important; }
.nav-mobile-btn { display: none; background: none; border: none; color: var(--white); cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-mobile-btn span { display: block; width: 22px; height: 1.5px; background: var(--white); }
.nav-drawer {
  display: none; position: fixed; inset: 64px 0 0 0;
  background: rgba(20,20,20,0.98); z-index: 99;
  flex-direction: column; align-items: center; justify-content: center; gap: 36px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a { font-family: 'DM Mono', monospace; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-drawer a:hover { color: var(--white); }
@media (max-width: 768px) { .nav-links { display: none; } .nav-mobile-btn { display: flex; } }

/* ── Page wrapper ── */
.page { position: relative; z-index: 1; padding-top: 64px; }

/* ── Hero ── */
.hero {
  min-height: 92vh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(60px,10vh,120px) clamp(24px,6vw,100px); position: relative;
}
.hero-label { display: inline-flex; align-items: center; gap: 10px; font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 3px; color: var(--green); text-transform: uppercase; margin-bottom: 28px; animation: fadeUp 0.8s 0.1s both; }
.hero-label::before { content: ''; width: 28px; height: 1px; background: var(--green); opacity: 0.7; }
.hero-h1 { font-size: clamp(52px,9vw,128px); font-weight: 700; line-height: 0.9; letter-spacing: -3px; margin-bottom: 24px; animation: fadeUp 0.9s 0.25s both; }
.hero-h1 .dim { color: var(--muted); font-weight: 300; }
.hero-h1 .accent { color: var(--green); }
.hero-sub { font-size: clamp(16px,2vw,20px); font-weight: 300; color: var(--body); max-width: 580px; line-height: 1.7; margin-bottom: 48px; animation: fadeUp 0.9s 0.4s both; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp 0.9s 0.55s both; }
.hero-scroll { position: absolute; bottom: 32px; left: clamp(24px,6vw,100px); display: flex; align-items: center; gap: 12px; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 3px; color: rgba(138,138,154,0.5); text-transform: uppercase; animation: fadeUp 1s 1s both; }
.hero-scroll::before { content: ''; width: 1px; height: 40px; background: linear-gradient(to bottom, transparent, rgba(65,105,225,0.5)); }

/* ── Page hero (non-full-height) ── */
.page-hero { padding: clamp(60px,8vh,100px) clamp(24px,6vw,100px) clamp(40px,6vh,80px); border-bottom: 1px solid var(--border); }
.page-hero .hero-label { animation: none; }
.page-hero .hero-h1 { font-size: clamp(40px,7vw,96px); animation: none; }
.page-hero .hero-sub { animation: none; }

/* ── Buttons ── */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: var(--white); font-family: 'Josefin Sans', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 14px 28px; border-radius: 3px; text-decoration: none; transition: background 0.2s, box-shadow 0.2s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--blue-lt); box-shadow: 0 0 24px rgba(65,105,225,0.4); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); color: var(--muted); font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; padding: 14px 28px; border-radius: 3px; text-decoration: none; transition: border-color 0.2s, color 0.2s; background: none; cursor: pointer; }
.btn-outline:hover { border-color: rgba(65,105,225,0.5); color: var(--white); }

/* ── Sections ── */
section { padding: clamp(60px,10vh,120px) clamp(24px,6vw,100px); }
section.alt-section { background: var(--surface); }
.section-label { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 4px; color: var(--green); text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.section-label::before { content: ''; width: 20px; height: 1px; background: var(--green); opacity: 0.7; }
.section-h2 { font-size: clamp(32px,5vw,64px); font-weight: 700; line-height: 1; letter-spacing: -1px; margin-bottom: 20px; }
.section-h2 .dim { color: var(--muted); font-weight: 300; }
.section-h2 .accent { color: var(--green); }
.section-desc { font-size: clamp(14px,1.6vw,17px); color: var(--body); line-height: 1.7; max-width: 560px; margin-bottom: 48px; }

/* ── Stats bar ── */
.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 1px; background: var(--border); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-item { background: var(--bg); padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-size: clamp(26px,3.5vw,40px); font-weight: 700; letter-spacing: -1px; }
.stat-num .unit { font-size: 0.55em; color: var(--green); }
.stat-label { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }

/* ── Product grid ── */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }
.product-tile { background: var(--tile); padding: 40px; position: relative; overflow: hidden; transition: background 0.3s; }
.product-tile::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,transparent,var(--blue),transparent); opacity: 0; transition: opacity 0.3s; }
.product-tile:hover::before { opacity: 1; }
.product-tile-icon { width: 42px; height: 42px; border-radius: 8px; background: var(--blue-dim); border: 1px solid rgba(65,105,225,0.25); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.product-tile-icon svg { width: 20px; height: 20px; }
.product-tile h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.product-tile p { font-size: 14px; color: var(--body); line-height: 1.7; }
.product-tile-tag { display: inline-block; margin-top: 16px; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 2px; color: var(--green); text-transform: uppercase; border: 1px solid rgba(127,255,0,0.2); padding: 4px 8px; border-radius: 2px; }

/* ── Feature cards ── */
.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; }
.feature-card { background: var(--tile); border: 1px solid var(--border); border-radius: 4px; padding: 32px; transition: border-color 0.3s, transform 0.3s; }
.feature-card:hover { border-color: rgba(65,105,225,0.45); transform: translateY(-2px); }
.feature-card-num { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 2px; color: rgba(65,105,225,0.5); margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 13px; color: var(--body); line-height: 1.7; }

/* ── Module table ── */
.module-table { width: 100%; border-collapse: collapse; }
.module-table th { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.module-table td { padding: 14px 16px; border-bottom: 1px solid rgba(65,105,225,0.08); font-size: 13px; color: var(--body); vertical-align: top; }
.module-table tr:last-child td { border-bottom: none; }
.module-table tr:hover td { background: rgba(65,105,225,0.04); }
.module-table td:first-child { font-weight: 700; color: var(--white); font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; }
.badge-live { color: var(--green); border: 1px solid rgba(127,255,0,0.25); background: rgba(127,255,0,0.05); }
.badge-soon { color: var(--blue-lt); border: 1px solid rgba(65,105,225,0.25); background: rgba(65,105,225,0.05); }
.badge-live::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }

/* ── Services strip ── */
.services-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1px; background: var(--border); }
.service-item { background: var(--bg); padding: 40px 32px; }
.service-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.service-item p { font-size: 13px; color: var(--body); line-height: 1.7; }
.service-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); margin-bottom: 20px; }
.service-dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ── Info blocks ── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
@media (max-width: 768px) { .info-grid { grid-template-columns: 1fr; } }
.info-tile { background: var(--tile); padding: 36px; }
.info-tile h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.info-tile p { font-size: 13px; color: var(--body); line-height: 1.7; }
.info-tile ul { list-style: none; margin-top: 12px; }
.info-tile ul li { font-size: 13px; color: var(--body); line-height: 1.8; padding-left: 16px; position: relative; }
.info-tile ul li::before { content: '—'; position: absolute; left: 0; color: var(--blue-lt); font-size: 11px; }

/* ── CTA banner ── */
.cta-banner { background: var(--tile); border: 1px solid var(--border); border-radius: 4px; padding: clamp(40px,6vw,80px); display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-banner h2 { font-size: clamp(22px,3.5vw,40px); font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }

/* ── Contact form ── */
.contact-form { display: flex; flex-direction: column; gap: 20px; max-width: 600px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.form-input, .form-textarea, .form-select {
  background: rgba(30,30,30,0.8); border: 1px solid var(--border); border-radius: 3px;
  padding: 12px 16px; font-family: 'DM Mono', monospace; font-size: 13px; color: var(--white);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: #444455; }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: rgba(65,105,225,0.6); box-shadow: 0 0 0 3px rgba(65,105,225,0.1); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a9a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.form-select option { background: #1e1e1e; color: var(--white); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-success { display: none; align-items: center; gap: 12px; font-family: 'DM Mono', monospace; font-size: 13px; color: var(--green); letter-spacing: 1px; }
.form-success.show { display: flex; }
.form-success-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.5s infinite; }

/* ── EDI flow viz ── */
.flow-viz { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 20px 0; }
.flow-step { flex-shrink: 0; background: var(--tile); border: 1px solid var(--border); border-radius: 4px; padding: 12px 16px; text-align: center; min-width: 110px; }
.flow-step-type { font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: 2px; color: var(--blue-lt); text-transform: uppercase; margin-bottom: 4px; }
.flow-step-name { font-size: 12px; font-weight: 700; }
.flow-arrow { flex-shrink: 0; width: 28px; display: flex; align-items: center; justify-content: center; color: rgba(65,105,225,0.4); font-size: 16px; }

/* ── Deployment grid ── */
.deploy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }
.deploy-card { background: var(--tile); border: 1px solid var(--border); border-radius: 4px; padding: 28px; }
.deploy-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.deploy-card p { font-size: 12px; color: var(--body); line-height: 1.7; }
.deploy-icon { font-family: 'DM Mono', monospace; font-size: 20px; color: var(--blue-lt); margin-bottom: 12px; }

/* ── Ticker ── */
.metrics-strip { position: fixed; bottom: 0; left: 0; right: 0; z-index: 2; overflow: hidden; height: 34px; background: rgba(20,20,20,0.9); border-top: 1px solid var(--border); display: flex; align-items: center; }
.metrics-track { display: flex; gap: 60px; animation: scrollLeft 35s linear infinite; white-space: nowrap; }
.metric-item { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 2px; color: var(--muted); display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.metric-val { color: var(--green); }
.metric-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--blue); opacity: 0.6; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 48px clamp(24px,6vw,100px) 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { footer { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { footer { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: #555570; text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--blue-lt); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px clamp(24px,6vw,100px) 52px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-copy { font-family: 'DM Mono', monospace; font-size: 10px; color: #333345; letter-spacing: 1px; }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 0 clamp(24px,6vw,100px); }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%,100% { opacity:1; box-shadow: 0 0 6px var(--green); } 50% { opacity:0.5; box-shadow: 0 0 14px var(--green); } }
