@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,650;9..144,700&family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --bg0: #080a0e;
  --bg1: #10141c;
  --bg2: #171d28;
  --ink: #0b0d12;
  --text: #f3efe6;
  --muted: #a4adbb;
  --gold: #d7b57a;
  --gold-2: #f0d9a8;
  --teal: #6ec8c9;
  --teal-deep: #3a9ea0;
  --rose: #d9899c;
  --stroke: rgba(243, 239, 230, 0.12);
  --stroke-strong: rgba(243, 239, 230, 0.2);
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.07);
  --link: #e3c48a;
  --max: 1120px;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  background:
    radial-gradient(1000px 560px at 88% -8%, rgba(215, 181, 122, 0.16), transparent 55%),
    radial-gradient(900px 520px at -12% 18%, rgba(110, 200, 201, 0.12), transparent 50%),
    radial-gradient(700px 480px at 50% 110%, rgba(217, 137, 156, 0.08), transparent 50%),
    linear-gradient(165deg, #080a0e 0%, #10141c 48%, #14101a 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.045) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.035) 0 1px, transparent 1.5px);
  background-size: 48px 48px, 72px 72px;
  opacity: 0.55;
  z-index: 0;
}
.site { position: relative; z-index: 1; }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 80;
  padding: 0.55rem 0.9rem;
  background: var(--gold-2);
  color: var(--ink);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: var(--link); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

/* Header */
.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  background: rgba(8, 10, 14, 0.78);
  border-bottom: 1px solid var(--stroke);
}
.topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--stroke-strong);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span[aria-hidden="true"],
.nav-toggle span[aria-hidden="true"]::before,
.nav-toggle span[aria-hidden="true"]::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  position: relative;
  border-radius: 2px;
}
.nav-toggle span[aria-hidden="true"]::before,
.nav-toggle span[aria-hidden="true"]::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span[aria-hidden="true"]::before { top: -6px; }
.nav-toggle span[aria-hidden="true"]::after { top: 6px; }
nav.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
nav.links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
nav.links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}
nav.links a[aria-current="page"] {
  color: var(--ink);
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
}

/* Typography helpers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: rgba(215, 181, 122, 0.1);
  border: 1px solid rgba(215, 181, 122, 0.28);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.nowrap { white-space: nowrap; }
.lede {
  margin: 0 0 1.4rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 300;
}
.section-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 40rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(215, 181, 122, 0.22); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--stroke-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); box-shadow: none; }
.btn-soon,
.btn[aria-disabled="true"] {
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  border: 1px solid var(--stroke);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
  font-weight: 550;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.4rem 1.5rem 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 220px);
  gap: 2rem 2.5rem;
  align-items: center;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 5vw, 3.45rem);
  background: linear-gradient(120deg, #fff 12%, var(--gold-2) 58%, var(--teal) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-mark {
  position: relative;
  width: min(100%, 220px);
  aspect-ratio: 1;
  justify-self: center;
}
.hero-mark::before {
  content: "";
  position: absolute;
  inset: -16%;
  border-radius: 28px;
  background: conic-gradient(from 180deg, var(--gold), var(--teal), var(--rose), var(--gold));
  opacity: 0.35;
  filter: blur(18px);
  animation: spin 16s linear infinite;
  z-index: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-mark img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,0.45));
}

/* Sections */
.home-main,
.page-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1.5rem 2.5rem;
  display: grid;
  gap: 3.2rem;
}
.section-head { margin-bottom: 1.35rem; max-width: 42rem; }
.section-head h2,
.about-card h2,
.optin-box h2,
.cta-card h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
}

/* Agent cards */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
.agent-card {
  display: flex;
  flex-direction: column;
  padding: 1.3rem 1.2rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--stroke);
  min-height: 100%;
}
.agent-card.is-live {
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.agent-card.is-live:hover,
.agent-card.is-live:focus-within {
  transform: translateY(-3px);
  border-color: rgba(215, 181, 122, 0.45);
  background: linear-gradient(160deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04));
}
.agent-card.is-soon {
  border-style: dashed;
  background: rgba(255,255,255,0.03);
}
.agent-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid rgba(240, 217, 168, 0.45);
  box-shadow: 0 0 0 6px rgba(215, 181, 122, 0.08);
}
.agent-photo-fallback {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: radial-gradient(circle at 30% 25%, rgba(240,217,168,0.2), rgba(255,255,255,0.04));
  border: 1px dashed rgba(243, 239, 230, 0.28);
  color: var(--gold-2);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
}
.agent-card .eyebrow { margin-bottom: 0.55rem; flex: 0 0 auto; align-self: flex-start; }
.agent-card .byline { flex: 0 0 auto; }
.agent-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
}
.byline {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 500;
}
.agent-card p {
  margin: 0 0 1.15rem;
  color: #d5dbe6;
  font-size: 0.96rem;
  flex: 1;
}
.agent-card .btn,
.agent-card .btn-soon {
  margin-top: auto;
  align-self: flex-start;
}

/* Feature / task grids */
.feature-grid,
.task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.feature-card,
.task-card {
  padding: 1.2rem 1.15rem 1.3rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.035));
  border: 1px solid var(--stroke);
}
.feature-icon,
.task-card .num {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.feature-card h3,
.task-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}
.feature-card p,
.task-card p {
  margin: 0;
  color: #d5dbe6;
  font-size: 0.95rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.steps li {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 0.85rem 1.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--stroke);
}
.steps li strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
}
.steps li span { color: #d5dbe6; }

.about-card,
.optin-box,
.cta-card {
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
}
.about-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  background: linear-gradient(160deg, rgba(215,181,122,0.12), rgba(110,200,201,0.06));
}
.about-card p { margin: 0 0 0.65rem; color: #d5dbe6; }
.about-card p:last-child { margin-bottom: 0; }
.about-card strong { color: var(--text); }
.about-meta {
  text-align: right;
  color: var(--muted);
  font-size: 0.92rem;
}
.about-meta p { margin: 0 0 0.35rem; color: var(--muted); }
.about-meta a { color: var(--link); text-decoration: none; }
.about-meta a:hover { text-decoration: underline; }

.optin-box {
  background: rgba(18, 24, 38, 0.72);
  border-color: rgba(110, 200, 201, 0.3);
}
.optin-box p,
.cta-card p {
  margin: 0;
  color: #d5dbe6;
  max-width: 54rem;
}
.optin-box strong { color: var(--text); }
.optin-box a,
.cta-card a { color: var(--link); text-decoration: none; }
.optin-box a:hover,
.cta-card a:hover { text-decoration: underline; }
.cta-card {
  background: linear-gradient(160deg, rgba(215,181,122,0.14), rgba(110,200,201,0.07));
}

/* Page heroes (agents, profile) */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.7rem 1.5rem 0.6rem;
}
.page-hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4.4vw, 3rem);
}

/* Hana profile */
.profile-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.6rem 1.5rem 0.4rem;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2rem 2.4rem;
  align-items: center;
}
.profile-photo-wrap {
  position: relative;
  width: 220px;
  aspect-ratio: 1;
  justify-self: center;
}
.profile-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: conic-gradient(from 160deg, var(--teal), var(--rose), var(--gold), var(--teal));
  opacity: 0.42;
  filter: blur(14px);
  z-index: 0;
}
.profile-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.5);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.profile-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
}
.profile-hero .lede { margin-bottom: 0.4rem; }

.prose-section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}
.prose-section p {
  margin: 0 0 0.9rem;
  color: #d5dbe6;
  max-width: 48rem;
}
.prose-section p:last-child { margin-bottom: 0; }

.quote-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.quote-list li {
  margin: 0;
  padding: 1rem 1.15rem 1rem 1.2rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-left: 3px solid var(--gold);
  color: var(--text);
  font-size: 1.02rem;
}
.quote-list li p { margin: 0; color: var(--text); }
.quote-list cite {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}

.principle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.principle-list li {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--stroke);
}
.principle-list strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
}
.principle-list span { color: #d5dbe6; }

.aside-note {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(215, 181, 122, 0.08);
  border: 1px solid rgba(215, 181, 122, 0.2);
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  display: grid;
  gap: 0.85rem;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .foot-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 600;
}
.site-footer .foot-brand img {
  height: 28px;
  width: auto;
  display: block;
}
.site-footer a { color: var(--link); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; }
.site-footer .foot-copy { margin: 0; font-size: 0.82rem; }


/* Home v2 sections */
.cap-grid,
.infra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.connector-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.connector-list li {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.made-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.made-list > div {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--stroke);
}
.made-list strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
}
.made-list span { color: #d5dbe6; }
.roadmap-card {
  border-color: rgba(215, 181, 122, 0.38);
  background: linear-gradient(160deg, rgba(215,181,122,0.13), rgba(110,200,201,0.05));
}
.meet-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, rgba(215,181,122,0.12), rgba(110,200,201,0.06));
}
.meet-strip h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
}
.meet-strip p { margin: 0; color: #d5dbe6; max-width: 44rem; }
.meet-strip .btn { white-space: nowrap; }

@media (max-width: 980px) {
  .feature-grid,
  .task-grid,
  .cap-grid,
  .infra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { grid-template-columns: 1fr; }
  .hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .hero-mark { width: 150px; justify-self: start; }
  .profile-hero { grid-template-columns: 1fr; }
  .profile-photo-wrap { width: 168px; justify-self: start; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  nav.links {
    display: none;
    width: 100%;
    flex-direction: column;
  }
  body.nav-open nav.links { display: flex; }
  .about-card { grid-template-columns: 1fr; }
  .about-meta { text-align: left; }
  .meet-strip { grid-template-columns: 1fr; }
  .cap-grid,
  .infra-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .agent-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .topbar { padding: 0.75rem 1rem; }
  .brand-logo { height: 30px; }
  .feature-grid,
  .task-grid,
  .cap-grid,
  .infra-grid { grid-template-columns: 1fr; }
  .hero, .home-main, .page-main, .page-hero, .profile-hero, .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
