/* ============================================================
   Idealisers — Sharp Minimalist Design System
   ============================================================ */

:root {
    --white: #FAFAFA;
    --black: #0A0A0A;
    --grey-1: #333;
    --grey-2: #666;
    --grey-3: #999;
    --grey-4: #DDD;
    --grey-5: #F2F2F0;
    --accent: #E8FF59;

    --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: "Instrument Serif", Georgia, serif;

    --container: 1180px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── DARK MODE ── */
[data-theme="dark"] {
    --white: #0F0F0F;
    --black: #F0F0F0;
    --grey-1: #CCC;
    --grey-2: #AAA;
    --grey-3: #777;
    --grey-4: #2A2A2A;
    --grey-5: #1A1A1A;
    --accent: #E8FF59;
}

[data-theme="dark"] .nav {
    background: rgba(15, 15, 15, 0.92);
}

[data-theme="dark"] .hero__img {
    filter: brightness(0.9);
}

/* ── RESET ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    transition: background 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ── TYPOGRAPHY ── */
em {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
}

.overline {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey-3);
    margin-bottom: 1rem;
}

.section__h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.dot {
    color: var(--accent);
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--black);
    border-radius: 0;
    /* SHARP — no rounding */
    cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn--dark {
    background: var(--black);
    color: var(--white);
}

.btn--dark:hover {
    background: var(--grey-1);
    transform: translateY(-1px);
}

.btn--outline {
    position: relative;
    background: transparent;
    color: var(--black);
    overflow: hidden;
    z-index: 1;
    transition: color 0.35s var(--ease), transform 0.25s var(--ease);
}

.btn--outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
    z-index: -1;
}

.btn--outline:hover {
    color: var(--white);
    transform: translateY(-1px);
}

.btn--outline:hover::before {
    transform: scaleX(1);
}

/* ── NAV ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.92);
    backdrop-filter: saturate(180%) blur(6px);
    -webkit-backdrop-filter: saturate(180%) blur(6px);
    border-bottom: 1px solid var(--grey-4);
}

.nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav__logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav__links a {
    transition: color 0.2s;
}

.nav__links a:hover {
    color: var(--grey-2);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--grey-4);
    border-radius: 50%;
    background: transparent;
    color: var(--black);
    cursor: pointer;
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease);
}

.theme-toggle:hover {
    border-color: var(--black);
    transform: rotate(20deg);
}

.theme-toggle .icon {
    position: absolute;
    transition: opacity 0.35s ease, transform 0.45s var(--ease);
}

/* Light mode: show moon, hide sun */
.icon--moon {
    opacity: 1;
    transform: rotate(0deg);
}

.icon--sun {
    opacity: 0;
    transform: rotate(-90deg);
}

/* Dark mode: show sun, hide moon */
[data-theme="dark"] .icon--moon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .icon--sun {
    opacity: 1;
    transform: rotate(0deg);
}

.nav__cta {
    position: relative;
    padding: 0.5rem 1.2rem;
    border: 1.5px solid var(--black);
    font-weight: 600;
    overflow: hidden;
    transition: color 0.35s var(--ease);
    z-index: 1;
}

.nav__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
    z-index: -1;
}

.nav__links .nav__cta:hover {
    color: var(--white);
}

.nav__cta:hover::before {
    transform: scaleX(1);
}

/* ── HERO ── */
.hero {
    padding: 10rem 0 6rem;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin-bottom: 1.5rem;
}

.hero__sub {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--grey-2);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero__img {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    border-radius: 6px;
}

/* ── MARQUEE ── */
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--grey-4);
    border-bottom: 1px solid var(--grey-4);
    padding: 1rem 0;
    background: var(--black);
    color: var(--white);
}

.marquee__track {
    display: flex;
    gap: 2rem;
    width: max-content;
    /* ensures all items sit inline */
    white-space: nowrap;
    animation: scroll-marquee 35s linear infinite;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-style: italic;
    will-change: transform;
    /* GPU-accelerated for smoothness */
}

.marquee__dot {
    font-size: 0.5rem;
    opacity: 0.3;
    align-self: center;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── SERVICES ── */
.services {
    padding: 7rem 0;
}

.section-label {
    margin-bottom: 4rem;
}

.services__list {
    display: flex;
    flex-direction: column;
}

.service {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 2rem;
    align-items: start;
    padding: 2.5rem 0;
    border-top: 1px solid var(--grey-4);
}

.service:last-child {
    border-bottom: 1px solid var(--grey-4);
}

.service__num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-style: italic;
    color: var(--grey-3);
    line-height: 1;
    padding-top: 0.15rem;
}

.service__title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

.service__desc {
    font-size: 0.95rem;
    color: var(--grey-2);
    max-width: 500px;
    line-height: 1.6;
}

.service__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-self: center;
}

.tag {
    padding: 0.35rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid var(--grey-4);
    color: var(--grey-2);
}

/* ── COMING SOON ── */
.coming-soon {
    padding: 6rem 0;
    background: var(--grey-5);
    border-top: 1px solid var(--grey-4);
    border-bottom: 1px solid var(--grey-4);
}

.cs__inner {
    max-width: 620px;
}

.cs__badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--accent);
    color: #0A0A0A;
    margin-bottom: 1.5rem;
}

.cs__h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.cs__desc {
    font-size: 1.05rem;
    color: var(--grey-2);
    line-height: 1.65;
}

/* ── WAITLIST ── */
.waitlist {
    padding: 8rem 0;
    text-align: center;
}

.waitlist__inner {
    max-width: 560px;
    margin: 0 auto;
}

.waitlist__h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.waitlist__desc {
    color: var(--grey-2);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.waitlist__form {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
}

.waitlist__input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 2px solid var(--black);
    border-right: none;
    border-radius: 0;
    background: var(--white);
    color: var(--black);
    outline: none;
    transition: border-color 0.2s;
}

.waitlist__input:focus {
    border-color: var(--grey-2);
}

.waitlist__input::placeholder {
    color: var(--grey-3);
}

.waitlist__btn {
    border-left: none;
    white-space: nowrap;
}

/* ── FOOTER ── */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--grey-4);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--grey-3);
}

.footer__brand {
    font-weight: 700;
    font-size: 1rem;
    color: var(--black);
}

.footer__link {
    transition: color 0.2s;
}

.footer__link:hover {
    color: var(--black);
}

/* ── ANIMATIONS ── */
.anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.anim.visible {
    opacity: 1;
    transform: none;
}

/* ── RESPONSIVE ── */

/* ---- Tablet ---- */
@media (max-width: 900px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero__visual {
        order: 1;
    }

    /* image BELOW text on tablet/mobile */
    .hero__text {
        order: 0;
    }

    .hero__img {
        max-width: 280px;
        margin: 0 auto;
    }

    .service {
        grid-template-columns: 50px 1fr;
    }

    .service__tags {
        grid-column: 2;
        margin-top: 0.5rem;
    }
}

/* ---- Mobile ---- */
@media (max-width: 600px) {

    /* Nav — compact */
    .nav__inner {
        height: 52px;
    }

    .nav__logo {
        font-size: 1rem;
    }

    .nav__links {
        gap: 1rem;
    }

    .nav__links a:not(.nav__cta) {
        display: none;
    }

    .nav__cta {
        padding: 0.35rem 0.8rem;
        font-size: 0.78rem;
    }

    /* Hero — text first, tight spacing */
    .hero {
        padding: 5.5rem 0 3rem;
    }

    .hero__grid {
        gap: 1.5rem;
    }

    .hero__h1 {
        font-size: clamp(1.9rem, 7.5vw, 2.6rem);
        margin-bottom: 1rem;
    }

    .hero__sub {
        font-size: 0.92rem;
        margin-bottom: 1.5rem;
    }

    .hero__img {
        max-width: 220px;
    }

    /* Buttons — full width stacked */
    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
    }

    /* Services — single column, compact */
    .services {
        padding: 4rem 0;
    }

    .section-label {
        margin-bottom: 2.5rem;
    }

    .service {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.8rem 0;
    }

    .service__num {
        font-size: 1.1rem;
    }

    .service__title {
        font-size: 1.2rem;
    }

    .service__desc {
        font-size: 0.88rem;
    }

    .service__tags {
        grid-column: 1;
        margin-top: 0.75rem;
    }

    /* Coming Soon — tighter */
    .coming-soon {
        padding: 3.5rem 0;
    }

    .cs__h2 {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }

    .cs__desc {
        font-size: 0.92rem;
    }

    /* Waitlist — stacked form */
    .waitlist {
        padding: 4.5rem 0;
    }

    .waitlist__h2 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .waitlist__desc {
        font-size: 0.92rem;
        margin-bottom: 1.5rem;
    }

    .waitlist__form {
        flex-direction: column;
    }

    .waitlist__input {
        border-right: 2px solid var(--black);
        border-bottom: none;
    }

    .waitlist__btn {
        border-left: 2px solid var(--black);
        border-top: none;
        width: 100%;
        justify-content: center;
    }

    /* Footer — tighter */
    .footer {
        padding: 1.5rem 0;
    }

    .footer__inner {
        font-size: 0.78rem;
        gap: 0.5rem;
    }
}