/* ============================================================
   COMPONENTS.CSS — Nav, Footer, Buttons, Cards, Ticker
   Valion Technologies
   ============================================================ */

/* ── TOPBAR ── */
.topbar {
  height: var(--topbar-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 901;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-dim);
}

.topbar-globe {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color var(--t-fast);
}

.topbar-globe:hover { color: var(--text); }
.topbar-globe svg { width: 14px; height: 14px; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.topbar-breach {
  color: var(--red);
  letter-spacing: 0.1em;
  transition: opacity var(--t-fast);
  display: flex;
  align-items: center;
  gap: 5px;
}

.topbar-breach::before {
  content: '⚠';
  font-size: 10px;
}

.topbar-breach:hover { opacity: 0.75; }

.topbar-contact {
  color: var(--text-muted);
  transition: color var(--t-fast);
}

.topbar-contact:hover { color: var(--text); }

/* ── MAIN NAV ── */
.nav {
  position: relative;
  top: 0;
  z-index: 900;
  height: var(--nav-height);
  background: var(--white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--space-8);
  gap: var(--space-8);
}

/* When topbar is present */
.has-topbar .nav {
  top: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
}

.nav-logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.04em;
  color: var(--text);
}

.nav-logo-name span {
  color: var(--green-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  background: var(--off-white);
}

.nav-link.active { color: var(--text); }

.nav-link svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  transition: transform var(--t-fast);
}

.nav-link:hover svg { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-item {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: var(--r-md);
  transition: background var(--t-fast), color var(--t-fast);
}

.nav-dropdown-item:hover {
  background: var(--off-white);
  color: var(--text);
}

.nav-dropdown-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.nav-dropdown-item span {
  font-size: 12px;
  color: var(--text-dim);
}

.nav-cta-wrap {
  margin-left: auto;
  flex-shrink: 0;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t-base);
}

/* ── BUTTONS ── */

/* Primary — green fill */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 11px 24px;
  border-radius: var(--r-md);
  transition: all var(--t-base) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: var(--text);
  border: 1.5px solid var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,200,55,0.3);
}

/* Bracket style — matches Turing Tower's corner-bracket CTA */
.btn-bracket {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-mid);
  position: relative;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.btn-bracket::before,
.btn-bracket::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--green-dark);
  border-style: solid;
  transition: all var(--t-base);
}

.btn-bracket::before {
  top: -2px; left: -2px;
  border-width: 2px 0 0 2px;
}

.btn-bracket::after {
  bottom: -2px; right: -2px;
  border-width: 0 2px 2px 0;
}

.btn-bracket:hover {
  border-color: var(--green-dark);
  color: var(--green-deep);
  background: var(--green-pale);
}

.btn-bracket:hover::before,
.btn-bracket:hover::after {
  width: 12px;
  height: 12px;
}

/* Ghost — outline only */
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
  background: var(--off-white);
}

/* White variant (for dark backgrounds) */
.btn-white {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--white);
}

.btn-white:hover {
  background: var(--green-pale);
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Size variants */
.btn-lg {
  font-size: 14px;
  padding: 14px 32px;
}

.btn-sm {
  font-size: 11px;
  padding: 7px 16px;
}

/* ── SERVICE / PRODUCT CARDS ── */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-7) var(--space-6);
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, #00ff88 100%);
  opacity: 0;
  transition: opacity var(--t-base);
}

.card:hover {
  border-color: rgba(0,180,45,0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card:hover::before { opacity: 1; }

.card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-deep);
  background: var(--green-pale);
  border: 1px solid var(--green-mid);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  display: inline-block;
  margin-bottom: var(--space-5);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  background: var(--green-pale);
  border: 1.5px solid var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--space-5);
}

.card h3 {
  font-size: 20px;
  margin-bottom: var(--space-2);
}

.card-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
}

.card p {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

.card-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t-fast);
}

.card-link:hover { gap: 10px; }

/* ── VALUE CARD ── */
.value-card {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6) var(--space-6);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  transition: border-color var(--t-base);
}

.value-card:hover { border-color: rgba(0,180,45,0.35); }

.value-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  color: var(--green);
  flex-shrink: 0;
  min-width: 44px;
}

.value-card h4 {
  font-size: 16px;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.value-card p {
  font-size: 14px;
}

/* ── STAT ITEM ── */
.stat-item {
  padding: var(--space-7) var(--space-6);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, #00ff88 100%);
  opacity: 0;
  transition: opacity var(--t-base);
}

.stat-item:hover {
  border-color: rgba(0,180,45,0.3);
  box-shadow: var(--shadow-sm);
}

.stat-item:hover::after { opacity: 1; }

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 52px;
  line-height: 1;
  margin-bottom: var(--space-3);
}

.stat-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── TICKER ── */
.ticker {
  overflow: hidden;
  padding: 14px 0;
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 44s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.ticker-dot {
  width: 4px;
  height: 4px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--green);
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: var(--white);
  padding: var(--space-9) 0 var(--space-7);
}

.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: var(--space-9);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  margin-bottom: var(--space-4);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-4);
}

.footer-brand-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  max-width: 280px;
}

.footer-rc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin-top: var(--space-3);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--t-fast);
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  transition: color var(--t-fast);
}

.footer-legal a:hover { color: rgba(255,255,255,0.55); }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.breadcrumb a { transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--green-deep); }
.breadcrumb-sep { opacity: 0.4; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: var(--space-9) 0 var(--space-8);
  border-bottom: 1px solid var(--border);
}

.page-hero .section-tag { margin-bottom: var(--space-4); }
.page-hero h1 { margin-bottom: var(--space-4); }
.page-hero p  { font-size: 18px; max-width: 600px; }

/* ── FEATURE LIST ── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.feature-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.feature-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-pale);
  border: 1.5px solid var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--green-deep);
  margin-top: 2px;
}

.feature-item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.feature-item p strong { color: var(--text); font-weight: 600; }

/* ── SPLIT SECTION ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  align-items: center;
}

.split--reverse .split-visual { order: -1; }

.split-visual {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ── TERMINAL ── */
.terminal-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot-red    { background: #ff5f57; }
.terminal-dot-yellow { background: #febc2e; }
.terminal-dot-green  { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.terminal-body {
  padding: var(--space-6);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.9;
}

.t-prompt { color: var(--green-dark); }
.t-ok     { color: #00aa33; }
.t-warn   { color: #b87000; }
.t-dim    { color: var(--text-dim); }
.t-hi     { color: var(--text); font-weight: 600; }

.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--green-dark);
  border-radius: 1px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink { 50% { opacity: 0; } }

/* ── LOGOS ROW ── */
.logos-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.logo-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--white);
  transition: all var(--t-base);
}

.logo-chip:hover {
  border-color: var(--green-dark);
  color: var(--green-deep);
  background: var(--green-pale);
}

/* ── GRIDS ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--green-pale);
  border: 1.5px solid var(--green-mid);
  border-radius: var(--r-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0,230,57,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band h2 { margin-bottom: var(--space-3); }
.cta-band p  { font-size: 17px; max-width: 520px; margin: 0 auto var(--space-7); }

.cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── MOBILE NAV ── */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 950;
  flex-direction: column;
  padding: var(--space-7) var(--space-6);
  gap: var(--space-4);
  overflow-y: auto;
}

.nav-mobile.open { display: flex; }

.nav-mobile-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  font-size: 24px;
  color: var(--text);
  cursor: pointer;
}

.nav-mobile-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.03em;
  transition: color var(--t-fast);
}

.nav-mobile-link:hover { color: var(--green-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta-wrap { display: none; }
  .nav-hamburger { display: flex; }

  .topbar-left { display: none; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: var(--space-7); }
  .split--reverse .split-visual { order: 0; }

  .footer-top { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; gap: var(--space-4); text-align: center; }

  .cta-band { padding: var(--space-8) var(--space-5); }

  .section { padding: var(--space-8) 0; }
}

/* ── PRODUCTS DROPDOWN ── */
.nav-dropdown-menu--products {
  min-width: 280px;
}

.nav-dropdown-item--product {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-product-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}

.nav-product-icon--dayslen   { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.nav-product-icon--savemycell { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.nav-product-icon--clearpass  { background: linear-gradient(135deg, #00b82d, #00e639); }

.nav-mobile-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding: var(--space-3) 0 var(--space-2);
  border-top: 1px solid var(--border);
  margin-top: var(--space-2);
}
