/* ============================================================
   OmOmega Homepage Landing Page Styles
   Modern SaaS/Tech design with green primary color
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    --om-primary: #0a7c42;
    --om-primary-dark: #065a30;
    --om-primary-light: #e8f5ee;
    --om-primary-rgb: 10, 124, 66;
    --om-dark: #1a1a2e;
    --om-dark-accent: #16213e;
    --om-text: #2d3748;
    --om-muted: #718096;
    --om-surface: #f7fafc;
    --om-white: #ffffff;
    --om-border: #e2e8f0;
    --om-radius: 12px;
    --om-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --om-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
    --om-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Landing Reset (scoped to .om-landing) --- */
.om-landing {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--om-text);
    line-height: 1.7;
    overflow-x: hidden;
}

.om-landing *,
.om-landing *::before,
.om-landing *::after {
    box-sizing: border-box;
}

.om-landing img {
    max-width: 100%;
    height: auto;
}

/* --- Section Base --- */
.om-section {
    padding: 80px 0;
    position: relative;
}

.om-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.om-section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--om-text);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.om-section-header p {
    font-size: 1.1rem;
    color: var(--om-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Scroll Reveal Animation --- */
.om-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--om-transition), transform 0.7s var(--om-transition);
}

.om-reveal.om-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.om-reveal-delay-1 { transition-delay: 0.1s; }
.om-reveal-delay-2 { transition-delay: 0.2s; }
.om-reveal-delay-3 { transition-delay: 0.3s; }
.om-reveal-delay-4 { transition-delay: 0.4s; }
.om-reveal-delay-5 { transition-delay: 0.5s; }
.om-reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================================
   SECTION 1: Hero
   ============================================================ */
.om-hero {
    background: linear-gradient(135deg, var(--om-dark) 0%, var(--om-dark-accent) 100%);
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
}

.om-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    position: relative;
    z-index: 2;
}

.om-hero-content {
    flex: 1;
    max-width: 600px;
}

.om-hero-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.om-hero-logo img {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(10, 124, 66, 0.3);
}

.om-hero-logo h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--om-white);
    margin: 0;
    letter-spacing: -0.03em;
}

.om-hero-tagline {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    font-weight: 400;
}

.om-hero-tagline strong {
    color: #4ade80;
    font-weight: 600;
}

.om-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 36px;
    line-height: 1.8;
}

.om-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.om-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--om-transition);
    border: 2px solid transparent;
    gap: 8px;
}

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

.om-btn-primary:hover {
    background: var(--om-primary-dark);
    border-color: var(--om-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--om-primary-rgb), 0.4);
    color: var(--om-white);
    text-decoration: none;
}

.om-btn-outline {
    background: transparent;
    color: var(--om-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.om-btn-outline:hover {
    border-color: var(--om-white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: var(--om-white);
    text-decoration: none;
}

.om-btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.om-btn-green-outline {
    background: transparent;
    color: var(--om-primary);
    border-color: var(--om-primary);
}

.om-btn-green-outline:hover {
    background: var(--om-primary);
    color: var(--om-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--om-primary-rgb), 0.3);
    text-decoration: none;
}

/* Hero QR Card */
.om-hero-qr-card {
    flex: 0 0 320px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.om-hero-qr-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.om-hero-qr-tab {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--om-white);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--om-transition);
}

.om-hero-qr-tab.active {
    background: var(--om-primary);
    color: var(--om-white);
}

.om-hero-qr-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
}

.om-hero-qr-content img {
    max-width: 200px;
    border-radius: var(--om-radius);
    background: white;
    padding: 8px;
}

.om-hero-qr-pane {
    display: none;
}

.om-hero-qr-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.om-hero-qr-text {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================================
   SECTION 2: Products
   ============================================================ */
.om-products {
    background: var(--om-surface);
}

.om-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.om-product-card {
    background: var(--om-white);
    border-radius: var(--om-radius);
    overflow: hidden;
    box-shadow: var(--om-shadow);
    transition: all var(--om-transition);
    border: 1px solid var(--om-border);
    display: flex;
    flex-direction: column;
}

.om-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--om-shadow-hover);
    border-color: var(--om-primary);
}

.om-product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.om-product-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.om-product-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.om-product-name a {
    color: var(--om-primary);
    text-decoration: none;
    transition: color var(--om-transition);
}

.om-product-name a:hover {
    color: var(--om-primary-dark);
}

.om-product-slogan {
    font-size: 0.9rem;
    color: var(--om-muted);
    font-style: italic;
    margin-bottom: 12px;
}

.om-product-desc {
    font-size: 0.95rem;
    color: var(--om-text);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.om-product-footer {
    margin-top: auto;
}

/* ============================================================
   SECTION 3: Features
   ============================================================ */
.om-features {
    background: var(--om-white);
}

.om-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
}

.om-feature-item {
    text-align: center;
    padding: 24px 16px;
}

.om-feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--om-primary-light);
    border: 2px solid rgba(var(--om-primary-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--om-primary);
    transition: all var(--om-transition);
}

.om-feature-item:hover .om-feature-icon {
    background: var(--om-primary);
    color: var(--om-white);
    transform: scale(1.1);
    border-color: var(--om-primary);
}

.om-feature-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--om-text);
    margin-bottom: 8px;
}

.om-feature-item p {
    font-size: 0.9rem;
    color: var(--om-muted);
    line-height: 1.6;
}

/* ============================================================
   SECTION 4: Stats
   ============================================================ */
.om-stats {
    background: linear-gradient(135deg, var(--om-primary) 0%, var(--om-primary-dark) 100%);
    padding: 60px 0;
}

.om-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.om-stat-item {
    padding: 20px;
}

.om-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--om-white);
    line-height: 1.2;
    margin-bottom: 8px;
}

.om-stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* ============================================================
   SECTION 5: News
   ============================================================ */
.om-news {
    background: var(--om-surface);
}

.om-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.om-news-card {
    background: var(--om-white);
    border-radius: var(--om-radius);
    overflow: hidden;
    box-shadow: var(--om-shadow);
    transition: all var(--om-transition);
    border: 1px solid var(--om-border);
}

.om-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--om-shadow-hover);
    text-decoration: none;
}

.om-news-card-body {
    padding: 20px;
}

.om-news-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 12px;
}

.om-news-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--om-primary);
    background: var(--om-primary-light);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.om-news-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--om-text);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.om-news-intro {
    font-size: 0.85rem;
    color: var(--om-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.om-news-footer {
    text-align: center;
    margin-top: 36px;
}

.om-news-footer a {
    color: var(--om-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: color var(--om-transition);
}

.om-news-footer a:hover {
    color: var(--om-primary-dark);
}

/* ============================================================
   SECTION 6: App Download
   ============================================================ */
.om-download {
    background: var(--om-primary-light);
}

.om-download-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.om-download-text {
    flex: 1;
}

.om-download-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--om-text);
    margin-bottom: 16px;
}

.om-download-text p {
    font-size: 1.05rem;
    color: var(--om-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

.om-store-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.om-store-badges a {
    display: inline-block;
    transition: transform var(--om-transition);
}

.om-store-badges a:hover {
    transform: translateY(-3px);
}

.om-store-badges img {
    height: 48px;
    border-radius: 8px;
}

.om-download-qr {
    flex: 0 0 320px;
    text-align: center;
}

.om-qr-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--om-primary);
}

.om-qr-tab {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: var(--om-white);
    color: var(--om-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--om-transition);
}

.om-qr-tab.active {
    background: var(--om-primary);
    color: var(--om-white);
}

.om-qr-tab:hover:not(.active) {
    background: var(--om-primary-light);
}

.om-qr-content img {
    max-width: 220px;
    border-radius: var(--om-radius);
    box-shadow: var(--om-shadow);
}

.om-qr-pane {
    display: none;
}

.om-qr-pane.active {
    display: block;
}

/* ============================================================
   SECTION 7: CTA Strip
   ============================================================ */
.om-cta {
    background: linear-gradient(135deg, var(--om-dark) 0%, var(--om-dark-accent) 100%);
    padding: 56px 0;
    text-align: center;
}

.om-cta h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--om-white);
    margin-bottom: 8px;
}

.om-cta p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 28px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .om-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .om-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .om-hero-qr-card {
        flex: 0 0 280px;
        padding: 20px;
    }

    .om-hero-qr-content img {
        max-width: 160px;
    }
}

@media (max-width: 768px) {
    .om-section {
        padding: 56px 0;
    }

    .om-section-header h2 {
        font-size: 1.6rem;
    }

    .om-hero {
        min-height: auto;
        padding: 60px 0 48px;
    }

    .om-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .om-hero-logo {
        justify-content: center;
    }

    .om-hero-logo h1 {
        font-size: 2.4rem;
    }

    .om-hero-actions {
        justify-content: center;
    }

    .om-hero-qr-card {
        display: none;
    }

    .om-products-grid,
    .om-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .om-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .om-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .om-stat-number {
        font-size: 2rem;
    }

    .om-download-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .om-store-badges {
        justify-content: center;
    }

    .om-download-qr {
        flex: none;
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .om-container {
        padding: 0 16px;
    }

    .om-section {
        padding: 40px 0;
    }

    .om-hero-logo img {
        width: 72px;
        height: 72px;
    }

    .om-hero-logo h1 {
        font-size: 2rem;
    }

    .om-hero-tagline {
        font-size: 1.1rem;
    }

    .om-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
    }

    .om-hero-actions {
        flex-direction: column;
    }

    .om-products-grid,
    .om-news-grid {
        grid-template-columns: 1fr;
    }

    .om-features-grid {
        grid-template-columns: 1fr;
    }

    .om-stats-grid {
        grid-template-columns: 1fr;
    }

    .om-section-header h2 {
        font-size: 1.4rem;
    }
}
