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

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Lora', serif;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, .cinzel {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    object-fit: cover;
}
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }

/* === PREMIUM TOKENS === */
:root {
  --bg: #09090b; /* Obsidian foundation */
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #f97316; /* Vivid orange extracted from typical clock/alarm icons */
  --accent-glow: rgba(249, 115, 22, 0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.3);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --sidebar-width: 320px;
}

/* === BACKGROUND TEXTURE === */
.bg-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 10px);
    background-size: 200% 200%;
    animation: moveTexture 60s linear infinite;
    pointer-events: none;
}

@keyframes moveTexture {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

/* === STRUCTURAL BASELINES === */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

/* Sidebar + Scrolling Content Layout */
.page-wrapper {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .page-wrapper {
        flex-direction: row;
    }

    .sidebar {
        width: var(--sidebar-width);
        height: 100vh;
        position: sticky;
        top: 0;
        border-right: 1px solid var(--glass-border);
        background: var(--bg);
        z-index: 100;
        display: flex;
        flex-direction: column;
        padding: 3rem 2rem;
    }

    .main-content {
        flex: 1;
        width: calc(100% - var(--sidebar-width));
    }
}

section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* === SECTION DIVIDERS (Concave Curve) === */
.section-curve {
    position: relative;
}

.section-curve::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: inherit;
    border-radius: 100% 100% 0 0 / 100% 100% 0 0;
    z-index: 1;
}

/* === PREMIUM UI BLOCKS === */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-glass);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    gap: 10px;
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -10px var(--accent);
    filter: brightness(1.1);
}

.btn-primary:hover i {
    transform: translateX(5px);
}

.btn-store {
    background: #000;
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.btn-store:hover {
    background: #111;
    border-color: var(--accent);
}

.btn-store i {
    font-size: 1.5rem;
    color: #fff;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-text span:first-child {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.store-text span:last-child {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

/* === NAVIGATION === */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}

.top-nav.scrolled {
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}

.nav-links {
    display: none;
}

@media (min-width: 1024px) {
    .top-nav {
        display: none; /* Hidden on desktop because of sidebar */
    }
}

/* Mobile Menu */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 1023px) {
    .nav-links.mobile-active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
    }
}

/* Sidebar Desktop Styling */
.sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    text-align: center;
}

.sidebar-logo img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-nav a {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--glass-bg);
    color: var(--accent);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === HERO SECTION === */
.hero-clock {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
}

.hero-glass-card {
    text-align: center;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    background: linear-gradient(to bottom, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
}

.rating-badge i {
    color: #fbbf24;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* === SHOWCASE SECTION === */
.showcase-section {
    background: var(--bg);
}

.device-wrapper {
    position: relative;
    max-width: 380px;
    margin: 0 auto;
    padding: 20px;
    background: #111;
    border-radius: 40px;
    border: 8px solid #222;
    box-shadow: 0 0 100px var(--accent-glow);
}

.device-wrapper img {
    border-radius: 20px;
    width: 100%;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0 30px var(--accent);
    transition: all 0.3s ease;
}

.play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* === FEATURES SECTION === */
.features-grid-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 2rem 5% 4rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.features-grid-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.feature-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-glow);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* === STATS NARRATIVE === */
.stats-narrative {
    text-align: center;
    padding: 4rem 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.stats-narrative p {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-family: 'Cinzel', serif;
    line-height: 1.4;
}

.stats-narrative strong {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

/* === SCREENSHOT GALLERY (Floating Collage) === */
.gallery-collage {
    min-height: 800px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2rem;
    padding: 4rem 5%;
}

.collage-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.collage-item:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-1 { grid-area: 1 / 1 / 3 / 3; transform: rotate(-3deg); }
.item-2 { grid-area: 1 / 3 / 3 / 5; transform: rotate(2deg); }
.item-3 { grid-area: 3 / 1 / 5 / 2; transform: rotate(4deg); height: 220px; }
.item-4 { grid-area: 3 / 2 / 5 / 4; transform: rotate(-2deg); }
.item-5 { grid-area: 3 / 4 / 5 / 5; transform: rotate(-5deg); height: 220px; }

@media (max-width: 768px) {
    .gallery-collage {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        display: flex;
        flex-direction: column;
        min-height: auto;
    }
    .collage-item {
        transform: none !important;
        height: auto !important;
    }
}

/* === REVIEWS CAROUSEL === */
.reviews-section {
    background: linear-gradient(to bottom, var(--bg), #0f172a);
}

.reviews-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    min-height: 400px;
}

.review-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    visibility: hidden;
}

.review-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.review-stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.review-quote {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-style: italic;
    color: var(--text);
    margin-bottom: 2rem;
    position: relative;
}

.review-quote::before, .review-quote::after {
    content: '"';
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    color: var(--accent-glow);
    position: absolute;
    line-height: 0;
}

.review-quote::before { top: 0; left: -40px; }
.review-quote::after { bottom: 0; right: -40px; }

.review-user {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
}

/* === FAQ SECTION === */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

/* === DOWNLOAD CTA === */
.download-full-cta {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #09090b 0%, var(--accent) 150%);
    padding: 0 5%;
}

.download-full-cta h2 {
    font-size: clamp(3rem, 10vw, 6rem);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* === FOOTER === */
.site-footer {
    padding: 4rem 5% 2rem;
    background: #050507;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand .logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
}

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

.footer-newsletter input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: #fff;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mobile Footer Accordion */
@media (max-width: 767px) {
    .footer-links ul {
        display: none;
    }
    .footer-links.active ul {
        display: flex;
    }
    .footer-links h4 {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .footer-links h4::after {
        content: '+';
    }
    .footer-links.active h4::after {
        content: '-';
    }
}

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

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

.text-gradient {
    background: linear-gradient(45deg, var(--accent), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* App screenshot protector */
.screenshot-img, .hero img:not(.icon) {
    max-width: 320px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
}
