:root {
    --green: #10b981;
    --green-light: #34d399;
    --green-dark: #1f9d66;
    --bg: #fafdfb;
    --bg-alt: #eef8f3;
    --surface: #ffffff;
    --text: #0c1f17;
    --muted: #4b6358;
    --border: #d9ebe2;
    --shadow: 0 10px 30px rgba(9, 42, 28, 0.08);
    --radius: 20px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0c0c0e;
        --bg-alt: #111114;
        --surface: #18181b;
        --text: #f4f7f5;
        --muted: #a1aba6;
        --border: #27272a;
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 10;
    backdrop-filter: saturate(180%) blur(14px);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--text); }
.lang { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.lang a { text-decoration: none; font-size: 0.8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; color: var(--muted); }
.lang a.active { background: var(--green); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 110px) 0; }
.hero::before, .hero::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; z-index: -1;
}
.hero::before { width: 480px; height: 480px; background: var(--green-light); top: -160px; right: -120px; }
.hero::after { width: 380px; height: 380px; background: var(--green-dark); bottom: -180px; left: -120px; }
.hero { isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.pill {
    display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
    color: var(--green-dark); background: color-mix(in srgb, var(--green) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--green) 35%, transparent);
}
@media (prefers-color-scheme: dark) { .pill { color: var(--green-light); } }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 20px 0; }
.gradient-text { background: linear-gradient(90deg, var(--green-dark), var(--green-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.btn { display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35); }
.btn-ghost { border: 1px solid var(--border); background: var(--surface); }
.stores, .store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
    display: inline-flex; flex-direction: column; padding: 8px 18px; border-radius: 12px;
    background: #0c0c0e; color: #fff; font-weight: 600; line-height: 1.25; border: 1px solid #27272a;
}
.store small { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-light); font-weight: 500; }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone {
    width: 280px; padding: 38px 16px 20px; border-radius: 40px; background: var(--surface);
    border: 8px solid #0c0c0e; box-shadow: 0 30px 60px rgba(9, 42, 28, 0.3); position: relative;
    transform: rotate(3deg);
}
.phone-notch { position: absolute; top: 10px; left: 50%; width: 80px; height: 18px; margin-left: -40px; background: #0c0c0e; border-radius: 12px; }
.mock-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bg-alt); color: var(--muted); margin-bottom: 14px; }
.mock-search span { flex: 1; height: 8px; border-radius: 4px; background: var(--border); }
.mock-card { padding: 12px; border-radius: 16px; border: 1px solid var(--border); margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.mock-card small { color: var(--muted); font-size: 0.75rem; }
.mock-card strong { font-size: 0.95rem; }
.mock-img { height: 110px; border-radius: 12px; background: linear-gradient(160deg, #082a1c, #1f9d66 60%, #6ee7b7); }
.mock-btn { align-self: flex-start; margin-top: 4px; padding: 6px 18px; border-radius: 999px; background: var(--green); color: #fff; font-size: 0.8rem; font-weight: 600; }
.mock-line { height: 8px; border-radius: 4px; background: var(--border); }
.w70 { width: 70%; } .w60 { width: 60%; } .w40 { width: 40%; } .w30 { width: 30%; }

/* Chips */
.chips-section { padding: 8px 0 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.9rem; font-weight: 500; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow); transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--green); }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.icon {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
    color: #fff; background: linear-gradient(135deg, var(--green), var(--green-dark));
}
.steps { list-style: none; padding: 0; margin: 0; }
.step-num {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    font-weight: 700; color: var(--green-dark); background: color-mix(in srgb, var(--green) 16%, transparent);
}
@media (prefers-color-scheme: dark) { .step-num { color: var(--green-light); } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split h2 { margin-bottom: 16px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li {
    position: relative; padding: 14px 16px 14px 48px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 14px;
}
.checklist li::before {
    content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
    background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Event share preview */
.event-preview {
    max-width: 560px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.event-preview-cover {
    aspect-ratio: 16 / 10;
    background: linear-gradient(160deg, color-mix(in srgb, var(--green-dark) 55%, #082a1c), var(--green-dark) 55%, var(--green-light));
}
.event-preview-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.event-preview-body {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.event-preview h1 { font-size: clamp(1.45rem, 3vw, 1.85rem); }
.event-preview-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.event-preview-price { flex-shrink: 0; }
.event-preview-meta { display: grid; gap: 8px; color: var(--muted); font-size: 0.95rem; }
.event-preview-meta-row { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.event-preview-meta-row svg { flex-shrink: 0; margin-top: 3px; color: var(--green-dark); }
.event-preview-organizer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
}
.event-preview-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--green-dark);
    background: color-mix(in srgb, var(--green) 16%, transparent);
}
.event-preview-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-preview-organizer-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    min-width: 0;
}
.event-preview-verified { color: var(--green); flex-shrink: 0; }
.event-preview-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}
.event-preview-cta small { color: var(--muted); }
.event-preview-cta .store-row { justify-content: center; }
@media (prefers-color-scheme: dark) {
    .event-preview-meta-row svg { color: var(--green-light); }
    .event-preview-verified { color: var(--green-light); }
}

/* Ticket (QR check-in) */
.ticket { text-align: center; }
.ticket .event-preview-meta { justify-items: center; }
.ticket-host, .ticket-hint { margin: 0; color: var(--muted); }
.ticket-hint { font-size: 0.9rem; }
.ticket-attended { margin: 0; }
.ticket-event { font-size: 1.15rem; margin: 8px 0 0; }
/* Always dark on light, also in dark mode, so scanners can read it. */
.ticket-qr {
    width: min(300px, 100%);
    margin: 0 auto;
    padding: 12px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border);
}
.ticket-qr svg { display: block; width: 100%; height: auto; }

/* CTA */
.cta-band {
    text-align: center; padding: clamp(40px, 7vw, 80px) 24px; border-radius: 32px; color: #fff;
    background: radial-gradient(circle at 20% 0%, #34d399 0%, transparent 45%), linear-gradient(135deg, #082a1c, #0f432e 50%, #1f9d66);
}
.cta-band p { margin: 14px 0 28px; opacity: 0.9; }
.cta-band .store-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .brand { color: var(--text); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--green); }

.prose { max-width: 760px; }
.prose h1 { margin-bottom: 4px; }
.prose h2 { margin: 32px 0 8px; font-size: 1.25rem; }
.prose p, .prose li { color: var(--muted); line-height: 1.7; }
.prose ul { padding-left: 20px; }
.prose .meta { font-size: .9rem; }
.prose a { color: var(--green-dark); text-decoration: underline; }

@media (max-width: 900px) {
    .hero-grid, .split { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
    .nav { display: none; }
    .lang { margin-left: auto; }
}
@media (max-width: 560px) {
    .grid-4 { grid-template-columns: 1fr; }
    .phone { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
