/* ============================================================
   BS Hair — landing page
   Dark theme, gold (#c9a227) + silver (#c3c7cc) accents,
   taken from the BS Hair logo.
   ============================================================ */

:root {
    --bg:        #08080a;
    --bg-2:      #0d0d11;
    --panel:     rgba(255,255,255,.035);
    --border:    rgba(255,255,255,.09);

    --gold:      #d4af37;
    --gold-dim:  #a8801f;
    --silver:    #c3c7cc;
    --silver-dim:#7d838b;

    --text:      #f2f3f5;
    --text-dim:  #a3a8b0;
    --muted:     #6d7480;

    --ease:      cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------------- animated backdrop ---------------- */

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(1200px 700px at 50% -15%, #17161c 0%, transparent 65%),
        linear-gradient(180deg, #0a0a0d 0%, #08080a 55%, #0b0a0c 100%);
}

.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .30;
    will-change: transform;
}
.a1 {
    width: 46vw; height: 46vw; min-width: 320px; min-height: 320px;
    top: -12vh; left: -8vw;
    background: radial-gradient(circle at 35% 35%, rgba(212,175,55,.75), transparent 68%);
    animation: drift1 22s var(--ease) infinite alternate;
}
.a2 {
    width: 40vw; height: 40vw; min-width: 280px; min-height: 280px;
    bottom: -14vh; right: -6vw;
    background: radial-gradient(circle at 60% 40%, rgba(195,199,204,.48), transparent 68%);
    animation: drift2 26s var(--ease) infinite alternate;
}
.a3 {
    width: 34vw; height: 34vw; min-width: 240px; min-height: 240px;
    top: 42%; left: 52%;
    background: radial-gradient(circle at 50% 50%, rgba(168,128,31,.42), transparent 70%);
    animation: drift3 30s var(--ease) infinite alternate;
}

@keyframes drift1 {
    from { transform: translate3d(0,0,0)        scale(1); }
    to   { transform: translate3d(9vw,7vh,0)    scale(1.16); }
}
@keyframes drift2 {
    from { transform: translate3d(0,0,0)        scale(1.08); }
    to   { transform: translate3d(-8vw,-8vh,0)  scale(1); }
}
@keyframes drift3 {
    from { transform: translate3d(-4vw,3vh,0)   scale(.92); }
    to   { transform: translate3d(6vw,-6vh,0)   scale(1.14); }
}

/* faint moving grid */
.grid-lines {
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 78%);
    animation: gridpan 40s linear infinite;
}
@keyframes gridpan {
    from { transform: translate3d(0,0,0); }
    to   { transform: translate3d(64px,64px,0); }
}

#sparks { position: absolute; inset: 0; width: 100%; height: 100%; }

.vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 45%, rgba(0,0,0,.62) 100%);
}

/* ---------------- layout ---------------- */

.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    padding: 48px 22px calc(28px + env(safe-area-inset-bottom));
    max-width: 1080px;
    margin: 0 auto;
}

/* ---------------- hero ---------------- */

.hero { text-align: center; }

.logo-ring {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
}
.logo-ring img {
    width: 132px;
    height: 132px;
    border-radius: 30px;
    object-fit: cover;
    border: 1px solid rgba(212,175,55,.42);
    box-shadow:
        0 18px 50px rgba(0,0,0,.65),
        0 0 42px rgba(212,175,55,.16);
    animation: float 7s ease-in-out infinite;
}
/* rotating conic halo */
.logo-ring .ring {
    position: absolute;
    inset: 0;
    border-radius: 42px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(212,175,55,.85) 55deg,
        transparent 130deg,
        transparent 210deg,
        rgba(195,199,204,.65) 280deg,
        transparent 350deg);
    filter: blur(11px);
    opacity: .75;
    animation: spin 9s linear infinite;
}
@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-9px); }
}

.wordmark {
    margin: 0;
    font-size: clamp(2.5rem, 9vw, 4.4rem);
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.05;
    background: linear-gradient(100deg,
        #8c6d18 0%, var(--gold) 22%, #fff3c4 38%,
        var(--gold) 52%, #e8e9ec 70%, var(--silver) 84%, #8f939a 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 9s ease-in-out infinite;
}
@keyframes shimmer {
    0%,100% { background-position:   0% 50%; }
    50%     { background-position: 100% 50%; }
}

.tagline {
    margin: 10px 0 0;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .92;
}
.lede {
    margin: 16px 0 0;
    color: var(--text-dim);
    font-size: .97rem;
}

/* ---------------- app cards ---------------- */

.apps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    max-width: 780px;
}

.app-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 28px 26px 24px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    border: 1px solid var(--border);
    box-shadow: 0 12px 34px rgba(0,0,0,.42);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    transition:
        transform .34s var(--ease),
        border-color .34s var(--ease),
        box-shadow .34s var(--ease);
}

.app-card h2 {
    margin: 4px 0 0;
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: .01em;
}
.app-card p {
    margin: 0;
    font-size: .89rem;
    line-height: 1.5;
    color: var(--text-dim);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    transition: transform .34s var(--ease), background .34s var(--ease), border-color .34s var(--ease);
}
.card-icon svg { width: 25px; height: 25px; }

.cta {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 650;
    letter-spacing: .02em;
}
.cta em {
    font-style: normal;
    transition: transform .3s var(--ease);
}

/* accent colours */
.gold   .card-icon { color: var(--gold); }
.gold   .cta       { color: var(--gold); }
.silver .card-icon { color: var(--silver); }
.silver .cta       { color: var(--silver); }

/* sweeping sheen on hover */
.sheen {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.10) 50%, transparent 68%);
    transform: translateX(-120%);
    transition: opacity .3s var(--ease);
}

.app-card:hover,
.app-card:focus-visible {
    transform: translateY(-7px);
    outline: none;
}
.app-card:hover .card-icon,
.app-card:focus-visible .card-icon { transform: scale(1.08); }

.app-card:hover .cta em,
.app-card:focus-visible .cta em { transform: translateX(5px); }

.app-card:hover .sheen,
.app-card:focus-visible .sheen {
    opacity: 1;
    animation: sweep 1.05s var(--ease);
}
@keyframes sweep {
    from { transform: translateX(-120%); }
    to   { transform: translateX(120%); }
}

.gold:hover, .gold:focus-visible {
    border-color: rgba(212,175,55,.62);
    box-shadow: 0 20px 46px rgba(0,0,0,.55), 0 0 32px rgba(212,175,55,.20);
}
.silver:hover, .silver:focus-visible {
    border-color: rgba(195,199,204,.55);
    box-shadow: 0 20px 46px rgba(0,0,0,.55), 0 0 32px rgba(195,199,204,.16);
}

.app-card:active { transform: translateY(-2px); }

/* ---------------- install ---------------- */

.install-zone {
    min-height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
}

.install-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 999px;
    font: inherit;
    font-size: .88rem;
    font-weight: 650;
    letter-spacing: .02em;
    color: var(--gold);
    background: rgba(212,175,55,.07);
    border: 1px solid rgba(212,175,55,.45);
    cursor: pointer;
    transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
    animation: pulse 3.4s ease-in-out infinite;
}
.install-btn svg { width: 17px; height: 17px; }
.install-btn:hover {
    background: rgba(212,175,55,.15);
    transform: translateY(-2px);
    box-shadow: 0 0 26px rgba(212,175,55,.22);
}
.install-btn:active { transform: translateY(0); }

@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(212,175,55,.26); }
    50%     { box-shadow: 0 0 0 11px rgba(212,175,55,0); }
}

.install-hint {
    margin: 0;
    max-width: 330px;
    text-align: center;
    font-size: .79rem;
    line-height: 1.5;
    color: var(--muted);
}

/* ---------------- iOS install instructions (bottom sheet) ---------------- */

.ios-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, .68);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: iosFade .25s var(--ease);
}
.ios-modal[hidden] { display: none; }

.ios-sheet {
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #17171d, #101015);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    padding: 14px 22px calc(26px + env(safe-area-inset-bottom));
    box-shadow: 0 -18px 50px rgba(0, 0, 0, .6);
    animation: iosSlideUp .34s var(--ease);
}

.ios-grip {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    margin: 0 auto 16px;
}

.ios-head { text-align: center; margin-bottom: 18px; }
.ios-emoji { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.ios-head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .01em;
}
.ios-head p {
    margin: 6px auto 0;
    max-width: 360px;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--text-dim);
}

.ios-steps {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ios-steps li {
    display: flex;
    align-items: center;
    gap: 13px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 12px 14px;
}
.ios-num {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .82rem;
    font-weight: 700;
    color: #141416;
    background: linear-gradient(135deg, #e8cd78, var(--gold));
}
.ios-txt {
    font-size: .85rem;
    line-height: 1.5;
    color: var(--text);
}
.ios-txt strong { color: #fff; font-weight: 650; }
.ios-ic {
    display: inline-flex;
    vertical-align: middle;
    width: 26px;
    height: 26px;
    padding: 3px;
    margin: 0 2px;
    border-radius: 7px;
    color: var(--gold);
    background: rgba(212, 175, 55, .12);
    border: 1px solid rgba(212, 175, 55, .3);
}
.ios-ic svg { width: 100%; height: 100%; }

.ios-tip {
    text-align: center;
    font-size: .76rem;
    line-height: 1.5;
    color: var(--silver);
    background: rgba(212, 175, 55, .08);
    border: 1px solid rgba(212, 175, 55, .22);
    border-radius: 10px;
    padding: 9px 12px;
    margin-bottom: 18px;
}
.ios-tip strong { color: var(--gold); }

.ios-got {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 999px;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    color: #141416;
    background: linear-gradient(135deg, #e8cd78, var(--gold));
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.ios-got:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(212, 175, 55, .28); }
.ios-got:active { transform: translateY(0); }

@keyframes iosFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes iosSlideUp {
    from { transform: translateY(100%); opacity: .4; }
    to   { transform: translateY(0);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ios-modal, .ios-sheet { animation: none; }
}

/* ---------------- footer ---------------- */

.foot {
    font-size: .76rem;
    letter-spacing: .05em;
    color: var(--muted);
}
.foot b { color: var(--gold); font-weight: 650; }

/* ---------------- entrance animation ---------------- */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: rise .8s var(--ease) forwards;
    animation-delay: var(--d, 0ms);
}
@keyframes rise {
    to { opacity: 1; transform: translateY(0); }
}

/* ---------------- responsive ---------------- */

@media (max-width: 720px) {
    .page { gap: 28px; padding-top: 38px; }
    .apps { grid-template-columns: 1fr; gap: 16px; max-width: 440px; }
    .app-card { padding: 22px 20px 20px; }
    .logo-ring { width: 132px; height: 132px; }
    .logo-ring img { width: 108px; height: 108px; border-radius: 26px; }
    .tagline { letter-spacing: .3em; }
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    #sparks { display: none; }
}
