/* === HEXA SHIFT - LOGIC PUZZLE PRESET & THEME === */
@import url('https://fonts.googleapis.com/css2?family=Zodiak:wght@400;700;900&family=Supreme:wght@300;400;500;700&display=swap');

:root {
    /* Premium Light Palette */
    --bg-primary: #fafafa;
    --bg-secondary: #f3f4f6;
    --bg-accent: #f0fdf4; /* Very light success green for Hexa feel */
    --text-main: #1a1a1a;
    --text-muted: #666666;

    /* App Colors (Pastel versions) */
    --hexa-green: #4ade80;
    --hexa-blue: #60a5fa;
    --hexa-purple: #a78bfa;
    --hexa-orange: #fb923c;

    /* UI Tokens */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --container-max: 1240px;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 15px 35px -5px rgba(74, 222, 128, 0.2);
}

/* === RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Supreme', sans-serif;
    color: var(--text-main);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .heading-font {
    font-family: 'Zodiak', serif;
    font-weight: 900;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: 0.3s ease; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* === ANIMATED BACKGROUND === */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(125deg, #ffffff 0%, #f7fcf9 50%, #f0f7ff 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

/* === NAVIGATION === */
.hexa-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hexa-nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    height: 70px;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.8;
}

.nav-links a:hover { opacity: 1; color: var(--hexa-green); }

/* === SPLIT-COLOR BUTTONS === */
.btn-split {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-split::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: var(--hexa-green);
    z-index: 1;
}

.btn-split::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--hexa-blue);
    z-index: 1;
}

.btn-split span {
    position: relative;
    z-index: 2;
}

.btn-split:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* === HERO SECTION === */
.hero-shift {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 55fr 45fr;
    align-items: center;
    gap: 4rem;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--text-main), var(--hexa-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-badges {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.badge {
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-visual img {
    max-width: 320px;
    border-radius: 40px;
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.25);
    transform: perspective(1000px) rotateY(-10deg);
}

/* === TIMELINE FEATURES === */
.timeline-track {
    position: relative;
    padding: 6rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--hexa-green), transparent);
    transform: translateX(-50%);
}

.feature-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8rem;
    position: relative;
}

.feature-content {
    width: 42%;
    padding: 3rem;
}

.feature-visual {
    width: 42%;
    display: flex;
    justify-content: center;
}

.feature-step:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-dot {
    position: absolute;
    left: 50%;
    top: 3rem;
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid var(--hexa-green);
    border-radius: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    font-size: 1.5rem;
    color: var(--hexa-green);
    transition: 0.3s;
}

.feature-step:hover .feature-dot {
    background: var(--hexa-green);
    color: #fff;
    box-shadow: 0 0 20px var(--hexa-green);
}

.feature-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
}

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

/* === STATS NARRATIVE === */
.stats-narrative {
    text-align: center;
    padding: 8rem 0;
    background: var(--bg-accent);
}

.stats-sentence {
    font-size: 3rem;
    font-family: 'Zodiak', serif;
    font-weight: 700;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.4;
}

.stats-sentence strong {
    color: var(--hexa-green);
    background: linear-gradient(to bottom, transparent 60%, rgba(74, 222, 128, 0.1) 60%);
}

/* === REVIEWS TICKER === */
.reviews-section {
    padding: 6rem 0;
    overflow: hidden;
}

.reviews-ticker {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    animation: tickerScroll 40s linear infinite;
    width: max-content;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-pill {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
    border: 1px solid var(--bg-secondary);
    box-shadow: var(--shadow-soft);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--hexa-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.reviews-badge {
    text-align: center;
    margin-top: 4rem;
}

.stars { color: #fbbf24; font-size: 1.25rem; }

/* === GALLERY COLLAGE === */
.gallery-section {
    padding: 8rem 0;
    background: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-areas:
        "a b c"
        "d b e";
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 2rem;
    min-height: 700px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: scale(1.02) !important;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-secondary);
}

.item-a { grid-area: a; transform: rotate(-3deg); height: 320px; }
.item-b { grid-area: b; height: 500px; z-index: 2; }
.item-c { grid-area: c; transform: rotate(3deg); height: 320px; }
.item-d { grid-area: d; transform: translateY(-40px); height: 280px; }
.item-e { grid-area: e; transform: translateY(-40px) rotate(-2deg); height: 280px; }

/* === FAQ ACCORDION === */
.faq-section {
    padding: 8rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--bg-secondary);
}

.faq-question {
    width: 100%;
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 700;
    background: none;
    border: none;
    text-align: left;
}

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

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

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

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

/* === DOWNLOAD CTA === */
.download-footer-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-accent), #fff);
}

.cta-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.cta-visual img {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 40px;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.2);
}

.cta-content h2 { font-size: 4rem; margin-bottom: 2rem; line-height: 1; }

.app-store-buttons {
    display: flex;
    gap: 1.5rem;
}

/* === FOOTER === */
.minimal-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--bg-secondary);
}

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

.footer-left { display: flex; align-items: center; gap: 1rem; }
.footer-logo { width: 24px; height: 24px; border-radius: 4px; }

.footer-links { display: flex; gap: 2rem; font-size: 0.9rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--hexa-green); }

.footer-social { display: flex; gap: 1.5rem; font-size: 1.25rem; }

/* === DIAGONAL DIVIDERS === */
.slant-divider {
    height: 15vw;
    width: 100%;
    background: var(--bg-primary);
    clip-path: polygon(0 0, 100% 100%, 100% 0);
    margin-top: -15vw;
    position: relative;
    z-index: 10;
}

.slant-divider.reverse {
    clip-path: polygon(0 100%, 100% 0, 0 0);
}

/* === REVEAL ANIMATIONS === */
.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);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 4rem; }
    .hero-grid, .cta-split { gap: 3rem; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "a b" "c b" "d e"; }
}

@media (max-width: 768px) {
    section { padding: 4rem 0; }
    .hero-grid, .cta-split, .feature-step { grid-template-columns: 1fr; display: flex; flex-direction: column; text-align: center; }
    .hero-grid { text-align: center; }
    .hero-visual { order: -1; margin-bottom: 3rem; }
    .hero-badges { justify-content: center; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-tagline { margin: 0 auto 2rem; }

    .timeline-line { display: none; }
    .feature-step { margin-bottom: 4rem; }
    .feature-content, .feature-visual { width: 100%; padding: 0; }
    .feature-dot { display: none; }

    .stats-sentence { font-size: 2rem; }

    .gallery-grid { display: flex; flex-direction: column; gap: 1.5rem; min-height: auto; }
    .gallery-item { height: auto !important; transform: none !important; }

    .footer-row { flex-direction: column; gap: 2rem; text-align: center; }

    .nav-links { display: none; } /* Mobile menu would go here */
}
