/* ═══════════════════════════════════════════════════
   WHITE EAGLE TECH — Minimal template (clean)
   Design: light, sober, well-spaced
═══════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #ffffff;
  --bg-alt:    #f5f6f8;
  --bg-card:   #ffffff;
  --text:      #1a1a2e;
  --text-mid:  #4a4a6a;
  --text-muted:#7c7c9a;
  --accent:    #4f46e5;
  --accent-hover: #4338ca;
  --accent-light: #eef2ff;
  --border:    #e2e4ea;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.08);
  --radius:    10px;
  --radius-lg: 16px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent-light); }

/* ── CONTAINER ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

#hero .container {
  min-width: 0;
  width: 100%;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.5rem;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-mid);
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .5rem 1.2rem;
  border-radius: 6px;
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent-hover); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
  line-height: 1.3;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-full { width: 100%; justify-content: center; }

/* ── SECTION COMMON ── */
section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: .25rem .9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: .8rem;
}
.section-header p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: .95rem;
}
.accent { color: var(--accent); }

/* ── HERO ── */
#hero {
  padding: 8rem 0 5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--bg) 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--text);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--text-mid);
  margin-top: .8rem;
}
.hero-desc {
  color: var(--text-muted);
  max-width: 680px;
  margin: 1.2rem auto 2rem;
  font-size: .95rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.hero-buttons {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* ── TICKER ── */
.hero-ticker {
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  padding: .45rem .1rem;
}
.ticker-move {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item-up  { color: #059669; }
.ticker-item-down{ color: #dc2626; }

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  cursor: default;
  transition: box-shadow .3s, transform .3s;
  opacity: 0;
  transform: translateY(16px);
}
.feature-card.visible {
  animation: fadeInUp .5s forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px; height: 44px;
  color: var(--accent);
  margin-bottom: 1rem;
}
.card-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .6rem;
}
.feature-card p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.65;
}

/* ── SECTORS ── */
#sectors { padding: 4rem 0; }

.sectors-overview {
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.so-bars {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.so-tags {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.so-tag {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  background: var(--accent-light);
  padding: .2rem .8rem;
  border-radius: 20px;
}

.sector-card {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: box-shadow .2s;
}
.sector-card:hover { box-shadow: var(--shadow-sm); }

.sc-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
}
.sc-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #818cf8);
  border-radius: 4px;
  transition: width .6s ease;
}

.sc-name {
  min-width: 130px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-mid);
}
.sc-pct {
  min-width: 36px;
  text-align: right;
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent);
}

.sectors-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  max-width: 1000px;
  margin: 0 auto 2.5rem;
}

.sd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow .3s, transform .3s;
}
.sd-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.sd-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sd-pct {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: .1rem .5rem;
  border-radius: 4px;
}
.sd-desc {
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: .8rem;
}
.sd-focus {
  list-style: none;
  padding: 0;
}
.sd-focus li {
  font-size: .8rem;
  color: var(--text-muted);
  padding: .25rem 0 .25rem 1rem;
  position: relative;
  line-height: 1.5;
}
.sd-focus li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.sectors-philosophy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.sectors-philosophy p {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-style: italic;
}

/* ── STATS ── */
#stats {
  background: var(--accent);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-label {
  display: block;
  font-size: .85rem;
  margin-top: .5rem;
  opacity: .85;
  font-weight: 400;
}

/* ── CHART ── */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.chart-title {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
}
.asset-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.asset-price {
  font-size: 1.3rem;
  font-weight: 700;
}
.asset-change {
  font-size: .85rem;
  font-weight: 600;
}
.positive { color: #059669; }
.negative { color: #dc2626; }

.chart-controls { display: flex; gap: .35rem; }
.time-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: .25rem .65rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 500;
  transition: all .2s;
}
.time-btn.active,
.time-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

#priceChart {
  width: 100%; height: 240px;
  display: block;
}

.chart-loading-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  background: rgba(255,255,255,.75);
  border-radius: var(--radius-lg);
  z-index: 5;
  font-size: .85rem;
  color: var(--text-muted);
  transition: opacity .4s, visibility .4s;
}
.chart-container.loaded .chart-loading-overlay {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.chart-spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.chart-overlay-ai {
  position: absolute;
  top: 4.1rem;
  right: 1.5rem;
}
.ai-signal {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: .45rem .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 500;
  color: #059669;
  flex-direction: column;
  text-align: center;
}
.signal-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #059669;
  animation: signalPulse 1.5s infinite;
  position: absolute;
  top: .5rem;
  left: .5rem;
}
@keyframes signalPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(5,150,105,.4); }
  50%     { box-shadow: 0 0 0 6px rgba(5,150,105,0); }
}
.signal-confidence { color: var(--text-muted); font-size: .7rem; }

.market-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .8rem;
}
.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  transition: box-shadow .2s, transform .2s;
  cursor: default;
}
.market-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.mc-name  { font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.mc-price { font-size: 1rem; font-weight: 700; }
.mc-change{ font-size: .8rem; font-weight: 600; }

/* ── AI BRAIN ── */
.brain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.brain-text .section-header { text-align: left; margin-bottom: 1.5rem; }
.brain-text .section-header h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
.brain-text p { color: var(--text-muted); line-height: 1.75; margin-bottom: 1.5rem; }

.brain-list {
  list-style: none;
  margin-bottom: 2rem;
}
.brain-list li {
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
  color: var(--text-mid);
}
.brain-list li:last-child { border-bottom: none; }

.brain-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* brain-placeholder SVG rimosso */

/* ── ABOUT ── */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-text p {
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: .93rem;
}

.about-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
}
.about-list li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  color: var(--text-mid);
}
.about-list li:last-child { border-bottom: none; }

.about-metrics {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.am-item { text-align: center; }
.am-number {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.am-label {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .2rem;
}

.about-timeline h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.tl-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .8rem 0;
  border-left: 2px solid var(--border);
  padding-left: 1.2rem;
  position: relative;
}
.tl-item:first-child { padding-top: 0; }
.tl-item:last-child { border-left-color: transparent; }

.tl-dot {
  position: absolute;
  left: -6px;
  top: 1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-alt);
}
.tl-year {
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 28px;
}
.tl-text {
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ── TESTIMONIALS ── */
#testimonials { overflow: hidden; }

.testimonials-track {
  display: flex;
  gap: 1.2rem;
  animation: testimonialsScroll 25s linear infinite;
  width: max-content;
}
.testimonials-track:hover { animation-play-state: paused; }
@keyframes testimonialsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  width: 340px;
  flex-shrink: 0;
  transition: box-shadow .2s, transform .2s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.65;
  font-size: .9rem;
  margin-bottom: 1.2rem;
}
.testimonial-card blockquote::before {
  content: "\201C";
  color: var(--accent);
  font-size: 1.8rem;
  line-height: 0;
  vertical-align: -.3em;
  margin-right: .2rem;
}

.t-author {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.t-author strong { font-size: .88rem; }
.t-author small { color: var(--text-muted); font-size: .78rem; }

/* ── CONTACT ── */
#contact { background: var(--bg-alt); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-form-col .section-header {
  text-align: left;
  margin-bottom: 2rem;
}
.contact-form-col .section-header p {
  margin: 0;
}

.contact-info-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.ci-block h4 {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: .5rem;
}
.ci-block p {
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.ci-block a { color: var(--accent); font-weight: 500; }

.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { position: relative; margin-bottom: 1rem; }

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .9rem 1rem .7rem;
  color: var(--text);
  font-family: var(--font);
  font-size: .92rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group label {
  position: absolute;
  top: .8rem;
  left: 1rem;
  color: var(--text-muted);
  font-size: .88rem;
  transition: all .2s;
  pointer-events: none;
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: .15rem;
  font-size: .7rem;
  color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: transparent; }

/* ── CTA BANNER ── */
#cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #3730a3 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
}
.cta-inner {
  max-width: 620px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .8rem;
}
.cta-inner p {
  font-size: 1rem;
  opacity: .85;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.cta-buttons {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-buttons .btn-primary {
  background: #fff;
  color: var(--accent);
}
.cta-buttons .btn-primary:hover {
  background: #f0f0ff;
  color: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-inverse {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.btn-inverse:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,.1);
}

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: #b0b0c8;
  padding: 3.5rem 0 2rem;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .nav-logo { color: #fff; margin-bottom: .6rem; font-size: 1.1rem; }
.footer-brand .nav-logo span { color: #818cf8; }
.footer-brand p { font-size: .85rem; line-height: 1.6; }

.footer-links h4 {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  margin-bottom: .8rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.footer-links a {
  color: #b0b0c8;
  font-size: .85rem;
  transition: color .2s;
}
.footer-links a:hover { color: #818cf8; }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,26,46,.6);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  cursor: pointer;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: min(92vw, 680px);
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  padding: 2.2rem 2rem;
  cursor: default;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px);
  transition: transform .3s;
}
.modal-overlay.active .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: .7rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.modal-close:hover { color: var(--text); }

.modal-content { font-size: .92rem; line-height: 1.75; }
.modal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.modal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.4rem 0 .5rem;
}
.modal-content p { margin-bottom: .8rem; color: var(--text-mid); }
.modal-content strong { color: var(--text); }
.modal-content ul,
.modal-content ol {
  margin: .5rem 0 1rem 1.2rem;
  color: var(--text-mid);
}
.modal-content li { margin-bottom: .3rem; }
.modal-content em { color: var(--text-muted); }

.modal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: .8rem 0 1.2rem;
  font-size: .85rem;
}
.modal-content th {
  text-align: left;
  padding: .45rem .7rem;
  background: var(--accent-light);
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}
.modal-content td {
  padding: .4rem .7rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
}

/* ── DEMO FORM (inside modal) ── */
.demo-form { margin-top: 1rem; }
.demo-field { margin-bottom: 1rem; }
.demo-field label {
  display: block;
  font-size: .82rem;
  color: var(--text-mid);
  margin-bottom: .3rem;
  font-weight: 500;
}
.demo-field select,
.demo-field input {
  width: 100%;
  padding: .6rem .8rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}
.demo-field select:focus,
.demo-field input:focus {
  border-color: var(--accent);
}
.demo-required { color: #dc2626; }

.demo-toggle-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.demo-toggle-label {
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.demo-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.demo-switch input { opacity: 0; width: 0; height: 0; }
.demo-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 22px;
  transition: background .3s;
}
.demo-slider::before {
  content: '';
  position: absolute;
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .3s;
}
.demo-switch input:checked + .demo-slider { background: var(--accent); }
.demo-switch input:checked + .demo-slider::before { transform: translateX(18px); }

.demo-hidden { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-inner { padding: .7rem 1.2rem; }

  section { padding: 3.5rem 0; }
  #hero { padding: 6rem 0 3rem; min-height: auto; }

  .brain-grid { grid-template-columns: 1fr; gap: 2rem; }
  .brain-visual { display: none; }

  #about .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-form-col .section-header { text-align: center; }
  .contact-form-col .section-header p { margin: 0 auto; }

  .sector-card { flex-wrap: wrap; gap: .4rem; }
  .sc-name { min-width: 100px; }
  .sectors-detail { grid-template-columns: 1fr; }

  .footer-content { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }

  .form-row { grid-template-columns: 1fr; }

  .hero-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  .chart-overlay-ai { position: static; margin-top: .8rem; }
  .ai-signal { flex-direction: row; }

  .chart-header { flex-direction: column; align-items: flex-start; }
}
