/* ═══════════════════════════════════════════════════════════
   TROVARCIS.COM — Design System
   Semi-dark theme. Professional. Welcoming.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Colors */
  --bg: #141418;
  --bg-surface: #1C1C22;
  --bg-surface-hover: #24242C;
  --border: #2A2A35;
  --border-subtle: #222230;

  --text: #E0E0E6;
  --text-secondary: #9090A0;
  --text-muted: #606070;

  --accent: #00BFFF;
  --accent-bright: #00E5FF;
  --accent-dim: #0099CC;
  --accent-glow: rgba(0, 191, 255, 0.08);
  --accent-glow-strong: rgba(0, 191, 255, 0.15);

  --success: #00E676;
  --white: #FFFFFF;

  /* Typography */
  --font-display: 'Anybody', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Layout */
  --max-width: 1120px;
  --max-width-narrow: 720px;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Motion */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}


/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-bright);
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

img { max-width: 100%; display: block; }


/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}


/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: rgba(20, 20, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-normal);
}

.nav.scrolled {
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 34px;
  height: 34px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-logo-text .accent {
  color: var(--accent);
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  text-decoration: none;
}

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


/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */

.hero {
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-4xl);
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: var(--space-lg);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto var(--space-2xl);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 44px;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-bright);
  color: var(--bg);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-glow);
}


/* ═══════════════════════════════════════════════════════════
   PRODUCTS
   ═══════════════════════════════════════════════════════════ */

.products {
  padding: var(--space-4xl) 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: var(--space-3xl);
}

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

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: border-color var(--transition-normal), transform var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow-strong), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.product-card:hover::after {
  opacity: 1;
}

.product-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.product-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--text);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.product-type {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.product-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.product-features {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 6px 0;
}

.product-features li svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.product-footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
}

.product-status.live {
  color: var(--success);
  background: rgba(0, 230, 118, 0.08);
}

.product-status.coming {
  color: var(--text-muted);
  background: rgba(96, 96, 112, 0.12);
}

.product-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.product-status.live .product-status-dot { background: var(--success); }
.product-status.coming .product-status-dot { background: var(--text-muted); }

.product-link {
  font-size: 0.875rem;
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════
   INFRA STRIP
   ═══════════════════════════════════════════════════════════ */

.infra {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.infra-item {
  padding: var(--space-lg) var(--space-md);
}

.infra-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.infra-value .accent { color: var(--accent); }

.infra-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}


/* ═══════════════════════════════════════════════════════════
   CTA / NEWSLETTER
   ═══════════════════════════════════════════════════════════ */

.cta {
  padding: var(--space-4xl) 0;
  text-align: center;
}

.cta-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-2xl);
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta h2 {
  font-weight: 700;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.cta-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.cta-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 440px;
  margin: 0 auto;
}

.cta-input {
  flex: 1;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition-fast);
  min-height: 44px;
}

.cta-input::placeholder { color: var(--text-muted); }
.cta-input:focus { border-color: var(--accent); }

.cta-privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 280px;
}

.footer-col-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-social-link {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-social-link:hover { color: var(--text); }

.footer-social-link svg {
  width: 20px;
  height: 20px;
}


/* ═══════════════════════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════════════════════ */

.legal {
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-4xl);
}

.legal h1 {
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3xl);
}

.legal h2 {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.legal p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal ul {
  list-style: none;
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.legal ul li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  position: relative;
  padding-left: var(--space-md);
}

.legal ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}


/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-badge-dot {
    animation: none;
  }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-3xl);
  }

  .hero::before {
    width: 300px;
    height: 300px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 480px) {
  .infra-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}
