/* Signature Club — member entrance */
:root {
    --sc-ink: #060810;
    --sc-navy: #0b1122;
    --sc-gold-1: #f6e7bd;
    --sc-gold-2: #d4af6a;
    --sc-gold-3: #96713a;
    --sc-text: #eef0f6;
    --sc-muted: #9aa3b8;
    --sc-line: rgba(212, 175, 106, .22);
    --sc-danger: #ff8f8f;
    --sc-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --sc-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --sc-gold: linear-gradient(135deg, var(--sc-gold-1) 0%, var(--sc-gold-2) 48%, var(--sc-gold-3) 100%);
}

html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--sc-body);
    color: var(--sc-text);
    background: var(--sc-ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- Background ---------- */
.sc-bg {
    position: fixed; inset: 0; z-index: 0; overflow: hidden;
    background:
        radial-gradient(120% 90% at 85% 0%, #17203f 0%, transparent 55%),
        radial-gradient(90% 80% at 0% 100%, #1b1430 0%, transparent 60%),
        linear-gradient(160deg, #080b16 0%, #05070d 100%);
}
.sc-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sc-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.sc-orb-1 { width: 46vmax; height: 46vmax; left: -14vmax; top: -18vmax;
    background: radial-gradient(circle, rgba(212, 175, 106, .38), transparent 65%); animation: sc-drift-a 26s ease-in-out infinite alternate; }
.sc-orb-2 { width: 40vmax; height: 40vmax; right: -12vmax; bottom: -16vmax;
    background: radial-gradient(circle, rgba(64, 92, 190, .45), transparent 65%); animation: sc-drift-b 32s ease-in-out infinite alternate; }
.sc-orb-3 { width: 28vmax; height: 28vmax; left: 42%; top: 48%;
    background: radial-gradient(circle, rgba(140, 74, 150, .28), transparent 65%); animation: sc-drift-a 38s ease-in-out infinite alternate-reverse; }
@keyframes sc-drift-a { to { transform: translate3d(9vmax, 7vmax, 0) scale(1.15); } }
@keyframes sc-drift-b { to { transform: translate3d(-8vmax, -6vmax, 0) scale(1.1); } }
.sc-grain {
    position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sc-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(3, 4, 8, .72) 100%); }

/* ---------- Layout ---------- */
.sc-stage {
    position: relative; z-index: 1;
    min-height: 100vh; min-height: 100dvh;
    display: flex; align-items: center;
    padding: clamp(1.5rem, 5vh, 4rem) 0;
    padding-bottom: max(clamp(1.5rem, 5vh, 4rem), env(safe-area-inset-bottom));
}
.sc-stage > .container, .sc-stage > .container-xxl { padding-inline: clamp(1rem, 4vw, 3rem); }

/* ---------- Hero ---------- */
.sc-brand { display: inline-flex; margin-bottom: 1.5rem; }
.sc-seal { width: clamp(64px, 9vw, 104px); height: auto; filter: drop-shadow(0 6px 24px rgba(212, 175, 106, .35)); }
.sc-seal-dash { transform-origin: 60px 60px; animation: sc-spin 60s linear infinite; }
@keyframes sc-spin { to { transform: rotate(360deg); } }
.sc-brand-sm { margin-bottom: 1rem; }
.sc-brand-sm .sc-seal { width: 64px; }

.sc-eyebrow {
    font-size: .74rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase;
    color: var(--sc-gold-2); margin-bottom: .9rem;
}
.sc-title {
    font-family: var(--sc-display); font-weight: 600; line-height: .95;
    font-size: clamp(2.9rem, 7.4vw, 6.2rem); letter-spacing: -.01em; margin: 0 0 1.4rem;
    background: linear-gradient(180deg, #fff 20%, #cfd4e2 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sc-title em {
    font-style: italic; font-weight: 500; padding-right: .08em;
    background: var(--sc-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sc-title-sm { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 0; }
.sc-lead { max-width: 30rem; font-size: 1.06rem; line-height: 1.75; color: var(--sc-muted); margin-bottom: 2.4rem; }
.sc-points { list-style: none; padding: 0; margin: 0; gap: 2.2rem; }
.sc-points li { display: flex; align-items: center; gap: .8rem; font-size: .82rem; line-height: 1.35; color: #c3c9d8; text-align: left; }
.sc-points i {
    display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%;
    font-size: 1.05rem; color: var(--sc-gold-1); border: 1px solid var(--sc-line); background: rgba(212, 175, 106, .07);
}

/* ---------- Card ---------- */
.sc-card {
    position: relative; isolation: isolate;
    padding: clamp(1.6rem, 4.5vw, 2.6rem);
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025));
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(26px) saturate(140%); backdrop-filter: blur(26px) saturate(140%);
    animation: sc-rise .8s cubic-bezier(.2, .8, .2, 1) both;
}
.sc-card::before { /* hairline gold edge */
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(140deg, rgba(246, 231, 189, .7), transparent 32%, transparent 68%, rgba(212, 175, 106, .45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.sc-card-glow {
    position: absolute; z-index: -1; left: 10%; right: 10%; top: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--sc-gold-1), transparent); opacity: .9;
}
.sc-card-narrow { max-width: 26rem; }
@keyframes sc-rise { from { opacity: 0; transform: translateY(26px) scale(.98); } }

.sc-steps { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.6rem; }
.sc-steps li { height: 3px; width: 1.4rem; border-radius: 3px; background: rgba(255, 255, 255, .14); transition: all .45s ease; }
.sc-steps li.is-active { width: 2.8rem; background: var(--sc-gold); }
.sc-steps li.is-past { background: rgba(212, 175, 106, .5); }

.sc-card-title { font-family: var(--sc-display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.2rem); line-height: 1.1; margin: 0 0 .5rem; }
.sc-card-sub { color: var(--sc-muted); font-size: .93rem; line-height: 1.6; margin-bottom: 1.6rem; }
.sc-card-sub strong { color: var(--sc-text); font-weight: 600; white-space: nowrap; }

.sc-panel { display: none; }
.sc-panel.is-active { display: block; animation: sc-panel-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sc-panel-in { from { opacity: 0; transform: translateX(18px); } }

/* ---------- Fields ---------- */
.sc-label { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #b9c0d1; margin-bottom: .55rem; }
.sc-field {
    display: flex; align-items: center; height: 3.6rem; border-radius: 14px;
    background: rgba(4, 6, 12, .5); border: 1px solid rgba(255, 255, 255, .13);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.sc-field:focus-within { border-color: var(--sc-gold-2); background: rgba(4, 6, 12, .7); box-shadow: 0 0 0 4px rgba(212, 175, 106, .16); }
.sc-prefix { padding: 0 .9rem 0 1.1rem; font-weight: 600; color: var(--sc-gold-1); border-right: 1px solid rgba(255, 255, 255, .12); line-height: 1.6rem; }
.sc-input {
    flex: 1; min-width: 0; height: 100%; padding: 0 1rem; border: 0; outline: 0; background: transparent;
    color: var(--sc-text); font: 600 1.12rem var(--sc-body); letter-spacing: .08em;
}
.sc-input::placeholder { color: #5d667b; font-weight: 500; }
.sc-input:-webkit-autofill { -webkit-text-fill-color: var(--sc-text); transition: background-color 9999s; }
.sc-field-icon { padding-right: 1.1rem; color: #6c7590; font-size: 1.1rem; }
.sc-help { font-size: .8rem; color: #7e879c; margin: .6rem 0 0; }

.sc-otp { display: flex; gap: clamp(.35rem, 2vw, .6rem); justify-content: space-between; margin-bottom: 1rem; }
.sc-otp-box {
    flex: 1 1 0; min-width: 0; width: 100%; max-width: 3.6rem; aspect-ratio: 5 / 6; padding: 0;
    text-align: center; font: 700 clamp(1.2rem, 5vw, 1.6rem) var(--sc-body); color: var(--sc-gold-1);
    border-radius: 14px; background: rgba(4, 6, 12, .5); border: 1px solid rgba(255, 255, 255, .13); outline: 0;
    caret-color: var(--sc-gold-2); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sc-otp-box:focus { border-color: var(--sc-gold-2); box-shadow: 0 0 0 4px rgba(212, 175, 106, .16); transform: translateY(-2px); }
.sc-otp-box.is-filled { border-color: rgba(212, 175, 106, .55); }
.sc-otp.is-error .sc-otp-box { border-color: rgba(255, 143, 143, .7); }
.sc-shake { animation: sc-shake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes sc-shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* ---------- Buttons ---------- */
.sc-btn {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: .6rem;
    width: 100%; height: 3.6rem; margin-top: 1.4rem; padding: 0 1.4rem; border: 0; border-radius: 14px; cursor: pointer;
    font: 700 .98rem var(--sc-body); letter-spacing: .03em; color: #231807; text-decoration: none;
    background: var(--sc-gold); box-shadow: 0 14px 34px -12px rgba(212, 175, 106, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.sc-btn::after { /* sheen */
    content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg);
    animation: sc-sheen 4.5s ease-in-out infinite;
}
@keyframes sc-sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.sc-btn:hover { transform: translateY(-2px); color: #231807; box-shadow: 0 20px 40px -12px rgba(212, 175, 106, .85), inset 0 1px 0 rgba(255, 255, 255, .5); }
.sc-btn:active { transform: translateY(0); }
.sc-btn:focus-visible, .sc-link:focus-visible, .sc-module:focus-visible { outline: 2px solid var(--sc-gold-1); outline-offset: 3px; }
.sc-btn i { transition: transform .2s; }
.sc-btn:hover i { transform: translateX(4px); }
.sc-btn[disabled] { cursor: wait; filter: saturate(.7) brightness(.9); transform: none; }
.sc-btn-inline { display: inline-flex; width: auto; margin-top: .4rem; }
.sc-spinner { display: none; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 2px solid rgba(35, 24, 7, .3); border-top-color: #231807; animation: sc-spin .7s linear infinite; }
.sc-btn.is-loading .sc-spinner { display: block; }
.sc-btn.is-loading i { display: none; }

.sc-link { padding: 0; border: 0; background: none; color: var(--sc-gold-1); font-weight: 600; font-size: inherit; text-decoration: none; cursor: pointer; border-bottom: 1px solid rgba(246, 231, 189, .35); }
.sc-link:hover { color: #fff; border-bottom-color: #fff; }
.sc-resend { text-align: center; font-size: .86rem; color: var(--sc-muted); margin: 1.2rem 0 0; }
.sc-resend strong { color: var(--sc-text); font-variant-numeric: tabular-nums; }

/* ---------- Feedback ---------- */
.sc-alert {
    display: flex; gap: .65rem; align-items: flex-start; padding: .8rem 1rem; margin-bottom: 1.3rem; border-radius: 12px;
    font-size: .88rem; line-height: 1.45; color: #ffd9d9; background: rgba(255, 99, 99, .11); border: 1px solid rgba(255, 143, 143, .35);
    animation: sc-panel-in .35s ease both;
}
.sc-alert[hidden] { display: none; }
.sc-alert i { color: var(--sc-danger); margin-top: .08rem; }
.sc-dev { font-size: .8rem; color: #b9c0d1; padding: .55rem .8rem; border: 1px dashed rgba(255, 255, 255, .25); border-radius: 10px; text-align: center; }
.sc-dev strong { color: var(--sc-gold-1); letter-spacing: .2em; }

.sc-done { text-align: center; padding: .6rem 0 .2rem; }
.sc-check { width: 76px; height: 76px; margin: 0 auto 1.2rem; display: block; fill: none; stroke: var(--sc-gold-2); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sc-check circle { stroke-dasharray: 208; stroke-dashoffset: 208; }
.sc-check path { stroke-dasharray: 46; stroke-dashoffset: 46; stroke: var(--sc-gold-1); }
.sc-done.is-active .sc-check circle { animation: sc-draw .6s ease forwards; }
.sc-done.is-active .sc-check path { animation: sc-draw .35s .5s ease forwards; }
@keyframes sc-draw { to { stroke-dashoffset: 0; } }
.sc-progress { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.sc-progress span { display: block; height: 100%; width: 0; background: var(--sc-gold); }
.sc-done.is-active .sc-progress span { animation: sc-fill 1.5s .3s ease forwards; }
@keyframes sc-fill { to { width: 100%; } }

.sc-foot { text-align: center; font-size: .76rem; letter-spacing: .04em; color: #6f788d; margin: 1.4rem 0 0; }
.sc-errcode { font-family: var(--sc-display); font-size: 4.5rem; line-height: 1; margin: 0 0 .6rem; background: var(--sc-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Module chooser ---------- */
.sc-chooser { max-width: 60rem; }
.sc-module {
    position: relative; display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.6rem; border-radius: 20px;
    text-decoration: none; color: var(--sc-text); background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.sc-module:hover { transform: translateY(-5px); color: var(--sc-text); border-color: rgba(212, 175, 106, .6); box-shadow: 0 26px 50px -24px rgba(212, 175, 106, .5); }
.sc-module-code { font-size: .7rem; font-weight: 700; letter-spacing: .24em; color: var(--sc-gold-2); }
.sc-module-name { font-family: var(--sc-display); font-size: 1.7rem; font-weight: 600; line-height: 1.15; flex: 1; }
.sc-module-cta { font-size: .85rem; font-weight: 600; color: var(--sc-gold-1); }
.sc-module-cta i { transition: transform .2s; display: inline-block; }
.sc-module:hover .sc-module-cta i { transform: translateX(5px); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .sc-stage { align-items: flex-start; }
    .sc-row { padding-top: clamp(.5rem, 4vh, 3rem); }
    .sc-brand { margin-bottom: .9rem; }
    .sc-eyebrow { font-size: .66rem; letter-spacing: .28em; margin-bottom: .6rem; }
    .sc-title { margin-bottom: .4rem; }
}
@media (max-height: 640px) and (max-width: 991.98px) {
    .sc-brand { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
