:root {
    --bg-color: #0b0f19;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-blue: #4A9DC8; /* Blue accent from Meridian Logo */
    --accent-blue-hover: #5ab1de;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Abstract Glow Backgrounds */
.glow-bg {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(74, 157, 200, 0.15) 0%, rgba(11, 15, 25, 0) 65%);
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(50px);
}
.glow-bg.blue {
    top: auto;
    bottom: -20%;
    right: -10%;
    left: auto;
    background: radial-gradient(circle, rgba(144, 98, 255, 0.12) 0%, rgba(11, 15, 25, 0) 65%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Nav */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.navbar.scrolled {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}
.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.nav-links a:hover {
    color: var(--accent-blue);
}
#nav-logo {
    height: 40px;
    object-fit: contain;
}

/* Buttons */
.btn-primary, .btn-primary-small, .btn-secondary {
    display: inline-block;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: var(--font-heading);
    cursor: pointer;
    text-align: center;
}
.btn-primary-small {
    padding: 0.5rem 1.2rem;
    background: var(--accent-blue);
    color: #fff !important;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(74, 157, 200, 0.2);
}
.btn-primary-small:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 157, 200, 0.4);
}
.btn-primary {
    padding: 0.8rem 2rem;
    background: var(--accent-blue);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(74, 157, 200, 0.3);
}
.btn-primary:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 157, 200, 0.5);
}
.btn-primary.large {
    padding: 1rem 3rem;
    font-size: 1.25rem;
    border-radius: 12px;
}
.btn-secondary {
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    font-size: 1.1rem;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Typo Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
}
.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}
.cta-group {
    display: flex;
    gap: 1.5rem;
}

/* Glass */
.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.hero-screenshot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Features */
.features-section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.section-title.text-left {
    text-align: left;
    margin-bottom: 2rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(74, 157, 200, 0.05), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: inherit;
    z-index: 2;
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(74, 157, 200, 0.3);
    box-shadow: 0 10px 30px rgba(74, 157, 200, 0.1);
}
.feature-visual {
    width: 100%;
    aspect-ratio: 16/10;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-anim {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}
.feature-card:hover .feature-anim {
    transform: scale(1.05);
}
.placeholder-anim {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(74, 157, 200, 0.1) 0%, transparent 70%);
}
.card-icon {
    font-size: 3.5rem;
    display: inline-block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
    margin: 0;
    animation: floatIcon 4s ease-in-out infinite;
}
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.feature-content {
    padding: 2.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}
.feature-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.feature-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Showcase */
.showcase-section {
    padding: 8rem 0;
    background: linear-gradient(to bottom, rgba(74, 157, 200, 0.02), transparent);
}
.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.showcase-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.feature-list {
    list-style: none;
}
.feature-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}
.check-icon {
    color: var(--accent-blue);
    font-weight: bold;
}
.showcase-image img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

/* CTA */
.cta-section {
    padding: 10rem 0 12rem;
    position: relative;
}
.cta-section h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}
.sub-text {
    font-size: 0.9rem !important;
    opacity: 0.6;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    background: #06090f;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}
.footer-links {
    display: flex;
    gap: 2rem;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: var(--accent-blue);
}
.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
}

/* Video Showcase */
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    z-index: 5;
}
.feature-card:hover .play-icon-overlay {
    background: var(--accent-blue);
    transform: translate(-50%, -50%) scale(1.1);
}
.play-icon-overlay::after {
    content: '▶';
    margin-left: 4px;
}

/* Placeholder states for images */
.placeholder-ui {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255,255,255,0.2);
}
.placeholder-ui.tall {
    aspect-ratio: 3/4;
}
.mock-header {
    height: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    width: 60%;
}
.mock-body, .mock-list {
    flex-grow: 1;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    width: 100%;
}
.placeholder-text {
    position: absolute;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    pointer-events: none;
}

/* Animation Utilities */
.stagger-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
.stagger-up.delay-1 { animation-delay: 0.15s; }
.stagger-up.delay-2 { animation-delay: 0.3s; }
.stagger-up.delay-3 { animation-delay: 0.45s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in.delay-1 {
    transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content, .showcase-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-text h1 { font-size: 3.5rem; }
    .hero-text p { margin: 0 auto 2.5rem; }
    .cta-group { justify-content: center; }
    .section-title.text-left { text-align: center; }
    .feature-list { display: inline-block; text-align: left; }
    .glow-bg { width: 100vw; height: 100vw; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-text h1 { font-size: 2.8rem; }
    .cta-group { flex-direction: column; }
    .feature-content { padding: 2rem 1.5rem; }
    .cta-section h2 { font-size: 2.5rem; }
    .footer-content { flex-direction: column; gap: 2rem; }
}
