/* ============================================================
   HAIA — public site styles
   Light mode · sleek/modern · blue accents (from the album art)
   ============================================================ */

:root {
  /* Blue palette derived from the album cover */
  --blue-900: #0a244f;
  --blue-800: #103168;
  --blue-700: #14418c;
  --blue-600: #1a56b8;   /* primary */
  --blue-500: #2f6fe0;
  --blue-400: #4f97ec;
  --blue-300: #8fc0f5;
  --blue-100: #dbeafe;
  --blue-50:  #eef4ff;

  --ink:      #0f1a2e;
  --ink-soft: #2c3a52;
  --muted:    #64748b;
  --line:     #e5ebf3;
  --bg:       #ffffff;
  --surface:  #f6f9fd;
  --surface-2:#eef3fa;

  --accent-grad: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  --shadow-sm: 0 1px 2px rgba(15, 26, 46, .06), 0 1px 3px rgba(15, 26, 46, .05);
  --shadow-md: 0 10px 30px -12px rgba(20, 65, 140, .28);
  --shadow-lg: 0 24px 60px -20px rgba(20, 65, 140, .35);

  --radius:   14px;
  --radius-lg:22px;
  --maxw:     1120px;

  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Sora", var(--font-body);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-700); background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 6px 12px; border-radius: 999px;
}

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: 13px 22px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { color: #fff; box-shadow: var(--shadow-lg); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--ink); border-color: var(--blue-300); background: var(--blue-50); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.brand-link:hover { color: var(--ink); }
.brand-logo { height: 30px; width: auto; display: block; }
@media (max-width: 560px) { .brand-logo { height: 25px; } }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: .96rem; padding: 8px 12px; border-radius: 9px; }
.nav-links a:hover { color: var(--blue-700); background: var(--blue-50); }
.nav-links a.active { color: var(--blue-700); background: var(--blue-50); }
.nav-cta { margin-left: 6px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: .2s; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Logo placeholder ---------- */
.logo-ph {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--accent-grad); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 800; font-size: .95rem; letter-spacing: .04em;
  box-shadow: var(--shadow-sm); flex: none;
  position: relative; overflow: hidden;
}
.logo-ph::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,.35), transparent 55%);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 380px at 78% 12%, rgba(79, 151, 236, .28), transparent 60%),
    radial-gradient(520px 420px at 12% 6%, rgba(26, 86, 184, .18), transparent 62%),
    linear-gradient(180deg, var(--blue-50), #fff 62%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(20, 65, 140, .06) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); margin: 18px 0 0; }
.hero h1 .accent { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Animated hero logo (replaces the plain HAIA wordmark) */
.hero-logo { position: relative; display: inline-block; isolation: isolate; margin: 10px 0 0; line-height: 0;
  animation: heroRise .85s cubic-bezier(.2,.7,.2,1) both; }
.hero-logo img { display: block; width: min(500px, 82vw); height: auto; position: relative; z-index: 1;
  filter: drop-shadow(0 12px 30px rgba(26, 86, 184, .22)); }
/* breathing glow behind the mark */
.hero-logo::before { content: ""; position: absolute; inset: -14% -8%; z-index: 0;
  background: radial-gradient(58% 58% at 50% 50%, rgba(79, 151, 236, .34), transparent 70%);
  filter: blur(10px); animation: heroGlow 4.5s ease-in-out infinite; }
/* light glint sweeping across the letterforms (masked to the logo shape) */
.hero-logo::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.9) 50%, transparent 62%);
  background-size: 250% 100%; background-repeat: no-repeat;
  -webkit-mask: url(/assets/img/logo.png) center / contain no-repeat;
          mask: url(/assets/img/logo.png) center / contain no-repeat;
  animation: heroGlint 5s ease-in-out 1.2s infinite; }
@keyframes heroRise { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes heroGlow { 0%, 100% { opacity: .5; transform: scale(.98); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes heroGlint {
  0% { background-position: 130% 0; opacity: 0; }
  8% { opacity: 1; }
  38% { background-position: -30% 0; opacity: 1; }
  46%, 100% { background-position: -30% 0; opacity: 0; }
}
.art-spark { display: block; font-size: 2.4rem; line-height: 1; margin: 0 auto 14px; color: var(--blue-500);
  text-shadow: 0 4px 18px rgba(79, 151, 236, .4); animation: heroGlow 4.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero-logo, .art-spark { animation: none; }
  .hero-logo::before { animation: none; }
  .hero-logo::after { display: none; }
}
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); margin: 20px 0 30px; max-width: 34ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Centered single-column hero (no side visual) */
.hero-solo { max-width: 720px; margin: 0 auto; text-align: center; }
.hero-solo .hero-sub { max-width: 46ch; margin-inline: auto; }
.hero-solo .hero-actions { justify-content: center; }
.hero-solo .hero-logo { margin: 14px auto 0; }

/* Hero visual (art placeholder that echoes the silent-realm/album vibe) */
.hero-visual {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ffffff, var(--blue-50));
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: grid; place-items: center; overflow: hidden;
}
.hero-visual .shard {
  position: absolute; inset: 0;
  background:
    conic-gradient(from 210deg at 62% 42%, rgba(26,86,184,.0), rgba(47,111,224,.22), rgba(143,192,245,.05), rgba(26,86,184,.18), rgba(47,111,224,0));
  filter: blur(2px);
}
.hero-visual .art-label { position: relative; z-index: 1; text-align: center; color: var(--blue-700); padding: 24px; }
.hero-visual .art-label .logo-ph { width: 76px; height: 76px; font-size: 1.6rem; border-radius: 20px; margin: 0 auto 14px; }
.hero-visual .art-label small { display: block; color: var(--muted); margin-top: 6px; font-size: .82rem; }

/* ---------- Sections ---------- */
section { padding: 74px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 14px 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

.pitch { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pitch p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 3.4vw, 2rem); line-height: 1.35; color: var(--ink); max-width: 24ch; margin: 0 auto; text-align: center; letter-spacing: -.02em; }
.pitch .container { max-width: 900px; }

/* ---------- Cards grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-200, var(--blue-100)); }
.card .card-index { font-family: var(--font-display); font-weight: 700; color: var(--blue-500); font-size: .9rem; letter-spacing: .1em; }
.card h3 { font-size: 1.3rem; margin: 10px 0 8px; }
.card p { color: var(--ink-soft); margin: 0; }

/* ---------- Status / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.status-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.status-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink-soft); }
.status-dot { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: .7rem; color: #fff; }
.status-dot.done { background: var(--accent-grad); }
.status-dot.progress { background: #fff; border: 2px dashed var(--blue-400); color: var(--blue-500); }
.status-tag { margin-left: auto; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-600); background: var(--blue-50); padding: 3px 9px; border-radius: 999px; }
.status-tag.progress { color: #9a5b00; background: #fff4e0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; }

/* ---------- Roles ---------- */
.roles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.role-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px;
  transition: transform .15s ease, box-shadow .2s ease;
}
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.role-card.planned { background: var(--surface); opacity: .92; }
.role-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.role-card h3 { font-size: 1.18rem; margin: 0; }
.role-cat { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chip { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.chip.open { color: #0b6a3a; background: #e5f6ec; border: 1px solid #bfe8cf; }
.chip.planned { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
.role-card p { color: var(--ink-soft); margin: 0; flex: 1; }
.role-card .btn { align-self: flex-start; margin-top: 6px; }

.note {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-800);
  border-radius: var(--radius); padding: 18px 20px; margin-top: 28px;
}
.note .note-icon { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.note p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue-900); color: #fff; border-radius: 0; }
.cta-band { position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 20%, rgba(79,151,236,.4), transparent 60%); }
.cta-inner { position: relative; text-align: center; max-width: 640px; margin: 0 auto; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.cta-band p { color: #c7d6ee; font-size: 1.1rem; margin: 12px 0 26px; }

/* ---------- Story page ---------- */
.prose { max-width: 680px; }
.prose p { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 22px; }
.prose p:first-of-type { font-size: 1.28rem; color: var(--ink); }
.page-hero { padding: 72px 0 8px; }
.page-hero .container { max-width: 760px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 14px 0 0; }

/* ---------- Forms ---------- */
.form-wrap { max-width: 720px; margin: 0 auto; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; color: var(--ink); font-size: .96rem; }
.field .req { color: var(--blue-600); }
.field .hint { font-weight: 400; color: var(--muted); font-size: .86rem; margin-top: 3px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(79,151,236,.18);
}
.field textarea { min-height: 118px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 8px; }

.flash { padding: 13px 16px; border-radius: 11px; margin-bottom: 14px; font-size: .95rem; font-weight: 500; border: 1px solid transparent; }
.flash-error { background: #fdecec; color: #a12020; border-color: #f6cccc; }
.flash-success { background: #e6f6ec; color: #0b6a3a; border-color: #bfe8cf; }

.success-card { max-width: 560px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 48px 34px; box-shadow: var(--shadow-md); }
.success-card .check { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-grad); color: #fff; display: grid; place-items: center; margin: 0 auto 20px; font-size: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 54px 0 34px; margin-top: 20px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { max-width: 320px; }
.footer-brand .brand-link { margin-bottom: 10px; }
.footer-brand p { color: var(--muted); margin: 0; font-size: .95rem; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-display); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }
.footer-col a, .footer-col span { display: block; color: var(--ink-soft); padding: 4px 0; font-size: .95rem; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px; color: var(--muted); font-size: .88rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 380px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .cards { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px; gap: 4px; box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform .22s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 10px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { margin: 6px 0 0; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 60px; }
}
