/* Base */
:root {
  --brand: #D31AE0;          /* webapp brand.DEFAULT */
  --brand-hover: #B516C1;    /* webapp brand.hover */
  --brand-light: #FAE4FB;    /* webapp brand.light */
  --brand-border: #EB98F1;   /* webapp brand.border */
  --bg: #ffffff;
  --fg: #111827;
  --muted: #6b7280;
  --border: #f3f4f6;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji"; color: var(--fg); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Layout helpers */
.container { max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }

/* Header */
.header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { height: 40px; width: auto; }
.auth-links { display: none; gap: 16px; align-items: center; }
@media (min-width: 640px) { .auth-links { display: flex; } }
.link { color: #4b5563; font-weight: 500; }
.link:hover { color: #111827; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; font-weight: 600; transition: all .2s ease; border: 1px solid transparent; }
.btn .icon { width: 20px; height: 20px; margin-left: 8px; }
.btn-primary { background: var(--brand); color: #fff; padding: 10px 20px; box-shadow: 0 8px 24px rgba(211, 26, 224, 0.25); }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-ghost { background: rgba(17, 24, 39, 0.08); color: #111827; padding: 10px 20px; border: 1px solid rgba(17, 24, 39, 0.2); backdrop-filter: saturate(140%) blur(6px); }
.btn-ghost:hover { background: rgba(17, 24, 39, 0.14); }
.btn-lg { padding: 12px 24px; font-size: 18px; }
.btn-xl { padding: 16px 32px; font-size: 18px; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; padding-top: 15vh; }
@media (min-width: 640px) { .hero { align-items: center; padding-top: 0; } }
.hero-bg { position: absolute; inset: 0; background-image: url('/public/banner.png'); background-size: cover; background-position: center; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.3); }
.hero::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 16px; background: linear-gradient(to bottom, #fff, rgba(255,255,255,0)); }
.hero-content { position: relative; text-align: center; max-width: 1024px; }
.hero-title { font-weight: 800; color: #111827; margin: 0 0 16px; line-height: 1.1; font-size: 40px; }
.hero-subtitle { color: #374151; font-size: 20px; line-height: 1.6; margin: 0 auto 24px; max-width: 900px; }
@media (min-width: 640px) { .hero-title { font-size: 48px; } .hero-subtitle { font-size: 22px; margin-bottom: 32px; } }
@media (min-width: 1024px) { .hero-title { font-size: 60px; } .hero-subtitle { font-size: 24px; } }
.hero-cta { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* Scroll indicator */
.scroll-indicator { position: absolute; bottom: 140px; left: 50%; transform: translateX(-50%); animation: bounce 2s ease-in-out infinite; transition: opacity 0.3s ease; }
.scroll-indicator.hidden { opacity: 0; pointer-events: none; }
.scroll-indicator svg { width: 40px; height: 40px; color: #fff; stroke-width: 3; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-indicator { animation: none; } }

/* Features */
.features { background: #f9fafb; padding: 64px 0; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid #f1f5f9; border-radius: 16px; padding: 32px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,0.04); transition: box-shadow .2s ease; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.card h3 { font-size: 20px; margin: 0 0 12px; }
.card p { color: #6b7280; margin: 0; line-height: 1.7; }
.badge { width: 64px; height: 64px; border-radius: 9999px; background: color-mix(in srgb, var(--brand) 10%, transparent); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.badge-icon { width: 32px; height: 32px; color: var(--brand); }

/* CTA final */
.cta-final { background: #111827; color: #fff; padding: 64px 0; }
.cta-final h2 { font-size: 28px; margin: 0 0 16px; }
.cta-final p { color: #d1d5db; font-size: 18px; margin: 0 0 24px; }

/* Footer */
.footer { background: #fff; border-top: 1px solid var(--border); padding: 48px 0; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; font-size: 14px; }
.copy { color: #9ca3af; font-size: 14px; margin: 0; padding-top: 16px; border-top: 1px solid var(--border); }

/* Accessibility focus */
:focus-visible { outline: 3px solid rgba(239,68,68,.6); outline-offset: 2px; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) { .btn, .card { transition: none; } }

/* Meet */
.meet { background: #fff; padding: 64px 0; }
.section-title h2 { font-size: 28px; margin: 0 0 24px; }
.meet-box { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 5%, transparent), color-mix(in srgb, var(--brand) 10%, transparent)); border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent); border-radius: 24px; padding: 24px; }
.meet-inner { max-width: 800px; margin: 0 auto; }
.meet-inner p { color: #374151; font-size: 18px; line-height: 1.7; margin: 0 0 16px; }
.semibold { font-weight: 600; }
.brand { color: var(--brand); }

/* Events */
.events { background: #f9fafb; padding: 64px 0; }
.events-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.event-card { background: #fff; border: 1px solid #eef2f7; border-radius: 16px; padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.event-badge { width: 64px; height: 64px; border-radius: 9999px; background: color-mix(in srgb, var(--brand) 10%, transparent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.event-badge svg { width: 32px; height: 32px; color: var(--brand); }
.event-card h3 { margin: 0 0 12px; font-size: 20px; }
.event-card p { color: #4b5563; line-height: 1.7; }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.checklist li { display: flex; align-items: center; gap: 8px; color: #374151; }
.check { display: inline-block; width: 20px; height: 20px; border-radius: 999px; background: #e6f6ec; position: relative; }
.check::after { content: ""; position: absolute; left: 5px; top: 2px; width: 8px; height: 12px; border: 2px solid #22c55e; border-left: 0; border-top: 0; transform: rotate(45deg); }
.mt { margin-top: 16px; }
.event-card.alt { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, transparent), color-mix(in srgb, var(--brand) 5%, transparent)); border-color: color-mix(in srgb, var(--brand) 20%, transparent); }
.alt-badge { background: color-mix(in srgb, var(--brand) 20%, transparent); }
.quote { background: rgba(255,255,255,.6); border-radius: 12px; padding: 12px 16px; color: #4b5563; font-style: italic; margin: 12px 0 20px; }
.pill { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; }

/* Security */
.security { background: #fff; padding: 64px 0; }
.security-box { background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 5%, transparent), color-mix(in srgb, var(--brand) 10%, transparent)); border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent); border-radius: 24px; padding: 32px; }
.security-badge { width: 80px; height: 80px; border-radius: 9999px; background: color-mix(in srgb, var(--brand) 12%, transparent); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.security-badge svg { width: 40px; height: 40px; color: var(--brand); }
.security h2 { font-size: 28px; margin: 0 0 16px; }
.muted-lg { color: #6b7280; font-size: 18px; line-height: 1.8; margin: 0 0 24px; }
.security-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .security-grid { grid-template-columns: repeat(3, 1fr); } }
.security-item { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* FAQ */
.faq { background: #fff; padding: 64px 0; }
.faq-list { display: grid; gap: 12px; max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid #e5e7eb; border-radius: 12px; background: #f9fafb; overflow: hidden; }
.faq-item > summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; color: #111827; display: flex; align-items: center; justify-content: space-between; }
.faq-answer { padding: 0 20px 16px; color: #4b5563; line-height: 1.7; }
.faq-cta { margin-top: 24px; }
.faq-cta .brand { color: var(--brand); font-weight: 600; }

/* Link button */
.link-btn { background: none; border: none; font: inherit; cursor: pointer; padding: 0; }
.link-btn:hover { color: #111827; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 100; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: #fff; border-radius: 16px; padding: 32px; max-width: 400px; width: 90%; text-align: center; position: relative; transform: scale(0.95); transition: transform 0.3s ease; }
.modal-overlay.open .modal { transform: scale(1); }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px; cursor: pointer; color: #9ca3af; line-height: 1; }
.modal-close:hover { color: #111827; }
.modal h3 { margin: 0 0 16px; font-size: 22px; }
.modal p { color: #6b7280; margin: 0 0 24px; line-height: 1.6; }
.partner-link { display: inline-block; }
.partner-logo { max-width: 200px; border-radius: 8px; }

/* Legal pages */
.legal-page { min-height: 100vh; display: flex; flex-direction: column; }
.legal-header { padding: 32px 0; text-align: center; display: flex; justify-content: center; }
.legal-content { flex: 1; padding: 48px 16px; max-width: 800px; margin: 0 auto; }
.legal-content h1 { font-size: 36px; margin: 0 0 32px; }
.legal-content h2 { font-size: 22px; margin: 32px 0 16px; color: var(--brand); }
.legal-content h3 { font-size: 18px; margin: 24px 0 12px; }
.legal-content h4 { font-size: 16px; margin: 20px 0 10px; }
.legal-content p { line-height: 1.7; color: #374151; margin: 0 0 16px; }
.legal-content ul { margin: 0 0 16px; padding-left: 24px; }
.legal-content li { line-height: 1.7; color: #374151; margin-bottom: 8px; }
@media (min-width: 640px) { .legal-content h1 { font-size: 48px; } }
.legal-footer { padding: 32px 0; text-align: center; }

