/* =====================================================
   VRISVA DESIGN SYSTEM — design.css
   Shared across all pages of the new design.
   Handles: nav, ticker, footer, dark page, badges,
   buttons, dark cards, and page wrappers.
===================================================== */

/* ── Variables ── */
:root {
  --v-bg:        #030610;
  --v-bg2:       #050c1c;
  --v-bg3:       #071228;
  --v-navy:      #0a1628;
  --v-blue:      #3b82f6;
  --v-blue-dk:   #1d4ed8;
  --v-indigo:    #6366f1;
  --v-cyan:      #06b6d4;
  --v-green:     #10b981;
  --v-amber:     #f59e0b;
  --v-red:       #ef4444;
  --v-purple:    #8b5cf6;
  --v-text:      #f1f5f9;
  --v-muted:     #64748b;
  --v-subtle:    #1e293b;
  --v-border:    rgba(59, 130, 246, 0.15);
  --v-border-hi: rgba(59, 130, 246, 0.35);
  --v-nav-h:     62px;
  --v-ticker-h:  28px;
  --v-offset:    90px; /* ticker + nav */
}

/* ── Dark page body ── */
body.vrisva-dark {
  background: var(--v-bg);
  color: var(--v-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Bluesky Ticker ── */
.vrisva-ticker {
  background: linear-gradient(90deg, #0050c0 0%, #0066dd 100%);
  height: var(--v-ticker-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  z-index: 200;
}
.vrisva-ticker-icon {
  flex-shrink: 0;
  width: 34px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: background 0.2s;
}
.vrisva-ticker-icon:hover { background: rgba(0, 0, 0, 0.28); }
.vrisva-ticker-scroll-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.vrisva-ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: vrisva-ticker-scroll 48s linear infinite;
}
.vrisva-ticker-track:hover { animation-play-state: paused; }
@keyframes vrisva-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.vrisva-ticker-item {
  display: inline-block;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 0 14px;
  line-height: var(--v-ticker-h);
  transition: opacity 0.2s;
}
.vrisva-ticker-item:hover { opacity: 0.8; text-decoration: underline; }
.vrisva-ticker-sep { color: rgba(255, 255, 255, 0.3); padding: 0 2px; }

/* ── Navigation ── */
.vrisva-nav {
  background: rgba(3, 6, 16, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--v-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  height: var(--v-nav-h);
  position: sticky;
  top: 0;
  z-index: 100;
}
.vrisva-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.vrisva-nav-mark {
  /* kept for legacy nav.js usage on product pages */
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1d4ed8, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: white;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
/* Real logo image — inverted so it shows on dark nav */
.vrisva-nav-logo-img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
  display: block;
}
.vrisva-nav-name {
  font-size: 0.93rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.07em;
}
.vrisva-nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.vrisva-nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  white-space: nowrap;
}
.vrisva-nav-links a:hover,
.vrisva-nav-links a.v-active { color: #fff; }
.vrisva-nav-cta {
  background: linear-gradient(135deg, #1d4ed8, #4f46e5);
  color: white !important;
  padding: 9px 22px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}
.vrisva-nav-cta:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
  transform: translateY(-1px);
}

/* ── Hamburger button (mobile only) ── */
.vrisva-nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
  margin-left: auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.vrisva-nav-burger span {
  display: block;
  height: 2px;
  background: #94a3b8;
  border-radius: 2px;
  transition: all 0.22s;
}
.vrisva-nav-burger span:nth-child(1) { width: 22px; }
.vrisva-nav-burger span:nth-child(2) { width: 16px; }
.vrisva-nav-burger span:nth-child(3) { width: 22px; }
.vrisva-nav-burger.v-open span:nth-child(1) { width: 22px; transform: translateY(7px) rotate(45deg); }
.vrisva-nav-burger.v-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.vrisva-nav-burger.v-open span:nth-child(3) { width: 22px; transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav drawer ── */
.vrisva-mobile-nav {
  display: none;
  position: absolute;
  top: var(--v-nav-h);
  left: 0; right: 0;
  background: rgba(3, 6, 16, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  padding: 8px 24px 20px;
  flex-direction: column;
  z-index: 99;
}
.vrisva-mobile-nav.v-open { display: flex; }
.vrisva-mobile-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.92rem;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s;
  display: block;
}
.vrisva-mobile-nav a.v-active,
.vrisva-mobile-nav a:hover { color: #fff; }
.vrisva-mobile-nav a:last-child { border-bottom: none; }
.vrisva-mobile-nav .vmn-cta {
  margin-top: 12px;
  background: linear-gradient(135deg, #1d4ed8, #4f46e5);
  color: white !important;
  padding: 13px 20px;
  border-radius: 7px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-bottom: none !important;
}

/* ── Badges ── */
.v-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.v-badge::before { content: '●'; font-size: 0.48rem; }
.v-badge-available {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.v-badge-soon {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.v-badge-dev {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.v-badge-rd {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ── Buttons ── */
.v-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 8px;
  transition: all 0.2s;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
}
.v-btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #4f46e5);
  color: white;
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.32);
}
.v-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(59, 130, 246, 0.45);
}
.v-btn-ghost {
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: transparent;
}
.v-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}
.v-btn-enquire {
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.05);
}
.v-btn-enquire:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.6);
}
.v-btn-sm { padding: 7px 16px; font-size: 0.76rem; }

/* ── Section layout ── */
.v-section { padding: 88px 52px; }
.v-section-narrow { max-width: 1100px; margin: 0 auto; }
.v-eyebrow {
  font-size: 0.67rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--v-blue);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.v-eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--v-blue);
  flex-shrink: 0;
}
.v-section-title {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #fff;
}
.v-section-sub {
  color: var(--v-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 480px;
  margin-top: 10px;
}
.v-gradient-text {
  background: linear-gradient(165deg, #ffffff 25%, #bfdbfe 60%, #a5b4fc 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Dark cards ── */
.v-card {
  background: rgba(8, 16, 36, 0.88);
  border: 1px solid var(--v-border);
  border-radius: 12px;
  transition: all 0.25s;
  overflow: hidden;
}
.v-card:hover {
  border-color: var(--v-border-hi);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.v-card-body { padding: 24px; }
.v-card-img {
  width: 100%;
  object-fit: cover;
  background: var(--v-navy);
  border-bottom: 1px solid var(--v-border);
  display: block;
}
.v-card-img-placeholder {
  background: linear-gradient(135deg, var(--v-navy), #0a1f44);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--v-border);
}

/* ── Dev notice ── */
.v-dev-notice {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 7px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.75rem;
  color: #d97706;
  line-height: 1.5;
  display: flex;
  gap: 8px;
}
.v-dev-notice::before { content: '⚡'; flex-shrink: 0; }

/* ── Sub-product chips ── */
.v-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.v-chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.09);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: #67e8f9;
  text-decoration: none;
  transition: background 0.15s;
}
.v-chip:hover { background: rgba(6, 182, 212, 0.18); }

/* ── Rocket link ── */
.v-rocket-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.v-rocket-link:hover { color: #93c5fd; }
.v-rocket-link svg { opacity: 0.7; }

/* ── Spec pair ── */
.v-spec { display: inline-block; }
.v-spec-val { font-size: 1.05rem; font-weight: 800; color: #fff; line-height: 1; }
.v-spec-key {
  font-size: 0.58rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 2px;
}

/* ── Footer ── */
.vrisva-footer {
  background: #020509;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #334155;
  flex-wrap: wrap;
  gap: 16px;
}
.vrisva-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  text-decoration: none;
}
.vrisva-footer-logo:hover { color: #cbd5e1; }
.vrisva-footer-links {
  display: flex;
  gap: 20px;
}
.vrisva-footer-links a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}
.vrisva-footer-links a:hover { color: #94a3b8; }

/* ── Pages using new nav (spacing fix) ── */
body.vrisva-dark .page-container,
body.has-vnav .page-container {
  padding-top: 140px;
  background: #f8fafc; /* keep light for existing product pages */
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .vrisva-nav { padding: 0 28px; }
  .vrisva-nav-links { gap: 20px; }
  .v-section { padding: 72px 28px; }
  .vrisva-footer { padding: 28px 28px; }
}
@media (max-width: 768px) {
  .vrisva-nav-links { display: none; }
  .vrisva-nav-cta { display: none; }
  .vrisva-nav-burger { display: flex; }
  .vrisva-nav { padding: 0 20px; position: relative; }
  .v-section { padding: 56px 20px; }
  .vrisva-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }
  .vrisva-footer-links { flex-wrap: wrap; gap: 12px; }
}
