/* === CSS RESET & BASE === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Theme: LIGHT MANDATORY */
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --accent-light: #dbeafe;

    /* Surface / Glass (Light Mode) */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(15, 23, 42, 0.08);
    --shadow-premium: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 20px 40px -15px rgba(37, 99, 235, 0.2);

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;
}

body, html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    font-family: 'Switzer', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3, .heading-font {
    font-family: 'Gambetta', serif;
    font-weight: 700;
    line-height: 1.1;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* === SHARED UTILITIES === */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.section-wrapper {
    padding: 60px 0;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.asymmetric-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .grid-35-65 { grid-template-columns: 35% 1fr; }
    .grid-65-35 { grid-template-columns: 1fr 35%; }
    .grid-70-30 { grid-template-columns: 1fr 30%; }
    .grid-40-60 { grid-template-columns: 40% 1fr; }
}

/* === BACKGROUND ANIMATION === */
.stripe-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: repeating-linear-gradient(
        45deg,
        rgba(37, 99, 235, 0.02),
        rgba(37, 99, 235, 0.02) 10px,
        transparent 10px,
        transparent 20px
    );
    background-size: 200% 200%;
    animation: stripeMove 20s linear infinite;
}

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

/* === PROGRESS BAR === */
.scroll-tracker {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--accent);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* === NAV PILL === */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 900px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: var(--shadow-premium);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.nav-links {
    display: none;
    gap: 2rem;
    font-weight: 500;
    font-size: 0.9rem;
}

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

.nav-cta {
    background: var(--text);
    color: var(--bg);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
}

/* === HERO SECTION === */
.scorito-hero {
    padding-top: 140px;
    padding-bottom: 80px;
    text-align: center;
    background: radial-gradient(circle at center, var(--accent-light) 0%, #fff 40%, #fff 100%);
    overflow: hidden;
}

.hero-app-icon {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 32px;
    margin: 0 auto 2.5rem;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-family: 'Switzer', sans-serif;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-alt);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    margin-bottom: 2.5rem;
    border: 1px solid var(--glass-border);
}

.badge-stars { color: #f59e0b; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--text);
    color: white;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

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

/* === DEMO SHOWCASE === */
.demo-stage {
    background: var(--accent);
    color: white;
    overflow: hidden;
}

.device-frame {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
    border: 12px solid #1e293b;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5);
    background: #000;
}

@media (min-width: 768px) {
    .device-frame { max-width: 320px; }
}

.device-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* === FEATURES (Editorial) === */
.feature-editorial {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.editorial-block {
    position: relative;
    padding: 2rem;
}

.editorial-number {
    font-family: 'Gambetta', serif;
    font-size: 6rem;
    color: var(--accent-light);
    position: absolute;
    top: -2rem;
    left: 0;
    z-index: -1;
    opacity: 0.5;
}

.editorial-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.editorial-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* === STATS SVG RINGS === */
.stats-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
    padding: 4rem 0;
}

.stat-ring-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.stat-ring-svg {
    transform: rotate(-90deg);
}

.stat-ring-bg {
    fill: none;
    stroke: var(--accent-light);
    stroke-width: 8;
}

.stat-ring-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 2s ease-out;
}

.stat-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 1.25rem;
}

.stat-label {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* === GALLERY === */
.gallery-scroll-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-scroll-container::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 auto;
    width: 230px;
    height: 500px;
    scroll-snap-align: center;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .gallery-item { height: 350px; width: 160px; }
}

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

/* === REVIEWS (Chat Bubbles) === */
.reviews-wall {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.chat-bubble {
    padding: 2rem;
    background: var(--bg-alt);
    border-radius: 24px;
    position: relative;
    border: 1px solid var(--glass-border);
    max-width: 85%;
}

.chat-bubble.left {
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bubble.right {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    background: var(--accent-light);
}

.review-stars {
    color: #f59e0b;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.review-text {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-style: italic;
    color: var(--text);
}

.review-author {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
}

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

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: var(--bg);
    font-weight: 600;
}

.faq-question:hover { background: var(--bg-alt); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--bg);
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

.faq-item.active {
    box-shadow: var(--shadow-premium);
    border-color: var(--accent);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* === DOWNLOAD CTA === */
.luxury-cta {
    text-align: center;
    padding: 100px 0;
    background: #fff;
}

.cta-app-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-premium);
}

/* === FOOTER GLASSMorphism === */
.luxury-footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
}

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

.footer-brand img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-family: 'Gambetta', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-newsletter input {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    margin-bottom: 1rem;
    background: var(--bg-alt);
}

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

/* === FLOATING ACTION BUTTON === */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-glow);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.5);
}

.floating-cta.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.floating-cta:hover {
    transform: scale(1.1) rotate(5deg);
}

/* === ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Masonry via Columns */
.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .masonry-grid { column-count: 2; }
}

@media (min-width: 1024px) {
    .masonry-grid { column-count: 3; }
}

/* Typography Imports Simulation */
@font-face {
    font-family: 'Gambetta';
    src: url('https://api.fontshare.com/v2/fonts/download/gambetta');
}
@font-face {
    font-family: 'Switzer';
    src: url('https://api.fontshare.com/v2/fonts/download/switzer');
}
