/* AIOS marketing site — aligned with ui/web brand theme */

:root {
  --cyan: #38bdf8;
  --purple: #a78bfa;
  --indigo: #818cf8;
  --primary: #5b9cf6;
  --bg: #0f1419;
  --bg-elevated: #151c26;
  --surface: #1a2332;
  --surface-hover: #212d3f;
  --text: #e8edf4;
  --text-soft: #c5d0de;
  --muted: #8b9cb0;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(56, 189, 248, 0.22);
  --gradient-brand: linear-gradient(90deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(167, 139, 250, 0.12), transparent 50%);
  --font: "Inter", "Noto Sans TC", "Segoe UI", system-ui, sans-serif;
  --wrap: min(1120px, 100%);
  --header-h: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.site-bg {
  position: fixed;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header: logo left, nav right ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.82);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  display: block;
  height: 28px;
  width: auto;
  max-width: min(200px, 48vw);
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(56, 189, 248, 0.08);
}

/* ── Hero: centered headline ── */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 10vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.hero-inner {
  max-width: 820px;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}

.beta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.75);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 640px;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  box-shadow: 0 4px 24px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(129, 140, 248, 0.35);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--border-strong);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* ── Trust strip ── */
.trust-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(21, 28, 38, 0.6);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.trust-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.45);
}

/* ── Features ── */
.features {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
  transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.12);
  border-radius: 8px;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Pillars ── */
.pillars {
  position: relative;
  z-index: 1;
  padding: 0 0 clamp(3rem, 8vw, 5rem);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.pillar-card {
  padding: 1.25rem 1.35rem;
  border-left: 3px solid transparent;
  border-image: var(--gradient-brand) 1;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.06), transparent 60%);
  border-radius: 0 12px 12px 0;
}

.pillar-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.pillar-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── CTA band ── */
.cta-band {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(26, 35, 50, 0.5), rgba(15, 20, 25, 0.8));
}

.cta-inner {
  text-align: center;
  max-width: 560px;
}

.cta-inner h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
}

.cta-inner p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

/* ── Inner pages ── */
.page {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem 3.5rem;
}

.page-hero {
  margin-bottom: 2rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-hero .lead {
  margin: 0;
  max-width: 640px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.lead strong {
  color: var(--text);
  font-weight: 600;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  margin: 1rem 0;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.steps,
.req {
  color: var(--muted);
  padding-left: 1.2rem;
}

.steps li,
.req li {
  margin: 0.35rem 0;
}

.hash {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem;
  overflow-x: auto;
  font-size: 0.82rem;
  color: var(--text-soft);
  word-break: break-all;
}

.prose h2 {
  margin-top: 1.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.prose ul {
  color: var(--text-soft);
}

.prose p {
  color: var(--text-soft);
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: rgba(9, 13, 20, 0.6);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-brand {
  height: 24px;
  width: auto;
  opacity: 0.9;
}

.footer-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-nav {
  display: flex;
  gap: 1rem;
}

.footer-nav a,
.site-footer a {
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-nav a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .trust-sep {
    display: none;
  }

  .trust-inner {
    flex-direction: column;
    gap: 0.35rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
