* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-yellow: #bbdb00;
    --dark-bg: #000000;
    --white: #ffffff;
    --gray-dark: #1a1a1a;
    --font-primary: 'Manrope', -apple-system, sans-serif;
    --font-title: 'Manrope', -apple-system, sans-serif;
}

html, body {
    width: 100%;
    min-height: 100%;
    font-family: var(--font-primary);
    color: var(--white);
    background: var(--dark-bg);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
    overflow-x: hidden;
}

/* Hero Container */
.hero-container {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh; /* Android/iOS dynamic viewport */
    display: flex;
    flex-direction: column;
    background: #000000;
    overflow: hidden;
    position: relative;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 60px;
    border-bottom: 1px solid rgba(187, 219, 0, 0.1);
    gap: 40px;
}

.header-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    justify-content: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-svg {
    height: 34px;
    width: auto;
    display: block;
}

.tagline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--white);
    font-family: var(--font-primary);
}

.tagline-text {
    opacity: 0.9;
}

.tagline-highlight {
    color: var(--neon-yellow);
    text-shadow: 0 0 8px rgba(187, 219, 0, 0.25);
    font-weight: 600;
}

.tagline-telligence {
    opacity: 0.9;
}

/* Countdown Bar — centered row below header */
.countdown-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 60px 14px;
    border-bottom: 1px solid rgba(187, 219, 0, 0.08);
}

/* Countdown Inline */
.countdown-inline {
    font-family: var(--font-primary);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.countdown-label-inline {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    text-transform: uppercase;
    margin-right: 6px;
}

.countdown-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--neon-yellow);
    text-shadow: 0 0 8px rgba(187, 219, 0, 0.25);
    letter-spacing: 0.05em;
}

.countdown-lbl {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-right: 14px;
}

/* Main Hero Content — 3-column layout for desktop */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 560px 1fr;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 0 60px;
    gap: 40px;
}

.hero-centered {
    display: grid;
    grid-template-columns: 1fr 560px 1fr;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 30px 60px 40px;
    gap: 40px;
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    max-width: 300px;
    width: 100%;
    text-align: left;
    margin-left: 50px;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 6px;
}

/* Hero Left — Headline column */
.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}


.hero-title {
    font-family: var(--font-title);
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.hero-title span {
    font-weight: 300;
}

.hero-title > span {
    display: block;
    white-space: nowrap;
}

.hero-title .highlight-in {
    display: inline;
    white-space: nowrap;
    color: var(--neon-yellow);
    text-shadow: 0 0 8px rgba(187, 219, 0, 0.25);
    font-weight: 700;
}

.hero-title .highlight {
    color: var(--neon-yellow);
    text-shadow: 0 0 8px rgba(187, 219, 0, 0.25);
    font-weight: 700;
}

.hero-title .highlight-de {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.hero-copy .highlight-in {
    color: var(--neon-yellow);
    text-shadow: 0 0 8px rgba(187, 219, 0, 0.25);
    font-weight: 600;
}

/* IN plain — body copy, white, no glow, same weight as surrounding */
.in-plain {
    color: #ffffff;
    font-weight: inherit;
    text-shadow: none;
}

.hero-copy {
    font-size: 1.15rem;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 300px;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    margin: 0;
    font-weight: 400;
}

/* CTA Button */
.cta-button {
    align-self: flex-start;
    padding: 11px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: transparent;
    border: 2px solid var(--neon-yellow);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(187, 219, 0, 0.2);
    width: 200px;
}

.cta-button:hover {
    box-shadow: 0 0 30px rgba(187, 219, 0, 0.5);
    background: rgba(187, 219, 0, 0.1);
    transform: translate(0, -2px);
}

.cta-button:active {
    transform: translate(0, 0);
}

/* Share Button */
.share-button {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    text-transform: none;
    letter-spacing: 0.02em;
    opacity: 0.7;
}

.share-button:hover {
    opacity: 1;
    color: var(--neon-yellow);
}

.share-button svg {
    stroke: currentColor;
}

/* Portal Wrapper — centered, no crop */
.portal-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    grid-column: 2;
}

/* Depth container — holds the video */
.portal-depth {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Portal video — full, centered, no crop */
.portal-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    display: block;
}

/* Footer Bar - Protagonist */
.footer-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 20px 60px;
    border-top: 1px solid rgba(187, 219, 0, 0.35);
    margin-top: auto;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(187, 219, 0, 0.04) 100%);
    position: relative;
}

.footer-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-yellow), transparent);
    box-shadow: 0 0 15px rgba(187, 219, 0, 0.4);
}

.footer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.footer-label {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--neon-yellow);
    opacity: 0.75;
    text-transform: uppercase;
    font-weight: 500;
}

.footer-value {
    font-family: var(--font-title);
    font-size: 1.35rem;
    color: var(--white);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.footer-divider {
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, transparent, rgba(187, 219, 0, 0.35), transparent);
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Use dynamic viewport height where supported so the overlay respects the browser chrome
       (Edge Android bottom bar, Edge iOS bottom bar, Safari iOS URL bar). Fallback: 100vh. */
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    /* Allow the overlay itself to scroll when the modal is taller than the viewport.
       Critical on Edge Android (~56px bottom nav) and Edge iOS (~88px bottom nav) where
       the browser chrome reduces the usable viewport and doesn't collapse on scroll. */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(187, 219, 0, 0.2);
    border-radius: 12px;
    padding: 50px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(187, 219, 0, 0.1);
    position: relative;
    animation: slideUp 0.3s ease;
    /* Reserve room for browser chrome (Edge Android bottom nav ~56px, address bar ~56px).
       margin: auto keeps the modal centered when it fits, and pushed to top with scroll when it doesn't. */
    margin: auto;
    max-height: none;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--neon-yellow);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--white);
    text-align: center;
}

.success-modal .modal-title {
    color: var(--neon-yellow);
}

/* Form */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-primary);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(187, 219, 0, 0.2);
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-yellow);
    background: rgba(187, 219, 0, 0.05);
    box-shadow: 0 0 15px rgba(187, 219, 0, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit Button */
.submit-button {
    padding: 14px 40px;
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: transparent;
    border: 2px solid var(--neon-yellow);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 10px rgba(187, 219, 0, 0.2);
}

.submit-button:hover {
    background: rgba(187, 219, 0, 0.1);
    box-shadow: 0 0 30px rgba(187, 219, 0, 0.5);
    transform: translate(0, -2px);
}

.submit-button:active {
    transform: translate(0, 0);
}

/* Calendar Buttons */
.calendar-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.calendar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(187, 219, 0, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.calendar-btn:hover {
    border-color: var(--neon-yellow);
    background: rgba(187, 219, 0, 0.05);
    color: var(--neon-yellow);
    box-shadow: 0 0 15px rgba(187, 219, 0, 0.2);
}

.calendar-btn svg {
    stroke: currentColor;
}

/* Success Message */
.success-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 40px;
    }

    .hero-centered {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 40px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .header {
        padding: 20px 40px;
        flex-direction: row;
        gap: 15px;
        align-items: center;
    }

    .header-left {
        flex: 0 0 auto;
    }

    .header-right {
        flex: 1;
        gap: 8px;
    }

    .tagline {
        flex-wrap: wrap;
    }

    .countdown-bar {
        padding: 10px 40px 14px;
    }

    .countdown-num {
        font-size: 22px;
    }

    .countdown-lbl {
        font-size: 9px;
        margin-right: 12px;
    }

    .footer-bar {
        padding: 20px 40px;
        gap: 32px;
    }

    .portal-wrapper {
        max-width: 560px;
    }

    .hero-center {
        align-items: center;
        text-align: center;
        max-width: 100%;
        margin-left: 0;
    }

    .hero-copy {
        max-width: 100%;
        text-align: center;
    }

    .cta-button {
        align-self: center;
        width: auto;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .header-left {
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .header-right {
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .logo-svg {
        height: 28px;
    }

    .tagline {
        font-size: 0.7rem;
        gap: 5px;
        text-align: center;
        justify-content: center;
    }

    .countdown-bar {
        padding: 8px 20px 10px;
        justify-content: center;
    }

    .countdown-inline {
        width: auto;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .countdown-label-inline {
        width: 100%;
        text-align: center;
        font-size: 0.65rem;
    }

    .countdown-num {
        font-size: 20px;
    }

    .countdown-lbl {
        font-size: 8px;
        margin-right: 10px;
    }

    .countdown-container {
        padding: 12px 20px;
        gap: 6px;
    }

    .countdown-label {
        font-size: 0.65rem;
    }

    .countdown {
        font-size: 1.1rem;
        font-weight: 700;
    }

    .countdown .separator {
        margin: 0 6px;
        font-size: 0.75rem;
    }

    .hero-centered {
        grid-template-columns: 1fr;
        padding: 16px 20px 24px;
        gap: 12px;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-title {
        font-size: 2.4rem;
        gap: 4px;
        font-weight: 300;
        line-height: 1.1;
        align-items: center;
        text-align: center;
    }

    .hero-title > span {
        white-space: normal;
        text-align: center;
    }

    .hero-copy {
        font-size: 0.9rem;
        max-width: 320px;
        text-align: center;
    }

    .hero-center {
        max-width: 100%;
        align-items: center;
        text-align: center;
        margin-left: 0;
    }

    .hero-cta-group {
        width: 100%;
        align-items: center;
    }

    .cta-button {
        width: 200px;
        padding: 12px 28px;
        font-size: 0.9rem;
        align-self: center;
    }

    .share-button {
        justify-content: center;
        font-size: 0.9rem;
        padding: 12px 16px;
        align-self: center;
    }

    .portal-wrapper {
        max-width: 360px;
        grid-column: auto;
        margin: 0 auto;
        width: 100%;
    }

    .footer-bar {
        flex-direction: column;
        padding: 12px 20px;
        gap: 12px;
    }

    .footer-divider {
        width: 60%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(187, 219, 0, 0.35), transparent);
    }

    .footer-label {
        font-size: 0.62rem;
        letter-spacing: 0.28em;
    }

    .footer-value {
        font-size: 1.1rem;
    }

    /* MOBILE MODAL — full-viewport bottom sheet with sticky submit button.
       Guarantees submit button visibility on every mobile browser regardless of chrome:
       Safari iOS, Chrome iOS, Edge iOS, Chrome Android, Edge Android, Samsung Internet, Firefox Android. */
    .modal-overlay {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
        overflow: hidden; /* the form scrolls internally, not the overlay */
    }

    .modal-content {
        padding: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
        border: none;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        z-index: 10;
    }

    .modal-title {
        font-size: 1.25rem;
        margin: 18px 20px 12px;
        padding-right: 40px;
        text-align: left;
        flex-shrink: 0;
    }

    /* Form becomes a flex column: scrollable field area + non-shrinking button. */
    .rsvp-form {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .form-group {
        gap: 6px;
        margin-bottom: 12px;
        flex-shrink: 0;
    }

    .form-group label {
        font-size: 0.72rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* prevents iOS zoom on focus */
        padding: 10px 12px;
    }

    .form-group textarea {
        min-height: 60px;
    }

    /* Submit button pinned inside the scrollable form via sticky positioning.
       Always visible at the bottom of the scroll viewport. */
    .rsvp-form .submit-button {
        position: sticky;
        bottom: 0;
        margin: 8px 0;
        margin-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        padding: 14px 20px;
        z-index: 5;
        background: var(--neon-yellow);
        color: #000;
        border-color: var(--neon-yellow);
        font-weight: 700;
        flex-shrink: 0;
        box-shadow: 0 -10px 20px rgba(20, 20, 20, 0.9);
    }

    .success-modal .modal-content {
        height: auto;
        min-height: 0;
    }

    .calendar-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 15px;
    }

    .calendar-btn {
        flex-direction: row;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.85rem;
    }

}
