/* --- Base Variables & Reset --- */
:root {
    --brand-primary: #00a878;
    --brand-secondary: #ff6b6b;
    --bg-dark: #0f1115;
    --bg-panel: rgba(25, 28, 35, 0.4);
    --bg-panel-hover: rgba(35, 39, 48, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);

    --text-primary: #ffffff;
    --text-secondary: #a0a5b2;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 168, 120, 0.2);

    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-med: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Ambient Glowing Orbs --- */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
    animation: floatOrb 20s ease-in-out infinite alternate;
}

.glow-orb-1 {
    top: -10%;
    right: -5%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--brand-primary) 0%, rgba(0, 168, 120, 0) 70%);
}

.glow-orb-2 {
    bottom: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #0b4e3a 0%, rgba(11, 78, 58, 0) 70%);
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-20px, 20px) scale(1.1);
    }
}

/* --- Layout Utility --- */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-navigation {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--brand-primary);
    color: var(--bg-dark);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
    text-decoration: none;
    transition: top var(--transition-fast);
}

.skip-navigation:focus {
    top: 20px;
}

/* --- Navigation --- */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
    position: relative;
    z-index: 100;
}

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

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* --- Buttons & Links --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 100px;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-dark);
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.btn.compact {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-primary), #48e2b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 88px);
    padding-top: 40px;
    padding-bottom: 80px;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-icon-hero {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(0, 168, 120, 0.1);
    border: 1px solid rgba(0, 168, 120, 0.2);
    color: var(--brand-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

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

.hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.download-badge {
    height: 56px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    transition: transform var(--transition-fast);
}

.download-badge img {
    height: 100%;
    width: auto;
}

.download-badge:not(.disabled):hover {
    transform: scale(1.05);
}

.download-badge.google {
    position: relative;
    overflow: hidden;
}

.download-badge.google span {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(2px);
    border-radius: 6px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-value {
    color: var(--text-primary);
    font-weight: 600;
}

.stat-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--border-glass-hover);
}

/* Phone Mockup / Carousel */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 420px;
}

.hero-carousel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.carousel-track {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    display: flex;
}

.mockup-img {
    width: 100%;
    height: auto;
    max-height: 580px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.carousel-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-glass-hover);
    background: var(--bg-panel);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    padding: 0;
}

.carousel-arrow svg {
    width: 18px;
    height: 18px;
}

.carousel-arrow:hover {
    background: var(--bg-panel-hover);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-glass-hover);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot.active {
    background: var(--brand-primary);
    width: 24px;
    border-radius: 4px;
}

/* --- Bento Grid Section --- */
.bento-section {
    padding-top: 80px;
    padding-bottom: 120px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

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

/* --- Apple-Style Bento Grid --- */
.apple-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.ab-card {
    border-radius: 20px;
    overflow: hidden;
}

.ab-card-inner {
    padding: 32px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* SVG icon style */
.ab-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
    color: var(--text-primary);
}

/* Typography */
.ab-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ab-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Card spanning (12-col grid) */
.ab-span4 {
    grid-column: span 4;
}

.ab-span6 {
    grid-column: span 6;
}

.ab-span5 {
    grid-column: span 5;
}

.ab-span7 {
    grid-column: span 7;
}

/* Card tint colors (subtle, dark-friendly) */
.ab-tint-green {
    background: linear-gradient(160deg, rgba(0, 168, 120, 0.12) 0%, rgba(0, 80, 56, 0.06) 100%);
}

.ab-tint-red {
    background: linear-gradient(160deg, rgba(255, 82, 82, 0.10) 0%, rgba(120, 30, 30, 0.06) 100%);
}

.ab-tint-blue {
    background: linear-gradient(160deg, rgba(56, 116, 255, 0.10) 0%, rgba(30, 50, 120, 0.06) 100%);
}

.ab-tint-cyan {
    background: linear-gradient(160deg, rgba(50, 200, 220, 0.10) 0%, rgba(20, 80, 100, 0.06) 100%);
}

.ab-tint-orange {
    background: linear-gradient(160deg, rgba(255, 149, 0, 0.10) 0%, rgba(120, 60, 0, 0.06) 100%);
}

.ab-tint-purple {
    background: linear-gradient(160deg, rgba(175, 82, 222, 0.10) 0%, rgba(80, 30, 120, 0.06) 100%);
}

.ab-tint-gray {
    background: linear-gradient(160deg, rgba(160, 165, 178, 0.08) 0%, rgba(60, 60, 70, 0.06) 100%);
}

.glass-panel-top {
    border-top: 1px solid var(--border-glass);
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* --- Footer --- */
.main-footer {
    padding-top: 60px;
    padding-bottom: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 24px;
}

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

.footer-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    opacity: 0.8;
}

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

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
    color: rgba(160, 165, 178, 0.6);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 16px;
}

.support-link {
    color: rgba(160, 165, 178, 0.6);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.support-link:hover {
    color: var(--brand-primary);
}

/* --- Animation Classes (Controlled by JS) --- */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-up {
    transform: translateY(30px);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}


/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .apple-bento {
        grid-template-columns: repeat(2, 1fr);
    }
    .ab-span4,
    .ab-span5,
    .ab-span6,
    .ab-span7 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 20px;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .apple-bento {
        grid-template-columns: 1fr;
    }
    .ab-span4,
    .ab-span5,
    .ab-span6,
    .ab-span7 {
        grid-column: span 1;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}