/* Ondela invite site — v2: familiarity-first design */

:root {
  --bg: #0c0f14;
  --surface: #131822;
  --surface-2: #1a212e;
  --text: #eceff4;
  --muted: #94a1b2;
  --accent: #c9a86a;
  --accent-soft: rgba(201, 168, 106, .14);
  --accent-hover: #dcc08d;
  --border: #27303e;
  --urgent: #d98a7e;
  --flag: #c9a86a;
  --free: #8fbf9f;
  --radius: 14px;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12, 15, 20, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(39, 48, 62, .6);
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; padding-bottom: 16px;
}
.logo { display: inline-flex; align-items: center; }
.logo-mark { width: 34px; height: 34px; display: block; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 64px; align-items: center;
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-persona { order: -1; justify-self: center; }
}

.eyebrow {
  text-transform: uppercase; letter-spacing: 3px;
  font-size: .75rem; font-weight: 600;
  color: var(--accent); margin-bottom: 18px;
}
h1 {
  font-family: var(--font-display);
  font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.12; margin-bottom: 24px;
  letter-spacing: -.01em;
}
.lede {
  color: var(--muted); font-size: 1.12rem;
  max-width: 520px; margin-bottom: 36px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Persona */
.hero-persona { text-align: center; }
.persona-frame {
  position: relative;
  width: 300px; height: 300px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid var(--accent);
  overflow: visible;
  background: var(--surface-2);
}
.persona-frame picture,
.persona-frame .persona-img {
  width: 100%; height: 100%;
  border-radius: 50%; overflow: hidden;
  display: block;
}
.persona-img { object-fit: cover; }
.persona-ring {
  position: absolute; inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 106, .25);
  animation: ring-pulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.03); opacity: 1; }
}
.persona-placeholder { display: flex; align-items: center; justify-content: center; }
.persona-placeholder::after {
  content: "N";
  font-family: var(--font-display);
  font-size: 6rem; color: var(--accent); opacity: .5;
}
.persona-label { margin-top: 20px; }
.persona-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600;
}
.persona-role { color: var(--muted); font-size: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  font: inherit; font-weight: 500; cursor: pointer;
  padding: 13px 28px; border-radius: 999px;
  border: 1px solid transparent;
  transition: all .18s ease;
}
.btn-primary { background: var(--accent); color: #16110a; font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background: transparent; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--muted); padding: 8px 14px; }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* ---------- Briefing ---------- */
.briefing { padding: 88px 0; }
.briefing-card {
  max-width: 680px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
}
.briefing-head {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.briefing-avatar, .briefing-avatar img {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  object-fit: cover; display: block;
}
.briefing-title { font-weight: 600; font-size: .95rem; }
.briefing-time { color: var(--muted); font-size: .8rem; }
.briefing-body { padding: 28px; }
.briefing-line { margin-bottom: 20px; font-size: 1.02rem; }
.briefing-items { list-style: none; display: grid; gap: 14px; }
.briefing-items li {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: .95rem; color: #c8d1dc;
}
.tag {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .8px;
  padding: 3px 10px; border-radius: 999px;
  margin-bottom: 8px;
}
.tag-urgent { background: rgba(217, 138, 126, .15); color: var(--urgent); }
.tag-flag { background: var(--accent-soft); color: var(--flag); }
.tag-free { background: rgba(143, 191, 159, .12); color: var(--free); }
.briefing-signoff {
  margin-top: 22px;
  font-family: var(--font-display);
  font-style: italic; font-size: 1.08rem;
  color: var(--accent);
}
.briefing-caption {
  text-align: center; color: var(--muted);
  max-width: 560px; margin: 28px auto 0;
  font-size: .95rem;
}

/* ---------- Trust (GDPR / isolation / privacy) ---------- */
.trust {
  padding: 88px 0;
  background:
    radial-gradient(ellipse 50% 40% at 15% 30%, var(--accent-soft), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400; font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15; letter-spacing: -.01em;
  max-width: 620px; margin-bottom: 18px;
}
.section-lede {
  color: var(--muted); font-size: 1.08rem;
  max-width: 560px; margin-bottom: 48px;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 820px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .18s ease, transform .18s ease;
}
.trust-item:hover { border-color: rgba(201, 168, 106, .4); transform: translateY(-2px); }
.trust-item h3 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.18rem;
  margin-bottom: 10px; color: var(--accent);
}
.trust-item p { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.section-cta { margin-top: 44px; }

/* ---------- A2A (agent-to-agent, roadmap) ---------- */
.a2a {
  padding: 88px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.a2a-inner {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 64px; align-items: center;
}
@media (max-width: 820px) {
  .a2a-inner { grid-template-columns: 1fr; gap: 40px; }
  .a2a-visual { order: -1; }
}
.a2a-copy .section-lede { margin-bottom: 20px; }
.a2a-body { color: #c8d1dc; font-size: 1rem; max-width: 520px; line-height: 1.65; }
.pill-roadmap {
  display: inline-block; vertical-align: middle;
  margin-left: 10px; padding: 3px 12px;
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(201, 168, 106, .35);
  border-radius: 999px;
}
/* Node graph: three Ondelas talking */
.a2a-visual {
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.a2a-node {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-width: 200px; text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}
.a2a-node-name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem; color: var(--text);
}
.a2a-node-role { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.a2a-link { height: 44px; display: flex; align-items: stretch; }
.a2a-link span {
  width: 1px; background: linear-gradient(var(--accent), transparent);
  position: relative; display: block;
}
.a2a-link span::after {
  content: ""; position: absolute; left: 50%; top: 0;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
  animation: a2a-pulse 2.4s ease-in-out infinite;
}
.a2a-link:last-of-type span::after { animation-delay: 1.2s; }
@keyframes a2a-pulse {
  0%   { top: 0; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: calc(100% - 5px); opacity: 0; }
}

/* ---------- Difference ---------- */
.difference {
  padding: 80px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.difference-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
@media (max-width: 820px) { .difference-inner { grid-template-columns: 1fr; } }
.diff-item h3 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.25rem;
  margin-bottom: 10px; color: var(--accent);
}
.diff-item p { color: var(--muted); font-size: .97rem; }

/* ---------- Final CTA ---------- */
.final-cta { padding: 104px 0; text-align: center; }
.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}
.final-cta p { color: var(--muted); margin-bottom: 36px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0; color: var(--muted);
  font-size: .85rem; text-align: center;
}

/* ---------- Modals ---------- */
.modal {
  position: fixed;
  inset: 0;
  margin: auto;                 /* centers both axes within the fixed box */
  max-height: 90vh;             /* never taller than viewport */
  overflow-y: auto;             /* scrollable on small screens */
  border: none; border-radius: 20px;
  background: var(--surface); color: var(--text);
  padding: 0; width: min(480px, 92vw);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .5);
}
.modal[open] { animation: modal-in .18s ease-out; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal::backdrop { background: rgba(4, 6, 9, .65); backdrop-filter: blur(4px); }
.modal-card { padding: 34px; display: grid; gap: 16px; }
.modal-card h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; }
.modal-sub { color: var(--muted); font-size: .9rem; margin-top: -8px; }

.modal-card label { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.modal-card input, .modal-card textarea {
  font: inherit; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 13px;
}
.modal-card input:focus, .modal-card textarea:focus {
  outline: none; border-color: var(--accent);
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.form-status { font-size: .9rem; }
.form-status.ok { color: var(--free); }
.form-status.err { color: var(--urgent); }

/* Honeypot field: invisible to humans, present in the DOM for bots.
   Not display:none (many bots skip those) — visually hidden instead. */
.hp-field {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; opacity: 0; overflow: hidden;
  pointer-events: none;
}

/* Turnstile widget: hidden until it renders (no site key -> stays empty). */
.cf-turnstile:empty { display: none; }
.cf-turnstile { margin-top: 12px; }
