/* SUDAI homepage. Builds on styles.css (same tokens, glass cards, orange glows). */
@property --spin { syntax: '<angle>'; inherits: true; initial-value: 0deg; }

.home main.page { max-width: 1040px; padding: 0 16px 56px; }
.home h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.3; margin: 0 0 14px; color: var(--ink); }
.home h3 { font-size: 19px; line-height: 1.4; margin: 0 0 6px; color: var(--ink); }
.home p { margin: 0 0 10px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 12px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; max-width: 1040px; margin: 0 auto; padding: 12px 16px;
  background: rgba(255, 246, 238, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.7); }
.mini-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 10px; font-size: 15px; }
.topbar nav a:hover { color: var(--orange-deep); background: rgba(255,121,0,.08); }

/* Hero: logo at the centre of everything it builds */
.hero { text-align: center; padding: 36px 0 24px; }
.orbit { --r: 190px; position: relative; width: calc(var(--r) * 2 + 120px); height: calc(var(--r) * 2 + 60px);
  margin: 0 auto 8px; display: grid; place-items: center; animation: spin 80s linear 1.6s infinite; }
.ring { position: absolute; width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%;
  border: 1.5px dashed rgba(255,121,0,.35);
  background: radial-gradient(circle, rgba(255,255,255,.75) 0 34%, rgba(255,255,255,0) 70%);
  animation: ring-in .9s cubic-bezier(.2,.8,.2,1) both; }
.hero-logo { position: relative; width: 170px; height: auto; filter: drop-shadow(0 18px 30px rgba(255,121,0,.28));
  animation: logo-in 1s cubic-bezier(.2,.9,.25,1.15) both; }
.sat { position: absolute; top: 50%; left: 50%; white-space: nowrap;
  transform: translate(-50%, -50%) rotate(calc(var(--a) + var(--spin))) translateY(calc(var(--r) * -1)) rotate(calc((var(--a) + var(--spin)) * -1));
  background: var(--glass); border: 1.2px solid var(--glass-border); color: var(--orange-deep); font-weight: 700; font-size: 15px;
  padding: 6px 14px; border-radius: 999px; box-shadow: 0 8px 20px rgba(255,121,0,.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; animation: sat-in .5s ease-out forwards; }
.sat:nth-of-type(1) { animation-delay: .55s; } .sat:nth-of-type(2) { animation-delay: .67s; }
.sat:nth-of-type(3) { animation-delay: .79s; } .sat:nth-of-type(4) { animation-delay: .91s; }
.sat:nth-of-type(5) { animation-delay: 1.03s; } .sat:nth-of-type(6) { animation-delay: 1.15s; }
.sat:nth-of-type(7) { animation-delay: 1.27s; } .sat:nth-of-type(8) { animation-delay: 1.39s; }
@keyframes spin { to { --spin: 360deg; } }
@keyframes ring-in { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes logo-in { from { transform: scale(.55) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sat-in { to { opacity: 1; } }

.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.2; margin: 0 0 14px; color: var(--ink); }
.lede { font-size: clamp(17px, 2.2vw, 20px); max-width: 620px; margin: 0 auto 22px !important; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn.ghost { background: var(--glass); color: var(--orange-deep); border: 1.2px solid rgba(255,121,0,.35); box-shadow: none; }
.btn.soon { background: var(--ink); box-shadow: 0 10px 24px rgba(29,29,34,.22); cursor: default; }

/* Sections */
.block { margin-top: 64px; scroll-margin-top: 80px; }
.intro { max-width: 680px; font-size: 17px; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
.prose { font-size: 18px; line-height: 1.9; max-width: 62ch; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li, .tiles article, .trust, .founder, .faq details, .compare {
  background: var(--glass); border: 1.2px solid var(--glass-border); border-radius: 22px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 14px 40px rgba(255,121,0,.13); }
.facts li { padding: 14px 18px; color: var(--muted); }
.facts li b { display: block; color: var(--ink); font-size: 17px; }

/* How it works: numbered links of a chain (the logo's shape) */
.chain { list-style: none; margin: 0; padding: 0; counter-reset: step; position: relative; }
.chain::before { content: ""; position: absolute; top: 24px; bottom: 24px; right: 25px; width: 3px; border-radius: 3px;
  background: linear-gradient(var(--orange), rgba(255,121,0,.15)); }
.chain li { counter-increment: step; position: relative; padding: 4px 76px 22px 0; }
.chain li::before { content: counter(step); position: absolute; right: 4px; top: 2px; width: 44px; height: 44px;
  display: grid; place-items: center; transform: rotate(45deg); border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep)); color: #fff; font-weight: 700; font-size: 18px;
  box-shadow: 0 8px 20px rgba(255,121,0,.35); }
.chain li::after { content: counter(step); position: absolute; right: 4px; top: 2px; width: 44px; height: 44px;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; }
.chain li::before { color: transparent; }
.chain p { max-width: 62ch; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.tiles article { padding: 20px; }
.tiles article p { font-size: 15.5px; margin: 0; }

.trust { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; padding: 24px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-right: 34px; }
.checks li::before { content: ""; position: absolute; right: 0; top: 4px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/16px no-repeat; }
.policy-links { display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center;
  border-right: 1px solid rgba(255,121,0,.18); padding-right: 20px; }

.compare { overflow: hidden; margin: 18px 0 10px; }
.compare .row { display: grid; grid-template-columns: .8fr 1fr 1fr; }
.compare .row > * { padding: 14px 16px; border-top: 1px solid rgba(255,121,0,.12); }
.compare .row > :nth-child(3) { background: rgba(255,121,0,.09); color: var(--ink); font-weight: 500; }
.compare .head > * { border-top: 0; font-weight: 700; color: var(--ink); }
.compare .head > :nth-child(3) { color: #fff; background: linear-gradient(135deg, var(--orange), var(--orange-deep)); }
.compare [role="rowheader"] { font-weight: 700; color: var(--ink); }
.compare [role="cell"] { color: var(--muted); }

.manifesto { text-align: center; padding: 40px 8px; }
.manifesto h2 { font-size: clamp(30px, 5vw, 46px); }
.manifesto p { font-size: clamp(18px, 2.4vw, 22px); line-height: 1.9; max-width: 720px; margin: 0 auto 14px; color: #3d3d46; }

.founder { display: flex; gap: 22px; align-items: center; padding: 24px; }
.founder img { flex: none; border-radius: 24px; background: #fff; padding: 10px; box-shadow: 0 10px 24px rgba(255,121,0,.2); }
.founder .role { color: var(--orange-deep); font-weight: 500; }

.faq { display: grid; gap: 10px; }
.faq details { padding: 0; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px 16px 52px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--orange-deep); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 16px; margin: 0; }

.final { text-align: center; margin: 72px 0 0; }
.final h2 { font-size: clamp(28px, 5vw, 42px); }

/* Sections ease in once as you reach them (set up by home.js) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .split, .trust { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .policy-links { border-right: 0; padding-right: 0; border-top: 1px solid rgba(255,121,0,.18); padding-top: 16px; }
}
@media (max-width: 560px) {
  .orbit { --r: 128px; }
  .hero-logo { width: 118px; }
  .sat { font-size: 12.5px; padding: 4px 10px; }
  .tiles { grid-template-columns: 1fr; }
  .topbar nav a { padding: 4px 6px; font-size: 13.5px; }
  .compare .row { grid-template-columns: .7fr 1fr 1fr; font-size: 14px; }
  .compare .row > * { padding: 10px 8px; }
  .founder { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit, .ring, .hero-logo, .sat { animation: none !important; opacity: 1 !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.teaser-row { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 22px 24px;
  background: var(--glass); border: 1.2px solid var(--glass-border); border-radius: 22px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 14px 40px rgba(255,121,0,.13); }
.teaser-row p { margin: 0; font-size: 17px; max-width: 62ch; }
.teaser-row b { color: var(--orange-deep); }
.teaser-row .btn { flex: none; }
.faq a { color: var(--orange-deep); }
@media (max-width: 700px) { .teaser-row { flex-direction: column; align-items: stretch; text-align: center; } }
