/* ==========================================================================
   Entry Landing Page – Redesign 2026
   Font: Bricolage Grotesque (display) + Outfit (body)
   ========================================================================== */

:root {
    /* Brand */
    --primary: #5e2a79;
    --primary-light: #815DC3;
    --primary-dark: #3e1a52;
    --accent: #f2b705;
    --accent-hover: #d79e00;
    --accent-weak: #fff8e0;

    /* Surfaces */
    --bg: #f5f3f9;
    --surface: #ffffff;
    --surface-alt: #ede9f5;
    --surface-variant: #ede9f5;
    --border: rgba(94, 42, 121, 0.1);

    /* Font sizes (used by legal.css) */
    --fs-sm: 14px;
    --fs-md: 16px;
    --fs-lg: 18px;
    --fs-xl: 22px;
    --fs-2xl: 28px;

    /* Text */
    --text: #2d1b4e;
    --text-muted: #6b5f7e;
    --text-inverse: #ffffff;

    /* Spacing */
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 20px;
    --s-6: 24px;
    --s-8: 32px;
    --s-10: 40px;
    --s-12: 48px;
    --s-16: 64px;
    --s-20: 80px;

    /* Radius */
    --r-sm: 12px;
    --r-md: 20px;
    --r-lg: 28px;
    --r-xl: 40px;

    /* Typography */
    --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
    --font-body: 'Outfit', ui-sans-serif, system-ui, sans-serif;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

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

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal--delay {
    transition-delay: 0.15s;
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s-4) var(--s-6);
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.nav--visible {
    background: rgba(94, 42, 121, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    padding: var(--s-3) var(--s-6);
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    text-decoration: none;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav--visible .nav__brand {
    opacity: 1;
    transform: translateX(0);
}

.nav__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav__logo {
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--s-5);
}

.nav__links a {
    color: var(--text-inverse);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav--visible .nav__links a {
    opacity: 0.8;
    pointer-events: auto;
}

.nav--visible .nav__links a:hover {
    opacity: 1;
}

.nav__lang {
    font-weight: 600 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 3px 12px !important;
    cursor: pointer;
    letter-spacing: 0.04em;
    font-size: 13px !important;
    opacity: 0.8 !important;
    pointer-events: auto !important;
}

.nav__lang:hover {
    border-color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--s-3) var(--s-6);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--r-sm);
    border: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--accent);
    color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(242, 183, 5, 0.35);
}

.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 30px rgba(242, 183, 5, 0.45);
}

.btn--dark {
    background: var(--primary);
    color: var(--text-inverse);
    box-shadow: 0 4px 20px rgba(94, 42, 121, 0.3);
}

.btn--dark:hover {
    background: var(--primary-dark);
    box-shadow: 0 8px 30px rgba(94, 42, 121, 0.4);
}

.btn--lg {
    padding: var(--s-4) var(--s-8);
    font-size: 17px;
    border-radius: var(--r-md);
}

.btn--nav {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    padding: 6px 18px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.btn--nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s-20) var(--s-6) var(--s-16);
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(129, 93, 195, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(62, 26, 82, 0.6) 0%, transparent 50%),
        linear-gradient(160deg, #5e2a79 0%, #3e1a52 40%, #1a0b2e 100%);
}

.hero__noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
}

.hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-12);
    align-items: center;
    max-width: 1100px;
    width: 100%;
}

.hero__text {
    color: var(--text-inverse);
}

.hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: var(--s-6);
    letter-spacing: 0.01em;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--s-5);
}

.hero__title--accent {
    background: linear-gradient(135deg, var(--accent) 0%, #ffd54f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(17px, 2vw, 21px);
    opacity: 0.85;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: var(--s-8);
    max-width: 440px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--s-5);
    flex-wrap: wrap;
}

.hero__hint {
    font-size: 14px;
    opacity: 0.55;
    font-weight: 400;
}

/* Decorative blobs */
.hero__decor {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hero__decor--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(242, 183, 5, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

.hero__decor--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(129, 93, 195, 0.2) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    animation: float 10s ease-in-out infinite reverse;
}

.hero__decor--3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(242, 183, 5, 0.08) 0%, transparent 70%);
    top: 40%;
    left: 45%;
    animation: float 6s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* ==========================================================================
   Phone Mockup
   ========================================================================== */

.hero__visual {
    display: flex;
    justify-content: center;
}

.phone {
    position: relative;
    width: 260px;
    height: 520px;
    background: #1a1625;
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: perspective(800px) rotateY(-8deg) rotateX(2deg);
    transition: transform 0.5s var(--ease-out);
}

.phone:hover {
    transform: perspective(800px) rotateY(-2deg) rotateX(1deg);
}

.phone__notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #1a1625;
    border-radius: 0 0 16px 16px;
    z-index: 3;
}

.phone__screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f5f3f9 0%, #ede9f5 100%);
    border-radius: 26px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone__header {
    padding: 36px 16px 12px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone__logo {
    height: 18px;
    filter: brightness(0) invert(1);
}

.phone__cards {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone__card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    animation: cardPulse 3s ease-in-out infinite;
}

.phone__card:nth-child(2) { animation-delay: 0.5s; }
.phone__card:nth-child(3) { animation-delay: 1s; }

.phone__card--faded {
    opacity: 0.5;
}

@keyframes cardPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.01); }
}

.phone__card-dot {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    flex-shrink: 0;
}

.phone__card-dot--accent { background: var(--accent); }
.phone__card-dot--primary { background: var(--primary-light); }
.phone__card-dot--muted { background: #d0c8de; }

.phone__card-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.phone__card-line {
    height: 8px;
    background: #e8e4f0;
    border-radius: 4px;
    width: 60%;
}

.phone__card-line--wide { width: 85%; }

.phone__card-badge {
    font-size: 11px;
    font-weight: 600;
    color: #4caf50;
    white-space: nowrap;
}

.phone__nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 14px;
}

.phone__nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0c8de;
}

.phone__nav-dot--active {
    background: var(--primary);
}

/* ==========================================================================
   Trust Bar
   ========================================================================== */

.trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--s-8);
    padding: var(--s-8) var(--s-4);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.trust-bar__item {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

.trust-bar__icon {
    font-size: 20px;
}

.trust-bar__divider {
    width: 1px;
    height: 24px;
    background: var(--border);
}

/* ==========================================================================
   Section Titles
   ========================================================================== */

.section-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    text-align: center;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--s-12);
}

/* ==========================================================================
   Features Bento
   ========================================================================== */

.features {
    padding: var(--s-20) var(--s-6);
    max-width: 1060px;
    margin: 0 auto;
}

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
}

.bento__card {
    background: var(--surface);
    padding: var(--s-8);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}

.bento__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(94, 42, 121, 0.1);
}

.bento__card--lg {
    grid-column: span 2;
}

.bento__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--surface-alt);
    border-radius: var(--r-sm);
    font-size: 22px;
    margin-bottom: var(--s-4);
}

.bento__card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--s-2);
    letter-spacing: -0.01em;
}

.bento__card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Steps Timeline
   ========================================================================== */

.steps {
    padding: var(--s-20) var(--s-6);
    max-width: 900px;
    margin: 0 auto;
}

.steps__timeline {
    position: relative;
    display: flex;
    gap: var(--s-8);
}

/* Connecting line */
.steps__timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 28px;
    right: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light), var(--primary));
    border-radius: 1px;
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step__marker {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-inverse);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--s-5);
    box-shadow: 0 6px 20px rgba(94, 42, 121, 0.25);
    border: 3px solid var(--bg);
}

.step__content h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--s-2);
}

.step__content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 240px;
    margin: 0 auto;
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
    overflow: hidden;
    background: var(--primary);
    padding: var(--s-5) 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}

.marquee__track {
    display: flex;
    gap: var(--s-4);
    animation: marquee 40s linear infinite;
    width: max-content;
}

.marquee__pill {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-inverse);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

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

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta {
    padding: var(--s-20) var(--s-6);
    background: linear-gradient(135deg, var(--accent) 0%, #ffd54f 100%);
}

.cta__inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
    margin-bottom: var(--s-3);
}

.cta p {
    font-size: 17px;
    color: var(--primary);
    opacity: 0.8;
    margin-bottom: var(--s-8);
}

.cta__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-8);
    flex-wrap: wrap;
}

.cta__qr {
    background: var(--surface);
    padding: var(--s-4);
    border-radius: var(--r-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    line-height: 0;
}

.cta__qr img {
    display: block;
    border-radius: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--primary-dark);
    color: var(--text-inverse);
    padding: var(--s-10) var(--s-6);
}

.footer__inner {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--s-4);
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.footer__icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer__logo {
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer__links a {
    color: var(--text-inverse);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer__links a:hover {
    opacity: 1;
}

.footer__divider {
    margin: 0 var(--s-3);
    opacity: 0.4;
}

.footer__copy {
    font-size: 13px;
    opacity: 0.4;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento__card--lg {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--s-10);
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__badge {
        font-size: 13px;
    }

    .phone {
        width: 220px;
        height: 440px;
        transform: perspective(800px) rotateY(0) rotateX(0);
    }

    .phone:hover {
        transform: perspective(800px) rotateY(0) rotateX(0);
    }

    .steps__timeline {
        flex-direction: column;
        gap: var(--s-6);
        padding-left: 72px;
    }

    .steps__timeline::before {
        top: 0;
        bottom: 0;
        left: 27px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .step {
        text-align: left;
        position: relative;
    }

    .step__marker {
        margin: 0;
        flex-shrink: 0;
        position: absolute;
        left: -72px;
        top: 0;
    }

    .step__content p {
        margin: 0;
        max-width: none;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .nav__links a:not(.nav__lang):not(.btn--nav) {
        display: none;
    }

    .trust-bar {
        gap: var(--s-4);
    }

    .trust-bar__divider {
        display: none;
    }

    .trust-bar__item {
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .bento {
        grid-template-columns: 1fr;
    }

    .bento__card--lg {
        grid-column: span 1;
    }

    .hero {
        padding: var(--s-16) var(--s-4) var(--s-12);
        min-height: auto;
    }

    .hero__title {
        font-size: 36px;
    }

    .features,
    .steps {
        padding: var(--s-12) var(--s-4);
    }

    .cta {
        padding: var(--s-12) var(--s-4);
    }
}

/* ==========================================================================
   Hover Media Query (no ghost hovers on touch)
   ========================================================================== */

@media (hover: none) {
    .bento__card:hover {
        transform: none;
        box-shadow: none;
    }

    .btn:hover {
        transform: none;
    }

    .phone:hover {
        transform: perspective(800px) rotateY(-8deg) rotateX(2deg);
    }
}
