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

:root {
    --bg:        #0C1117;
    --bg-2:      #111B14;
    --bg-card:   #141B25;
    --bg-card-2: #111c12;
    --gold:      #C9A84C;
    --gold-l:    #E8CC8A;
    --gold-dim:  rgba(201, 168, 76, 0.18);
    --gold-glow: rgba(201, 168, 76, 0.08);
    --sage:      #6B8F6E;
    --sage-l:    #8BAF8E;
    --cream:     #EDE7DA;
    --text:      #C8C0B4;
    --text-dim:  #72685E;
    --border:    rgba(201, 168, 76, 0.12);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    font-weight: 300;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ===== FIREFLIES ===== */
.fireflies {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.firefly {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #E8CC8A 0%, rgba(201,168,76,0.3) 60%, transparent 100%);
    animation: fireflyFloat linear infinite;
}

@keyframes fireflyFloat {
    0%   { opacity: 0; transform: translateY(100vh) scale(0.6); }
    10%  { opacity: 0.7; }
    50%  { opacity: 0.4; transform: translateY(50vh) translateX(var(--drift)) scale(1); }
    90%  { opacity: 0.2; }
    100% { opacity: 0; transform: translateY(-10vh) translateX(var(--drift)) scale(0.5); }
}

/* ===== NAV DOTS ===== */
.nav-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold-dim);
    border: 1px solid var(--gold-dim);
    opacity: 0.4;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.nav-dot.active {
    opacity: 1;
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 8px var(--gold-dim);
    transform: scale(1.4);
}

.nav-dot:hover { opacity: 0.7; }

@media (max-width: 768px) { .nav-dots { display: none; } }

/* ===== GOLD DIVIDER ===== */
.gold-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 40px 0;
}

.gold-divider span:first-child,
.gold-divider span:last-child {
    display: block;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gold-diamond {
    width: 8px !important;
    height: 8px !important;
    background: var(--gold) !important;
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* background:
        radial-gradient(ellipse at 30% 60%, rgba(107,143,110,0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 30%, rgba(201,168,76,0.05) 0%, transparent 50%),
        linear-gradient(160deg, #0C1117 0%, #0D1A10 50%, #0C1117 100%); */
    padding: 80px 20px;
    overflow: hidden;
}

/* Botanical corners */
.botanical {
    position: absolute;
    width: clamp(160px, 28vw, 260px);
    height: clamp(160px, 28vw, 260px);
    color: var(--sage);
    pointer-events: none;
    opacity: 0.55;
}

.botanical--tl { top: 0; left: 0; }
.botanical--tr { top: 0; right: 0; }
.botanical--bl { bottom: 0; left: 0; }
.botanical--br { bottom: 0; right: 0; }

.botanical svg { width: 100%; height: 100%; }

/* Glow ring */
.hero-ring {
    position: absolute;
    width: clamp(300px, 55vw, 560px);
    height: clamp(300px, 55vw, 560px);
    border-radius: 50%;
    border: 1px solid var(--gold-dim);
    box-shadow:
        0 0 60px rgba(201, 168, 76, 0.04),
        inset 0 0 60px rgba(201, 168, 76, 0.03);
    pointer-events: none;
    animation: ringPulse 6s ease-in-out infinite;
}

.hero-ring::before {
    content: '';
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.06);
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-label {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeDown 1s ease 0.4s forwards;
}

.hero-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    opacity: 0;
    animation: fadeIn 1.2s ease 0.7s forwards;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px, 9vw, 96px);
    font-weight: 400;
    color: var(--cream);
    letter-spacing: 0.05em;
    line-height: 1.15;
    display: block;
    text-shadow: 0 0 40px rgba(201,168,76,0.12);
}

.hero-amp {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(24px, 5vw, 54px);
    font-weight: 300;
    color: var(--gold);
    display: block;
    line-height: 1;
    margin: -4px 0;
    
}

.hero-date-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

.hero-line {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.hero-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 300;
    letter-spacing: 5px;
    color: var(--text-dim);
    white-space: nowrap;
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s ease 1.8s forwards;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.scroll-arrow {
    display: block;
    width: 18px; height: 18px;
    border-right: 1px solid var(--gold-dim);
    border-bottom: 1px solid var(--gold-dim);
    transform: rotate(45deg);
    animation: bounceArrow 2s ease infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(5px); }
}

/* ===== SECTION COMMON ===== */
.section-eyebrow {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 7px;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 400;
    color: var(--cream);
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.3;
}

/* ===== INVITATION ===== */
.invitation {
    background: var(--bg-card);
    position: relative;
}

.invitation::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.invitation::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.invitation-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 90px 40px;
    text-align: center;
}

.invitation-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 2;
    color: var(--text);
    font-weight: 300;
}

.invitation-text p { margin-bottom: 20px; }

.invite-greeting {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--cream);
    font-weight: 400;
}

.invite-highlight {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 400;
    color: var(--gold-l);
    display: block;
    margin: 24px 0;
    text-shadow: 0 0 30px rgba(201,168,76,0.2);
}

/* ===== COUNTDOWN ===== */
.countdown-section {
    padding: 90px 20px;
    background: var(--bg);
    position: relative;
    text-align: center;
}

.countdown-section .section-inner {
    max-width: 800px;
    margin: 0 auto;
}

.countdown {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 20px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 clamp(12px, 3vw, 30px);
}

.countdown-sep {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(40px, 7vw, 70px);
    color: var(--gold-dim);
    line-height: 1;
    margin-top: 4px;
    align-self: flex-start;
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 9vw, 88px);
    font-weight: 400;
    color: var(--cream);
    line-height: 1;
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.15);
}

.countdown-label {
    font-family: 'Raleway', sans-serif;
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 8px;
}

/* ===== DETAILS ===== */
.details {
    padding: 90px 20px;
    background: var(--bg-card);
    position: relative;
}

.details::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.details-inner {
    max-width: 860px;
    margin: 0 auto;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

@media (max-width: 600px) {
    .details-grid { grid-template-columns: 1fr; }
}

.detail-card {
    background: var(--bg);
    padding: 40px 34px;
    position: relative;
    transition: background 0.3s ease;
    border: 1px solid var(--border);
}

.detail-card:hover {
    background: rgba(201, 168, 76, 0.03);
}

.detail-card-top {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.detail-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    color: var(--gold);
    opacity: 0.6;
    letter-spacing: 2px;
}

.detail-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--cream);
}

.detail-card .detail-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--gold-l);
    margin-bottom: 8px;
    display: block;
}

.detail-card p {
    font-size: 13px;
    line-height: 1.9;
    color: var(--text-dim);
}

/* ===== TIMELINE ===== */
.timeline-section {
    padding: 90px 20px;
    background: var(--bg);
}

.timeline-inner {
    max-width: 640px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    margin-top: 10px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold-dim) 20%, var(--gold-dim) 80%, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 20px 1fr;
    align-items: center;
    gap: 0;
    margin-bottom: 44px;
    position: relative;
}

.timeline-time {
    text-align: right;
    padding-right: 28px;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--gold);
}

.timeline-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--gold);
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.3);
    justify-self: center;
    z-index: 1;
}

.timeline-desc {
    padding-left: 28px;
}

.timeline-desc h4 {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 4px;
}

.timeline-desc p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ===== GIFTS ===== */
.gifts-section {
    padding: 90px 20px;
    background: var(--bg-card);
    text-align: center;
    position: relative;
}

.gifts-section::before,
.gifts-section::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.gifts-section::before { top: 0; }
.gifts-section::after  { bottom: 0; }

.gifts-inner {
    max-width: 600px;
    margin: 0 auto;
}

.gifts-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(17px, 2.5vw, 22px);
    line-height: 2;
    color: var(--text);
    margin-bottom: 20px;
}

.gifts-highlight {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(26px, 4vw, 38px);
    color: var(--gold-l);
    margin: 20px 0 28px;
    text-shadow: 0 0 30px rgba(201, 168, 76, 0.18);
}

.gifts-note {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.9;
    font-style: italic;
}

/* ===== RSVP ===== */
.rsvp-section {
    padding: 90px 20px;
    background: var(--bg);
}

.rsvp-inner {
    max-width: 520px;
    margin: 0 auto;
}

.rsvp-form { margin-top: 40px; }

.form-group { margin-bottom: 26px; }

.form-group > label {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--cream);
    background: var(--bg-card);
    border: 1px solid var(--border);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold-dim);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
    opacity: 0.5;
}

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

.radio-group {
    display: flex;
    gap: 12px;
}

.radio-option {
    flex: 1;
    position: relative;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}

.radio-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.radio-option input:checked + label {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold);
    color: var(--gold-l);
    box-shadow: 0 0 20px var(--gold-glow);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 18px;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--bg);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-l) 100%);
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin-top: 30px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%);
    transition: left 0.4s ease;
}

.submit-btn:hover::before { left: 0; }
.submit-btn span { position: relative; z-index: 1; }

.submit-btn:hover {
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.25);
    transform: translateY(-2px);
}

.form-success {
    display: none;
    text-align: center;
    padding: 50px 20px;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.6s ease;
}

.form-success h3 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 36px;
    color: var(--gold-l);
    margin-bottom: 16px;
    text-shadow: 0 0 30px rgba(201, 168, 76, 0.2);
}

.form-success p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: var(--text-dim);
    line-height: 1.9;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 60px 20px 80px;
    background: var(--bg-card);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.footer-botanical {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    opacity: 0.6;
}

.footer-names {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 10px;
    text-shadow: 0 0 40px rgba(201,168,76,0.1);
}

.footer-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 300;
    color: var(--text-dim);
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.footer-note {
    font-size: 11px;
    color: var(--text-dim);
    opacity: 0.4;
    letter-spacing: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .invitation-inner { padding: 60px 24px; }

    .countdown-sep { display: none; }
    .countdown-item { padding: 0 12px; }

    .timeline::before { display: none; }
    .timeline-item {
        grid-template-columns: 1fr;
        text-align: center;
        margin-bottom: 30px;
    }
    .timeline-time { padding-right: 0; text-align: center; }
    .timeline-dot { margin: 6px auto; }
    .timeline-desc { padding-left: 0; text-align: center; }
}
