/* ===================== Landing (Emerald/Teal Theme) ===================== */

/* ---------- Page variables ---------- */
.page-landing {
  --ink: #e7eefc;
  --muted: #a1aab7;

  --bg-deep: #0a0e1a;
  --surface-0: #0a0e1a;
  --surface-1: #10162a;
  --surface-2: #1e253e;

  --edge: rgba(255, 255, 255, .15);
  --edge-strong: rgba(255, 255, 255, .25);
  --glow: rgba(16, 185, 129, .25);

  --acc: #10b981;
  --acc-2: #059669;
  --grad-start: #6cffb3;
  --grad-end: #059669;

  --ff: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --r-1: 12px;
  --r-2: 16px;

  --fg: var(--ink);
  --brand-1: var(--acc);
  --brand-2: var(--acc-2);

  /* nav */
  --nav-fg: var(--ink);
  --nav-fg-active: var(--acc);
  --nav-bg-hover: color-mix(in srgb, var(--acc) 12%, transparent);
  --nav-shadow-hover: 0 0 12px color-mix(in srgb, var(--acc) 45%, transparent);

  /* buttons */
  --btn-fg: var(--ink);
  --btn-bg: rgba(255, 255, 255, .05);
  --btn-border: var(--edge);
  --btn-hover-bg: rgba(255, 255, 255, .08);
  --btn-hover-border: var(--edge-strong);
  --btn-hover-transform: translateY(-1px);
  --btn-shadow: 0 6px 18px rgba(0, 0, 0, .20);

  --btn-primary-fg: #eaffff;
  --btn-primary-bg: linear-gradient(
    180deg,
    color-mix(in srgb, var(--acc-2) 18%, transparent),
    color-mix(in srgb, var(--acc-2) 8%, transparent)
  );
  --btn-primary-bg-hover: linear-gradient(
    180deg,
    color-mix(in srgb, var(--acc-2) 24%, transparent),
    color-mix(in srgb, var(--acc-2) 12%, transparent)
  );
  --btn-primary-border: color-mix(in srgb, var(--acc-2) 35%, transparent);
  --btn-primary-border-hover: color-mix(in srgb, var(--acc-2) 45%, transparent);
  --btn-primary-shadow: 0 8px 22px color-mix(in srgb, var(--acc-2) 22%, transparent);
  --btn-primary-shadow-hover: 0 14px 30px color-mix(in srgb, var(--acc-2) 26%, transparent);


  /* scrollbars */
  --scroll-c1: var(--acc);
  --scroll-c2: var(--acc-2);
  --scroll-c3: #9ce8c9;

  background:
    radial-gradient(
      1200px 700px at 80% -10%,
      color-mix(in srgb, var(--acc) 12%, transparent),
      transparent 60%
    ),
    var(--bg-deep);
  color: var(--ink);
  font-family: var(--ff);
  line-height: 1.6;
}


/* ===================== Hero Section ===================== */
.page-landing .h-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-top: 0.5rem;
}

.page-landing .h-title .highlight {
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-accent {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important; 
  color: inherit !important;
}


.page-landing .h-sub {
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 720px;
  margin-top: 0rem;
  animation: fadeUp .6s ease both;
}

.page-landing .h-tag .emphasize.thirty,
.page-landing .h-tag .emphasize.zero {
  color: var(--acc);
  font-weight: 800;
  text-shadow: 0 0 10px rgba(34, 197, 94, .45);
}


/* ===================== Section text ===================== */
.section p,
.section li {
  font-size: 1.15rem;
  max-width: 75ch;
  margin-inline: auto;
}

.o-project-big {
  font-size: 1.25em; 
  font-weight: 700;
}



/* ===================== Shared containers ===================== */
.card,
.ai-banner {
  background-color: var(--surface-1);
  border: 1px solid var(--edge);
  margin-top: 0.1rem;
}

.card .btn {
  display: block;        
  margin: 1rem auto 0;    
  text-align: center;     
  width: fit-content;     
}

/* ===================== About Section ===================== */
.about-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-content {
  display: flex;
  align-items: center; 
  gap: 2rem; 
}


.about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-banner {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--edge-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 0 0 clamp(240px, 24vw, 320px);
}

.about-banner img {
  max-height: 600px; 
  width: auto;
  height: auto;
  object-fit: cover; 
  border-radius: 12px; 
}


.about-banner figcaption {
  margin: 0;
  padding: .55rem .9rem;
  font-size: .95rem;
  text-align: center;
  color: var(--muted);
  background: rgba(0, 0, 0, .22);
  border-top: 1px solid var(--edge);
}


/* ===================== Vertical Interactive Timeline ===================== */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--g-5);
}

.timeline .rail {
  position: sticky; top: 72px;
  align-self: start; height: 70vh;
  display: flex; flex-direction: column;
}

.rail .yearbox {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.25)), var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-2);
  padding: 1rem;
  display: grid; gap: .35rem;
  align-content: start;
  box-shadow:
    0 4px 12px rgba(0,0,0,.35),
    inset 0 1px 2px rgba(255,255,255,.06);
}

.rail .yearbox .label {
  font-size: .85rem; font-weight: 700;
  color: var(--muted);
}

.rail .yearbox .value {
  font-size: 1.75rem; font-weight: 700;
  letter-spacing: .02em;
}

.rail .filters {
  display: flex; flex-wrap: wrap;
  gap: .5rem; margin-top: var(--g-3);
}

.chip {
  padding: .35rem .6rem;
  font: 600 .9rem var(--ff);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  color: #fff;
  background: var(--grad-end);
  border-color: transparent;
}

.rail .progresswrap {
  position: relative; flex: 1;
  margin-top: var(--g-4);
}

.rail .progress {
  position: absolute; left: 50%;
  transform: translateX(-50%);
  top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
  border-radius: 999px;
}

.rail .progress .fill {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 0%;
  background: var(--grad-end);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(124, 58, 237, .4);
}

.stream { position: relative; }

.stream .item { position: relative; scroll-margin-top: 84px; }

.list {
  display: grid; gap: var(--g-3);
  max-height: 66vh; overflow: auto;
  scroll-snap-type: y proximity;
}

.list::-webkit-scrollbar { width: 12px; }
.list::-webkit-scrollbar-thumb {
  background: var(--grad-end);
  border-radius: 8px;
}

.tcard { position: relative; scroll-snap-align: start; }

.tcard .meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .35rem;
}

.tcard time {
  font-weight: 700; color: #8c93a3;
}

@media (prefers-color-scheme: light) {
  .tcard time { color: #2b2f36; }
}

.tcard .cat { font-weight: 700; font-size: .8rem; color: var(--muted); }

.tcard h3 {
  margin: .25rem 0 .2rem;
  font-size: 1.05rem; color: var(--brand-2);
}

.tcard .detail { margin: .25rem 0 0; color: var(--muted); }

.tcard::before {
  content: "";
  position: absolute;
  left: -32px; top: 18px;
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff, var(--brand-1));
  box-shadow: 0 0 10px rgba(124, 58, 237, .5);
}

.connector {
  position: absolute;
  left: -26px; top: 32px;
  width: 0; height: calc(100% + var(--g-3));
  border-left: 2px solid var(--border);
}

.tcard [data-collapsible] {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}

.tcard[aria-expanded="true"] [data-collapsible] { max-height: 220px; }

.tcard .toggle { position: absolute; right: .8rem; top: .8rem; }

.year-section { position: relative; display: grid; gap: var(--g-3); }

.year-header {
  position: static; top: auto; width: max-content;
  padding: .1rem 0; border: none; border-radius: 0;
  background: transparent; box-shadow: none; pointer-events: auto; z-index: auto;
}

.year-header .y { font-weight: 800; letter-spacing: .02em; color: var(--txt); }

.year-header small {
  margin-left: .5rem; font-weight: 700;
  color: var(--muted); opacity: .7;
}


/* ---------- Responsive adjustments ---------- */
@media (max-width: 960px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-banner {
    height: auto;
    max-width: 620px;
    margin-inline: auto;
    flex: none;
  }

  .about-banner img {
    height: auto;
    aspect-ratio: 4/5;
    object-position: 50% 32%;
  }
}


/* ===================== Timeline Enhancements ===================== */
.timeline .stream :is(time, .year, .eyebrow, .kicker, .meta-year) {
  color: var(--muted);
  opacity: 1 !important;
  font-weight: 700;
}

.timeline .stream .milestone-head,
.timeline .stream h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6ch;
  margin: 0.8rem 0 .4rem 0; 
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink);
  background: none;
  text-shadow: none;
}


.timeline .stream h3 > time {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 800;
  color: #cfd6e6;
}

.timeline .stream .milestone-head .label,
.timeline .stream h3 .label {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600;
  color: #8a94a8;
}

.timeline .list .item time,
.timeline .list .item .year {
  font-size: 1rem;
  font-weight: 600;
  color: #8a94a8;
}

.stream .list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.year-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===================== Roadmap ===================== */
.roadmap { display: grid; gap: var(--g-3); }

@media (min-width: 900px) {
  .roadmap { grid-template-columns: 1fr 1fr 1fr; }
}

.stage h4 {
  margin: 0 0 .3rem;
  font-size: 1rem; color: var(--brand-1);
}

.stage ul { margin: .25rem 0 0; padding-left: 1.1rem; }


/* ===================== Logos ===================== */

.tl-logos {
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: .05rem;
}

.logo-timeline {
  height: 28px;   /* antes 20–22px */
  max-height: 28px;
  width: auto;
  object-fit: contain;
  opacity: .95;
  transition: transform .15s ease, opacity .15s ease;
}

.logo-timeline:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.tcard .meta .meta-left{
  display: flex;
  align-items: center;
  gap: .5rem;            
  flex-wrap: wrap;        
}

.cat-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1; 
}

.cat-logo img {
  height: 25px;
  width: auto;
}

.cat-logo:hover img{
  transform: translateY(-1px);
  opacity: 1;
}

.tcard .meta .cat + .cat-logo{ margin-left: .25rem; }


/* ===================== A11y Utility ===================== */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

