/* ========================================
   Kura Center - Main Stylesheet
   Conversion-Optimized Marketing Website
   ======================================== */

/* ========================================
   CSS Variables - Matching App Design
   ======================================== */
:root {
    /* Primary Colors */
    --primary: #126D70;
    --primary-light: #ccebec;
    --primary-dark: #0c474a;
    
    /* Secondary Colors */
    --secondary: #A8C4A2;
    --secondary-light: #e8f0e6;
    --secondary-dark: #759c6e;
    
    /* Accent Colors */
    --accent: #F77F6F;
    --accent-light: #fde8e5;
    
    /* Neutral Colors */
    --neutral-light: #FAF9F6;
    --neutral-dark: #2F3437;
    
    /* Status Colors */
    --success: #4CAF50;
    --warning: #FFB300;
    --error: #E53935;
    --trust-blue: #1976D2;
    
    /* Border & Background */
    --border: #ccebec;
    --card-bg: #ffffff;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(18, 109, 112, 0.1);
    --shadow-md: 0 4px 6px rgba(18, 109, 112, 0.1);
    --shadow-lg: 0 10px 20px rgba(18, 109, 112, 0.15);
    --shadow-xl: 0 20px 40px rgba(18, 109, 112, 0.2);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ========================================
   Base Reset & Typography
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--neutral-dark);
    background: var(--neutral-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-dark);
}

h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

h4 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Layout Utilities
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.nav-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-menu a {
    color: var(--neutral-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: color var(--transition-fast);
    padding: var(--spacing-xs) 0;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu .btn-primary {
    color: white;
    padding: 10px 20px;
}

.nav-menu .btn-primary:hover {
    color: white;
}

.nav-menu a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--neutral-dark);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--neutral-light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-link {
    background: none;
    border: none;
    color: var(--neutral-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-weight: 500;
}

.btn-link:hover {
    color: var(--primary);
    background: none;
    transform: none;
    box-shadow: none;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    color: white;
}

.hero h1 .highlight {
    display: inline-block;
    color: var(--secondary-light);
}

.hero-subtitle {
    font-size: 1.375rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    opacity: 0.95;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero-note {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: var(--spacing-md);
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
    backdrop-filter: blur(10px);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Trust Badges in Hero */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.trust-badge svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   Section Styling
   ======================================== */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: 1.25rem;
    color: #666;
}

.section-alt {
    background: white;
}

/* ========================================
   Problem Section
   ======================================== */
.problems {
    padding: var(--spacing-2xl) 0;
    background: white;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.problem-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--neutral-light);
    border-radius: var(--radius-lg);
    border: 2px solid var(--accent-light);
}

.problem-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 2rem;
}

.problem-cost {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin: var(--spacing-sm) 0;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: var(--spacing-2xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--neutral-dark);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   Comparison Section
   ======================================== */
.comparison {
    padding: var(--spacing-2xl) 0;
    background: white;
}

.comparison-table {
    max-width: 900px;
    margin: var(--spacing-xl) auto 0;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-cell {
    padding: var(--spacing-lg);
}

.comparison-cell.header {
    background: var(--neutral-light);
    font-weight: 700;
    font-size: 1.125rem;
    text-align: center;
}

.comparison-cell.without {
    background: #fff5f5;
    border-right: 1px solid var(--border);
}

.comparison-cell.with {
    background: #f0f9f9;
}

.comparison-cell svg {
    width: 24px;
    height: 24px;
    margin-right: var(--spacing-xs);
    vertical-align: middle;
}

/* ========================================
   ROI Section
   ======================================== */
.roi-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--secondary-light) 0%, white 100%);
}

.roi-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.roi-stat {
    text-align: center;
    padding: var(--spacing-xl);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.roi-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: var(--spacing-xs);
}

.roi-label {
    font-size: 1.125rem;
    color: #666;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    padding: var(--spacing-2xl) 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.testimonial-card {
    background: var(--card-bg);
    border-left: 4px solid var(--secondary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.testimonial-stars {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    font-style: italic;
    color: #555;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--neutral-dark);
    font-weight: 600;
}

.testimonial-author span {
    color: #888;
    font-size: 0.875rem;
}

/* ========================================
   Screenshots Section
   ======================================== */
.screenshots {
    padding: var(--spacing-2xl) 0;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.screenshot-item {
    text-align: center;
}

.screenshot-placeholder {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    transition: all var(--transition-base);
}

.screenshot-placeholder:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.screenshot-item p {
    color: #666;
    font-size: 0.875rem;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

.cta-section .btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--neutral-dark);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.footer-section h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: var(--spacing-xs);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
        justify-content: center;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .features-grid,
    .testimonials-grid,
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-row {
        grid-template-columns: 1fr;
    }
    
    .comparison-cell.without {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-accent {
    color: var(--accent);
}

.bg-primary {
    background: var(--primary);
    color: white;
}

.bg-secondary {
    background: var(--secondary);
}

.bg-light {
    background: var(--neutral-light);
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

/* ========================================
   Hero Rotating Text
   ======================================== */
.hero-rotating {
    position: relative;
    min-height: 120px;
}

.hero-subtitle-rotating {
    position: relative;
    min-height: 80px;
}

.hero-option,
.subtitle-option {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.hero-option.active,
.subtitle-option.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

/* Navigation Dots */
.hero-nav-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-dot.active {
    background: white;
    border-color: white;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   Sound Familiar? Validation Section
   ======================================== */
.validation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.validation-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.validation-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.validation-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.validation-item p {
    margin: 0;
    color: var(--neutral-dark);
    line-height: 1.6;
    font-size: 1rem;
}

/* ========================================
   Feature Categories Grid
   ======================================== */
.feature-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.feature-category {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.feature-category:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-category-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary-light);
}

.feature-category-icon {
    font-size: 1.75rem;
}

.feature-category h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    color: var(--neutral-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

/* ========================================
   CTA Subtext
   ======================================== */
.cta-subtext {
    font-size: 0.9rem;
    color: #666;
    margin-top: var(--spacing-sm);
    font-style: italic;
}

.cta-section .cta-subtext {
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Problems Grid - 4 columns on larger screens
   ======================================== */
@media (min-width: 1024px) {
    .problems-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
