@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-elevated: rgba(20, 20, 20, 0.6);
    --accent-red: #E31C3D;
    --accent-red-rgb: 227, 28, 61;
    --accent-red-dark: #B91530;
    --accent-red-light: #FF2D4F;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-tertiary: #707070;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --glow-red: rgba(227, 28, 61, 0.4);
    --glass-bg: rgba(15, 15, 15, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent-red);
    color: #fff;
}

/* Background Design inspired by user image */
.bg-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: -1;
}

.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background-color: #000;
}

.bg-shape-1 {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 40%;
    height: 150%;
    background: linear-gradient(135deg, var(--accent-red) 0%, transparent 80%);
    transform: rotate(35deg);
    opacity: 0.15;
    filter: blur(80px);
    animation: floating 20s infinite alternate ease-in-out;
}

.bg-shape-2 {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 30%;
    height: 120%;
    background: linear-gradient(135deg, #fff 0%, transparent 70%);
    transform: rotate(35deg);
    opacity: 0.05;
    filter: blur(100px);
    animation: floating 25s infinite alternate-reverse ease-in-out;
}

/* Diagonal Stripes inspired by the image */
.bg-stripes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(125deg,
            transparent 0%,
            transparent 45%,
            rgba(227, 28, 61, 0.45) 45%,
            rgba(227, 28, 61, 0.45) 55%,
            transparent 55%,
            transparent 100%),
        linear-gradient(125deg,
            transparent 0%,
            transparent 58%,
            rgba(255, 255, 255, 0.1) 58%,
            rgba(255, 255, 255, 0.1) 60%,
            transparent 60%,
            transparent 100%);
    background-size: 100% 100%;
    opacity: 1;
}

.bg-stripes-alt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(295deg,
            transparent 0%,
            transparent 45%,
            rgba(227, 28, 61, 0.1) 45%,
            rgba(227, 28, 61, 0.1) 48%,
            transparent 48%,
            transparent 100%);
    background-size: 150% 150%;
    opacity: 0.5;
}

@keyframes floating {
    0% {
        transform: rotate(35deg) translate(0, 0);
    }

    100% {
        transform: rotate(40deg) translate(5%, 5%);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* Header */
header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 14px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0px;
    text-decoration: none;
    transition: transform 0.3s ease;
    margin-left: -20px;
}

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

.logo:hover .logo-text {
    text-shadow: 0 0 15px rgba(var(--accent-red-rgb), 0.5);
}

.logo-icon {
    width: clamp(80px, 20vw, 110px);
    height: clamp(80px, 20vw, 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: -10px;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 6vw, 40px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #fff;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 130px 0 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(var(--accent-red-rgb), 0.1);
    border: 1px solid rgba(var(--accent-red-rgb), 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-red-light);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-red);
    animation: pulse 2s infinite;
}

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

    50% {
        transform: scale(1.4);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(40px, 8vw, 84px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 24px;
    background: linear-gradient(to bottom, #fff 40%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
}

/* Download Section */
.download-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 32px;
    padding: 30px 30px;
    margin: 0 0 30px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}

.download-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(var(--accent-red-rgb), 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.download-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.download-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 18px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-download.primary {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    color: #fff;
    box-shadow: 0 15px 35px rgba(var(--accent-red-rgb), 0.3);
}

.btn-download:hover {
    transform: translateY(-5px) scale(1.02);
}

.btn-download.primary:hover {
    box-shadow: 0 20px 40px rgba(var(--accent-red-rgb), 0.4);
}

.btn-icon {
    width: 28px;
    height: 28px;
}

/* Features Grid */
.features {
    padding: 60px 0;
}

.section-tag {
    color: var(--accent-red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
    text-align: center;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

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

.feature-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transition: 0.5s;
}

.feature-card:hover::after {
    left: 100%;
}

.feature-card:hover {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(var(--accent-red-rgb), 0.3);
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(var(--accent-red-rgb), 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 24px;
    color: var(--accent-red);
}

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* App Preview */
.previews {
    padding: 60px 0;
    overflow: hidden;
}

.carousel-container {
    padding: 20px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    cursor: grab;
}

.carousel-container:active {
    cursor: grabbing;
}

.previews-grid {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
}

.previews-grid::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.preview-item {
    flex: 0 0 180px;
    text-align: center;
}

.device-frame {
    width: 160px;
    aspect-ratio: 9/19.5;
    background: #000;
    border-radius: 24px;
    border: 6px solid #1a1a1a;
    margin: 0 auto 16px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 15px;
    background: #1a1a1a;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 2;
}

.device-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1a1a 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.preview-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 18px;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    background: #000;
    border-top: 1px solid var(--border-subtle);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info .logo-icon {
    width: 60px;
    height: 60px;
}

.footer-info .logo-text {
    font-size: 32px;
}

.footer-info p {
    margin-top: 16px;
    color: var(--text-secondary);
}

.footer-links-group h4 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links-group ul {
    list-style: none;
}

.footer-links-group li {
    margin-bottom: 12px;
}

.footer-links-group a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-group a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 16px 0;
    }

    nav {
        display: none;
    }

    h1 {
        letter-spacing: -2px;
    }

    .download-grid {
        flex-direction: column;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
    }
}