:root {
    --bg-base: #050505;
    --text: #ffffff;
    --muted: #a1a1aa;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --accent: #60a5fa;
    --link: #93c5fd;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --radius: 16px;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(16px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg-base);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    overflow-wrap: break-word;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

@media (max-width: 768px) {

    .container,
    .container-wide {
        padding: 1.5rem 1rem;
    }
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-top: 0;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.hero-header {
    text-align: center;
    margin: 4rem 0;
}

@media (max-width: 768px) {
    .hero-header {
        margin: 2rem 0;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.5);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .nav-links {
        gap: 0.75rem;
    }
}

@media (max-width: 400px) {
    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    transition: all 0.3s;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--link);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .glass-panel {
        padding: 1.5rem;
    }
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(59, 130, 246, 0.4);
    cursor: pointer;
    font-size: 0.9rem;
}

.primary-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--primary-glow);
    border-color: var(--primary);
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

a {
    color: var(--link);
    transition: color 0.3s, text-decoration 0.3s;
    text-decoration: none;
}

a:not(.logo) :not(.nav-links a) :not(.primary-btn) :not(.secondary-btn) :not(.nav-btn) :not(.low-profile a):hover {
    text-decoration: underline;
    text-decoration-style: wavy;
    text-decoration-color: var(--accent);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

input,
textarea,
select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

@media (max-width: 768px) {
    .features-grid {
        margin: 2rem 0;
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: var(--radius);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--glass-hover);
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.rsvp-highlight {
    text-align: center;
}

.rsvp-highlight h3 {
    color: var(--primary);
}

.rsvp-description {
    max-width: 520px;
    margin: 0.75rem auto 0.5rem;
    color: var(--muted);
}

.provider-text-list {
    font-size: 0.9rem;
    opacity: 0.85;
}

.provider-text-list strong {
    color: var(--text);
    font-weight: 500;
}

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.site-footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    background: rgba(5, 5, 5, 0.8);
}

@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 1rem;
        margin-top: 2rem;
    }
}

.low-profile {
    opacity: 0.6;
    font-size: 0.85rem;
}

.low-profile a {
    color: inherit;
}

.section-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.5rem;
}

.section-nav::-webkit-scrollbar {
    display: none;
}

.section-nav .nav-btn {
    text-decoration: none;
    color: var(--text);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    opacity: 0.7;
    white-space: nowrap;
    flex-shrink: 0;
}

.section-nav .nav-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.section-nav .nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* Builder Specific Layout */
.builder-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 3rem;
    height: calc(100vh - 160px);
    align-items: flex-start;
}

.form-scroll-area {
    height: 100%;
    overflow-y: auto;
    padding-right: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
}

.form-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.form-scroll-area::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.preview-sticky-side {
    position: sticky;
    top: 0;
    height: 100%;
}

@media (max-width: 1024px) {
    .builder-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .form-scroll-area {
        height: auto;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .section-nav {
        position: static !important;
    }
}

.badge-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-description {
    max-width: 600px;
    margin: 1.5rem auto;
    color: var(--muted);
}

.button-container {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.icon-wrapper {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.how-to-list {
    padding-left: 1.5rem;
}

.how-to-list li {
    margin-bottom: 1.2rem;
}

.footer-support {
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0.6;
    font-size: 0.9rem;
}

.footer-support h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.footer-support p {
    margin-bottom: 1rem;
}

#back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

#back-to-top:hover {
    transform: translateY(-3px);
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.demo-section {
    margin: 4rem 0;
    text-align: center;
}

.demo-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.demo-track-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 1rem 0;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    position: relative;
}

.demo-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    will-change: transform;
}

.demo-slide {
    flex: 0 0 auto;
    width: 220px;
    text-align: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* ensures button stays at bottom */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-slide:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.demo-slide img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.demo-slide h3 {
    font-size: 1rem;
    margin: 0.5rem 0;
    color: #fff;
    font-weight: 600;
    flex-grow: 1;
}

.demo-btn {
    margin-top: 0.5rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
}
