/* ============================================================
   HubBanner — Global Stylesheet
   Brand: #131F32 (navy) · #36B5A4 (teal)
   Fonts: Barlow Condensed (headings) · DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:          #131F32;
  --navy-mid:      #192840;
  --navy-light:    #1e3050;
  --navy-card:     #162035;
  --teal:          #36B5A4;
  --teal-dark:     #27907f;
  --teal-glow:     rgba(54,181,164,.18);
  --teal-glow-sm:  rgba(54,181,164,.08);
  --white:         #ffffff;
  --gray:          #8a9db8;
  --gray-light:    #c5d1e0;
  --text-body:     #b8c9da;
  --border:        rgba(54,181,164,.15);
  --border-light:  rgba(255,255,255,.07);

  --font-display:  'Barlow Condensed', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;

  --shadow-card:   0 4px 32px rgba(0,0,0,.35);
  --shadow-glow:   0 0 40px rgba(54,181,164,.2);

  --transition:    .25s ease;
  --max-w:         1160px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--navy);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }

/* === UTILITY === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 64px 0; }
.section-sm { padding: 40px 0; }

.text-teal  { color: var(--teal); }
.text-white { color: var(--white); }
.text-gray  { color: var(--gray); }
.text-center { text-align: center; }

.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-glow-sm);
  border: 1px solid var(--border);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray-light);
  line-height: 1.7;
  max-width: 640px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: transparent;
  color: var(--teal);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-light);
  border-color: var(--border-light);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-lg { padding: 16px 40px; font-size: 1.15rem; }
.btn-sm { padding: 9px 20px; font-size: .9rem; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(19,31,50,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(19,31,50,.98);
  box-shadow: 0 4px 32px rgba(0,0,0,.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo img {
  height: 52px;
  width: auto;
  mix-blend-mode: screen;
  display: block;
  flex-shrink: 0;
}

.footer-brand img,
.footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 16px;
  mix-blend-mode: screen;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  margin-left: auto;
  flex-wrap: nowrap;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gray-light);
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

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

.nav-links a.active {
  color: var(--teal);
  background: var(--teal-glow-sm);
  border-radius: var(--radius-sm);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 10px;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gray);
  flex-shrink: 0;
}

.lang-switcher a { color: var(--gray); }
.lang-switcher a.active { color: var(--teal); }
.lang-switcher a:hover { color: var(--white); }
.lang-switcher span { color: var(--border); }

.nav-cta { font-size: .9rem; padding: 9px 22px; }

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-hamburger svg { width: 24px; height: 24px; }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-light);
  padding: 16px 24px 24px;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-light);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  display: block;
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--teal); }

.nav-mobile .mobile-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1060px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile.open { display: flex; }
}

/* === HERO === */
.hero {
  padding: 120px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(54,181,164,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(54,181,164,.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(54,181,164,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54,181,164,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-glow-sm);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px 6px 10px;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero .lead { margin-bottom: 40px; }

/* Hero Visual — Banner Rotator */
.hero-visual {
  position: relative;
  z-index: 1;
}

.browser-mock {
  background: var(--navy-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  overflow: hidden;
}

.browser-bar {
  background: var(--navy-light);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
}

.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--navy-mid);
}
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
  flex: 1;
  background: var(--navy-mid);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: .75rem;
  color: var(--gray);
  font-family: monospace;
}

.browser-body { padding: 24px; }

.banner-slot {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 120px;
  position: relative;
  background: var(--navy-mid);
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .8s ease;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.banner-slide.active { opacity: 1; }

.banner-slide-1 {
  background: linear-gradient(135deg, #1a3a5c 0%, #0d2840 100%);
  color: var(--teal);
}

.banner-slide-2 {
  background: linear-gradient(135deg, #1a3a2a 0%, #0d2818 100%);
  color: #4cd964;
}

.banner-slide-3 {
  background: linear-gradient(135deg, #3a1a40 0%, #280d38 100%);
  color: #bf5af2;
}

.banner-indicator {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.banner-indicator span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--navy-light);
  transition: all .3s ease;
}
.banner-indicator span.active {
  background: var(--teal);
  width: 20px;
  border-radius: 3px;
}

.browser-content-rows {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-row {
  height: 10px;
  background: var(--navy-light);
  border-radius: 4px;
}
.content-row:nth-child(2) { width: 80%; }
.content-row:nth-child(3) { width: 60%; }

/* === PAGE HERO (inner pages) === */
.page-hero {
  padding: 100px 0 56px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 0%, rgba(54,181,164,.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(54,181,164,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54,181,164,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { margin: 0 auto 32px; }

/* === CARDS === */
.card {
  background: var(--navy-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
}

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

.card-icon {
  width: 52px; height: 52px;
  background: var(--teal-glow);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--teal);
}

.card-icon svg { width: 24px; height: 24px; }
.card h4 { margin-bottom: 10px; }
.card p { font-size: .95rem; color: var(--text-body); line-height: 1.6; }

/* === GRID LAYOUTS === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

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

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
}

/* === SECTION HEADER === */
.section-header {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--gray-light); }

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

/* === PROBLEM / SOLUTION === */
.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ps-col {
  padding: 48px 40px;
}

.ps-col.problem {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-light);
  border-right: none;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.ps-col.solution {
  background: var(--teal-glow-sm);
  border: 1px solid var(--border);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.ps-label {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 20px;
}

.ps-label.bad  { background: rgba(255,59,48,.12); color: #ff6b6b; border: 1px solid rgba(255,59,48,.2); }
.ps-label.good { background: rgba(54,181,164,.12); color: var(--teal); border: 1px solid var(--border); }

.ps-col h3 { font-size: 1.6rem; margin-bottom: 16px; }
.ps-col p  { font-size: .95rem; line-height: 1.7; }

.ps-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
}

.ps-list li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  margin-top: 2px;
}

.ps-col.problem .ps-list li::before {
  background: rgba(255,59,48,.15);
  border: 1.5px solid rgba(255,59,48,.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b6b' stroke-width='2.5'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.ps-col.solution .ps-list li::before {
  background: rgba(54,181,164,.15);
  border: 1.5px solid rgba(54,181,164,.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2336B5A4' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

@media (max-width: 768px) {
  .problem-solution { grid-template-columns: 1fr; }
  .ps-col.problem { border-right: 1px solid var(--border-light); border-bottom: none; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .ps-col.solution { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}

/* === PRICING === */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--navy-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all var(--transition);
}

.pricing-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 48px rgba(54,181,164,.15);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 18px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price sup {
  font-size: 1.5rem;
  vertical-align: super;
  line-height: 0;
}

.pricing-period {
  font-size: .9rem;
  color: var(--gray);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  border-top: 1px solid var(--border-light);
  padding-top: 28px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .93rem;
  color: var(--text-body);
}

.pricing-features li .check {
  color: var(--teal);
  font-size: 1rem;
  line-height: 1.4;
  min-width: 16px;
}

.pricing-features li .cross {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.4;
  min-width: 16px;
}

.pricing-features li.disabled { color: var(--gray); }

@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* === FEATURE ROW (funzionalita page) === */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border-light);
}

.feature-row:last-child { border-bottom: none; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

.feature-text h3 { margin-bottom: 16px; }
.feature-text p { margin-bottom: 20px; color: var(--gray-light); }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .93rem;
}

.feature-list li::before {
  content: '→';
  color: var(--teal);
  font-weight: 700;
  min-width: 16px;
}

.feature-visual {
  background: var(--navy-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-visual-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gray);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.feature-visual-placeholder svg {
  width: 48px; height: 48px;
  color: var(--teal);
  opacity: .5;
}

@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse .feature-text,
  .feature-row.reverse .feature-visual { order: unset; }
}

/* === FAQ ACCORDION === */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--navy-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open { border-color: var(--border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 28px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}

.faq-question:hover { color: var(--teal); }

.faq-icon {
  width: 24px; height: 24px; min-width: 24px;
  color: var(--teal);
  transition: transform var(--transition);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.faq-answer-inner {
  padding: 0 28px 24px;
  color: var(--gray-light);
  line-height: 1.7;
  font-size: .95rem;
}

.faq-answer-inner a { color: var(--teal); }
.faq-answer-inner a:hover { text-decoration: underline; }

/* === DOCUMENTATION === */
.doc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.doc-sidebar {
  position: sticky;
  top: 100px;
}

.doc-nav {
  background: var(--navy-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.doc-nav-title {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}

.doc-nav ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.doc-nav a {
  display: block;
  font-size: .88rem;
  color: var(--gray-light);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.doc-nav a:hover,
.doc-nav a.active { color: var(--teal); background: var(--teal-glow-sm); }

.doc-content h2 {
  font-size: 1.8rem;
  margin-top: 56px;
  margin-bottom: 16px;
  padding-top: 56px;
  border-top: 1px solid var(--border-light);
  color: var(--white);
}

.doc-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.doc-content h3 {
  font-size: 1.2rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--teal);
}

.doc-content p {
  margin-bottom: 16px;
  color: var(--gray-light);
  line-height: 1.75;
}

.doc-content ul, .doc-content ol {
  margin: 0 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--gray-light);
  font-size: .95rem;
  line-height: 1.6;
}

.doc-content code {
  background: var(--navy-light);
  color: var(--teal);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .88em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.doc-content pre {
  background: var(--navy-mid);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.doc-content pre code {
  background: none;
  padding: 0;
  color: var(--gray-light);
  font-size: .85rem;
}

.doc-callout {
  background: var(--teal-glow-sm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: .93rem;
  color: var(--gray-light);
}

.doc-callout strong { color: var(--teal); }

.doc-warning {
  background: rgba(255,149,0,.06);
  border: 1px solid rgba(255,149,0,.2);
  border-left: 3px solid #ff9500;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: .93rem;
  color: var(--gray-light);
}

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar { display: none; }
}

/* === STATS / NUMBERS === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat-item {
  background: var(--navy-card);
  padding: 40px 32px;
  text-align: center;
}

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

.stat-label {
  font-size: .88rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (max-width: 640px) {
  .stats-row { grid-template-columns: 1fr; }
}

/* === CTA BANNER === */
.cta-section {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, var(--teal-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 { margin-bottom: 16px; position: relative; }
.cta-section p  { max-width: 520px; margin: 0 auto 36px; color: var(--gray-light); position: relative; }
.cta-section .btn-group { justify-content: center; position: relative; }

/* === FOOTER === */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border-light);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img { height: 32px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; color: var(--gray); line-height: 1.6; max-width: 280px; }

.footer-col h5 {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .9rem; color: var(--gray); transition: color var(--transition); }
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: .85rem;
  color: var(--gray);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a { font-size: .85rem; color: var(--gray); }
.footer-links a:hover { color: var(--teal); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 { margin-bottom: 16px; }
.contact-info p  { margin-bottom: 28px; color: var(--gray-light); }

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--navy-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: all var(--transition);
}

.contact-method:hover { border-color: var(--border); }
.contact-method-icon { color: var(--teal); }
.contact-method-icon svg { width: 24px; height: 24px; }
.contact-method-label { font-size: .8rem; color: var(--gray); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-display); font-weight: 600; }
.contact-method-value { color: var(--white); font-weight: 500; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* === CHANGELOG === */
.changelog-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-light);
}

.changelog-version {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal);
}

.changelog-date {
  font-size: .82rem;
  color: var(--gray);
  margin-top: 4px;
}

.changelog-body h4 { margin-bottom: 10px; font-size: 1.1rem; }
.changelog-body p  { font-size: .93rem; color: var(--gray-light); margin-bottom: 8px; }

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal-dark); }

/* === SELECTION === */
::selection { background: var(--teal); color: var(--navy); }

/* === MISC === */
.spacer-16 { height: 16px; }
.spacer-32 { height: 32px; }
.spacer-48 { height: 48px; }

.highlight-box {
  background: var(--teal-glow-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  font-size: .95rem;
  color: var(--gray-light);
  font-style: italic;
}

.highlight-box strong { color: var(--teal); font-style: normal; }

/* Comparison table inside pricing/docs */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.compare-table th {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .yes { color: var(--teal); font-weight: 600; }
.compare-table .no  { color: var(--gray); }
.compare-table .highlight-col { color: var(--white); font-weight: 500; }
