/**
 * Visapot Theme Styles - Part 1: Variables and Base
 */

:root {
    --color-primary: #1447E6;
    --color-primary-hover: #0d35b8;
    --color-primary-light: rgba(20, 71, 230, 0.1);
    --color-green: #16a34a;
    --color-orange: #ea580c;
    --color-purple: #9333ea;
    --color-cyan: #0891b2;
    --color-yellow: #facc15;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    --transition: 300ms ease;
}

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

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-gray-900);
    background: var(--color-white);
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
    line-height: 1.1;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-600);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-primary {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 1.5rem;
    transition: all var(--transition);
}

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

.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
}

.btn-pill {
    border-radius: 9999px;
}

.btn-app-store {
    background: #000;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition);
    border: 1px solid #a6a6a6;
    width: 180px;
    height: 52px;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-app-store:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-app-store svg,
.btn-app-store img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    line-height: 1;
}

.btn-text-small {
    font-size: 10px;
    opacity: 1;
    display: block;
    text-transform: uppercase;
    margin-bottom: 2px;
    font-weight: 400;
}

.btn-text-large {
    font-size: 18px;
    font-weight: 600;
    display: block;
    letter-spacing: 0.3px;
    line-height: 1;
    white-space: nowrap;
}

/* Icon Boxes */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
}

.icon-box:hover {
    transform: scale(1.1);
}

.icon-box-lg {
    width: 5rem;
    height: 5rem;
}

.icon-box svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.icon-box-lg svg {
    width: 36px;
    height: 36px;
}

.icon-box-primary {
    background: var(--color-primary);
}

.icon-box-green {
    background: var(--color-green);
}

.icon-box-orange {
    background: var(--color-orange);
}

.icon-box-purple {
    background: var(--color-purple);
}

.icon-box-cyan {
    background: var(--color-cyan);
}

.icon-box-blue {
    background: #2563eb;
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    height: 2rem;
    width: auto;
    max-width: 150px;
}

.main-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
    }
}

.nav-link {
    color: var(--color-gray-700);
    font-weight: 500;
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-cta {
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--color-gray-700);
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1.5rem;
    background: #fff;
    border-top: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-lg);
}

.mobile-nav.active {
    display: block;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--color-gray-700);
    font-weight: 500;
}

.mobile-nav-link:hover {
    color: var(--color-primary);
}

.mobile-nav-cta {
    display: block;
    width: 100%;
    margin-top: 1rem;
    text-align: center;
}

.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Hero Section */
.hero {
    padding-top: 6rem;
    padding-bottom: 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 50%, #eef2ff 100%);
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }
}

.hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.hero-badge {
    display: inline-block;
    width: fit-content;
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-title {
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-stats {
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-image {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.stats-banner {
    animation: fadeInUp 0.6s ease-out 0.5s forwards;
    opacity: 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-gray-900);
    line-height: 1.1;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-title-accent {
    display: block;
    color: var(--color-primary);
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    padding-top: 1rem;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray-700);
    font-weight: 600;
}

.hero-stat .stars {
    display: flex;
}

.hero-stat .stars svg {
    width: 20px;
    height: 20px;
    color: var(--color-yellow);
    fill: var(--color-yellow);
}

.hero-image {
    position: relative;
}

@media (min-width: 1024px) {
    .hero-image {
        padding-left: 3rem;
    }
}

.hero-image-wrapper {
    position: relative;
    max-width: 17rem;
    margin: 0 auto;
}

.hero-image-glow {
    position: absolute;
    top: -2.5rem;
    right: -2.5rem;
    width: 18rem;
    height: 18rem;
    background: var(--color-primary-light);
    border-radius: 50%;
    filter: blur(48px);
    animation: glowPulse 3s ease-in-out infinite;
}

.hero-image-glow-2 {
    position: absolute;
    bottom: -2.5rem;
    left: -2.5rem;
    width: 15rem;
    height: 15rem;
    background: rgba(199, 210, 254, 0.4);
    border-radius: 50%;
    filter: blur(48px);
    animation: glowPulse 3s ease-in-out infinite 1.5s;
}

@keyframes glowPulse {

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

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Hero Decorations */
.hero-decorations {
    position: absolute;
    inset: -3rem;
    pointer-events: none;
    z-index: 0;
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: floatParticle 4s ease-in-out infinite;
}

.particle-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.particle-2 {
    top: 30%;
    right: 10%;
    animation-delay: 0.5s;
    width: 6px;
    height: 6px;
}

.particle-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 1s;
    width: 10px;
    height: 10px;
}

.particle-4 {
    top: 50%;
    left: -5%;
    animation-delay: 1.5s;
    width: 5px;
    height: 5px;
}

.particle-5 {
    bottom: 40%;
    right: 5%;
    animation-delay: 2s;
}

.particle-6 {
    top: 70%;
    right: 15%;
    animation-delay: 2.5s;
    width: 7px;
    height: 7px;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-15px) scale(1.2);
        opacity: 1;
    }
}

/* Animated Rings */
.ring {
    position: absolute;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0.2;
}

.ring-1 {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    animation: rotateRing 20s linear infinite;
}

.ring-2 {
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    animation: rotateRing 25s linear infinite reverse;
    border-style: dashed;
}

.ring-3 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: pulseRing 3s ease-in-out infinite;
    border-width: 1px;
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseRing {

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

    50% {
        transform: scale(1.05);
        opacity: 0.4;
    }
}

/* Floating Icons */
.float-icon {
    position: absolute;
    font-size: 1.5rem;
    animation: floatIcon 5s ease-in-out infinite;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.float-icon-1 {
    top: 5%;
    right: -15%;
    animation-delay: 0s;
}

.float-icon-2 {
    bottom: 30%;
    left: -20%;
    animation-delay: 1s;
    font-size: 1.25rem;
}

.float-icon-3 {
    top: 40%;
    right: -10%;
    animation-delay: 2s;
    font-size: 1.75rem;
}

@keyframes floatIcon {

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

    25% {
        transform: translateY(-8px) rotate(5deg);
    }

    75% {
        transform: translateY(5px) rotate(-5deg);
    }
}

.hero-phone {
    position: relative;
    width: 100%;
    border-radius: 3rem;
    box-shadow: var(--shadow-2xl);
    z-index: 1;
}

.stats-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
}

@media (min-width: 768px) {
    .stats-banner {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

@media (min-width: 1024px) {
    .stat-value {
        font-size: 1.75rem;
    }
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-gray-600);
}

/* Features Section */
.features {
    background: #fff;
}

.features-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    cursor: pointer;
}

.feature-card .icon-box {
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* App Showcase Section */
.app-showcase {
    background: var(--color-gray-50);
}

.showcase-item {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .showcase-item {
        grid-template-columns: 1fr 1fr;
    }
}

.showcase-item:not(:last-child) {
    margin-bottom: 8rem;
}

.showcase-item.reverse .showcase-content {
    order: 1;
}

@media (min-width: 1024px) {
    .showcase-item.reverse .showcase-content {
        order: 2;
    }

    .showcase-item.reverse .showcase-image {
        order: 1;
    }
}

.showcase-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.showcase-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-gray-900);
    line-height: 1.1;
}

@media (min-width: 1024px) {
    .showcase-title {
        font-size: 2rem;
    }
}

.showcase-description {
    font-size: 1rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

.showcase-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
}

.showcase-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.showcase-stat-label {
    font-weight: 600;
    color: var(--color-gray-700);
}

.showcase-stat-value {
    font-weight: 700;
    font-size: 1.125rem;
}

.showcase-stat-value.green {
    color: var(--color-green);
}

.showcase-stat-value.blue {
    color: var(--color-primary);
}

.showcase-image {
    position: relative;
}

.showcase-phone-wrapper {
    position: relative;
    max-width: 17rem;
    margin: 0 auto;
}

.showcase-phone-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 71, 230, 0.2), rgba(199, 210, 254, 0.2));
    border-radius: 3rem;
    filter: blur(48px);
}

.showcase-phone {
    position: relative;
    width: 100%;
    border-radius: 3rem;
    box-shadow: var(--shadow-2xl);
}

.showcase-features-grid {
    display: grid;
    gap: 2rem;
    margin-top: 8rem;
}

@media (min-width: 768px) {
    .showcase-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.showcase-feature-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.showcase-feature-card:hover {
    box-shadow: var(--shadow-xl);
}

.showcase-feature-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.showcase-feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.75rem;
}

.showcase-feature-text {
    color: var(--color-gray-600);
}

/* How It Works Section */
.how-it-works {
    background: #fff;
}

.steps-grid {
    display: grid;
    gap: 2rem;
    position: relative;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.steps-line {
    display: none;
}

@media (min-width: 1024px) {
    .steps-line {
        display: block;
        position: absolute;
        top: 3rem;
        left: 10%;
        right: 10%;
        height: 4px;
        background: linear-gradient(to right, var(--color-primary), var(--color-green), var(--color-cyan), var(--color-orange), var(--color-purple));
        opacity: 0.2;
        border-radius: 2px;
    }
}

.step-card {
    position: relative;
    background: #fff;
    border: 2px solid var(--color-gray-100);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all var(--transition);
    height: 100%;
}

.step-card:hover {
    box-shadow: var(--shadow-2xl);
    border-color: var(--color-primary-light);
}

.step-number {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--color-yellow), var(--color-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
}

.step-card .icon-box {
    margin-bottom: 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

.how-it-works-cta {
    text-align: center;
    margin-top: 4rem;
}

.how-it-works-cta .btn svg {
    width: 24px;
    height: 24px;
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, #1447E6 0%, #3730a3 100%);
    color: #fff;
}

.testimonials .section-title {
    color: #fff;
}

.testimonials .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: background var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-quote-icon {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

.testimonial-quote-icon svg {
    width: 40px;
    height: 40px;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-rating svg {
    width: 20px;
    height: 20px;
    color: var(--color-yellow);
    fill: var(--color-yellow);
}

.testimonial-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-weight: 700;
    font-size: 1.125rem;
}

.testimonial-role {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.testimonial-country {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

.testimonials-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
    .testimonials-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.testimonial-stat {
    text-align: center;
}

.testimonial-stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.testimonial-stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Download Section */
.download {
    background: var(--color-gray-50);
}

.download-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .download-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.download-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.download-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-gray-900);
    line-height: 1.1;
}

@media (min-width: 1024px) {
    .download-title {
        font-size: 2.5rem;
    }
}

.download-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    line-height: 1.5;
}

.download-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.download-rating .stars {
    display: flex;
}

.download-rating .stars svg {
    width: 24px;
    height: 24px;
    color: var(--color-yellow);
    fill: var(--color-yellow);
}

.download-rating-info {
    padding-left: 0.75rem;
    border-left: 1px solid var(--color-gray-200);
}

.download-rating-value {
    font-weight: 700;
    color: var(--color-gray-900);
}

.download-rating-count {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
}

@media (min-width: 640px) {
    .download-buttons {
        flex-direction: row;
    }
}

.download-buttons .btn-app-store {
    width: 100%;
}

@media (min-width: 640px) {
    .download-buttons .btn-app-store {
        width: auto;
    }
}

.download-qr {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
}

.download-qr-code {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-gray-200);
    padding: 10px;
    overflow: hidden;
}

.download-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.download-qr-text {
    font-weight: 700;
    color: var(--color-gray-900);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.download-qr-subtext {
    color: var(--color-gray-600);
}

.download-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1rem;
    color: var(--color-gray-600);
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-feature svg {
    width: 20px;
    height: 20px;
    color: var(--color-green);
}

.download-image {
    position: relative;
}

.download-phone-wrapper {
    position: relative;
    max-width: 17rem;
    margin: 0 auto;
}

.download-phone-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 71, 230, 0.3), rgba(129, 140, 248, 0.3));
    border-radius: 3rem;
    filter: blur(48px);
}

.download-phone {
    position: relative;
    width: 100%;
    border-radius: 3rem;
    box-shadow: var(--shadow-2xl);
}

.system-requirements {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    margin-top: 5rem;
    box-shadow: var(--shadow-sm);
}

.system-requirements-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 1.5rem;
}

.system-requirements-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .system-requirements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.system-requirement {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.system-requirement-icon {
    width: 3rem;
    height: 3rem;
    background: var(--color-gray-100);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.system-requirement-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-gray-700);
}

.system-requirement-name {
    font-weight: 600;
    color: var(--color-gray-900);
}

.system-requirement-version {
    color: var(--color-gray-600);
}

.system-requirement-note {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-top: 0.25rem;
}

/* Footer */
.site-footer {
    background: var(--color-gray-900);
    color: var(--color-gray-400);
}

.footer-main {
    padding: 5rem 0;
}

.footer-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 20rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 2rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: var(--color-gray-400);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-gray-400);
    transition: color var(--transition);
    cursor: pointer;
}

.footer-contact-item:hover {
    color: #fff;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.footer-social-link:hover {
    background: var(--color-primary);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

.footer-column-title {
    font-weight: 700;
    color: #fff;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--color-gray-400);
    transition: color var(--transition);
}

.footer-link:hover {
    color: #fff;
}

.footer-newsletter {
    background: var(--color-gray-800);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    overflow: hidden;
    border: none;
}

.footer-newsletter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.footer-newsletter-text {
    color: var(--color-gray-400);
    margin-bottom: 1.5rem;
}

.footer-newsletter-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-newsletter-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1.5rem;
    background: var(--color-gray-700);
    border: 1px solid var(--color-gray-600);
    border-radius: 9999px;
    color: #fff;
    font-size: 1rem;
    transition: border-color var(--transition);
}

.footer-newsletter-input::placeholder {
    color: var(--color-gray-400);
}

.footer-newsletter-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.footer-newsletter-btn {
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--transition);
}

.footer-newsletter-btn:hover {
    background: var(--color-primary-hover);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid var(--color-gray-800);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: var(--color-gray-400);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-copyright {
        text-align: left;
    }
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    color: var(--color-gray-400);
    font-size: 0.875rem;
}

.footer-legal a {
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: #fff;
}

.footer-legal-separator {
    color: var(--color-gray-600);
}

/* Skip Link & Screen Reader */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 9999;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1447E6 0%, #3b82f6 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(20, 71, 230, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9998;
    overflow: visible;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(20, 71, 230, 0.5);
}

.scroll-plane {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
    transform: rotate(-45deg);
}

.scroll-to-top:hover .scroll-plane {
    animation: flyUp 0.6s ease-in-out;
}

.scroll-to-top.flying .scroll-plane {
    animation: takeOff 0.8s ease-out forwards;
}

/* Trail effect */
.scroll-trail {
    position: absolute;
    width: 8px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 4px;
    bottom: -25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-to-top:hover .scroll-trail {
    opacity: 1;
    animation: trailPulse 0.5s ease-in-out infinite;
}

@keyframes flyUp {

    0%,
    100% {
        transform: rotate(-45deg) translateY(0);
    }

    50% {
        transform: rotate(-45deg) translateY(-5px);
    }
}

@keyframes takeOff {
    0% {
        transform: rotate(-45deg) translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: rotate(-45deg) translateY(-50px) scale(0.5);
        opacity: 0;
    }
}

@keyframes trailPulse {

    0%,
    100% {
        height: 30px;
        opacity: 0.6;
    }

    50% {
        height: 40px;
        opacity: 0.3;
    }
}