:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-color: #ff3b30;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
}

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

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

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

.narrow {
    max-width: 800px;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5rem;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Phone Mockup */
.phone-mockup {
    width: 300px;
    height: 600px;
    border: 8px solid #333;
    border-radius: 40px;
    background: #000;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.screen {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #2a0a0a 0%, #000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.alarm-ui {
    text-align: center;
    animation: pulse 1s infinite alternate;
}

.time {
    font-size: 4rem;
    font-weight: 800;
    color: white;
}

.status {
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: 1rem;
}

@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 0.8;
    }

    to {
        transform: scale(1.05);
        opacity: 1;
        text-shadow: 0 0 20px rgba(255, 59, 48, 0.5);
    }
}

/* Sections */
.section {
    padding: 6rem 0;
}

.padding-large {
    padding: 8rem 0;
}

.bg-darker {
    background-color: #050505;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    scroll-margin-top: 100px;
}

h3,
h4 {
    scroll-margin-top: 100px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2.5rem;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

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

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

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

.card p {
    color: var(--text-secondary);
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-weight: 600;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Memory Game Preview */
.memory-grid-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

.tile {
    aspect-ratio: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border-radius: 10px;
    cursor: default;
}

.tile:nth-child(2),
.tile:nth-child(4) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

summary {
    cursor: pointer;
    font-weight: 600;
    padding: 1.5rem 0;
    list-style: none;
    position: relative;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    position: absolute;
    right: 0;
    font-weight: 400;
    font-size: 1.5rem;
}

details[open] summary::after {
    content: "−";
}

details p {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-right: 2rem;
    font-size: 0.9rem;
}

.copyright {
    color: #444;
    margin-top: 2rem;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero {
        flex-direction: column;
        padding-top: 8rem;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* Mobile Sticky Banner */
    .sticky-banner {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        animation: slideUp 0.5s ease-out;
    }

    .banner-content h4 {
        margin: 0;
        font-size: 0.9rem;
    }

    .banner-stars {
        color: #FFD700;
        font-size: 0.8rem;
    }

    .desktop-only {
        display: none !important;
    }
}

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

/* Desktop QR Code */
.qr-code-container {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    width: fit-content;
}

.qr-code-img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
}

.qr-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 150px;
}

/* Long Form Content Styles */
.article-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #d1d5db;
}

.article-content h2 {
    font-size: 2.2rem;
    color: white;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

.article-content h3 {
    font-size: 1.5rem;
    color: white;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.8rem;
}

.article-image-container {
    margin: 3rem 0;
    text-align: center;
}

.article-image {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* CRO Additions */
.step-card {
    padding: 2rem;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.step-visual {
    font-size: 3rem;
    margin: 2rem 0;
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    position: relative;
}

.stars {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
}

.author {
    font-weight: 600;
    color: var(--text-secondary);
}

.badge {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: -100%; /* Hidden by default */
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
}

#cookie-consent-banner.visible {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cookie-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 800px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-cookie.accept {
    background: var(--accent-color);
    color: white;
    border: none;
}

.btn-cookie.accept:hover {
    background: #ff5247;
    transform: translateY(-2px);
}

.btn-cookie.reject {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-cookie.reject:hover {
    border-color: #fff;
    color: #fff;
}