:root {
    --bg: #fffaf8;
    --bg-soft: #fff2ef;
    --surface: rgba(255, 255, 255, 0.74);
    --surface-strong: #ffffff;
    --text: #213547;
    --muted: #617085;
    --line: rgba(33, 53, 71, 0.08);
    --primary: #f7b7d7;
    --secondary: #b7e7db;
    --accent: #ffdca8;
    --sky: #c9dcff;
    --shadow: 0 24px 60px rgba(244, 171, 196, 0.22);
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(247, 183, 215, 0.55), transparent 30%),
        radial-gradient(circle at top right, rgba(183, 231, 219, 0.52), transparent 32%),
        linear-gradient(180deg, #fffefc 0%, #fff7f4 100%);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 2rem), var(--max));
    margin: 0 auto;
}

.section-pad {
    padding: 4rem 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255, 250, 248, 0.72);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: var(--shadow);
    font-weight: 700;
}

.brand small,
.main-nav a:not(.nav-cta),
.meta-line,
.hero-text,
.section-copy p,
.soft-card p,
.content-card p,
.contact-card textarea,
.inline-hint {
    color: var(--muted);
}

.brand strong,
.section-head h2,
.section-copy h2,
.hero h1,
.content-card h3,
.soft-card h3,
.login-card h3,
.inner-page h1 {
    letter-spacing: -0.03em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.3rem;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.nav-cta:hover,
.gallery-item:hover,
.content-card:hover,
.stat-card:hover {
    transform: translateY(-3px);
}

.button-primary,
.nav-cta {
    background: linear-gradient(135deg, #f7b7d7, #f9cfaa);
    box-shadow: var(--shadow);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(33, 53, 71, 0.1);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0.25rem;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px 0;
    background: var(--text);
    border-radius: 999px;
}

.hero {
    padding: 4.5rem 0 2rem;
}

.hero-grid,
.split-layout,
.members-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.6rem);
    line-height: 0.95;
    margin: 0 0 1rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
    color: #d16c9c;
    margin-bottom: 1rem;
}

.hero-actions,
.hero-badges,
.tag-row,
.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-badges span,
.tag-row span,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    font-size: 0.9rem;
}

.hero-visual {
    position: relative;
    min-height: 420px;
}

.glass-card,
.soft-card,
.content-card,
.stat-card,
.login-card,
.contact-card,
.gallery-dialog,
.newsletter-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
}

.floating-card {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: min(100%, 420px);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(6px);
    animation: float 5s ease-in-out infinite;
}

.orb-one {
    width: 220px;
    height: 220px;
    background: rgba(183, 231, 219, 0.78);
    top: 20px;
    right: 0;
}

.orb-two {
    width: 160px;
    height: 160px;
    background: rgba(201, 220, 255, 0.82);
    bottom: 10px;
    left: 50px;
    animation-delay: -2s;
}

.stats-grid,
.card-grid,
.gallery-grid,
.footer-grid,
.timeline-grid {
    display: grid;
    gap: 1.2rem;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.stat-card,
.content-card,
.login-card,
.contact-card,
.soft-card {
    padding: 1.5rem;
}

.stat-card strong {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.feature-list {
    padding-left: 1.1rem;
    color: var(--muted);
    line-height: 1.7;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.text-button {
    background: transparent;
    border: 0;
    padding: 0;
    color: #d16c9c;
    font-weight: 700;
    cursor: pointer;
}

.login-card,
.contact-card,
.login-cards,
.auth-form {
    display: grid;
    gap: 0.9rem;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(33, 53, 71, 0.12);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    color: var(--text);
}

.gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-item {
    position: relative;
    border: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: var(--shadow);
    background: #fff;
}

.gallery-item img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}

.gallery-item span {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    padding: 0.35rem 0.7rem;
}

.site-footer {
    margin-top: 5rem;
    padding: 3.5rem 0 2.2rem;
    color: #f6f8ff;
    background:
        linear-gradient(180deg, rgba(27, 43, 61, 0.98) 0%, rgba(20, 33, 48, 1) 100%),
        radial-gradient(circle at top left, rgba(247, 183, 215, 0.16), transparent 36%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -20px 60px rgba(16, 29, 43, 0.28);
}

.site-footer h3,
.site-footer h4,
.site-footer a,
.site-footer p,
.site-footer span {
    color: inherit;
}

.footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    margin-bottom: 2rem;
}

.footer-grid a,
.footer-meta a {
    display: block;
    margin-top: 0.6rem;
    color: rgba(246, 248, 255, 0.84);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(246, 248, 255, 0.8);
}

.toast-stack {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 40;
    display: grid;
    gap: 0.8rem;
}

.toast {
    background: rgba(33, 53, 71, 0.92);
    color: #fff;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    min-width: 220px;
    box-shadow: 0 20px 40px rgba(33, 53, 71, 0.22);
    animation: slideUp 260ms ease;
}

.newsletter-popup,
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    background: rgba(33, 53, 71, 0.3);
    padding: 1rem;
}

.newsletter-card,
.gallery-dialog {
    position: relative;
    width: min(100%, 520px);
    padding: 2rem;
}

.gallery-dialog img {
    border-radius: 24px;
    margin-bottom: 1rem;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.popup-form {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.reveal,
.reveal-delay {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 480ms ease, transform 480ms ease;
}

.reveal-delay {
    transition-delay: 140ms;
}

.reveal.visible,
.reveal-delay.visible {
    opacity: 1;
    transform: translateY(0);
}

.inner-page .narrow {
    width: min(calc(100% - 2rem), 760px);
}

.admin-overview,
.dashboard-grid {
    display: grid;
    gap: 1rem;
}

.admin-stats,
.dashboard-grid,
.timeline-grid {
    margin-top: 1rem;
}

.timeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inline-hint {
    margin: 0.4rem 0 1rem;
}

.error-text {
    color: #c74672;
    font-weight: 700;
}

.spaced-top {
    margin-top: 2rem;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    .hero-grid,
    .split-layout,
    .members-grid,
    .contact-grid,
    .stats-grid,
    .card-grid,
    .gallery-grid,
    .footer-grid,
    .timeline-grid,
    .compact-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 0.7rem);
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        border-radius: 22px;
        background: rgba(255, 250, 248, 0.96);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .section-head,
    .footer-bottom,
    .popup-form {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 3rem;
    }

    .hero-grid,
    .split-layout,
    .members-grid,
    .contact-grid,
    .stats-grid,
    .card-grid,
    .gallery-grid,
    .footer-grid,
    .timeline-grid,
    .compact-gallery {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .inner-page h1 {
        font-size: clamp(2.3rem, 13vw, 3.5rem);
    }

    .floating-card,
    .newsletter-card,
    .gallery-dialog {
        padding: 1.4rem;
    }

    .hero-visual {
        min-height: 320px;
    }
}
