/* Getmancar Hub Theme Variables */
:root {
  --bg-dark: #0b0908;
  --bg-card: rgba(28, 22, 19, 0.65);
  --bg-card-hover: rgba(38, 30, 26, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 105, 0, 0.3);
  
  --color-primary: #FF6900;         /* Blaze Orange */
  --color-primary-glow: rgba(255, 105, 0, 0.35);
  --color-accent: #FFA500;
  --color-accent-glow: rgba(255, 165, 0, 0.2);
  --color-green: #10B981;
  --color-red: #EF4444;
  
  --text-main: #F4F4F5;
  --text-muted: #A1A1AA;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(255, 105, 0, 0.08) 0%, rgba(11, 9, 8, 0) 50%);
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-primary { color: var(--color-primary); }
.text-green { color: var(--color-green); }
.text-red { color: var(--color-red); }
.font-semibold { font-weight: 600; }

/* Language Switcher Logic */
html[lang="uk"] .lang-en { display: none !important; }
html[lang="en"] .lang-uk { display: none !important; }

/* Header & Logo */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(11, 9, 8, 0.85);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
}
.logo-accent {
  color: var(--color-primary);
}

/* Hub Navigation */
.hub-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}
.hub-nav-link {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.625rem;
  border-radius: 6px;
  transition: var(--transition-smooth);
  white-space: nowrap;
}
.hub-nav-link:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.06); }
.hub-nav-link[aria-current="page"] { color: var(--text-main); background: rgba(255, 105, 0, 0.12); border: 1px solid rgba(255, 105, 0, 0.2); }
.hub-nav-link:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition-smooth);
}
.hamburger:hover { border-color: var(--border-color-hover); }
.hamburger:hover span { background: var(--text-main); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Language Switcher */
.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 3px;
  border-radius: 9999px;
}
.lang-btn {
  padding: 0.35rem 0.85rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: var(--transition-smooth);
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] {
  background: var(--color-primary);
  color: #000;
}
.lang-btn:focus-visible {
  outline: 2px solid var(--color-primary);
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}
.verified-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}
h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 30%, #ff883b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}
.hero-desc strong {
  color: var(--text-main);
}

/* CTA Container */
.cta-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cta-primary-wrapper {
  display: flex;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--color-primary);
  color: #000;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 2.25rem;
  border-radius: 12px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px var(--color-primary-glow);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
}
.btn:hover {
  background: #ff883b;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 105, 0, 0.5);
}
.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
.cta-secondary-grid {
  display: flex;
  gap: 0.75rem;
}
.btn-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  cursor: pointer;
}
.btn-sub:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color-hover);
}
.cta-hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.cta-hint strong {
  color: var(--color-primary);
}

/* Copy Promo Widget */
.hero-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}
.hero-widget:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 12px 40px rgba(255, 105, 0, 0.05);
}
.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.widget-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.verified-tag {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.promo-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-smooth);
}
.promo-box:hover {
  border-color: rgba(255, 105, 0, 0.2);
}
.promo-code {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.05em;
}
.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}
.copy-btn:focus-visible {
  outline: 2px solid var(--color-primary);
}
.widget-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Info Section */
.info-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem;
}
.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}
.table-container {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
  color: var(--text-main);
}
tr:last-child td {
  border-bottom: none;
}
.steps-list {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.steps-list li {
  font-size: 0.98rem;
  color: var(--text-main);
}
.steps-list li strong {
  color: var(--text-main);
}

/* Calculator Section */
.calculator-section {
  margin-bottom: 4rem;
}
.calculator-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(18, 14, 12, 0.75) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.calc-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.calc-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: white;
}
.calc-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
}
.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.input-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.input-group select, .input-group input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}
.input-group select:focus, .input-group input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.15);
}
.input-group-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.input-group-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.input-group-checkbox label {
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Calculator Results */
.calc-results {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.result-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.result-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
}
.discount-row .result-value {
  color: var(--color-red);
}
.calc-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 0.25rem 0;
}
.final-row .result-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
}
.final-row .result-value {
  font-size: 1.6rem;
  font-weight: 800;
}
.bonus-remaining {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.25rem;
  font-style: italic;
}

/* Footer Style */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  background: #060505;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo { font-size: 1.15rem; margin-bottom: 0.75rem; display: inline-block; text-decoration: none; color: var(--text-main); font-weight: 800; }
.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 260px;
}
.footer-nav-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--text-main); }
.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 0.75rem;
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); opacity: 0.8; }
  50% { transform: scale(1.2); box-shadow: 0 0 16px rgba(16, 185, 129, 0.9); opacity: 1; }
  100% { transform: scale(1); box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); opacity: 0.8; }
}

/* Responsiveness */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hub-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(11, 9, 8, 0.97);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    gap: 0.25rem;
    z-index: 99;
    -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  }
  .hub-nav.open { display: flex; }
  .hub-nav-link { padding: 0.625rem 0.875rem; font-size: 0.9375rem; }
  .hamburger { display: flex; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2.15rem;
  }
  .hero-section {
    padding: 2.5rem 0 2rem;
  }
  .calculator-card {
    padding: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* ==========================================================================
   MOBILE ADAPTATION & ACCESSIBILITY FIXES (AUDIT 2026)
   ========================================================================== */

/* === Safe Area & Viewport Integration === */
.header, header {
  padding-top: env(safe-area-inset-top, 0px) !important;
}

@media (max-width: 1024px) {
  .hub-nav {
    top: calc(64px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }
}

/* === Touch Targets Optimization === */
@media (max-width: 768px) {
  .hamburger {
    width: 44px !important;
    height: 44px !important;
    padding: 12px !important;
  }
  
  .lang-btn {
    padding: 8px 14px !important;
    font-size: 0.9rem !important;
  }
}

/* === iOS Zoom Prevention (Inputs >= 16px) === */
@media (max-width: 768px) {
  .calc-select,
  .input-group select,
  .input-group input,
  .invest-num-field {
    font-size: 16px !important;
  }
}

/* === Accessibility: Focus Visible compliance === */
.invest-num-field:focus-visible,
.calc-select:focus-visible,
.input-group select:focus-visible,
.input-group input:focus-visible {
  outline: none;
  border-color: var(--color-primary) !important;
  box-shadow: var(--focus-ring) !important;
}

.invest-num-field:focus:not(:focus-visible),
.calc-select:focus:not(:focus-visible),
.input-group select:focus:not(:focus-visible),
.input-group input:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
  border-color: var(--border-color);
}

/* === Reduced Motion Integration === */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: scroll !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}


/* ── Audit Utility Classes (Sprint 2) ── */
.section-shaded { background: rgba(0, 0, 0, 0.1); }
.border-t { border-top: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
