:root {
  --navy-950: #050b21;
  --navy-900: #0a1433;
  --navy-800: #111f4d;
  --navy-700: #1b2d6b;
  --gold: #f2c96b;
  --gold-2: #d9a441;
  --gold-3: #fff1c4;
  --red: #c4161c;
  --red-2: #8e0f14;
  --pink: #f6a6c1;
  --ink: #f5efe0;
  --muted: #b9bfd6;
  --line: rgba(242, 201, 107, 0.25);
  --radius: 18px;
  --gold-grad: linear-gradient(135deg, #fff1c4 0%, #f2c96b 35%, #d9a441 60%, #fbe3a1 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(27, 45, 107, 0.9), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(196, 22, 28, 0.18), transparent 60%),
    radial-gradient(900px 600px at 110% 70%, rgba(242, 201, 107, 0.08), transparent 60%),
    var(--navy-950);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }

#petals { position: fixed; inset: 0; pointer-events: none; z-index: 5; }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5, 11, 33, 0.78); backdrop-filter: blur(12px); border-color: var(--line); }
.brand { font-family: "Playfair Display", serif; font-weight: 800; letter-spacing: .08em; text-decoration: none; font-size: 1.1rem; }
.brand span { color: var(--gold); }
.nav-links { display: flex; gap: clamp(10px, 2.4vw, 28px); align-items: center; font-size: .92rem; }
.nav-links a { text-decoration: none; opacity: .85; }
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-cta { border: 1px solid var(--gold); color: var(--gold) !important; padding: 6px 14px; border-radius: 999px; opacity: 1 !important; }
@media (max-width: 640px) { .nav-links a:not(.nav-cta) { display: none; } }

/* HERO */
.hero { padding-top: 64px; position: relative; }
.hero-banner { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 clamp(0px, 3vw, 32px); }
.hero-banner img {
  width: 100%; height: auto; border-radius: clamp(0px, 2vw, 24px);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px var(--line);
  animation: heroIn 1.4s cubic-bezier(.2,.7,.2,1) both;
}
.hero-banner::after {
  content: ""; position: absolute; inset: auto clamp(0px, 3vw, 32px) 0; height: 40%;
  border-radius: 0 0 clamp(0px, 2vw, 24px) clamp(0px, 2vw, 24px);
  background: linear-gradient(transparent, var(--navy-950));
  pointer-events: none;
}
@keyframes heroIn { from { opacity: 0; transform: scale(1.04); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.hero-body { position: relative; text-align: center; margin-top: clamp(-90px, -7vw, -20px); padding: 0 16px 40px; z-index: 2; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .32em; font-size: .78rem; font-weight: 600;
  color: var(--gold); margin: 0 0 10px;
}
.hero-meta {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  padding: 12px 24px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(10, 20, 51, .6); backdrop-filter: blur(8px);
}
.hero-meta div { display: flex; gap: 8px; align-items: baseline; }
.hero-meta .k { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.hero-meta .v { font-weight: 600; }
@media (max-width: 520px) {
  .hero-meta { flex-direction: column; align-items: center; gap: 6px; border-radius: 18px; padding: 12px 18px; }
  .hero-meta div { flex-direction: column; align-items: center; gap: 0; }
}

.countdown { display: flex; justify-content: center; gap: clamp(8px, 2vw, 18px); margin: 28px 0; }
.countdown div {
  width: clamp(68px, 18vw, 104px); padding: 14px 0 10px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(27,45,107,.85), rgba(10,20,51,.9));
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,241,196,.15), 0 10px 30px rgba(0,0,0,.35);
}
.countdown b {
  display: block; font-family: "Playfair Display", serif; font-size: clamp(1.8rem, 6vw, 2.8rem); line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.countdown span { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-gold {
  color: #3a2300; background: var(--gold-grad); background-size: 200% 200%;
  box-shadow: 0 10px 30px rgba(242, 201, 107, .3), inset 0 1px 0 #fff8;
  animation: shimmer 5s ease infinite;
}
.btn-ghost { color: var(--gold); border: 1px solid var(--gold); background: transparent; }
.btn.full { width: 100%; }
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.link-btn {
  background: none; border: 0; padding: 0; margin-top: 10px; font: inherit; font-weight: 600;
  color: var(--gold); cursor: pointer; text-decoration: none; display: inline-block;
}
.link-btn:hover { text-decoration: underline; }

/* SECTIONS */
.section { max-width: 1120px; margin: 0 auto; padding: clamp(56px, 9vw, 110px) 16px; position: relative; z-index: 1; }
.title {
  font-family: "Playfair Display", serif; font-weight: 800; font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  line-height: 1.25; margin: 0 0 18px;
}

/* LETTER */
.letter {
  position: relative; max-width: 820px; margin: 0 auto; text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 6vw, 72px);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(27,45,107,.55), rgba(10,20,51,.75)) padding-box,
    linear-gradient(135deg, var(--gold), transparent 40%, transparent 60%, var(--gold-2)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  font-size: 1.06rem;
}
.letter-seal {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  font-family: "Playfair Display", serif; font-weight: 800; font-size: 1.4rem; color: var(--gold-3);
  background: radial-gradient(circle at 35% 30%, #e5373d, var(--red) 50%, var(--red-2));
  box-shadow: 0 8px 24px rgba(196,22,28,.5), inset 0 0 0 3px rgba(255,241,196,.35);
}
.divider { display: flex; align-items: center; gap: 14px; justify-content: center; color: var(--gold); margin: 8px 0 22px; }
.divider::before, .divider::after { content: ""; height: 1px; width: 80px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { transform: scaleX(-1); }
.letter p { margin: 0 0 16px; }
.pillars { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pillars li {
  padding: 14px 6px; border-radius: 14px; border: 1px solid var(--line); font-weight: 600; font-size: .95rem;
  background: rgba(5,11,33,.4);
}
.pillars span { display: block; font-family: "Playfair Display", serif; color: var(--gold); font-size: .85rem; }
@media (max-width: 560px) { .pillars { grid-template-columns: repeat(2, 1fr); } }

/* CARDS */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
.card {
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17,31,77,.7), rgba(5,11,33,.7));
  transition: transform .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card h3 { margin: 14px 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); font-weight: 600; }
.card p { margin: 0; }
.card .big { font-family: "Playfair Display", serif; font-size: 1.5rem; font-weight: 800; color: var(--gold-3); margin-bottom: 4px; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(242,201,107,.12); border: 1px solid var(--line);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* TIMELINE */
.timeline { list-style: none; padding: 0; margin: 48px auto 0; position: relative; max-width: 920px; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%);
  background: linear-gradient(var(--gold), rgba(242,201,107,.15));
}
.timeline .progress {
  position: absolute; top: 0; left: 50%; width: 2px; transform: translateX(-50%); height: 0;
  background: var(--gold-3); box-shadow: 0 0 12px var(--gold); transition: height .1s linear;
}
.t-item { position: relative; width: 50%; padding: 0 44px 34px; }
.t-item:nth-child(odd) { left: 0; text-align: right; }
.t-item:nth-child(even) { left: 50%; }
.t-dot {
  position: absolute; top: 18px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy-900); border: 2px solid var(--gold); box-shadow: 0 0 0 5px rgba(242,201,107,.12);
}
.t-item:nth-child(odd) .t-dot { right: -9px; }
.t-item:nth-child(even) .t-dot { left: -9px; }
.t-item.is-highlight .t-dot { background: var(--red); border-color: var(--gold-3); box-shadow: 0 0 0 6px rgba(196,22,28,.25), 0 0 18px var(--red); }
.t-card {
  display: inline-block; text-align: left; padding: 16px 20px; border-radius: 16px; width: 100%;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(17,31,77,.75), rgba(10,20,51,.75));
  transition: border-color .3s, transform .3s;
}
.t-card:hover { border-color: var(--gold); transform: scale(1.02); }
.t-time { font-family: "Playfair Display", serif; font-weight: 600; color: var(--gold); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.t-title { font-weight: 600; font-size: 1.06rem; display: flex; gap: 10px; align-items: center; }
.t-emoji { font-size: 1.3rem; }
.t-item.is-now .t-card { border-color: var(--gold); box-shadow: 0 0 30px rgba(242,201,107,.3); }
.t-item.is-now .t-time::after { content: " · ĐANG DIỄN RA"; font-family: "Be Vietnam Pro"; font-size: .7rem; letter-spacing: .1em; color: #ff8b8f; }

@media (max-width: 720px) {
  .timeline::before, .timeline .progress { left: 14px; }
  .t-item, .t-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding: 0 0 22px 44px; }
  .t-item:nth-child(odd) .t-dot, .t-item:nth-child(even) .t-dot { left: 5px; right: auto; }
}

/* VENUE */
.venue { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
@media (max-width: 860px) { .venue { grid-template-columns: 1fr; } }
.venue-photo { margin: 0; position: relative; }
.venue-photo img { border-radius: 24px; box-shadow: 0 30px 70px rgba(0,0,0,.5); width: 100%; height: auto; }
.venue-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--gold); border-radius: 24px; z-index: -1; opacity: .6;
}
.venue .addr { color: var(--gold-3); font-weight: 600; font-size: 1.15rem; margin: 0 0 14px; }
.venue-text p { margin: 0 0 22px; }

/* RSVP */
.rsvp {
  max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 56px); border-radius: 28px;
  background:
    radial-gradient(500px 200px at 100% 0, rgba(196,22,28,.25), transparent 70%),
    linear-gradient(180deg, rgba(27,45,107,.7), rgba(10,20,51,.85));
  border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(0,0,0,.45);
}
.rsvp-head { text-align: center; margin-bottom: 28px; }
.rsvp-head p.muted { margin: 0; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.field.full, .form-error, form .btn { grid-column: 1 / -1; }
.field > span { color: var(--muted); font-weight: 500; }
.field em { color: #ff8b8f; font-style: normal; }
input, textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 13px 16px; border-radius: 12px;
  background: rgba(5,11,33,.6); border: 1px solid rgba(185,191,214,.25); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #6d7496; }
input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242,201,107,.15); }
input.invalid { border-color: #ff6b70; }
textarea { resize: vertical; }
.stepper { display: flex; align-items: stretch; border-radius: 12px; overflow: hidden; border: 1px solid rgba(185,191,214,.25); }
.stepper input { border: 0; border-radius: 0; text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper button { width: 52px; border: 0; background: rgba(242,201,107,.12); color: var(--gold); font-size: 1.3rem; cursor: pointer; }
.stepper button:hover { background: rgba(242,201,107,.25); }
.turnstile-wrap { min-height: 65px; }
.form-error { color: #ff8b8f; margin: 0; min-height: 1em; font-size: .92rem; text-align: center; }

/* TICKET */
.ticket {
  display: grid; grid-template-columns: 1fr auto; border-radius: 20px; overflow: hidden;
  background: var(--gold-grad); color: #2b1a00; animation: ticketIn .8s cubic-bezier(.2,.8,.2,1.2) both;
  box-shadow: 0 20px 60px rgba(242,201,107,.3);
}
.ticket[hidden] { display: none; }
@keyframes ticketIn { from { opacity: 0; transform: translateY(30px) rotate(-2deg) scale(.95); } to { opacity: 1; transform: none; } }
.ticket .eyebrow { color: var(--red-2); }
.ticket .muted { color: #6b4a10; margin: 0; }
.ticket-left { padding: 28px; }
.ticket-left h3 { font-family: "Playfair Display", serif; font-size: 1.7rem; margin: 0; line-height: 1.2; }
.ticket dl { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 0; }
.ticket dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; opacity: .7; }
.ticket dd { margin: 0; font-weight: 700; }
.ticket-right {
  padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; text-align: center;
  background: var(--red); color: var(--gold-3); border-left: 3px dashed rgba(255,241,196,.6); max-width: 220px;
}
.ticket-right span { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; opacity: .85; }
.ticket-right b { font-family: "Playfair Display", serif; font-size: 1.45rem; letter-spacing: .04em; }
.ticket-right small { font-size: .72rem; opacity: .8; line-height: 1.4; }
@media (max-width: 600px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-right { border-left: 0; border-top: 3px dashed rgba(255,241,196,.6); max-width: none; }
}

/* CLOSING */
.closing { text-align: center; max-width: 820px; }
.quote { font-family: "Playfair Display", serif; font-style: italic; font-size: clamp(1.3rem, 3.2vw, 1.9rem); line-height: 1.5; margin: 0 0 20px; color: var(--gold-3); }
.sign { color: var(--gold); font-weight: 600; letter-spacing: .04em; margin: 0; }

.footer { text-align: center; padding: 40px 16px 90px; border-top: 1px solid var(--line); font-size: .85rem; letter-spacing: .08em; position: relative; z-index: 1; }
.footer p { margin: 4px 0; }

.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; padding: 12px 20px; border-radius: 999px;
  background: var(--red); color: var(--gold-3); font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 30px rgba(196,22,28,.5); transition: opacity .3s, transform .3s;
  opacity: 0; transform: translateY(20px); pointer-events: none;
}
.fab.show { opacity: 1; transform: none; pointer-events: auto; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
