/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --surface-2: #1a1a26;
    --border: rgba(255, 255, 255, 0.06);
    --text: #f0f0f5;
    --text-muted: #8a8a9a;
    --accent: #ff6b6b;
    --accent-2: #ffa07a;
    --gradient: linear-gradient(135deg, #ff6b6b, #ffa07a);
    --glow: rgba(255, 107, 107, 0.15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.2), transparent 70%);
    top: -200px;
    right: -200px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 160, 122, 0.15), transparent 70%);
    bottom: 20%;
    left: -200px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 130, 255, 0.1), transparent 70%);
    top: 50%;
    right: 10%;
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(-60px, 80px);
    }

    66% {
        transform: translate(40px, -40px);
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(80px, -50px);
    }

    66% {
        transform: translate(-30px, 60px);
    }
}

@keyframes orbFloat3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-70px, 50px);
    }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.15rem;
}

.nav-logo {
    height: 36px;
    width: auto;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
    border-radius: 1px;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== PILL BADGE ===== */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent-2);
    margin-bottom: 24px;
}

.pill-dark {
    background: var(--surface);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding-top: 100px;
    padding-bottom: 0;
    overflow: hidden;
}

.hero-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 80px;
}

.hero-center h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-btns {
    margin-bottom: 40px;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 60px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px var(--glow);
}

.btn-main:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 20px 50px var(--glow);
}

.btn-main svg {
    transition: transform 0.3s;
}

.btn-main:hover svg {
    transform: translateX(4px);
}

.trust-badges {
    display: flex;
    gap: 28px;
    justify-content: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.trust-item svg {
    color: var(--accent);
}

/* ===== PHONE SHOWCASE ===== */
.phone-showcase {
    position: relative;
    width: 100%;
    padding-bottom: 60px;
}

.phone-track {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 520px;
    perspective: 1500px;
}

.showcase-phone {
    position: absolute;
    width: 260px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-phone img {
    width: 100%;
    border-radius: 28px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Left phone - Login */
.showcase-phone:nth-child(1) {
    transform: translateX(-210px) rotateY(15deg) scale(0.82);
    z-index: 1;
    opacity: 0.55;
}

.showcase-phone:nth-child(1) img {
    box-shadow: 20px 30px 60px rgba(0, 0, 0, 0.45);
}

.showcase-phone:nth-child(1):hover {
    opacity: 0.85;
    transform: translateX(-220px) rotateY(10deg) scale(0.86);
}

/* Center phone - Dashboard (featured) */
.showcase-phone.featured {
    transform: translateY(-20px) scale(1);
    z-index: 3;
    opacity: 1;
    width: 280px;
    animation: heroFloat 5s ease-in-out infinite;
}

.showcase-phone.featured img {
    box-shadow: 0 40px 80px rgba(255, 107, 107, 0.15),
        0 20px 50px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.showcase-phone.featured:hover {
    transform: translateY(-30px) scale(1.04);
}

/* Right phone - Products */
.showcase-phone:nth-child(3) {
    transform: translateX(210px) rotateY(-15deg) scale(0.82);
    z-index: 1;
    opacity: 0.55;
}

.showcase-phone:nth-child(3) img {
    box-shadow: -20px 30px 60px rgba(0, 0, 0, 0.45);
}

.showcase-phone:nth-child(3):hover {
    opacity: 0.85;
    transform: translateX(220px) rotateY(-10deg) scale(0.86);
}

/* Labels */
.phone-label {
    text-align: center;
    margin-top: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.4s;
}

.showcase-phone:hover .phone-label,
.showcase-phone.featured .phone-label {
    opacity: 1;
}

/* Float animation for center phone */
@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(-20px) scale(1);
    }

    50% {
        transform: translateY(-35px) scale(1);
    }
}

.hero-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: 4;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-center {
        margin-bottom: 48px;
        padding: 0 8px;
    }

    .hero-center h1 {
        font-size: 2.6rem;
        letter-spacing: -1.5px;
        margin-bottom: 16px;
    }

    .hero-sub {
        font-size: 0.95rem;
        margin-bottom: 28px;
        max-width: 360px;
        line-height: 1.6;
    }

    .hero-btns {
        margin-bottom: 0;
    }

    .btn-main {
        padding: 14px 28px;
        font-size: 0.88rem;
    }

    /* Phone showcase - scaled fan layout for mobile */
    .phone-showcase {
        padding-bottom: 20px;
        overflow: hidden;
    }

    .phone-track {
        height: 360px;
    }

    .showcase-phone {
        width: 170px;
    }

    .showcase-phone:nth-child(1) {
        transform: translateX(-130px) rotateY(12deg) scale(0.78);
    }

    .showcase-phone:nth-child(1):hover {
        transform: translateX(-135px) rotateY(8deg) scale(0.82);
    }

    .showcase-phone.featured {
        width: 200px;
        animation: heroFloatMobile 5s ease-in-out infinite;
    }

    .showcase-phone:nth-child(3) {
        transform: translateX(130px) rotateY(-12deg) scale(0.78);
    }

    .showcase-phone:nth-child(3):hover {
        transform: translateX(135px) rotateY(-8deg) scale(0.82);
    }

    .showcase-phone img {
        border-radius: 20px;
    }

    .phone-label {
        font-size: 0.65rem;
        margin-top: 8px;
        letter-spacing: 1.5px;
        opacity: 1;
    }

    .hero-fade-bottom {
        height: 60px;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

@keyframes heroFloatMobile {

    0%,
    100% {
        transform: translateY(-12px) scale(1);
    }

    50% {
        transform: translateY(-24px) scale(1);
    }
}

/* Extra small phones */
@media (max-width: 400px) {
    .hero-center h1 {
        font-size: 2.1rem;
        letter-spacing: -1px;
    }

    .hero-sub {
        font-size: 0.88rem;
        max-width: 300px;
    }

    .phone-track {
        height: 300px;
    }

    .showcase-phone {
        width: 140px;
    }

    .showcase-phone:nth-child(1) {
        transform: translateX(-100px) rotateY(12deg) scale(0.75);
    }

    .showcase-phone.featured {
        width: 165px;
    }

    .showcase-phone:nth-child(3) {
        transform: translateX(100px) rotateY(-12deg) scale(0.75);
    }
}



/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 72px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.section-header>p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== STEPS ===== */
.steps-section {
    padding: 140px 0;
    position: relative;
    z-index: 1;
}

.steps-timeline {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent);
}

.step-card {
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.step-card:last-child {
    margin-bottom: 0;
}

.step-card-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.step-card-inner.reverse {
    direction: rtl;
}

.step-card-inner.reverse>* {
    direction: ltr;
}

.step-phone {
    display: flex;
    justify-content: center;
}

.step-phone img {
    width: 260px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover .step-phone img {
    transform: translateY(-10px) scale(1.03);
}

.step-number {
    font-size: 5rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 16px;
}

.step-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 400px;
}

/* ===== DATA SECTION ===== */
.data-section {
    padding: 140px 0;
    position: relative;
    z-index: 1;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.data-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.data-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.data-card:hover {
    border-color: rgba(255, 107, 107, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.data-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 107, 107, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
}

.data-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.data-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-section {
    padding: 140px 0;
    position: relative;
    z-index: 1;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    transition: color 0.3s;
    font-family: inherit;
}

.faq-trigger:hover {
    color: var(--accent-2);
}

.faq-chevron {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
    flex-shrink: 0;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {

    .step-card-inner,
    .step-card-inner.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
        text-align: center;
    }

    .step-content p {
        margin: 0 auto;
    }

    .timeline-line {
        display: none;
    }

    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
    }

    .data-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .step-phone img {
        width: 220px;
    }
}

/* ===== STAGGER DELAY FOR DATA CARDS ===== */
.data-card:nth-child(1) {
    transition-delay: 0.05s;
}

.data-card:nth-child(2) {
    transition-delay: 0.15s;
}

.data-card:nth-child(3) {
    transition-delay: 0.25s;
}

.data-card:nth-child(4) {
    transition-delay: 0.35s;
}

.step-card:nth-child(2) {
    transition-delay: 0.1s;
}

.step-card:nth-child(3) {
    transition-delay: 0.2s;
}

.step-card:nth-child(4) {
    transition-delay: 0.3s;
}

.step-card:nth-child(5) {
    transition-delay: 0.4s;
}

.faq-item:nth-child(1) {
    transition-delay: 0.05s;
}

.faq-item:nth-child(2) {
    transition-delay: 0.1s;
}

.faq-item:nth-child(3) {
    transition-delay: 0.15s;
}

.faq-item:nth-child(4) {
    transition-delay: 0.2s;
}

.faq-item:nth-child(5) {
    transition-delay: 0.25s;
}

.faq-item:nth-child(6) {
    transition-delay: 0.3s;
}