:root {
    --primary: #8B73EF;
    --background: #FFFFFF;
    --lavender-soft: #F5F3FF;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --white: #FFFFFF;
    --card-shadow: 0 10px 40px rgba(107, 78, 224, 0.08);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --glass-background: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --header-bg: rgba(255, 255, 255, 0.85);
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #0F172A;
        --lavender-soft: #1E293B;
        --text-primary: #F8FAFC;
        --text-secondary: #94A3B8;
        --white: #1E293B;
        --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        --glass-background: rgba(30, 41, 59, 0.7);
        --glass-border: 1px solid rgba(255, 255, 255, 0.05);
        --header-bg: rgba(15, 23, 42, 0.85);
    }
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    animation: fadeInPage 0.8s ease-out;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Header / Navbar */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(139, 115, 239, 0.1);
    box-shadow: 0 2px 20px rgba(107, 78, 224, 0.06);
    padding: 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.app-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(107, 78, 224, 0.25);
    white-space: nowrap;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 78, 224, 0.35);
}

.app-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0.8;
}

/* Hero Section */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, var(--lavender-soft) 0%, rgba(238, 232, 255, 0) 100%);
    text-align: center;
}

.hero-description {
    max-width: 700px;
    margin: 24px auto 40px;
    font-size: 20px;
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out both;
}

.play-button {
    display: inline-flex;
    align-items: center;
    padding: 18px 40px;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(107, 78, 224, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.play-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(107, 78, 224, 0.4);
}

/* Features Section */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
    font-weight: 700;
}

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

.feature-card {
    padding: 40px;
    background: var(--glass-background);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: var(--glass-border);
    transition: var(--transition);
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: var(--white);
    box-shadow: 0 20px 50px rgba(107, 78, 224, 0.12);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary);
    display: block;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
    background: linear-gradient(180deg, #FAFAFA 0%, var(--lavender-soft) 100%);
    overflow: hidden;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-top: -32px;
    margin-bottom: 56px;
}

.device-group-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 32px;
}

.device-group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(107, 78, 224, 0.15);
}

/* Phone Gallery */
.phone-gallery {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(107,78,224,0.2) transparent;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 72px;
}

.phone-gallery::-webkit-scrollbar {
    height: 4px;
}

.phone-gallery::-webkit-scrollbar-thumb {
    background: rgba(107,78,224,0.2);
    border-radius: 4px;
}

.phone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    scroll-snap-align: start;
    flex-shrink: 0;
    padding-top: 20px;
}

.phone-item:first-child {
    padding-left: 24px;
}

.phone-item:last-child {
    padding-right: 24px;
}

.phone-frame {
    background: #ffffff;
    border-radius: 30px;
    padding: 8px;
    width: 220px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08) inset,
        0 24px 48px rgba(0,0,0,0.18),
        0 4px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
    position: relative;
}

.phone-frame::before {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    margin: 0 auto 8px;
}

.phone-frame img {
    width: 100%;
    border-radius: 28px;
    display: block;
}


/* Tablet Gallery */
.tablet-gallery {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.tablet-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 300px;
    max-width: 680px;
}

.tablet-frame {
    background: #ffffff;
    border-radius: 30px;
    padding: 14px;
    width: 100%;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08) inset,
        0 24px 48px rgba(0,0,0,0.18);
    transition: var(--transition);
    position: relative;
}

.tablet-frame::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 8px;
    background: #cbcbcc;
    border-radius: 0 0 4px 4px;
}

.tablet-frame img {
    width: 100%;
    border-radius: 12px;
    display: block;
}


.screenshot-caption {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    max-width: 200px;
    line-height: 1.4;
}

/* About Section */
.about {
    padding: 80px 0;
    text-align: center;
}

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

.company-name {
    font-weight: 700;
    color: var(--primary);
}

/* Privacy Policy Layout */
.privacy-container {
    padding: 100px 0;
    max-width: 800px;
}

.privacy-title {
    font-size: 40px;
    margin-bottom: 16px;
    color: var(--primary);
}

.privacy-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.privacy-section p, .privacy-section ul {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.privacy-section ul {
    padding-left: 20px;
}

/* Footer */
footer {
    padding: 60px 0 40px;
    background-color: var(--background);
    border-top: 1px solid rgba(139, 115, 239, 0.1);
    text-align: center;
}

.footer-links {
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 16px;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.contact-email {
    display: block;
    margin-bottom: 24px;
    color: var(--text-secondary);
    text-decoration: none;
}

.copyright {
    font-size: 14px;
    color: #A0A0A0;
}

@media (max-width: 768px) {
    .app-title { font-size: 24px; }
    .hero-description { font-size: 18px; }
    .section-title { font-size: 26px; }
    .hero h1 { font-size: 36px; }
    .phone-frame { width: 180px; }
    .tablet-gallery { flex-direction: column; }
    .tablet-item { min-width: unset; max-width: 100%; }
}

@media (max-width: 480px) {
    .phone-frame { width: 155px; border-radius: 28px; padding: 8px; }
    .phone-frame img { border-radius: 22px; }
    .phone-frame::before { width: 44px; }
}
