:root {
    --brand-primary: #ff4c4c;
    --brand-primary-dark: #e53945;
    --brand-secondary: #ff8b5f;
    --brand-accent: #3d38ff;
    --gray-900: #0f172a;
    --gray-700: #334155;
    --gray-500: #64748b;
    --gray-100: #f4f6fb;
    --card-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-900);
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #fff1f1 0%, #f7f8fc 35%, #f2f5fb 100%);
    display: flex;
    flex-direction: column;
    color: var(--gray-900);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Header & navigation */
.header-shell {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--gray-900) !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--gray-700);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background: rgba(255, 76, 76, 0.12);
    color: var(--brand-primary);
}

.navbar-nav .nav-link.active {
    background: var(--brand-primary);
    color: #fff;
}

.btn-outline-dark {
    border-radius: 999px;
    border: 1.5px solid rgba(15, 23, 42, 0.35);
    color: var(--gray-900);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    border-color: var(--gray-900);
    color: var(--gray-900);
    background: rgba(15, 23, 42, 0.05);
}

/* Hero and sections */
.section-padding {
    padding: clamp(3rem, 5vw, 5rem) 0;
}

.hero-shell {
    padding-top: clamp(3rem, 6vw, 6rem);
    padding-bottom: clamp(3rem, 6vw, 6rem);
}

.hero-card {
    border-radius: 32px;
    background: linear-gradient(135deg, #fff, #ffe6e6);
    padding: clamp(2rem, 4vw, 4rem);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: 15% auto auto 60%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 140, 95, 0.35), transparent 65%);
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 76, 76, 0.1);
    color: var(--brand-primary);
    padding: 0.35rem 0.95rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.15;
    margin: 1rem 0;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-700);
    max-width: 38rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-visual {
    background: #0f172a;
    border-radius: 28px;
    padding: 2.5rem;
    min-height: 320px;
    color: #fff;
    box-shadow: var(--card-shadow);
    position: relative;
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: url('data:image/svg+xml,%3Csvg width="240" height="240" viewBox="0 0 240 240" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" stroke="%23ffffff0d" stroke-width="2"%3E%3Ccircle cx="120" cy="120" r="110"/%3E%3Ccircle cx="60" cy="60" r="45"/%3E%3Ccircle cx="180" cy="80" r="35"/%3E%3C/g%3E%3C/svg%3E');
}

.hero-visual-content {
    position: relative;
    z-index: 1;
}

.feature-card,
.stat-card,
.persona-card,
.step-card,
.menu-card,
.registration-card,
.cta-banner {
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.feature-icon,
.persona-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 700;
}

.stat-label {
    color: var(--gray-500);
}

.persona-card {
    background: linear-gradient(135deg, rgba(61, 56, 255, 0.08), rgba(255, 76, 76, 0.08));
}

.step-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 220px;
}

.btn-pill {
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
}

.btn-primary-gradient {
    background: linear-gradient(120deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    box-shadow: 0 18px 30px rgba(255, 76, 76, 0.3);
}

.btn-primary-gradient:hover,
.btn-primary-gradient:focus {
    color: #fff;
    filter: brightness(0.95);
}

.btn-outline-light-pill {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.section-heading {
    max-width: 640px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.section-heading p {
    color: var(--gray-500);
}

.stats-grid,
.features-grid,
.personas-grid,
.steps-grid,
.menu-grid {
    display: grid;
    gap: 1.5rem;
}

.stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.features-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.personas-grid, .steps-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.menu-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

@media (min-width: 992px) {
    .hero-card {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 2rem;
        align-items: stretch;
    }
}

/* Registration */
.registration-shell {
    padding: clamp(2rem, 4vw, 4rem) 0 5rem;
}

.registration-card {
    border-radius: 28px;
}

.loyalty-gradient {
    background: linear-gradient(135deg, rgba(61, 56, 255, 0.12), rgba(255, 76, 76, 0.08));
    border: 1px solid rgba(148, 163, 184, 0.2);
    width: 100%;
    display: block;
}

.registration-card .nav-pills .nav-link {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
}

.registration-card .nav-pills .nav-link.active {
    background: var(--brand-primary);
}

.field-error {
    color: var(--brand-primary);
    font-size: 0.85rem;
}

.alert-global {
    border-radius: 16px;
    border: none;
    box-shadow: 0 18px 30px rgba(255, 76, 76, 0.15);
}

/* Footer */
footer {
    padding: 2.5rem 0;
    background: #02324E;
    color: #cbd5f5;
    height: 200px;
    display: flex;
    justify-content: center;
}

footer a {
    color: #f8fafc;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Legacy helpers */
.bg-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.shadow-soft {
    box-shadow: var(--card-shadow);
}

.content-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    padding: clamp(1.5rem, 2vw, 2.5rem);
}

.menu-card {
    background: #fff;
}

@media (max-width: 767px) {
    .hero-actions {
        flex-direction: column;
    }
}

main {
    background-image: url("./background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100dvw;
    height: 100dvh;
}

.h-8 {
    height: 2rem;
}
.h-16 {
    height: 4rem;
}

.back-arrow {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    cursor: pointer;
}
