:root {
    --bg-color: #0a0a12;
    --text-color: #ffffff;
    --primary-gradient: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    --secondary-gradient: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Dynamic Background */
.background-gradient {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(127, 0, 255, 0.15), transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1), transparent 50%);
    z-index: -1;
    animation: bg-pulse 15s ease-in-out infinite alternate;
}

@keyframes bg-pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
}

.btn-nav {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-nav:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    padding-top: 80px;
    /* Navbar space */
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    max-width: 450px;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

button {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Flip Button Styles */
.btn-flip {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    overflow: visible;
}

.btn-flip.flipped {
    transform: rotateX(180deg);
}

.btn-flip.flipped:hover {
    transform: rotateX(180deg) translateY(2px);
    /* Move visually up (local down) */
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Reset container styles for flip buttons */
.btn-primary.btn-flip {
    background: transparent;
    box-shadow: none;
}

.btn-secondary.btn-flip {
    background: transparent;
    border: none;
    backdrop-filter: none;
}

.btn-secondary.btn-flip:hover {
    background: transparent;
    border: none;
}

.btn-face {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50px;
}

/* Apply styles to faces */
.btn-primary.btn-flip .btn-face {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-secondary.btn-flip .btn-face {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-secondary.btn-flip:hover .btn-face {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-face.front {
    /* Front face is default */
    transform: rotateX(0deg);
}

.btn-face.back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateX(180deg);
}

.btn-flip {
    display: inline-grid;
    place-items: center;
    padding: 0;
}

.btn-face {
    grid-area: 1 / 1;
    padding: 1rem 2rem;
    border-radius: 50px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-phone {
    display: grid;
    grid-template-areas: "stack";
    width: fit-content;
    margin: 0 auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.phone-slide {
    grid-area: stack;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.phone-slide.active {
    opacity: 1;
    z-index: 1;
}

.glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--secondary-gradient);
    filter: blur(100px);
    opacity: 0.4;
    z-index: -1;
    border-radius: 50%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* How it works */
.how-it-works {
    padding: 5rem 10%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    background: linear-gradient(to right, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        justify-content: center;
    }

    h1 {
        font-size: 3rem;
    }

    .phone-slide {
        max-height: 50vh;
    }
}

/* Skeleton Loader */
.skeleton-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.skeleton-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: translateX(-100%);
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-line.short {
    width: 70%;
}

.skeleton-line.extrashort {
    width: 30%;
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}