* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: #081333;
    font-family: "Nunito", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.site {
    min-height: 100vh;
    overflow: hidden;
}


/* =========================
   HEADER
   ========================= */

.site-header {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    height: 104px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo img {
    display: block;
    width: 198px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 42px;

    color: #596886;
    font-size: 17px;
    font-weight: 800;
}

.main-nav > a:not(.nav-play) {
    transition: color 0.2s ease;
}

.main-nav > a:not(.nav-play):hover {
    color: #1477f8;
}

.nav-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 14px 25px;

    border-radius: 30px;
    background: #1678f5;
    color: white;

    box-shadow: 0 8px 22px rgba(22, 120, 245, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.nav-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(22, 120, 245, 0.28);
}


/* =========================
   HERO
   ========================= */

.hero {
    width: min(1180px, calc(100% - 64px));
    min-height: 570px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 20px;
}

.hero-copy {
    position: relative;
    z-index: 3;
}

.hero-copy h1 {
    margin: 0;

    font-size: clamp(58px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -4px;
    font-weight: 900;
}

.hero-copy h1 span {
    color: #146ef5;
}

.hero-description {
    margin: 30px 0 28px;

    color: #647596;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-width: 348px;
    padding: 18px 30px;

    border-radius: 11px;

    background: #1478f7;
    color: white;

    font-size: 25px;
    font-weight: 900;

    box-shadow: 0 12px 25px rgba(20, 120, 247, 0.23);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(20, 120, 247, 0.3);
}

.primary-button span {
    font-size: 28px;
    line-height: 1;
}

.hero-note {
    margin: 22px 0 0;

    color: #687898;
    font-size: 18px;
    font-weight: 700;
}


/* =========================
   HERO VISUAL
   ========================= */

.hero-visual {
    position: relative;
    height: 510px;
}

.visual-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.2px);
}

.orb-blue {
    width: 420px;
    height: 420px;
    left: 70px;
    top: 45px;
    background: linear-gradient(
        145deg,
        rgba(91, 196, 255, 0.66),
        rgba(55, 142, 244, 0.74)
    );
}

.orb-green {
    width: 280px;
    height: 280px;
    left: 205px;
    top: 80px;
    background: rgba(79, 231, 173, 0.62);
}

.orb-purple {
    width: 250px;
    height: 250px;
    right: 5px;
    bottom: 50px;
    background: rgba(191, 135, 255, 0.35);
}

.puzzle-card {
    position: absolute;
    z-index: 5;

    width: 430px;
    left: 110px;
    top: 145px;

    padding: 25px 28px 22px;

    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);

    box-shadow:
        0 28px 50px rgba(48, 91, 145, 0.16),
        0 5px 15px rgba(48, 91, 145, 0.08);

    transform: rotate(4deg);
}

.puzzle-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #637392;
    font-size: 17px;
    font-weight: 900;
}

.timer-pill {
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 9px 14px;
    border-radius: 11px;

    background: #edf6ff;
    color: #172440;
}

.puzzle-question {
    margin: 27px 0 20px;

    text-align: center;

    font-size: 25px;
    font-weight: 900;
}

.answer-slots,
.answer-word {
    display: flex;
    gap: 6px;
}

.answer-slots {
    justify-content: center;
}

.answer-slots span {
    width: 48px;
    height: 45px;

    border-radius: 8px;
    background: #e7f1fb;
}

.answer-slots span.filled {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #dbeeff;
    color: #0874f6;

    font-weight: 900;
    font-size: 21px;
}

.answer-word {
    justify-content: center;
    margin-top: 14px;
}

.answer-word span {
    width: 35px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: white;

    color: #0a1634;

    font-size: 19px;
    font-weight: 900;

    box-shadow: 0 5px 12px rgba(34, 58, 90, 0.12);
}

.floating-letter,
.floating-icon,
.visual-spark {
    position: absolute;
    z-index: 7;
}

.floating-letter {
    width: 66px;
    height: 66px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: white;
    color: #1776ef;

    font-size: 30px;
    font-weight: 900;

    box-shadow: 0 15px 28px rgba(30, 77, 130, 0.14);

    transform: rotate(8deg);
}

.letter-c {
    left: 10px;
    bottom: 105px;
}

.letter-a {
    right: 170px;
    bottom: 28px;
}

.letter-r {
    left: 115px;
    bottom: 18px;
}

.letter-t {
    right: 55px;
    top: 355px;
}

.floating-icon {
    width: 67px;
    height: 67px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: white;
    box-shadow: 0 15px 28px rgba(30, 77, 130, 0.14);

    font-size: 31px;
}

.globe {
    right: 35px;
    top: 85px;
}

.museum {
    right: 10px;
    bottom: 88px;
}

.visual-spark {
    color: #ffd55b;
    font-size: 40px;
}

.spark-one {
    right: 80px;
    top: 25px;
    transform: rotate(15deg);
}

.spark-two {
    right: -5px;
    top: 290px;
    color: #9d58ef;
}

.spark-three {
    right: 85px;
    bottom: 8px;
    color: #ffd55b;
}


/* =========================
   HOW IT WORKS
   ========================= */

.how-section {
    margin-top: 30px;
    padding: 55px 32px 65px;

    background: #f2f9ff;
}

.section-heading {
    text-align: center;
}

.section-heading h2 {
    margin: 0;

    font-size: 42px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.section-heading p {
    margin: 8px 0 35px;

    color: #667796;
    font-size: 22px;
    font-weight: 600;
}

.steps {
    width: min(1180px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step-card {
    min-height: 335px;
    padding: 25px;

    border-radius: 25px;

    text-align: center;
}

.step-blue {
    background: #e7f3ff;
}

.step-yellow {
    background: #fff9df;
}

.step-purple {
    background: #f1eaff;
}

.step-number {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #1478f7;
    color: white;

    font-size: 25px;
    font-weight: 900;
}

.step-yellow .step-number {
    background: #ffb900;
}

.step-purple .step-number {
    background: #9958ed;
}

.step-card h3 {
    margin: 0;

    font-size: 25px;
    font-weight: 900;
}

.step-card > p {
    max-width: 245px;
    margin: 8px auto 20px;

    color: #617292;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 600;
}

.step-demo {
    width: 90%;
    min-height: 115px;
    margin: auto;

    padding: 17px;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.72);
}

.clue-demo {
    text-align: left;
}

.demo-icon {
    display: inline-flex;
    margin-right: 8px;
}

.demo-line {
    width: 100%;
    height: 10px;
    margin-top: 14px;

    border-radius: 10px;
    background: #e2eef9;
}

.demo-line.short {
    width: 65%;
    margin-top: 8px;
}

.mini-slots {
    display: flex;
    gap: 4px;
}

.mini-slots span {
    flex: 1;
    height: 30px;

    border-radius: 5px;
    background: #e4f0fb;
}

.mini-slots span:first-child,
.mini-slots span:nth-child(2) {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #1478f7;
    font-weight: 900;
}

.mini-answer {
    margin-top: 11px;

    color: #111c37;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
}

.curved-arrow {
    margin-top: 4px;

    color: #f3a900;
    font-size: 27px;
}

.timer-demo {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 130px;
}

.timer-ring {
    width: 112px;
    height: 112px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        radial-gradient(circle, white 58%, transparent 59%),
        conic-gradient(
            #1478f7 0deg,
            #1478f7 290deg,
            #b8d4f7 290deg,
            #b8d4f7 360deg
        );
}

.timer-ring strong {
    font-size: 38px;
    line-height: 0.9;
}

.timer-ring small {
    font-size: 13px;
    font-weight: 900;
}

.trophy {
    width: 100%;
    display: flex;
    justify-content: center;

    margin-top: 20px;
}

.trophy-icon {
    font-size: 72px;
    filter: drop-shadow(0 12px 12px rgba(255, 193, 7, 0.18));
}

.bottom-cta {
    text-align: center;
}

.bottom-cta h2 {
    margin: 0 0 18px;

    font-size: 39px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1px;
}

.bottom-cta .primary-button {
    min-width: 310px;
    font-size: 23px;
}


/* =========================
   FOOTER
   ========================= */

.site-footer {
    min-height: 104px;
    padding: 20px 34px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    background: white;

    border-top: 1px solid #e6edf5;

    color: #53627e;
    font-size: 14px;
    font-weight: 700;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    padding-right: 20px;
    border-right: 1px solid #dce4ee;
}

.footer-brand img {
    width: 115px;
    height: auto;
}

.footer-brand span {
    display: none;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 25px;

    padding-right: 20px;
    border-right: 1px solid #dce4ee;
}

.footer-links a:hover {
    color: #1478f7;
}

.coffee-link {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #111b36;
}

.coffee-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    background: #ffd21a;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 17px;

    font-size: 25px;
    color: #25324c;
}

.social-links a:hover {
    color: #1478f7;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1050px) {

    .hero {
        grid-template-columns: 1fr;
        padding-top: 35px;
        text-align: center;
    }

    .hero-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        width: 650px;
        max-width: 100%;
        margin: -10px auto 0;
        transform: scale(0.85);
    }

    .steps {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .step-card {
        min-height: 300px;
    }
}

@media (max-width: 760px) {

    .site-header {
        width: calc(100% - 32px);
        height: 82px;
    }

    .site-logo img {
        width: 145px;
    }

    .main-nav {
        gap: 12px;
        font-size: 14px;
    }

    .main-nav > a:not(.nav-play) {
        display: none;
    }

    .nav-play {
        padding: 11px 17px;
    }

    .hero {
        width: calc(100% - 32px);
        min-height: auto;
        padding-top: 45px;
    }

    .hero-copy h1 {
        font-size: clamp(49px, 14vw, 68px);
        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 19px;
        line-height: 1.4;
    }

    .desktop-break {
        display: none;
    }

    .primary-button {
        min-width: 0;
        width: min(348px, 100%);
        font-size: 21px;
        padding: 16px 22px;
    }

    .hero-note {
        font-size: 16px;
    }

    .hero-visual {
        height: 380px;
        transform: scale(0.65);
        transform-origin: top center;
        margin-bottom: -105px;
    }

    .puzzle-card {
        left: 50%;
        transform: translateX(-50%) rotate(4deg);
    }

    .orb-blue {
        left: 50%;
        transform: translateX(-50%);
    }

    .orb-green {
        left: 50%;
        transform: translateX(-10%);
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .section-heading p {
        font-size: 18px;
    }

    .how-section {
        padding: 45px 18px 55px;
    }

    .bottom-cta h2 {
        font-size: 31px;
    }

    .site-footer {
        padding: 25px 18px;
        flex-wrap: wrap;
        gap: 18px;
    }

    .footer-brand {
        width: 100%;
        justify-content: center;
        border-right: 0;
        padding-right: 0;
    }

    .footer-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        border-right: 0;
        padding-right: 0;
    }

    .coffee-link {
        padding-right: 15px;
        border-right: 1px solid #dce4ee;
    }
}

@media (max-width: 420px) {

    .hero-copy h1 {
        font-size: 48px;
    }

    .hero-visual {
        transform: scale(0.55);
        margin-bottom: -160px;
    }

    .bottom-cta h2 {
        font-size: 28px;
    }

    .footer-links {
        gap: 14px;
        font-size: 13px;
    }
}

/* =========================================================
   MOBILE HERO FIX
   Prevent the desktop hero grid from overflowing on phones.
   ========================================================= */

@media (max-width: 760px) {

    .hero {
        width: calc(100% - 32px) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        overflow: visible !important;
    }

    .hero-copy {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .hero-copy h1 {
        width: 100% !important;
        max-width: 100% !important;
        font-size: clamp(42px, 12vw, 58px) !important;
        line-height: .96 !important;
        letter-spacing: -2.5px !important;
        overflow-wrap: normal !important;
    }

    .hero-copy p {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 17px !important;
        line-height: 1.45 !important;
    }

    .hero-copy .primary-button,
    .hero-copy .hero-button {
        max-width: 100% !important;
        width: 100% !important;
    }

    .hero-visual {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 30px auto 0 !important;
        overflow: hidden !important;
        transform: none !important;
    }

    .hero-visual > * {
        max-width: 100%;
    }

    /* Prevent fixed-size puzzle artwork from creating page overflow */
    .hero-visual .puzzle-card,
    .hero-visual .puzzle-preview,
    .hero-visual .puzzle-window {
        max-width: calc(100vw - 48px) !important;
    }

    body {
        max-width: 100%;
        overflow-x: hidden !important;
    }
}

@media (max-width: 390px) {

    .hero {
        width: calc(100% - 24px) !important;
    }

    .hero-copy h1 {
        font-size: 40px !important;
        letter-spacing: -2px !important;
    }

    .hero-copy p {
        font-size: 15px !important;
    }

    .hero-visual {
        margin-top: 24px !important;
    }
}

