/* ============================================================
   TEKH SOVA TOV — Main Stylesheet
   Dark cyberpunk theme, neon accents, sidebar layout
   Prefix: tsv-
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --tsv-bg-primary: #0A0F1C;
  --tsv-bg-secondary: #141B2D;
  --tsv-bg-card: #141B2D;
  --tsv-bg-elevated: #1a2236;
  --tsv-surface-hover: #1E2A3F;
  --tsv-neon-green: #00D4FF;
  --tsv-neon-blue: #7B2FFF;
  --tsv-neon-green-dim: rgba(0, 212, 255, 0.15);
  --tsv-neon-blue-dim: rgba(123, 47, 255, 0.12);
  --tsv-neon-red: #ff3355;
  --tsv-text-primary: #E8EAF0;
  --tsv-text-secondary: #8B95A8;
  --tsv-text-muted: #4a5568;
  --tsv-border: #1E2A3F;
  --tsv-border-glow: rgba(0, 212, 255, 0.25);
  --tsv-sidebar-width: 220px;
  --tsv-sidebar-collapsed: 60px;
  --tsv-transition-base: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --tsv-font-mono: 'Courier New', 'Consolas', monospace;
  --tsv-font-body: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --tsv-radius-sm: 6px;
  --tsv-radius-md: 10px;
  --tsv-radius-lg: 16px;
  --tsv-spacing-unit: 7px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body.tsv-body {
  font-family: var(--tsv-font-body);
  background: var(--tsv-bg-primary);
  color: var(--tsv-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea { font: inherit; color: inherit; }

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--tsv-neon-green);
  outline-offset: 2px;
}

::selection {
  background: var(--tsv-neon-green);
  color: var(--tsv-bg-primary);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--tsv-bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--tsv-text-muted);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--tsv-neon-green); }


/* ============================================================
   SIDEBAR NAVIGATION
   ============================================================ */

.tsv-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--tsv-sidebar-width);
  height: 100vh;
  background: var(--tsv-bg-secondary);
  border-right: 1px solid var(--tsv-border);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: width var(--tsv-transition-base), transform var(--tsv-transition-base);
}

.tsv-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--tsv-border);
  min-height: 72px;
}

.tsv-logo-glyph {
  flex-shrink: 0;
}

.tsv-logo-img {
  border-radius: 10px;
  object-fit: cover;
}

@keyframes tsv-logo-rotate {
  0%   { filter: hue-rotate(0deg); }
  50%  { filter: hue-rotate(30deg); }
  100% { filter: hue-rotate(0deg); }
}

.tsv-sidebar__title {
  font-family: var(--tsv-font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--tsv-neon-green);
  white-space: nowrap;
  overflow: hidden;
}

.tsv-sidebar__menu {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.tsv-sidebar__item {
  position: relative;
}

.tsv-sidebar__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  color: var(--tsv-text-secondary);
  transition: color var(--tsv-transition-base), background var(--tsv-transition-base);
  position: relative;
}

.tsv-sidebar__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 28px;
  background: var(--tsv-neon-green);
  border-radius: 0 3px 3px 0;
  transition: transform var(--tsv-transition-base);
}

.tsv-sidebar__item--active .tsv-sidebar__link::before,
.tsv-sidebar__link:hover::before {
  transform: translateY(-50%) scaleY(1);
}

.tsv-sidebar__item--active .tsv-sidebar__link,
.tsv-sidebar__link:hover {
  color: var(--tsv-text-primary);
  background: var(--tsv-neon-green-dim);
}

.tsv-sidebar__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.tsv-sidebar__label {
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}

.tsv-sidebar__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--tsv-border);
}

.tsv-sidebar__status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--tsv-text-muted);
}

.tsv-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tsv-neon-green);
  flex-shrink: 0;
  animation: tsv-blink 2.5s ease-in-out infinite;
}

@keyframes tsv-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- Mobile Toggle --- */
.tsv-mobile-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tsv-bg-secondary);
  border: 1px solid var(--tsv-border);
  align-items: center;
  justify-content: center;
}

.tsv-hamburger,
.tsv-hamburger::before,
.tsv-hamburger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--tsv-neon-green);
  border-radius: 2px;
  transition: transform var(--tsv-transition-base), opacity var(--tsv-transition-base);
}
.tsv-hamburger { position: relative; }
.tsv-hamburger::before { content: ''; position: absolute; top: -6px; }
.tsv-hamburger::after  { content: ''; position: absolute; top: 6px; }

.tsv-mobile-toggle[aria-expanded="true"] .tsv-hamburger {
  background: transparent;
}
.tsv-mobile-toggle[aria-expanded="true"] .tsv-hamburger::before {
  transform: translateY(6px) rotate(45deg);
}
.tsv-mobile-toggle[aria-expanded="true"] .tsv-hamburger::after {
  transform: translateY(-6px) rotate(-45deg);
}


/* ============================================================
   MAIN CONTENT
   ============================================================ */

.tsv-main {
  margin-left: var(--tsv-sidebar-width);
  min-height: 100vh;
  transition: margin-left var(--tsv-transition-base);
}


/* ============================================================
   HERO SECTION
   ============================================================ */

.tsv-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tsv-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.tsv-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(0, 255, 136, 0.06) 0%,
    transparent 60%
  ),
  radial-gradient(
    ellipse at 70% 30%,
    rgba(0, 136, 255, 0.05) 0%,
    transparent 50%
  );
  z-index: 1;
}

.tsv-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  max-width: 800px;
}

.tsv-hero__badge {
  display: inline-block;
  font-family: var(--tsv-font-mono);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--tsv-neon-green);
  border: 1px solid var(--tsv-border-glow);
  border-radius: 20px;
  padding: 6px 20px;
  margin-bottom: 32px;
  animation: tsv-fadeSlideUp 0.7s 0.2s both;
}

.tsv-hero__heading {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.tsv-hero__line {
  display: block;
}

.tsv-hero__line--1 {
  color: var(--tsv-text-primary);
  animation: tsv-fadeSlideUp 0.7s 0.4s both;
}

.tsv-hero__line--2 {
  background: linear-gradient(135deg, var(--tsv-neon-green), var(--tsv-neon-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: tsv-fadeSlideUp 0.7s 0.55s both;
}

.tsv-hero__tagline {
  font-size: 1.15rem;
  color: var(--tsv-text-secondary);
  margin-bottom: 48px;
  animation: tsv-fadeSlideUp 0.7s 0.7s both;
}

.tsv-hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 44px;
  animation: tsv-fadeSlideUp 0.7s 0.85s both;
}

.tsv-stat-block {
  text-align: center;
}

.tsv-stat-block__value {
  display: inline;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--tsv-neon-green);
  font-family: var(--tsv-font-mono);
}

.tsv-stat-block__suffix {
  font-size: 1.2rem;
  color: var(--tsv-neon-green);
  font-weight: 700;
}

.tsv-stat-block__label {
  display: block;
  font-size: 0.72rem;
  color: var(--tsv-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.tsv-hero__cta {
  display: inline-block;
  padding: 14px 36px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--tsv-bg-primary);
  background: var(--tsv-neon-green);
  border-radius: var(--tsv-radius-md);
  transition: box-shadow var(--tsv-transition-base), transform var(--tsv-transition-base);
  animation: tsv-fadeSlideUp 0.7s 1s both;
}

.tsv-hero__cta:hover {
  box-shadow: 0 0 28px rgba(0, 255, 136, 0.4);
  transform: translateY(-2px);
}

/* Scroll hint */
.tsv-hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.tsv-scroll-arrow {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--tsv-neon-green);
  border-bottom: 2px solid var(--tsv-neon-green);
  transform: rotate(45deg);
  animation: tsv-scroll-bounce 2s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes tsv-scroll-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}


/* ============================================================
   SECTIONS — SHARED
   ============================================================ */

.tsv-section {
  padding: 80px 40px;
  position: relative;
}

.tsv-section__header {
  max-width: 700px;
  margin-bottom: 48px;
}

.tsv-section__tag {
  display: block;
  font-family: var(--tsv-font-mono);
  font-size: 0.72rem;
  color: var(--tsv-neon-blue);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.tsv-section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.15;
}

.tsv-section__subtitle {
  font-size: 0.95rem;
  color: var(--tsv-text-secondary);
}

/* Reveal on scroll */
.tsv-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tsv-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   DASHBOARD — DEVICE CARDS
   ============================================================ */

.tsv-device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.tsv-device-card {
  background: var(--tsv-bg-card);
  border: 1px solid var(--tsv-border);
  border-radius: var(--tsv-radius-lg);
  padding: 22px;
  transition: border-color var(--tsv-transition-base), box-shadow var(--tsv-transition-base), transform var(--tsv-transition-base);
  position: relative;
  overflow: hidden;
}

.tsv-device-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tsv-neon-green), transparent);
  opacity: 0;
  transition: opacity var(--tsv-transition-base);
}

.tsv-device-card:hover {
  border-color: var(--tsv-border-glow);
  box-shadow: 0 4px 24px rgba(0, 255, 136, 0.08);
  transform: translateY(-3px);
}

.tsv-device-card:hover::before {
  opacity: 1;
}

.tsv-device-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.tsv-device-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--tsv-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tsv-device-card__icon--light   { background: rgba(255, 193, 7, 0.12); color: #ffc107; }
.tsv-device-card__icon--thermo  { background: rgba(255, 87, 34, 0.12); color: #ff5722; }
.tsv-device-card__icon--lock    { background: rgba(0, 255, 136, 0.1);  color: var(--tsv-neon-green); }
.tsv-device-card__icon--energy  { background: rgba(0, 136, 255, 0.12); color: var(--tsv-neon-blue); }
.tsv-device-card__icon--speaker { background: rgba(156, 39, 176, 0.12); color: #9c27b0; }
.tsv-device-card__icon--camera  { background: rgba(255, 51, 85, 0.12); color: var(--tsv-neon-red); }

.tsv-device-card__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tsv-font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--tsv-neon-green);
}

.tsv-device-card__status--secure { color: var(--tsv-neon-green); }
.tsv-device-card__status--standby { color: var(--tsv-text-muted); }

/* Pulse ring animation */
.tsv-pulse-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tsv-neon-green);
  position: relative;
  flex-shrink: 0;
}

.tsv-pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--tsv-neon-green);
  animation: tsv-pulse 2s ease-out infinite;
}

.tsv-pulse-ring--red {
  background: var(--tsv-neon-red);
}
.tsv-pulse-ring--red::after {
  border-color: var(--tsv-neon-red);
}

@keyframes tsv-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.tsv-device-card__name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.tsv-device-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.tsv-device-card__bar {
  flex: 1;
  height: 4px;
  background: var(--tsv-bg-primary);
  border-radius: 2px;
  overflow: hidden;
}

.tsv-device-card__bar-fill {
  height: 100%;
  width: var(--tsv-bar-width, 0%);
  background: linear-gradient(90deg, var(--tsv-neon-green), var(--tsv-neon-blue));
  border-radius: 2px;
  transition: width 1.2s ease;
}

.tsv-device-card__value {
  font-family: var(--tsv-font-mono);
  font-size: 0.8rem;
  color: var(--tsv-neon-green);
  min-width: 36px;
  text-align: right;
}

.tsv-device-card__reading {
  margin-bottom: 10px;
}

.tsv-device-card__temp {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--tsv-font-mono);
  color: var(--tsv-text-primary);
}

.tsv-device-card__unit {
  font-size: 0.9rem;
  color: var(--tsv-text-muted);
  margin-left: 4px;
}

.tsv-device-card__detail {
  font-size: 0.82rem;
  color: var(--tsv-text-secondary);
}

.tsv-device-card__zone {
  display: block;
  font-size: 0.7rem;
  color: var(--tsv-text-muted);
  font-family: var(--tsv-font-mono);
  margin-top: 6px;
}


/* ============================================================
   SERVICES — HORIZONTAL SCROLL + 3D TILT
   ============================================================ */

.tsv-hscroll-track {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  cursor: grab;
}

.tsv-hscroll-track:active { cursor: grabbing; }

.tsv-hscroll-inner {
  display: flex;
  gap: 24px;
  padding: 4px 4px 4px 0;
  width: max-content;
}

.tsv-service-card {
  width: 320px;
  flex-shrink: 0;
  background: var(--tsv-bg-card);
  border: 1px solid var(--tsv-border);
  border-radius: var(--tsv-radius-lg);
  padding: 32px 28px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color var(--tsv-transition-base);
  transform-style: preserve-3d;
  perspective: 800px;
  will-change: transform;
}

.tsv-service-card:hover {
  border-color: var(--tsv-neon-blue);
  box-shadow: 0 8px 32px rgba(0, 136, 255, 0.12), 0 0 0 1px rgba(0, 136, 255, 0.15);
}

.tsv-service-card__number {
  font-family: var(--tsv-font-mono);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--tsv-neon-blue-dim);
  background: linear-gradient(135deg, var(--tsv-neon-blue), var(--tsv-neon-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 18px;
}

.tsv-service-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.tsv-service-card__desc {
  font-size: 0.88rem;
  color: var(--tsv-text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.tsv-service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tsv-service-card__tags li {
  font-family: var(--tsv-font-mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  background: var(--tsv-neon-green-dim);
  color: var(--tsv-neon-green);
  border-radius: 12px;
  letter-spacing: 0.5px;
}


/* ============================================================
   TECH STACK — HEXAGON GRID
   ============================================================ */

.tsv-hex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.tsv-hex {
  width: 110px;
  height: 127px;
  position: relative;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform 0.4s ease;
  opacity: 0;
  transform: scale(0.6) rotate(-15deg);
}

.tsv-hex--visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.tsv-hex__inner {
  position: absolute;
  inset: 2px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--tsv-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--tsv-transition-base);
}

.tsv-hex:hover .tsv-hex__inner {
  background: var(--tsv-bg-elevated);
}

.tsv-hex:hover {
  transform: scale(1.12);
}

.tsv-hex::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, var(--tsv-neon-green), var(--tsv-neon-blue));
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.tsv-hex:hover::before {
  opacity: 0.9;
}

.tsv-hex__text {
  font-family: var(--tsv-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tsv-text-secondary);
  text-align: center;
  letter-spacing: 0.5px;
  transition: color var(--tsv-transition-base);
  z-index: 1;
}

.tsv-hex:hover .tsv-hex__text {
  color: var(--tsv-text-primary);
}


/* ============================================================
   ROI CALCULATOR
   ============================================================ */

.tsv-calc-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  background: var(--tsv-bg-card);
  border: 1px solid var(--tsv-border);
  border-radius: var(--tsv-radius-lg);
  padding: 40px;
}

.tsv-calc-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Floating label inputs */
.tsv-input-group {
  position: relative;
}

.tsv-input {
  width: 100%;
  padding: 18px 14px 6px;
  background: var(--tsv-bg-primary);
  border: 1px solid var(--tsv-border);
  border-radius: var(--tsv-radius-sm);
  color: var(--tsv-text-primary);
  font-size: 0.95rem;
  transition: border-color var(--tsv-transition-base);
  outline: none;
}

.tsv-input--textarea {
  resize: vertical;
  min-height: 100px;
}

.tsv-input__label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.88rem;
  color: var(--tsv-text-muted);
  pointer-events: none;
  transition: top var(--tsv-transition-base), font-size var(--tsv-transition-base), color var(--tsv-transition-base);
}

.tsv-input--textarea ~ .tsv-input__label {
  top: 18px;
  transform: none;
}

.tsv-input:focus ~ .tsv-input__label,
.tsv-input:not(:placeholder-shown) ~ .tsv-input__label,
.tsv-input:valid ~ .tsv-input__label {
  top: 8px;
  transform: none;
  font-size: 0.68rem;
  color: var(--tsv-neon-green);
}

/* input type=number always has a value, so we force label up */
input[type="number"].tsv-input ~ .tsv-input__label {
  top: 8px;
  transform: none;
  font-size: 0.68rem;
  color: var(--tsv-neon-green);
}

.tsv-input__border {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--tsv-neon-green);
  border-radius: 1px;
  transition: width 0.4s ease, left 0.4s ease;
}

.tsv-input:focus ~ .tsv-input__border {
  width: 100%;
  left: 0;
}

.tsv-input:focus {
  border-color: rgba(0, 255, 136, 0.3);
}

.tsv-input__hint {
  display: block;
  font-size: 0.68rem;
  color: var(--tsv-text-muted);
  margin-top: 4px;
  padding-left: 2px;
}

/* Calculator button */
.tsv-calc-btn {
  position: relative;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--tsv-neon-green), #00cc6e);
  color: var(--tsv-bg-primary);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--tsv-radius-md);
  overflow: hidden;
  transition: transform var(--tsv-transition-base);
  align-self: flex-start;
}

.tsv-calc-btn:hover { transform: translateY(-2px); }

.tsv-calc-btn__glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tsv-calc-btn:hover .tsv-calc-btn__glow { opacity: 1; }

/* Results panel */
.tsv-calc-results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px;
}

.tsv-calc-results__placeholder {
  text-align: center;
  color: var(--tsv-text-muted);
  font-size: 0.88rem;
  font-style: italic;
}

.tsv-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--tsv-border);
}

.tsv-result-row:last-child { border-bottom: none; }

.tsv-result-row__label {
  font-size: 0.85rem;
  color: var(--tsv-text-secondary);
}

.tsv-result-row__value {
  font-family: var(--tsv-font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tsv-neon-green);
}

.tsv-result-row--highlight {
  padding: 18px 16px;
  margin-top: 8px;
  background: var(--tsv-neon-green-dim);
  border-radius: var(--tsv-radius-sm);
  border-bottom: none;
}

.tsv-result-row--highlight .tsv-result-row__value {
  font-size: 1.6rem;
}

.tsv-result-row--payback .tsv-result-row__value {
  color: var(--tsv-neon-blue);
}


/* ============================================================
   CONTACT SECTION
   ============================================================ */

.tsv-contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  max-width: 900px;
}

.tsv-contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tsv-input-group--full {
  grid-column: 1 / -1;
}

.tsv-contact-btn {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--tsv-neon-green);
  color: var(--tsv-neon-green);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--tsv-radius-md);
  justify-self: start;
  transition: background var(--tsv-transition-base), color var(--tsv-transition-base), box-shadow var(--tsv-transition-base);
}

.tsv-contact-btn:hover {
  background: var(--tsv-neon-green);
  color: var(--tsv-bg-primary);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.tsv-contact-btn__arrow {
  font-size: 1.2rem;
  transition: transform var(--tsv-transition-base);
}

.tsv-contact-btn:hover .tsv-contact-btn__arrow {
  transform: translateX(4px);
}

.tsv-contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.tsv-contact-info__block {
  padding-left: 18px;
  border-left: 2px solid var(--tsv-border);
  transition: border-color var(--tsv-transition-base);
}

.tsv-contact-info__block:hover {
  border-left-color: var(--tsv-neon-green);
}

.tsv-contact-info__heading {
  font-size: 0.72rem;
  font-family: var(--tsv-font-mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--tsv-neon-blue);
  margin-bottom: 6px;
}

.tsv-contact-info__link {
  color: var(--tsv-neon-green);
  font-size: 0.92rem;
  transition: color var(--tsv-transition-base);
}

.tsv-contact-info__link:hover { color: var(--tsv-text-primary); }

.tsv-contact-info__text {
  font-size: 0.88rem;
  color: var(--tsv-text-secondary);
}


/* ============================================================
   FOOTER — TERMINAL STYLE
   ============================================================ */

.tsv-footer {
  padding: 40px;
  border-top: 1px solid var(--tsv-border);
  background: var(--tsv-bg-secondary);
}

/* Company Card (Contact section) */
.tsv-company-card {
  max-width: 620px;
  margin: 0 auto 48px;
  padding: 32px 36px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--tsv-radius-md);
  background: linear-gradient(135deg, rgba(20, 27, 45, 0.95), rgba(14, 20, 36, 0.98));
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(0, 212, 255, 0.06);
}

.tsv-company-card__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
}

.tsv-company-card__logo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.tsv-company-card__title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tsv-company-card__name {
  font-family: var(--tsv-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tsv-text-primary);
  letter-spacing: 0.03em;
  margin: 0;
}

.tsv-company-card__badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tsv-neon-green);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 6px;
  padding: 3px 10px;
}

.tsv-company-card__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tsv-company-card__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tsv-company-card__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(123, 47, 255, 0.1);
  border: 1px solid rgba(123, 47, 255, 0.15);
  color: var(--tsv-neon-blue);
}

.tsv-company-card__label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tsv-text-muted);
  min-width: 70px;
}

.tsv-company-card__value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--tsv-text-primary);
}

.tsv-company-card__link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--tsv-neon-green);
  transition: color var(--tsv-transition-base);
}

.tsv-company-card__link:hover {
  color: var(--tsv-neon-blue);
}

/* Single-column contact form (no sidebar) */
.tsv-contact-grid--single {
  display: block;
  max-width: 620px;
  margin: 0 auto;
}

.tsv-contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .tsv-company-card { padding: 24px 20px; }
  .tsv-company-card__header { flex-direction: column; text-align: center; }
  .tsv-company-card__item { flex-wrap: wrap; }
  .tsv-contact-form__row { grid-template-columns: 1fr; }
}

.tsv-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--tsv-text-muted);
}

.tsv-footer__pp-link {
  color: var(--tsv-text-secondary);
  transition: color var(--tsv-transition-base);
}

.tsv-footer__pp-link:hover { color: var(--tsv-neon-green); }


/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes tsv-fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tsv-glow-border {
  0%, 100% { border-color: var(--tsv-border); }
  50% { border-color: var(--tsv-border-glow); }
}

/* Toast notification */
.tsv-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 14px 24px;
  background: var(--tsv-bg-elevated);
  border: 1px solid var(--tsv-neon-green);
  border-radius: var(--tsv-radius-md);
  color: var(--tsv-neon-green);
  font-size: 0.88rem;
  z-index: 9999;
  animation: tsv-toastIn 0.4s ease forwards;
  box-shadow: 0 4px 24px rgba(0, 255, 136, 0.15);
}

.tsv-toast--out {
  animation: tsv-toastOut 0.3s ease forwards;
}

@keyframes tsv-toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes tsv-toastOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(20px); }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .tsv-calc-panel {
    grid-template-columns: 1fr;
  }

  .tsv-contact-grid {
    grid-template-columns: 1fr;
  }

  .tsv-contact-form {
    grid-template-columns: 1fr;
  }

  .tsv-hex {
    width: 90px;
    height: 104px;
  }
}

@media (max-width: 768px) {
  .tsv-sidebar {
    transform: translateX(-100%);
    width: 240px;
  }

  .tsv-sidebar--open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  }

  .tsv-mobile-toggle {
    display: flex;
  }

  .tsv-main {
    margin-left: 0;
  }

  .tsv-section {
    padding: 48px 20px;
  }

  .tsv-hero__stats {
    flex-direction: column;
    gap: 20px;
  }

  .tsv-calc-panel {
    padding: 24px;
  }

  .tsv-device-grid {
    grid-template-columns: 1fr;
  }

  .tsv-hex {
    width: 80px;
    height: 92px;
  }

  .tsv-hex__text {
    font-size: 0.6rem;
  }

  .tsv-footer {
    padding: 24px 16px;
  }

  .tsv-footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .tsv-service-card {
    width: 280px;
  }

  .tsv-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .tsv-hero__heading {
    font-size: 3rem;
  }

  .tsv-contact-info {
    gap: 20px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
}
