/* ============================================
   SpaceTaly — Homepage Stylesheet
   Italian Space Economy
   Palette: Elettrico Lime
   ============================================ */

/* === 1. Design Tokens === */
:root {
  /* Background — blu notte profondo */
  --bg: #0A0E1A;
  --bg-2: #121829;

  /* Typography */
  --ink: #E0E8F0;
  --ink-mute: #8A9DC0;
  --ink-dim: #4A5878;

  /* Accents — lime elettrico */
  --lime: #A3E635;
  --lime-deep: #84CC16;
  --lime-soft: #BEF264;

  /* Lines */
  --line: rgba(163, 230, 53, .18);
  --line-strong: rgba(163, 230, 53, .35);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width: 1280px;
  --gutter: 48px;
  --gutter-mobile: 24px;
}

/* === 2. Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(163, 230, 53, .06), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(163, 230, 53, .04), transparent 50%);
}

::selection {
  background: var(--lime);
  color: var(--bg);
}

/* === 3. Star Field === */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}

.stars span {
  position: absolute;
  width: 1px;
  height: 1px;
  background: var(--ink);
  border-radius: 50%;
  animation: tw 4s infinite;
}

@keyframes tw {
  0%, 100% { opacity: .2; }
  50%      { opacity: 1; }
}

/* === 4. Layout Wrapper === */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

/* === 5. Navigation === */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.brand {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -1px;
  color: var(--ink);
}

.brand .accent {
  color: var(--lime);
}

.nav-links {
  display: flex;
  gap: 42px;
  list-style: none;
}

.nav-links a {
  color: var(--ink-mute);
  text-decoration: none;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .25em;
  text-transform: uppercase;
  transition: color .3s;
}

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

.nav-cta {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--lime);
  border: .5px solid var(--line-strong);
  padding: 10px 22px;
  text-decoration: none;
  transition: all .3s;
}

.nav-cta:hover {
  background: var(--lime);
  color: var(--bg);
  border-color: var(--lime);
}

/* === Navigation right cluster (lang + CTA) === */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* === Language Switcher === */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--ink-dim);
  cursor: pointer;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: color .3s;
}

.lang-btn:hover {
  color: var(--ink-mute);
}

.lang-btn.active {
  color: var(--lime);
}

.lang-separator {
  color: var(--ink-dim);
  font-size: 10px;
  user-select: none;
}

/* Hide opposite-language content (default: italian visible) */
html[lang="it"] [data-lang="en"] { display: none; }
html[lang="en"] [data-lang="it"] { display: none; }

/* === 6. Hero Section === */
.hero {
  padding: 120px 0 160px;
  position: relative;
  text-align: center;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 48px;
  display: inline-block;
  position: relative;
  padding: 0 32px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 48px;
  height: .5px;
  background: var(--lime);
}

.hero-eyebrow::before { right: 100%; }
.hero-eyebrow::after  { left: 100%; }

/* Hero wordmark — Logo 8 lowercase modern */
.hero-wordmark {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 128px);
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1;
}

.hero-wordmark .accent {
  color: var(--lime);
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.5vw, 32px);
  color: var(--ink);
  margin-top: 32px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.hero-tagline em {
  color: var(--lime);
  font-style: italic;
}

.hero-sub {
  margin-top: 48px;
  font-size: 14px;
  color: var(--ink-mute);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-cta {
  margin-top: 64px;
  display: inline-flex;
  gap: 24px;
  align-items: center;
}

/* === 7. Buttons === */
.btn-primary {
  background: transparent;
  color: var(--lime);
  border: .5px solid var(--lime);
  padding: 18px 40px;
  font-size: 11px;
  letter-spacing: .4em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all .4s;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--lime);
  color: var(--bg);
  box-shadow: 0 0 30px rgba(163, 230, 53, .3);
}

.btn-ghost {
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: .5px solid var(--line);
  padding-bottom: 4px;
  transition: all .3s;
}

.btn-ghost:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

/* === 8. Generic Section === */
.section {
  padding: 120px 0;
  border-top: .5px solid var(--line);
}

.section-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--lime);
  letter-spacing: .1em;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  color: var(--ink);
  line-height: 1.1;
  margin-top: 16px;
  margin-bottom: 48px;
  max-width: 780px;
}

.section-title em {
  font-style: italic;
  color: var(--lime);
  font-weight: 400;
}

.section-lead {
  font-size: 17px;
  color: var(--ink-mute);
  max-width: 720px;
  line-height: 1.9;
}

/* === 9. Manifesto Grid === */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 96px;
  align-items: start;
  margin-top: 32px;
}

.manifesto-text p {
  font-size: 16px;
  color: var(--ink-mute);
  margin-bottom: 24px;
  line-height: 1.9;
}

.manifesto-text p:first-child {
  font-size: 20px;
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
}

.manifesto-text strong {
  color: var(--lime);
  font-weight: 400;
}

/* === 10. Upstream / Downstream Split === */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  margin-top: 80px;
}

.split-col {
  background: var(--bg);
  padding: 64px 48px;
  position: relative;
}

.split-tag {
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 24px;
}

.split-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 36px;
  color: var(--ink);
  margin-bottom: 24px;
  line-height: 1.2;
}

.split-desc {
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.9;
  margin-bottom: 32px;
}

.split-list {
  list-style: none;
  padding: 0;
}

.split-list li {
  font-size: 14px;
  color: var(--ink-mute);
  padding: 12px 0;
  border-top: .5px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.split-list li:last-child {
  border-bottom: .5px solid var(--line);
}

.split-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border: .5px solid var(--lime);
  flex-shrink: 0;
  transform: translateY(2px);
}

/* === 11. Tech Domains Grid === */
.domains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 64px;
}

.domain {
  background: var(--bg);
  padding: 48px 32px;
  transition: background .4s;
  position: relative;
}

.domain:hover {
  background: var(--bg-2);
}

.domain-roman {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 48px;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 24px;
}

.domain-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.3;
}

.domain-desc {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.8;
}

/* === 12. Vision Quote === */
.vision-quote {
  text-align: center;
  padding: 64px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 3.5vw, 40px);
  color: var(--ink);
  line-height: 1.4;
  max-width: 880px;
  margin: 0 auto;
}

.vision-quote em {
  color: var(--lime);
}

.vision-attr {
  font-size: 11px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 32px;
  text-align: center;
}

/* === 13. Compliance Grid === */
.compliance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.compliance-box {
  border: .5px solid var(--line);
  padding: 32px 24px;
  transition: border-color .3s;
}

.compliance-box:hover {
  border-color: var(--line-strong);
}

.compliance-code {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--lime);
  margin-bottom: 12px;
  letter-spacing: .05em;
}

.compliance-name {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 400;
}

.compliance-desc {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* === 14. Closing CTA === */
.closing {
  text-align: center;
  padding: 160px 0;
  background: linear-gradient(180deg, transparent, rgba(163, 230, 53, .05), transparent);
}

.closing-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.1;
  margin-bottom: 32px;
}

.closing-title em {
  font-style: italic;
  color: var(--lime);
}

.closing-sub {
  font-size: 16px;
  color: var(--ink-mute);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

/* === 15. Footer === */
footer {
  border-top: .5px solid var(--line);
  padding: 48px;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

footer .row {
  display: flex;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 24px;
}

footer a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color .3s;
}

footer a:hover {
  color: var(--lime);
}

/* === 16. Animations === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
}

.reveal-2 { animation-delay: .15s; }
.reveal-3 { animation-delay: .30s; }
.reveal-4 { animation-delay: .45s; }
.reveal-5 { animation-delay: .60s; }

/* === 17. Responsive === */
@media (max-width: 900px) {
  nav { padding: 24px; }
  .nav-links { display: none; }
  .nav-right { gap: 16px; }
  .nav-cta { padding: 8px 14px; font-size: 10px; }
  .wrap { padding: 0 var(--gutter-mobile); }
  .manifesto-grid { grid-template-columns: 1fr; gap: 48px; }
  .split { grid-template-columns: 1fr; }
  .domains { grid-template-columns: 1fr; }
  .compliance { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
  .hero { padding: 60px 0 100px; }
}
