/* ============================================================
   GROWTHMARKT — Global Stylesheet
   Brand: Void Cyan
   Version: 1.0
   ============================================================ */

:root {
  --bg:            #0C1520;
  --surface:       #152030;
  --surface-2:     #1C2B3E;
  --surface-3:     #22344C;
  --accent:        #00D4FF;
  --accent-dim:    rgba(0, 212, 255, 0.10);
  --accent-mid:    rgba(0, 212, 255, 0.20);
  --alert:         #FF3B6E;
  --alert-dim:     rgba(255, 59, 110, 0.12);
  --text:          #EEF6FF;
  --text-soft:     rgba(238, 246, 255, 0.92);
  --muted:         #9BBFD8;
  --border:        rgba(0, 212, 255, 0.16);
  --border-subtle: rgba(255, 255, 255, 0.12);

  --font-heading: 'Trebuchet MS', 'Trebuchet', sans-serif;
  --font-body:    'Calibri', 'Calibri Body', sans-serif;

  --section-pad:     96px;
  --container-max:   1240px;
  --container-pad:   24px;
  --radius:          6px;
  --radius-lg:       12px;

  --glow-sm:     0 0 24px rgba(0, 212, 255, 0.18);
  --glow-md:     0 0 48px rgba(0, 212, 255, 0.28);
  --glow-lg:     0 0 80px rgba(0, 212, 255, 0.35);
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.45);

  --transition:  0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.09375rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video  { max-width: 100%; display: block; }
a           { color: inherit; text-decoration: none; }
ul, ol      { list-style: none; }
button      { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); font-size: inherit; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.625rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p         { color: var(--text-soft); }
strong    { color: var(--text); font-weight: 600; }

.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted); }
.text-alert  { color: var(--alert); }

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

section { padding: var(--section-pad) 0; }

/* ============ SECTION LABEL ============ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-label::before {
  content: none;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #1ADAFF;
  border-color: #1ADAFF;
  box-shadow: var(--glow-md);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-lg {
  padding: 18px 44px;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
}
.nav-logo .logo-dot { color: var(--accent); }

.nav-logo::before,
.dash-logo::before,
.audit-logo::before,
.calc-logo::before,
.results-logo::before,
.auth-left-logo::before,
.auth-logo::before,
.profile-topbar-logo::before {
  content: '•';
  color: var(--accent);
  margin-right: 7px;
  font-size: 1.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--transition);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }

.nav-avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1.5px solid rgba(0, 212, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: box-shadow var(--transition), border-color var(--transition);
  flex-shrink: 0;
  position: relative;
}
.nav-avatar-badge:hover {
  box-shadow: var(--glow-sm);
  border-color: rgba(0, 212, 255, 0.6);
}

/* ── Dashboard capsule (cyan mirror of profile capsule) ── */
.nav-dashboard-capsule {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 100px;
  border: 1.5px solid rgba(0, 212, 255, 0.32);
  background: rgba(0, 212, 255, 0.05);
  text-decoration: none;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  flex-shrink: 0;
}
.nav-dashboard-capsule:hover {
  border-color: rgba(0, 212, 255, 0.62);
  background: rgba(0, 212, 255, 0.10);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.15);
}
.nav-dashboard-capsule-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border-right: 1px solid rgba(0, 212, 255, 0.18);
  flex-shrink: 0;
}
.nav-dashboard-capsule-label {
  font-size: 0.62rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--accent);
  padding: 0 11px 0 9px;
}

/* ── Profile capsule base (shared structure) ── */
.nav-profile-capsule {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 100px;
  text-decoration: none;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  flex-shrink: 0;
}
.nav-profile-capsule-initial {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.nav-profile-capsule-label {
  font-size: 0.62rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 0 11px 0 9px;
}

/* Gold variant — Premium */
.nav-profile-capsule.gold {
  border: 1.5px solid rgba(255, 179, 71, 0.40);
  background: rgba(255, 179, 71, 0.07);
}
.nav-profile-capsule.gold:hover {
  border-color: rgba(255, 179, 71, 0.70);
  background: rgba(255, 179, 71, 0.12);
  box-shadow: 0 0 18px rgba(255, 179, 71, 0.18);
}
.nav-profile-capsule.gold .nav-profile-capsule-initial {
  color: #FFB347;
  border-right: 1px solid rgba(255, 179, 71, 0.22);
}
.nav-profile-capsule.gold .nav-profile-capsule-label {
  color: #FFB347;
}

/* Cyan variant — Free */
.nav-profile-capsule.cyan {
  border: 1.5px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.06);
}
.nav-profile-capsule.cyan:hover {
  border-color: rgba(0, 212, 255, 0.65);
  background: rgba(0, 212, 255, 0.11);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.15);
}
.nav-profile-capsule.cyan .nav-profile-capsule-initial {
  color: var(--accent);
  border-right: 1px solid rgba(0, 212, 255, 0.18);
}
.nav-profile-capsule.cyan .nav-profile-capsule-label {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.nav-user-badge {
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius);
  padding: 8px 14px;
  cursor: default;
}

.nav-login {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-login:hover { color: var(--text); }

/* ── Premium left nav (app tabs next to logo) ── */
#navPremiumLeft {
  display: none;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
}
.nav-app-link {
  font-size: 0.835rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}
.nav-app-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-app-link.active { color: var(--accent); background: var(--accent-dim); }
.nav-premium-pill {
  font-size: 0.68rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #FFB347;
  background: rgba(255,179,71,0.12);
  border: 1px solid rgba(255,179,71,0.25);
  border-radius: 100px;
  padding: 3px 10px;
  margin-left: 4px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 40px;
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 260px;
  line-height: 1.65;
  opacity: 1;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col ul a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--accent); }

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

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 1;
}

.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--text); }

/* ============ CARDS ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--border);
  box-shadow: var(--glow-sm);
  transform: translateY(-3px);
}

/* ============ FORM ELEMENTS ============ */
.input {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.input::placeholder { color: var(--muted); }
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* ============ DIVIDER ============ */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0;
}

/* ============ BADGE ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-accent {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.2);
}
.badge-alert {
  background: var(--alert-dim);
  color: var(--alert);
  border: 1px solid rgba(255, 59, 110, 0.2);
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============ KEYFRAMES ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: var(--glow-sm); }
  50%       { box-shadow: var(--glow-md); }
}

@keyframes borderPulse {
  0%, 100% { border-color: rgba(0, 212, 255, 0.14); }
  50%       { border-color: rgba(0, 212, 255, 0.35); }
}

/* ============ UTILITY ============ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ============ HAMBURGER & MOBILE MENU ============ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  margin-left: auto;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 11, 18, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  flex-direction: column;
  padding: 24px 24px 40px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
}
.mobile-menu-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.mobile-menu-links a:hover,
.mobile-menu-links a:active { color: var(--text); }

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.mobile-menu-actions .btn {
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  font-size: 0.95rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
}

/* ============================================================
   GROWTH PROFILE PREVIEW (homepage)
   ============================================================ */
.growth-profile-preview {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--bg) 0%, #0a1628 100%);
}

.gpp-card {
  display: flex;
  gap: 40px;
  align-items: stretch;
  background: var(--card);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 20px;
  padding: 40px;
  margin-top: 48px;
  box-shadow: 0 0 60px rgba(0,212,255,0.05), 0 16px 48px rgba(0,0,0,0.4);
}

/* ── Left panel ── */
.gpp-left {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.gpp-overall {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.gpp-overall-score {
  font-size: 3.2rem;
  font-weight: 800;
  color: #00D4FF;
  line-height: 1;
  letter-spacing: -0.03em;
}

.gpp-overall-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}

.gpp-overall-grade {
  font-size: 0.95rem;
  font-weight: 700;
  color: #4ade80;
}

/* Dimension rows */
.gpp-dim-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.gpp-dim-row {
  display: grid;
  grid-template-columns: 80px 1fr 28px;
  align-items: center;
  gap: 8px;
}

.gpp-dim-name {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}

.gpp-dim-bar-track {
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}

.gpp-dim-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 1s cubic-bezier(.4,0,.2,1);
}

.gpp-fair   { background: #F59E0B; }
.gpp-good   { background: #4ade80; }

.gpp-dim-val {
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
}
.gpp-fair-text { color: #F59E0B; }
.gpp-good-text { color: #4ade80; }

.gpp-cta {
  align-self: flex-start;
  margin-top: auto;
}

/* ── Right panel (radar) ── */
.gpp-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

#homeRadarChart {
  width: 100%;
  max-width: 440px;
  height: 320px;
  display: block;
}

/* Disclaimer */
.gpp-disclaimer {
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 20px;
  opacity: 0.6;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .gpp-card {
    flex-direction: column;
    gap: 32px;
  }
  .gpp-left { flex: none; }
  #homeRadarChart { max-width: 100%; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .nav-links       { display: none; }
  .nav-login       { display: none; }
  .nav-actions     { display: none; }
  .nav-hamburger   { display: flex; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  :root { --section-pad: 56px; }
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-legal  { justify-content: center; }
}
