/* ============================================================
   COSCIENCE — Neuro Real Estate · Stylesheet
   ============================================================ */

:root {
  --bg:              #06060F;
  --bg-2:            #09091A;
  --gold:            #FFC300;
  --gold-light:      #FFD84D;
  --gold-dim:        rgba(255, 195, 0, 0.10);
  --gold-glow:       rgba(255, 195, 0, 0.25);
  --text:            #F0F0F8;
  --text-muted:      #8A8AA8;
  --text-dim:        rgba(240, 240, 248, 0.55);
  --surface:         rgba(255, 255, 255, 0.028);
  --surface-hover:   rgba(255, 195, 0, 0.042);
  --border:          rgba(255, 195, 0, 0.14);
  --border-subtle:   rgba(255, 255, 255, 0.055);
  --radius:          12px;
  --radius-lg:       20px;
  --font-display:    'Space Grotesk', system-ui, sans-serif;
  --font-body:       'Inter', system-ui, sans-serif;
  --max-w:           1200px;
  --section-pad:     108px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; }
h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

.highlight {
  background: linear-gradient(130deg, #FFC300 30%, #FFE280 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
}

.section-header--left {
  text-align: left;
  max-width: 540px;
  margin: 0 0 56px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 16px;
  line-height: 1.8;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn__arrow { transition: transform 0.22s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--gold);
  color: #000;
  border: 2px solid var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px var(--gold-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border-subtle);
}
.btn--ghost:hover {
  border-color: var(--border);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn--large {
  padding: 18px 44px;
  font-size: 1rem;
  border-radius: 11px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(6, 6, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-color: var(--border-subtle);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.nav__logo img { height: 28px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 44px;
}

.nav__links li a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: -0.01em;
}
.nav__links li a:hover { color: var(--text); }

a.nav__cta {
  background: var(--gold);
  color: #000 !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.22s ease;
}
a.nav__cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--gold-glow);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 130px 40px 100px;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 195, 0, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(255, 195, 0, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

/* Hero entrance animations */
.hero--anim-1 { opacity: 0; transform: translateY(20px); animation: heroFadeUp 0.7s ease 0.2s forwards; }
.hero--anim-2 { opacity: 0; transform: translateY(24px); animation: heroFadeUp 0.8s ease 0.4s forwards; }
.hero--anim-3 { opacity: 0; transform: translateY(24px); animation: heroFadeUp 0.8s ease 0.6s forwards; }
.hero--anim-4 { opacity: 0; transform: translateY(24px); animation: heroFadeUp 0.8s ease 0.8s forwards; }

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero__badge {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: 100px;
  margin-bottom: 36px;
}

.hero__headline { margin-bottom: 28px; }

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 52px;
  line-height: 1.85;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  animation: heroFadeUp 0.6s ease 1.2s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255, 195, 0, 0.7), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border-subtle);
}

.manifesto__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 100px;
  align-items: start;
}

.manifesto__quote-mark {
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 0.7;
  color: var(--gold);
  opacity: 0.18;
  margin-bottom: 8px;
  letter-spacing: -0.05em;
}

.manifesto__quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  color: var(--text);
}

.manifesto__quote-sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.manifesto__quote-emphasis {
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.manifesto__stats {
  display: flex;
  flex-direction: column;
  gap: 44px;
  padding-top: 16px;
}

.stat { border-left: 2px solid var(--gold); padding-left: 28px; }

.stat__number {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.stat__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   TRE AREE
   ============================================================ */
.aree {
  padding: var(--section-pad) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.aree::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.aree__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.area-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  cursor: default;
}

.area-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.area-card:hover {
  border-color: var(--border);
  background: var(--surface-hover);
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(255, 195, 0, 0.07);
}
.area-card:hover::after { opacity: 1; }

.area-card__num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 22px;
}

.area-card__icon { margin-bottom: 22px; }

.area-card h3 { margin-bottom: 6px; font-size: 1.55rem; }

.area-card__tagline {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.area-card__body {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

.area-card__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.area-card__list li {
  font-size: 0.83rem;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.area-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.45;
}

/* ============================================================
   SERVIZI / PIATTAFORMA
   ============================================================ */
.servizi {
  padding: var(--section-pad) 0;
}

.servizi__timeline {
  display: flex;
  flex-direction: column;
}

.servizio {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 40px;
  padding: 52px 0;
  border-top: 1px solid var(--border-subtle);
  transition: background 0.25s ease;
}
.servizio:last-child { border-bottom: 1px solid var(--border-subtle); }

.servizio:hover { background: rgba(255,195,0,0.016); }

.servizio__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.servizio__step-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gold-dim);
  letter-spacing: 0.04em;
}

.servizio__step-line {
  width: 1px;
  flex: 1;
  min-height: 60px;
  background: var(--border-subtle);
  margin-top: 16px;
}

.servizio__body { padding: 4px 0; }

.servizio__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.servizio h3 { margin-bottom: 18px; font-size: 1.7rem; }

.servizio p {
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.8;
}

.servizio__outputs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.servizio__outputs span {
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  color: var(--gold);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ============================================================
   METODO
   ============================================================ */
.metodo {
  padding: var(--section-pad) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.metodo__header { margin-bottom: 0; }

.metodo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.metodo-item {
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.metodo-item:hover {
  border-color: var(--border);
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.metodo-item__icon {
  width: 48px; height: 48px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.metodo-item h4 {
  font-family: var(--font-display);
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.metodo-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ============================================================
   USE CASES STRIP
   ============================================================ */
.usecases {
  padding: var(--section-pad) 0;
}

.usecases__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.usecase {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  text-align: center;
}

.usecase:hover {
  border-color: var(--border);
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.usecase__icon {
  width: 56px; height: 56px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.usecase h5 {
  color: var(--text);
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.usecase p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  padding: 160px 40px;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
}

.cta-section__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.3;
}

.cta-section__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(255, 195, 0, 0.055) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cta-section h2 { margin-bottom: 20px; }

.cta-section p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 52px;
  line-height: 1.8;
}

.cta-section__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cta-section__note {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0 !important;
}

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

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 100px;
  margin-bottom: 56px;
  align-items: start;
}

.footer__brand img { margin-bottom: 20px; }

.footer__brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col h5 {
  color: var(--text);
  margin-bottom: 6px;
}

.footer__col a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--gold); }

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

.footer__bottom p {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer__bottom-tagline {
  font-size: 0.72rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold) !important;
  opacity: 0.5;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.aree__grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.aree__grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.usecases__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.usecases__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.usecases__grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.metodo__grid .reveal:nth-child(2) { transition-delay: 0.10s; }
.metodo__grid .reveal:nth-child(3) { transition-delay: 0.20s; }

/* ============================================================
   MOBILE NAV OPEN STATE
   ============================================================ */
.nav__links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: rgba(6, 6, 15, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px 40px;
  gap: 22px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: flex-start;
}

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

  .aree__grid { grid-template-columns: 1fr 1fr; }
  .aree__grid .area-card:last-child { grid-column: 1 / -1; max-width: 480px; }
  .manifesto__grid { gap: 64px; }
}

@media (max-width: 900px) {
  :root { --section-pad: 72px; }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .aree__grid { grid-template-columns: 1fr; }
  .aree__grid .area-card:last-child { max-width: 100%; grid-column: auto; }

  .manifesto__grid { grid-template-columns: 1fr; gap: 52px; }
  .manifesto__stats { flex-direction: row; flex-wrap: wrap; gap: 32px; }
  .stat { flex: 1; min-width: 140px; }

  .metodo__grid { grid-template-columns: 1fr 1fr; }
  .metodo__grid .metodo-item:last-child { grid-column: 1 / -1; max-width: 360px; }

  .usecases__grid { grid-template-columns: repeat(2, 1fr); }

  .footer__inner { grid-template-columns: 1fr; gap: 48px; }
  .footer__links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  :root { --section-pad: 60px; }
  .container { padding: 0 20px; }
  .hero { padding: 110px 20px 80px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .cta-section { padding: 100px 20px; }
  .cta-section__actions { flex-direction: column; align-items: center; }
  .servizio { grid-template-columns: 56px 1fr; gap: 20px; }
  .footer__links { grid-template-columns: 1fr 1fr; }
  .metodo__grid { grid-template-columns: 1fr; }
  .metodo__grid .metodo-item:last-child { max-width: 100%; grid-column: auto; }
  .nav__inner { padding: 0 20px; }
  .nav__links.mobile-open { padding: 28px 20px; }
  .manifesto__stats { flex-direction: column; }
}
