@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap";

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface-2: #171722;
  --border: #1e1e2e;
  --text: #e4e4e7;
  --text-muted: #888899;
  --accent: #6c5ce7;
  --accent-dim: #4a3fbf;
  --green: #00e676;
  --cyan: #00bcd4;
  --amber: #ffb74d;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3 { font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: "JetBrains Mono", monospace;
  background: var(--surface);
  padding: .2em .4em; border-radius: 4px; font-size: .9em; color: var(--cyan);
}
.inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
.lo-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #0a0a0fcc; backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.lo-header .inner {
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.lo-logo {
  font-size: 1.25rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.lo-logo:hover { text-decoration: none; }
.lo-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.lo-nav a { color: var(--text-muted); font-size: .9rem; font-weight: 500; transition: color .2s; }
.lo-nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 680px) {
  .lo-header .inner { height: auto; padding: .6rem 1.5rem; flex-direction: column; gap: .5rem; }
  .lo-nav { gap: 1rem; justify-content: center; }
}

/* ---------- Philosophy intro (splash) ---------- */
.why {
  background:
    radial-gradient(55% 55% at 50% 0%, #6c5ce71f, transparent 70%),
    radial-gradient(45% 45% at 82% 25%, #00e6761a, transparent 70%);
}
.why-grid {
  min-height: 100vh; display: flex; flex-direction: column;
  text-align: center; padding: 5.5rem 0 3rem;
}
.why-bottom { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }

/* audience switcher (Welcome / User / Developer) */
.audience {
  display: flex; gap: .35rem; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: .35rem; width: max-content; margin: 0 auto;
}
.aud-btn {
  border: none; background: transparent; color: var(--text-muted);
  font-family: inherit; font-weight: 600; font-size: .95rem;
  padding: .55rem 1.5rem; border-radius: 100px; cursor: pointer; transition: all .2s;
}
.aud-btn:hover { color: var(--text); }
.aud-btn.is-active {
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  box-shadow: 0 4px 16px -6px var(--accent);
}

.why-center { margin: auto 0; }
.slogan {
  font-size: clamp(1.6rem, 5vw, 3.35rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.04; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--cyan), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.why-prose { max-width: 60ch; margin: 0 auto; }
.why-prose p { color: var(--text); font-size: clamp(1rem, 2vw, 1.15rem); margin: 0 auto 1rem; }
.why-prose p.muted { color: var(--text-muted); }
.why-prose strong { color: var(--text); font-weight: 700; }
.why-lead {
  color: var(--text); font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem) !important; margin-bottom: 1.5rem !important;
}
.why-close {
  font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.3rem) !important; margin: 0 auto .35rem !important;
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.why-lines {
  font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.3rem) !important; margin-top: 1.5rem !important;
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* word area — fixed Low / AI with carousel words fading up from each */
.why-footer {
  display: flex; align-items: flex-end; justify-content: center; gap: 3.5rem;
  text-transform: uppercase; letter-spacing: .2em; font-weight: 600;
  font-size: clamp(1rem, 2.8vw, 1.6rem);
}
.word-col { position: relative; display: flex; flex-direction: column; align-items: center; }
/* rise words float absolutely above the fixed word, so Low / AI never shift */
.rise {
  position: absolute; bottom: calc(100% + 4px); left: 50%;
  font-size: .34em; color: var(--text-muted); white-space: nowrap; opacity: 0;
}
.fixed { font-weight: 800; }
.cycle-left { color: var(--text); }
.cycle-right { color: var(--accent); }
@keyframes riseFade {
  0%   { opacity: 0; transform: translate(-50%, 12px); }
  22%  { opacity: 1; transform: translate(-50%, 2px); }
  78%  { opacity: 1; transform: translate(-50%, -2px); }
  100% { opacity: 0; transform: translate(-50%, -7px); }
}

/* ---------- Audience gating ---------- */
/* "More reasons" button — chips flow out on click; click a chip to open Read more */
.reasons-zone { position: relative; display: flex; justify-content: center; margin-top: 2rem; min-height: 70px; }
.reasons-btn {
  position: relative; z-index: 2; padding: .56rem 1.7rem; border-radius: 100px; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: .95rem; color: #fff; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  box-shadow: 0 6px 22px -8px var(--accent); transition: transform .15s, box-shadow .2s;
}
.reasons-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -8px var(--accent); }
.reasons-btn:active { transform: scale(.96); }
.reason-bubble {
  position: absolute; left: 50%; top: 18px; z-index: 1; cursor: pointer; white-space: nowrap;
  padding: .5rem .95rem; border-radius: 100px; font-size: .85rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--green)); box-shadow: 0 8px 26px -10px #000;
  animation: reasonFloat 10s ease-out forwards;
}
.reason-bubble.alt { background: linear-gradient(135deg, var(--cyan), var(--accent)); }
.reason-bubble:hover { filter: brightness(1.12); }
@keyframes reasonFloat {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  7%   { opacity: 1; transform: translate(calc(-50% + (var(--tx) * .35)), calc(-50% + (var(--ty) * .35))) scale(1.04); }
  14%  { transform: translate(calc(-50% + (var(--tx) * .55)), calc(-50% + (var(--ty) * .55))) scale(1); }
  84%  { opacity: 1; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + (var(--tx) * 1.18)), calc(-50% + (var(--ty) * 1.18))) scale(.95); }
}
@media (prefers-reduced-motion: reduce) {
  .reason-bubble { animation: reasonFadeOnly 10s linear forwards; }
  @keyframes reasonFadeOnly { 0% { opacity: 0; } 6% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; } }
}

/* every section is visible on one page; only #support and #welcome-article toggle open */

/* ---------- Welcome article (toggled from Welcome) ---------- */
.welcome-article { display: none; background: var(--surface); border-top: 1px solid var(--border); padding: 4rem 0; }
.welcome-article.open { display: block; animation: fadeIn .45s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wa-hide {
  display: inline-block; background: transparent; border: 1px solid var(--border); color: var(--text);
  padding: .5rem 1.2rem; border-radius: 100px; font-size: .85rem; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all .2s;
}
.wa-hide:hover { border-color: var(--accent); color: var(--accent); }
.wa-hide.top { margin-bottom: 1.75rem; }
.wa-hide.bottom { margin-top: 2.25rem; }

/* two-column top with photo slider on the right */
.wa-top { display: grid; grid-template-columns: 1.45fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 760px) { .wa-top { grid-template-columns: 1fr; } }
.photo-slider { position: relative; }
.photo-stage {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
}
.photo {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  font-size: 3.6rem; background: linear-gradient(135deg, var(--g1, var(--accent)), var(--g2, var(--green)));
}
.photo.is-active { opacity: 1; }
.photo span { font-size: 1rem; font-weight: 600; color: #fff; letter-spacing: .02em; }
.photo-dots { display: flex; gap: .5rem; justify-content: center; margin-top: .9rem; }
.photo-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: var(--border); cursor: pointer; transition: background .2s, transform .2s;
}
.photo-dots button.is-active { background: var(--accent); transform: scale(1.35); }
.welcome-article h3 { margin: 2.25rem 0 .75rem; font-size: 1.3rem; }
.wa-lead p { color: var(--text); font-size: 1.08rem; margin-bottom: 1rem; max-width: 72ch; line-height: 1.7; }
.wa-lead p.muted2 { color: var(--text-muted); }
.wa-answer { color: var(--text-muted); max-width: 72ch; margin-top: 1.25rem; line-height: 1.7; }
.wa-answer strong { color: var(--text); }

.flags { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.flag {
  background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--amber);
  border-radius: 8px; padding: 1rem 1.1rem;
}
.flag b { color: var(--text); display: block; margin-bottom: .3rem; font-size: .98rem; }
.flag span { color: var(--text-muted); font-size: .9rem; line-height: 1.5; }

.cmp-set { margin-top: 1rem; }
.cmp { margin-bottom: 1.2rem; }
.cmp-label { font-size: .92rem; color: var(--text); font-weight: 600; margin-bottom: .5rem; }
.cmp-bar { display: grid; grid-template-columns: 3.2rem 1fr 3.2rem; align-items: center; gap: .7rem; margin-bottom: .4rem; }
.cmp-bar > span { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.cmp-bar > b { font-size: .82rem; color: var(--text); text-align: right; }
.bar { height: 9px; background: var(--bg); border: 1px solid var(--border); border-radius: 100px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--accent), var(--green)); animation: grow 1.1s ease; }
.bar-fill.warn { background: linear-gradient(90deg, var(--amber), #ff6b6b); }
@keyframes grow { from { width: 0; } }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1rem; }
.stat-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 1.4rem 1.1rem; text-align: center; }
.stat-card .big {
  font-size: 1.9rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-card span { display: block; color: var(--text-muted); font-size: .85rem; margin-top: .5rem; line-height: 1.5; }
.stats-note { color: var(--text-muted); font-size: .8rem; margin-top: .8rem; font-style: italic; }

.sliders { margin-top: 1rem; max-width: 620px; }
.slider-row { margin-bottom: 1.6rem; }
.slider-row label { display: block; font-size: .95rem; color: var(--text); margin-bottom: .7rem; font-weight: 600; }
.slider-row label span { color: var(--accent); }
.sliders input[type="range"] { width: 100%; accent-color: var(--accent); cursor: pointer; }
.slider-out { margin-top: .65rem; font-size: .9rem; color: var(--text-muted); line-height: 1.5; }
.slider-out b { color: var(--text); }

.wa-details { border-top: 1px solid var(--border); padding: 1.3rem 0; }
.wa-details summary {
  cursor: pointer; font-weight: 700; font-size: 1.1rem; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.wa-details summary::-webkit-details-marker { display: none; }
.wa-details summary::after { content: '+'; color: var(--accent); font-size: 1.5rem; line-height: 1; }
.wa-details[open] summary::after { content: '–'; }
.wa-details p { color: var(--text-muted); margin-top: 1rem; line-height: 1.75; max-width: 75ch; }

/* ---------- Support panel (compact, under the "I support it" button) ---------- */
.support-panel { display: none; width: 100%; max-width: 560px; margin: 0 auto; text-align: left; }
.support-panel.open { display: block; animation: fadeIn .35s ease; }
.sp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.sp-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--accent); }
.sp-close {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: .85rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: all .2s; flex-shrink: 0;
}
.sp-close:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Support (legacy section styles, kept for the auth cards) ---------- */
.support { display: none; background: var(--surface); border-top: 1px solid var(--border); padding: 4rem 0; }
.support.open { display: block; animation: fadeIn .45s ease; }
.sup-close {
  float: right; background: transparent; border: 1px solid var(--border); color: var(--text);
  padding: .5rem 1.1rem; border-radius: 100px; font-size: .85rem; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all .2s;
}
.sup-close:hover { border-color: var(--accent); color: var(--accent); }
.sup-lead { color: var(--text); font-size: 1.08rem; max-width: 70ch; margin-top: 1rem; line-height: 1.7; }
.sup-lead em { color: var(--text-muted); font-style: italic; }
.support h3 { margin: 2.25rem 0 .5rem; font-size: 1.25rem; }
.sup-sub { color: var(--text-muted); margin-bottom: 1rem; }
.auth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; }
.auth {
  display: flex; align-items: center; gap: .6rem; text-align: left;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: .9rem 1rem; color: var(--text); font-family: inherit; font-size: .92rem;
  font-weight: 600; cursor: pointer; transition: all .2s;
}
.auth:hover { border-color: var(--accent); }
.auth.is-sel { border-color: var(--green); background: #00e6760d; }
.auth .a-emoji { font-size: 1.3rem; line-height: 1; }
.auth-confirm, .share-confirm { color: var(--green); font-size: .9rem; min-height: 1.4em; margin-top: .8rem; font-weight: 600; }
.share-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.share {
  background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 100px;
  padding: .6rem 1.2rem; font-family: inherit; font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.share:hover { border-color: var(--accent); color: var(--accent); }
.sup-community { margin-top: 2.5rem; display: inline-block; }

/* ---------- Athenea (merged intro + tools) ---------- */
.athenea { padding: 5rem 0; background: radial-gradient(60% 50% at 50% 0%, #6c5ce714, transparent 70%); }
.athenea-head { text-align: center; margin-bottom: 2.5rem; }
.hero-owl { font-size: 3.4rem; line-height: 1; margin-bottom: .75rem; }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.02em; margin-bottom: .75rem;
  background: linear-gradient(135deg, var(--accent), var(--cyan), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 1.18rem; color: var(--text-muted); max-width: 660px; margin: 0 auto 1rem; }
.philo-tags { margin-bottom: 1.25rem; }
.philo-tags .tag {
  display: inline-block; margin: .2rem .25rem; padding: .25rem .7rem;
  border: 1px solid var(--border); border-radius: 100px;
  background: var(--surface); color: var(--text-muted); font-size: .8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: 100px;
  font-weight: 600; font-size: 1rem; transition: all .2s; cursor: pointer;
  font-family: inherit; border: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dim); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); }

/* tactile click feedback — ripple + press */
.btn, .aud-btn, .expand-btn, .toggle-btn, .ci-btn, .more-rows-btn, .share, .auth,
.wa-hide, .sup-close, .slide-arrow, .reasons-btn, .more-rows-btn {
  position: relative; overflow: hidden;
}
.btn:active, .aud-btn:active, .expand-btn:active, .toggle-btn:active, .ci-btn:active,
.more-rows-btn:active, .share:active, .auth:active, .wa-hide:active, .sup-close:active,
.slide-arrow:active { transform: scale(.96); }
.ripple {
  position: absolute; border-radius: 50%; transform: translate(-50%, -50%) scale(0);
  background: currentColor; opacity: .22; pointer-events: none; animation: ripple .6s ease-out forwards;
}
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ripple { display: none; } }

/* Single collapsible (e.g. "How Athenea works") */
.collapse {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .4s ease, opacity .4s ease, margin .4s ease;
  text-align: left; max-width: 760px; margin: 0 auto;
}
.collapse.open { max-height: 460px; opacity: 1; margin: 1.5rem auto 0; }
.collapse p { color: var(--text-muted); margin-bottom: .75rem; }
.toggle-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  padding: .6rem 1.3rem; border-radius: 100px; font-size: .9rem; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all .2s; margin-top: 1.25rem;
}
.toggle-btn:hover { border-color: var(--accent); color: var(--accent); }

/* "How Athenea works" auto-advancing slides */
.slides { max-width: 900px; margin: 1.75rem auto 0; text-align: center; }
.slides-eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  font-weight: 600; color: var(--accent); margin-bottom: 1.1rem;
}
.slides-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem; align-items: center; }
@media (max-width: 720px) { .slides-grid { grid-template-columns: 1fr; } }
.slides-diagram svg { width: 100%; height: auto; display: block; }
.slides-textcol { text-align: left; }

/* diagram parts — light up cumulatively as the slides advance */
.dpart { opacity: .16; transition: opacity .7s ease; }
.dpart.lit { opacity: 1; }
.dnode { fill: var(--surface-2); stroke: var(--border); stroke-width: 1.5; transition: stroke .5s; }
.dpart.lit .dnode { stroke: var(--accent); }
.dpart.current .dnode { stroke: var(--green); stroke-width: 2; }
.dframe { fill: none; stroke: var(--border); stroke-width: 1.5; stroke-dasharray: 6 5; transition: stroke .5s; }
.dpart.lit .dframe { stroke: var(--green); }
.darrow { stroke: var(--text-muted); stroke-width: 2; fill: none; transition: stroke .5s; }
.dpart.lit .darrow { stroke: var(--accent); }
.dlabel { fill: var(--text); font: 600 13px Inter, sans-serif; }
.dsub { fill: var(--text-muted); font: 500 10px "JetBrains Mono", monospace; }
.dcap { fill: var(--text-muted); font: 600 11px Inter, sans-serif; }

.slides-stage { position: relative; min-height: 10em; }
.slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .6s ease;
}
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide h4 { font-size: 1.2rem; margin-bottom: .5rem; color: var(--green); }
.slide p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
.slides-dots { display: flex; gap: .55rem; justify-content: center; margin-top: 1.25rem; }
.slides-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: var(--border); cursor: pointer; transition: background .2s, transform .2s;
}
.slides-dots button.is-active { background: var(--accent); transform: scale(1.35); }
.slides-nav { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: 1.25rem; }
.slides-nav .slides-dots { margin-top: 0; }
.slide-arrow {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); font-size: 1.05rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.slide-arrow:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.08); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section.alt { background: var(--surface); }
.eyebrow {
  text-align: center; text-transform: uppercase; letter-spacing: .12em;
  font-size: .8rem; font-weight: 600; color: var(--accent); margin-bottom: .5rem;
}
.h2 { text-align: center; margin-bottom: .75rem; }
.desc { text-align: center; color: var(--text-muted); max-width: 680px; margin: 0 auto 3rem; font-size: 1.1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: border-color .2s, transform .2s; display: flex; flex-direction: column;
}
.section.alt .card, .athenea .card { background: var(--surface-2); }
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card-icon {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 13px; margin-bottom: 1.15rem;
  color: var(--accent); background: linear-gradient(135deg, #6c5ce714, transparent);
  transition: border-color .25s, color .25s, transform .25s, background .25s;
}
.card-icon svg { width: 23px; height: 23px; }
.card:hover .card-icon { border-color: var(--accent); transform: translateY(-2px); background: linear-gradient(135deg, #6c5ce722, transparent); }
.estado.research ~ .card-icon, .research .card-icon { color: var(--cyan); }
.card h3 { margin-bottom: .35rem; font-size: 1.3rem; }
.card-tagline { color: var(--cyan); font-size: .85rem; font-weight: 500; margin-bottom: .75rem; }
.card-basic { color: var(--text-muted); font-size: .95rem; margin-bottom: 1rem; line-height: 1.55; }
.estado {
  display: inline-block; align-self: flex-start; font-size: .8rem; font-weight: 500;
  padding: .25rem .75rem; border-radius: 100px; background: #6c5ce726; color: var(--accent); margin-bottom: 1rem;
}
.estado.proto { background: #ffb74d26; color: var(--amber); }
.estado.research { background: #00bcd426; color: var(--cyan); }

/* ---------- Expand x2 (stepper) ---------- */
.more {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .35s ease, opacity .35s ease, margin .35s ease;
  border-left: 2px solid var(--border); padding-left: 1rem; margin: 0;
}
.more.open { max-height: 600px; opacity: 1; margin: 0 0 1rem; }
.more h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin-bottom: .4rem; font-weight: 600; }
.more-2 h4 { color: var(--cyan); }
.more p, .more ul { color: var(--text-muted); font-size: .9rem; line-height: 1.55; }
.more ul { list-style: none; }
.more li { padding-left: 1.1rem; position: relative; margin-bottom: .25rem; }
.more li::before { content: "›"; position: absolute; left: 0; color: var(--accent); }
.more code { font-size: .82em; }
.expand-btn {
  margin-top: auto; align-self: flex-start;
  background: transparent; border: 1px solid var(--border); color: var(--text);
  padding: .55rem 1.1rem; border-radius: 100px; font-size: .85rem; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all .2s;
}
.expand-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Banners ---------- */
.banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.banner {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  transition: border-color .2s, transform .2s, background .2s;
}
.banner:hover { transform: translateY(-3px); text-decoration: none; }
.banner svg { width: 38px; height: 38px; flex-shrink: 0; }
.banner .b-text { display: flex; flex-direction: column; }
.banner .b-name { font-weight: 700; font-size: 1rem; color: var(--text); }
.banner .b-sub { font-size: .8rem; color: var(--text-muted); }
.banner.hf:hover { border-color: #ffb74d; background: #ffb74d10; }
.banner.oc:hover { border-color: var(--green); background: #00e67610; }
.banner.dk:hover { border-color: #2496ed; background: #2496ed14; }
.banner.gh:hover { border-color: #e4e4e7; background: #e4e4e710; }

/* ---------- Community ---------- */
.community .grid { margin-bottom: 2rem; }

/* expandable community cards */
.ccard { cursor: pointer; }
.ccard-head, .card-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .75rem; }
.ccard-head .card-icon, .card-head .card-icon { margin-bottom: 0; }
.ccard-head h3, .card-head h3 { margin-bottom: 0; }
.ccard-detail {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .4s ease, opacity .4s ease, margin .4s ease;
}
.ccard.open .ccard-detail { max-height: 760px; opacity: 1; margin-top: 1rem; }
.ccard-detail > p { color: var(--text-muted); font-size: .92rem; line-height: 1.55; }
.ccard-hint { display: block; margin-top: 1rem; font-size: .8rem; color: var(--accent); font-weight: 600; }
.ccard.open .ccard-hint { display: none; }
.ci-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  padding: .45rem 1rem; border-radius: 100px; font-size: .82rem; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all .2s; margin: .75rem .5rem 0 0;
}
.ci-btn:hover { border-color: var(--accent); color: var(--accent); }
.ci-more { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .35s ease, margin .35s ease; }
.ci-more.open { max-height: 200px; opacity: 1; margin-top: .5rem; }
.ci-more p { color: var(--text-muted); font-size: .88rem; line-height: 1.5; }

/* "more rows" expander below the cards */
.more-rows-btn {
  display: block; margin: 0 auto 2rem; background: transparent; border: 1px solid var(--border);
  color: var(--text); padding: .6rem 1.4rem; border-radius: 100px; font-size: .9rem;
  font-weight: 600; font-family: inherit; cursor: pointer; transition: all .2s;
}
.more-rows-btn:hover { border-color: var(--accent); color: var(--accent); }
.more-rows {
  max-height: 0; opacity: 0; overflow: hidden; max-width: 760px; margin: 0 auto;
  transition: max-height .5s ease, opacity .5s ease, margin .5s ease;
}
.more-rows.open { max-height: 640px; opacity: 1; margin: 0 auto 2.5rem; }
.crow { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); text-align: left; }
.crow b { color: var(--text); min-width: 9rem; flex-shrink: 0; }
.crow span { color: var(--text-muted); font-size: .92rem; line-height: 1.55; }
@media (max-width: 560px) { .crow { flex-direction: column; gap: .25rem; } .crow b { min-width: 0; } }
.values { text-align: center; margin: 0 auto 2.5rem; max-width: 760px; }
.values .tag {
  display: inline-block; margin: .25rem; padding: .3rem .8rem;
  border: 1px solid var(--border); border-radius: 100px;
  background: var(--surface); color: var(--text-muted); font-size: .85rem;
}
.join-title { text-align: center; font-size: 1.2rem; margin: 1rem 0 1.5rem; }
.join-note { text-align: center; color: var(--text-muted); max-width: 680px; margin: 1.75rem auto 0; font-size: .95rem; line-height: 1.7; }
.join-note a { color: var(--accent); font-weight: 600; }
.join-note a:hover { text-decoration: underline; }
.banner .b-emoji { font-size: 1.9rem; line-height: 1; width: 38px; text-align: center; flex-shrink: 0; }
.cta {
  margin-top: 2.5rem; text-align: center; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem 1.5rem;
}
.cta .actions { justify-content: center; }
.cta-text {
  font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; background: var(--surface); }
.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; gap: 2rem; } }
.brand-name {
  font-size: 1.25rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer .brand p { color: var(--text-muted); font-size: .9rem; margin-top: .5rem; }
.flinks h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: .75rem; }
.flinks a { display: block; font-size: .9rem; margin-bottom: .4rem; color: var(--text-muted); }
.flinks a:hover { color: var(--text); }
.copy { border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; }
.copy p { color: var(--text-muted); font-size: .85rem; }
.copy .small { font-size: .8rem; margin-top: .25rem; }
