/* To resize anything, change a variable in :root below. */

@font-face {
    font-family: 'Bolota';
    src: url('../fonts/Bolota.ttf') format('truetype');
    font-display: swap;
}

:root {
    /* colours */
    --zelu-bg:      #101717;
    --zelu-red:     #df2a1d;
    --zelu-blue:    #2196bc;
    --zelu-yellow:  #d4930f;
    --zelu-green:   #2bb673;
    --zelu-pink:    #e23e6d;
    --zelu-cream:   #fefff5;

    /* hero */
    --zelu-ball-size: 480px;

    /* wheel + phone */
    --wheel-size: 132vh;    /* hub off-screen down-right, only the edge shows */
    --wheel-x:    78vw;     /* hub X position */
    --wheel-y:    86vh;     /* hub Y position */
    --phone-x:    70vw;     /* phone centre X */
    --phone-y:    54vh;     /* phone centre Y */
    --phone-h:    118vh;    /* phone height */

    /* text sizes */
    --h2-size:       58px;
    --body-size:     24px;
    --copy-width:    788px;
    --faq-head-size: 60px;
    --faq-q-size:    28px;
    --footer-word:   280px;
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    overflow-x: clip;
    background: var(--zelu-bg);
    font-family: 'Sora', sans-serif;
    color: var(--zelu-cream);
}

/* Ignite framework overrides */
.container, .container-fluid, .ig-main-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

img {
    display: block;
}

[id] {
    scroll-margin-top: 90px;
}

/* --- NAV --- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 3rem;
}

.nav-brand {
    font-family: 'Bolota', 'Sora', sans-serif;
    font-size: 24px;
    color: var(--zelu-cream);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 210px;
}

.nav-links a {
    color: var(--zelu-cream);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-cta {
    color: var(--zelu-cream) !important;
    opacity: 1 !important;
}

/* --- HERO --- */

.hero {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    background: var(--zelu-bg);
}

.orbit {
    position: absolute;
    inset: 0;
}

.ball {
    position: absolute;
    aspect-ratio: 1 / 1;
    will-change: transform;
    z-index: 2;
}

.ball img {
    width: 100%;
    height: 100%;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* central logo - card that flips to the TestFlight link on hover */
.zelu-ball {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--zelu-ball-size);
    transform: translate(-50%, -50%);
    aspect-ratio: 1 / 1;
    perspective: 1400px;
    z-index: 6;
    text-decoration: none;
}

.zb-inner {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.6, 0.2, 0.1, 1);
}

.zelu-ball:hover .zb-inner,
.zelu-ball:focus-visible .zb-inner {
    transform: rotateY(180deg);
}

.zb-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.zb-front img {
    width: 100%;
    height: 100%;
}

.zb-back {
    transform: rotateY(180deg);
    background: var(--zelu-cream);
}

.zb-back img {
    width: 100%;
    height: 100%;
}

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 3vh;
    transform: translateX(-50%);
    z-index: 7;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.55;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-hint::after {
    content: '';
    width: 1px;
    height: 26px;
    background: var(--zelu-cream);
    animation: hintpulse 1.6s ease-in-out infinite;
}

@keyframes hintpulse {
    0%, 100% {
        opacity: 0.2;
        transform: scaleY(0.5);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .zb-inner { transition: none; }
    .scroll-hint::after { animation: none; }
}

/* --- FEATURES ---
   The wheel lives inside .story (not the viewport).
   .story-stage stays pinned while you scroll the 5 panels, then
   releases so the FAQ scrolls in from below. */

.story {
    position: relative;
    height: 500vh;      /* 5 panels × 100vh */
}

.story-stage {
    position: sticky;
    top: 0;
    height: 100vh;
}

.wheel-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* CSS needs @property to animate conic-gradient angles */
@property --w0 { syntax: '<angle>'; inherits: false; initial-value: 72deg; }
@property --w1 { syntax: '<angle>'; inherits: false; initial-value: 72deg; }
@property --w2 { syntax: '<angle>'; inherits: false; initial-value: 72deg; }
@property --w3 { syntax: '<angle>'; inherits: false; initial-value: 72deg; }
@property --w4 { syntax: '<angle>'; inherits: false; initial-value: 72deg; }

/* .wheel-wrap is the fixed hub — only .wheel inside it rotates */
.wheel-wrap {
    position: absolute;
    left: var(--wheel-x);
    top: var(--wheel-y);
    width: var(--wheel-size);
    height: var(--wheel-size);
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 60px rgba(0, 0, 0, 0.35));
}

/* slice order matches the panel scroll order: pink → green → red → yellow → blue */
.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    --w0: 72deg;
    --w1: 72deg;
    --w2: 72deg;
    --w3: 72deg;
    --w4: 72deg;
    transform: rotate(0deg);
    transition:
        transform 0.7s cubic-bezier(0.5, 0.1, 0.2, 1),
        --w0 0.7s ease,
        --w1 0.7s ease,
        --w2 0.7s ease,
        --w3 0.7s ease,
        --w4 0.7s ease;
    background: conic-gradient(
        from -90deg,
        var(--zelu-pink) 0deg var(--w0),
        var(--zelu-green) var(--w0) calc(var(--w0) + var(--w1)),
        var(--zelu-red) calc(var(--w0) + var(--w1)) calc(var(--w0) + var(--w1) + var(--w2)),
        var(--zelu-yellow) calc(var(--w0) + var(--w1) + var(--w2)) calc(var(--w0) + var(--w1) + var(--w2) + var(--w3)),
        var(--zelu-blue) calc(var(--w0) + var(--w1) + var(--w2) + var(--w3)) 360deg
    );
}

.panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.panel.is-active {
    opacity: 1;
    pointer-events: auto;
}

.panel-copy {
    position: absolute;
    left: 8vw;
    top: 34%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 57px;
    width: var(--copy-width);
    z-index: 3;
}

.panel-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.75;
}

.panel-tag::before {
    content: '';
    width: 0.85em;
    height: 0.85em;
    border-radius: 50%;
    background: var(--accent, var(--zelu-red));
}

.panel-copy h2 {
    font-family: 'Bolota', 'Sora', sans-serif;
    font-weight: 240;
    font-size: var(--h2-size);
    line-height: normal;
    text-transform: uppercase;
}

.panel-copy p {
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    font-size: var(--body-size);
    line-height: 34px;
    letter-spacing: 0.38px;
}

.panel-phone {
    position: absolute;
    left: var(--phone-x);
    top: var(--phone-y);
    transform: translate(-50%, -50%);
    height: var(--phone-h);
    width: auto;
    z-index: 2;
    filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.5));
}

@media (prefers-reduced-motion: reduce) {
    .wheel, .wheel-wrap, .panel { transition: none; }
}

/* --- FAQ --- */

.faq {
    position: relative;
    z-index: 1;
    padding: 7rem 3rem 8rem;
}

.faq-list {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    width: 100%;
    max-width: 1325px;
    margin: 0 auto;
    padding: 32px 40px;
    border-radius: 56px;
    background: rgba(254, 255, 245, 0.84);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.faq-head {
    width: 100%;
    max-width: 788px;
    color: #101717;
    font-family: 'Bolota', 'Sora', sans-serif;
    font-weight: 240;
    font-size: var(--faq-head-size);
    line-height: 1.0;
    text-transform: uppercase;
}

.faq-items {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 31px;
    width: 100%;
    max-width: 1161px;
}

.faq-item {
    width: 100%;
    border-bottom: 1px solid rgba(16, 23, 23, 0.16);
    padding-bottom: 28px;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    text-align: left;
    font-size: var(--faq-q-size);
    line-height: 34px;
    letter-spacing: 0.38px;
    font-feature-settings: 'liga' off, 'clig' off;
    color: #101717;
}

/* + icon that collapses to − when the item is open */
.faq-icon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #101717;
    position: relative;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--zelu-cream);
    border-radius: 2px;
}

.faq-icon::before {
    width: 44%;
    height: 2px;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 2px;
    height: 44%;
    transform: translate(-50%, -50%) scaleY(1);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon::after {
    transform: translate(-50%, -50%) scaleY(0);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-a p {
    padding-top: 16px;
    color: #101717;
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 34px;
    letter-spacing: 0.38px;
    font-feature-settings: 'liga' off, 'clig' off;
}

/* --- FOOTER --- */

.site-footer {
    position: relative;
    z-index: 2;
    background: var(--zelu-bg);
    padding: 6rem 6rem 4rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-word {
    font-family: 'Bolota', 'Sora', sans-serif;
    color: var(--zelu-cream);
    font-size: var(--footer-word);
    line-height: 0.78;
    letter-spacing: -0.02em;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    align-items: flex-start;
}

.footer-social a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--zelu-cream);
    text-decoration: none;
    font-weight: 700;
    font-size: 32px;
}

.footer-social a:hover {
    opacity: 0.8;
}

.footer-social svg {
    width: 80px;
    height: 80px;
    color: var(--zelu-cream);
    flex: none;
}

.footer-social .ic-ig {
    width: 72px;
    height: 72px;
}
