/* ===================================
   CSS Variables & Theme
   =================================== */
:root {
    /* Colors - Matching App Color Scheme */
    --color-primary: #01161E;
    --color-secondary: #124559;
    --color-tertiary: #598392;
    --color-accent: #AEC3B0;
    --color-highlight: #EFF650;
    
    --color-text: #01161E;
    --color-text-light: #124559;
    --color-text-muted: #598392;
    
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f5;
    --color-bg-dark: #01161E;
    
    --color-border: #AEC3B0;
    --color-border-light: #e8ede9;
    
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    
    /* Typography */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-unit: 8px;
    --container-max: 1280px;
    --container-padding: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===================================
   Navigation
   =================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.nav.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: white;
}

.logo svg {
    color: var(--color-highlight);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: white;
    transition: color var(--transition-fast);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-links a:hover {
    background-color: var(--color-tertiary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    height: 28px;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===================================
   Buttons
   =================================== */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-highlight);
    color: var(--color-primary);
}

.btn-primary:hover {
    background: #f5ff70;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--color-accent);
    color: var(--color-primary);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background: #9fb59d;
    border-color: #9fb59d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f2f5 100%);
    opacity: 0.6;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(1, 22, 30, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 64px);
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.hero-visual {
    animation: fadeInUp 0.8s ease 0.3s;
    animation-fill-mode: both;
}

.hero-image-placeholder {
    background: white;
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    border: 1px solid var(--color-border-light);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-secondary), transparent);
    margin: 0 auto;
}

/* ===================================
   Placeholder Styles
   =================================== */
.hero-image-placeholder,
.feature-image-placeholder,
.step-image-placeholder,
.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f2f5 100%);
    border: 2px dashed var(--color-accent);
    border-radius: var(--radius-lg);
    position: relative;
}

.placeholder-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.placeholder-subtext {
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 300px;
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
    margin-bottom: 60px;
}

.section-header.centered {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-secondary);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-light);
    max-width: 640px;
    margin: 0 auto;
}

/* ===================================
   Problem Section
   =================================== */
.problem-section {
    padding: 100px 0;
    background: white;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.problem-card {
    padding: 32px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.problem-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    margin-bottom: 20px;
    color: var(--color-primary);
}

.problem-icon svg {
    display: block;
}

.problem-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.problem-card p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ===================================
   Features Section
   =================================== */
.features-section {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--transition-slow);
}

.feature-block.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse > * {
    direction: ltr;
}

.feature-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--color-secondary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-text);
}

.feature-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--color-text-light);
    font-size: 16px;
}

.check-icon {
    color: var(--color-success);
    flex-shrink: 0;
}

.feature-image-placeholder {
    min-height: 400px;
}

/* ===================================
   How It Works Section
   =================================== */
.how-it-works {
    padding: 100px 0;
    background: white;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 60px;
}

.step {
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--transition-slow);
}

.step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary);
    color: white;
    font-size: 32px;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.step-visual {
    margin-bottom: 32px;
}

.step-image-placeholder {
    min-height: 240px;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.step-description {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ===================================
   Demo Section
   =================================== */
.demo-section {
    padding: 100px 0;
    background: var(--color-bg-dark);
    color: white;
}

.demo-content {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: center;
}

.demo-section .section-label {
    color: var(--color-accent);
}

.demo-section .section-title {
    color: white;
}

.demo-description {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.demo-highlights {
    list-style: none;
}

.demo-highlights li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.demo-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

.video-placeholder {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 400px;
}

.video-placeholder:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-base);
}

.video-placeholder:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ===================================
   Testimonials
   =================================== */
.testimonials {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(40px);
}

.testimonial-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: var(--color-highlight);
    font-size: 20px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--color-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.author-name {
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2px;
}

.author-title {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ===================================
   Pricing Section
   =================================== */
.pricing-section {
    padding: 100px 0;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    align-items: start;
}

.pricing-card {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all var(--transition-base);
    position: relative;
    opacity: 0;
    transform: translateY(40px);
}

.pricing-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.pricing-card.featured {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-secondary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    margin-bottom: 32px;
}

.pricing-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.pricing-description {
    color: var(--color-text-muted);
}

.pricing-price {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
}

.price-currency {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-light);
    vertical-align: top;
}

.price-amount {
    font-size: 56px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.price-period {
    font-size: 18px;
    color: var(--color-text-muted);
}

.price-text {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--color-text-light);
    position: relative;
    padding-left: 28px;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.faq-item {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.faq-question {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.faq-answer {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 720px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    margin-bottom: 24px;
}

.cta-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-form {
    display: flex;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto 24px;
}

.cta-input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: var(--font-body);
}

.cta-input:focus {
    outline: 3px solid rgba(255, 255, 255, 0.3);
}

.cta-note {
    font-size: 14px;
    opacity: 0.8;
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 80px 0 40px;
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: white;
    margin-bottom: 20px;
}

.footer-logo svg {
    color: var(--color-highlight);
}

.footer-description {
    line-height: 1.7;
    max-width: 320px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-content,
    .feature-block,
    .demo-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .feature-block.reverse {
        direction: ltr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }
    
    .nav-content {
        height: 70px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        transition: all var(--transition-base);
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .problem-grid,
    .pricing-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .feature-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .nav,
    .mobile-menu-toggle,
    .hero-cta,
    .cta-section,
    .footer-social {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
    
    .hero,
    .features-section,
    .demo-section {
        padding: 20px 0;
    }
    
    .pricing-card,
    .testimonial-card {
        page-break-inside: avoid;
    }
}