:root {
  --red: #7A1F2B; --red-deep: #4A1419; --gold: #C9A35A; --gold-line: #B08B45; --gold-soft: #F3DFA8;
  --ink: #2A211C; --ink-2: #3B2A22; --muted: #5A4A40; --wood: #6E4C38; --paper: #FBF6EC; --card: #FFFCF5;
  --sans: 'Be Vietnam Pro', system-ui, sans-serif; --serif: 'Cormorant Garamond', Georgia, serif; --script: 'Dancing Script', cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); overflow-x: clip; }
a { color: var(--red); }
a:hover { color: var(--red-deep); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.serif { font-family: var(--serif); }
.script { font-family: var(--script); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 8px; background: var(--red); color: #FFF6E6; }
.skip:focus { top: 12px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Header */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); background: rgba(251,246,236,.82); border-bottom: 1px solid rgba(122,31,43,.14); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 8px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--red); }
.brand span { font-size: 32px; line-height: 1; }
.links { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 auto; justify-content: center; }
.navlink { position: relative; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 10px 4px; min-height: 44px; display: inline-flex; align-items: center; }
.navlink::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 6px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.navlink:hover::after { transform: scaleX(1); }
.actions { display: flex; align-items: center; gap: 10px; }
.signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.create { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--red); color: #FFF6E6; text-decoration: none; font-weight: 600; font-size: 14px; }
.create:hover { color: #FFF6E6; background: var(--red-deep); }

/* Hero */
.hero { position: relative; width: 100%; height: max(500px, calc(100vw * 724 / 2172)); display: flex; align-items: center; justify-content: center; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: url(background.webp) center / cover; animation: kenburns 28s ease-in-out infinite alternate; }
.hero-veil { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 30% 46% at 50% 48%, rgba(251,246,236,.9) 0%, rgba(251,246,236,.6) 55%, rgba(251,246,236,0) 100%), linear-gradient(180deg, rgba(251,246,236,0) 72%, var(--paper) 100%); }
.hero-copy { position: relative; z-index: 4; max-width: 820px; padding: 32px 16px 64px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.eyebrow { margin: 0; letter-spacing: .3em; font-size: 14px; font-weight: 700; color: var(--wood); text-transform: uppercase; }
.title { font-family: var(--script); font-weight: 700; font-size: clamp(52px, 8vw, 118px); line-height: 1.15; white-space: nowrap; margin: 0; padding: .04em .16em .1em; background: linear-gradient(100deg, #8E1B28 0%, #7A1F2B 40%, #C9A35A 50%, #7A1F2B 60%, #8E1B28 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--red); animation: shine 6s ease-in-out 1.5s infinite; filter: drop-shadow(0 6px 18px rgba(122,31,43,.18)); }
.tagline { margin: 0; font-size: 30px; line-height: 1.1; color: var(--red-deep); }
.lead { margin: 0; max-width: 480px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 30px; border-radius: 999px; background: var(--red); color: #FFF8EC; text-decoration: none; font-weight: 600; font-size: 16px; border: 0; font-family: inherit; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(122,31,43,.7), inset 0 0 0 1px rgba(201,163,90,.55); position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s; }
.btn:hover { color: #FFF8EC; transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(122,31,43,.8), inset 0 0 0 1px rgba(201,163,90,.9); }
.btn:hover::before { transform: translateX(120%); }
.btn svg { transition: transform .3s; }
.btn:hover svg { transform: translateX(4px); }
.ghost { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; color: var(--red-deep); text-decoration: none; font-weight: 600; border: 1px solid rgba(122,31,43,.35); background: rgba(255,255,255,.55); transition: background .3s, border-color .3s; }
.ghost:hover { background: #fff; border-color: var(--red); }
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.petal { position: absolute; top: -40px; width: 18px; height: 14px; background: radial-gradient(circle at 30% 30%, #FFD3DA, #E8798B 70%); border-radius: 80% 0 80% 0; opacity: .85; animation: fall linear infinite; }
.petal:nth-child(1) { left: 6%; animation-duration: 13s; animation-delay: -2s; }
.petal:nth-child(2) { left: 14%; animation-duration: 17s; animation-delay: -9s; }
.petal:nth-child(3) { left: 23%; animation-duration: 12s; animation-delay: -5s; }
.petal:nth-child(4) { left: 33%; animation-duration: 19s; animation-delay: -13s; width: 12px; height: 10px; }
.petal:nth-child(5) { left: 44%; animation-duration: 15s; animation-delay: -1s; }
.petal:nth-child(6) { left: 52%; animation-duration: 21s; animation-delay: -7s; width: 13px; height: 10px; }
.petal:nth-child(7) { left: 61%; animation-duration: 14s; animation-delay: -11s; }
.petal:nth-child(8) { left: 70%; animation-duration: 18s; animation-delay: -3s; width: 22px; height: 16px; }
.petal:nth-child(9) { left: 78%; animation-duration: 16s; animation-delay: -15s; }
.petal:nth-child(10) { left: 86%; animation-duration: 12s; animation-delay: -6s; width: 12px; height: 9px; }
.rise { opacity: 0; animation: rise 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
.d1 { animation-delay: .15s; } .d2 { animation-delay: .35s; } .d3 { animation-delay: .55s; } .d4 { animation-delay: .75s; } .d5 { animation-delay: .95s; }

/* Feature cards */
.features { position: relative; z-index: 5; margin-top: -24px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 26px 28px; border-radius: 22px; background: var(--card); border: 1px solid rgba(122,31,43,.12); box-shadow: 0 20px 40px -28px rgba(74,20,25,.45); transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.card:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -30px rgba(74,20,25,.6); }
.card-ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: #F6E7E2; color: var(--red); transition: transform .5s cubic-bezier(.2,.8,.2,1), background .4s, color .4s; }
.card:hover .card-ico { transform: rotate(-8deg) scale(1.08); background: var(--red); color: #FFF3DF; }
.card h2 { margin: 6px 0 0; font-family: var(--serif); font-size: 28px; color: var(--red-deep); }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Tree feature */
.section { padding: 120px 0; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.feature-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #F6E7E2; color: var(--red); font-size: 13px; font-weight: 600; }
.h2 { margin: 0; font-family: var(--serif); font-size: clamp(38px, 4.6vw, 64px); line-height: 1.05; color: var(--ink); }
.h2 em { color: var(--red); }
.body { margin: 0; font-size: 17px; line-height: 1.75; color: #4A3B32; max-width: 520px; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 15px; color: var(--ink-2); }
.ticks li { display: flex; gap: 12px; align-items: center; }
.tick { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #FFF3DF; display: grid; place-items: center; flex: none; }
.tree-stage { position: relative; aspect-ratio: 1/1; max-width: 620px; width: 100%; margin: 0 auto; }
.tree-glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(201,163,90,.35), rgba(201,163,90,0) 65%); animation: breathe 6s ease-in-out infinite; }
.tree-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(74,20,25,.25)); }
.medal { position: absolute; width: 86px; height: 86px; border-radius: 50%; padding: 4px; background: conic-gradient(#C9A35A, #F3DFA8, #A97E36, #F3DFA8, #C9A35A); box-shadow: 0 12px 26px -10px rgba(74,20,25,.6); animation: float 5s ease-in-out infinite; }
.medal img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #F3E6CC; display: block; }
.m1 { left: 41%; top: 4%; } .m2 { left: 10%; top: 30%; animation-delay: -1.2s; } .m3 { right: 8%; top: 28%; animation-delay: -2.4s; }
.m4 { left: 20%; top: 58%; animation-delay: -3.1s; width: 72px; height: 72px; } .m5 { right: 18%; top: 56%; animation-delay: -.6s; width: 72px; height: 72px; }

/* Steps */
.ink { position: relative; background: #3A1015; color: #FBEFD9; isolation: isolate; overflow: hidden; }
.ink::after { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -450px; transform: translateX(-50%); z-index: -1; background: radial-gradient(circle, rgba(201,163,90,.22), transparent 60%); }
.ink-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.ink-head .eyebrow { color: #E9C98A; font-size: 13px; }
.ink-head h2 { margin: 6px 0 0; font-size: clamp(40px, 4.6vw, 60px); line-height: 1.1; color: #FFF6E6; }
.ink-head p { margin: 0; max-width: 420px; font-size: 16px; line-height: 1.7; color: #E9D6B4; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { padding: 30px; border-radius: 22px; background: rgba(255,252,245,.06); border: 1px solid rgba(243,223,168,.2); transition: background .4s, transform .4s; }
.step:hover { background: rgba(255,252,245,.11); transform: translateY(-4px); }
.step-n { font-family: var(--serif); font-size: 96px; line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(243,223,168,.75); }
.step h3 { margin: 14px 0 8px; font-family: var(--serif); font-size: 30px; color: #FFF6E6; }
.step p { margin: 0; color: #E9D6B4; font-size: 15px; line-height: 1.65; }

/* Showcase */
.show { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; margin-top: 36px; }
.shot { position: relative; display: block; border-radius: 22px; overflow: hidden; min-height: 400px; text-decoration: none; color: var(--ink); border: 1px solid rgba(122,31,43,.15); box-shadow: 0 30px 60px -36px rgba(74,20,25,.6); isolation: isolate; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.shot:hover { transform: translateY(-6px); color: var(--ink); }
.shot-bg { position: absolute; inset: 0; z-index: -2; background: url(background.webp) center / cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.shot:hover .shot-bg { transform: scale(1.06); }
.shot-veil { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(251,246,236,.9), rgba(251,246,236,.25) 80%); }
.browser { display: flex; gap: 6px; padding: 12px 16px; background: rgba(251,246,236,.9); border-bottom: 1px solid rgba(122,31,43,.12); }
.browser i { width: 10px; height: 10px; border-radius: 50%; background: #D9C9AE; }
.browser span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.shot-body { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 70px 24px; }
.yours { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 32px; border-radius: 22px; border: 2px dashed rgba(122,31,43,.3); background: var(--card); text-decoration: none; color: var(--ink); transition: border-color .3s, background .3s; }
.yours:hover { border-color: var(--red); background: #FFF8EC; color: var(--ink); }

/* Security */
.sec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.sec-item { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid rgba(122,31,43,.1); transition: transform .35s, box-shadow .35s; }
.sec-item:hover { transform: translateY(-4px); box-shadow: 0 20px 34px -24px rgba(74,20,25,.55); }
.sec-ico { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: #F6E7E2; color: var(--red); }
.sec-item h3 { margin: 0 0 4px; font-size: 16px; }
.sec-item p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Join and open a family */
.join { position: relative; overflow: hidden; border-radius: 32px; padding: 56px; background: var(--red); color: #FFF6E6; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; isolation: isolate; }
.join h2 { margin: 0; font-size: clamp(38px, 4.4vw, 58px); line-height: 1.1; color: #FFF6E6; }
.join p { margin: 8px 0 0; font-size: 16px; line-height: 1.7; color: var(--gold-soft); }
.forms { display: flex; flex-direction: column; gap: 18px; }
.forms label { font-size: 14px; font-weight: 600; color: #FFF0D6; }
.field { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; padding: 6px; border-radius: 999px; background: #FFF6E6; }
.field input { flex: 1 1 200px; min-width: 0; min-height: 48px; border: 0; outline: 0; background: transparent; padding: 0 18px; font: inherit; font-size: 15px; color: var(--ink); }
.field .prefix { padding-left: 16px; font-size: 14px; color: var(--muted); }
.field .btn { min-height: 48px; padding: 0 22px; background: #2A1610; box-shadow: none; }
.note { margin: 0; font-size: 13px; color: #F3DFA8; min-height: 1.2em; }

/* Footer */
.foot { background: #2A1610; color: #E6D3AE; margin-top: 110px; }
.foot a { color: #E6D3AE; text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.foot a:hover { color: var(--gold-soft); }
.fret { display: block; width: 100%; height: 18px; background: var(--red); }
.fcols { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 60px 0 36px; }
.fcols nav { display: flex; flex-direction: column; font-size: 14px; }
.fcols h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 20px; color: var(--gold-soft); }
.copy { margin: 0; padding: 22px 0 36px; border-top: 1px solid rgba(176,139,69,.35); font-size: 13px; color: #BFA77F; }

@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.04); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes fall { 0% { transform: translate3d(0,-40px,0) rotate(0); } 25% { transform: translate3d(40px,25vh,0) rotate(90deg); } 50% { transform: translate3d(-20px,50vh,0) rotate(200deg); } 75% { transform: translate3d(50px,75vh,0) rotate(280deg); } 100% { transform: translate3d(0,110vh,0) rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes breathe { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .show, .join { grid-template-columns: minmax(0, 1fr); }
  .steps, .sec { grid-template-columns: minmax(0, 1fr); }
  .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .links { display: none; }
  .actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .cards, .fcols { grid-template-columns: minmax(0, 1fr); }
  .signin { display: none; }
  .nav-inner { padding: 8px 16px; gap: 8px; flex-wrap: nowrap; }
  .brand svg { width: 34px; height: 34px; }
  .brand span { font-size: 25px; }
  .create { padding: 0 14px; }
  .hero { height: auto; min-height: 520px; }
  .title { white-space: normal; }
  .join { padding: 36px 20px; border-radius: 24px; }
  .section { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; }
  .petals { display: none; }
}
