/* Anduin - Professional Light Theme - Mobile First */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #eef2ff;
    --secondary: #0ea5e9;
    --accent: #22c55e;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, #6366f1, #0ea5e9);
    --card-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    text-align: center;
    margin-bottom: 24px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.subsection-title {
    text-align: center;
    margin: 60px 0 40px;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    min-height: 44px;
    white-space: nowrap;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    min-height: 52px;
}

/* Icon Wrapper */
.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.icon-wrapper.large {
    width: 64px;
    height: 64px;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    z-index: 1001;
}

.logo img {
    height: 32px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
    z-index: 1001;
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: 
        radial-gradient(ellipse at top, rgba(99, 102, 241, 0.08), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(14, 165, 233, 0.05), transparent 50%),
        var(--bg);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.hero-subtext {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.stat-value {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--text-muted);
}

/* Problem Section */
.problem-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.problems-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.problem-card {
    background: var(--bg-card);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s;
    text-align: center;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.problem-card h3 {
    margin-bottom: 12px;
    color: var(--text);
}

.problem-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Overview Section */
.overview-section {
    padding: 80px 0;
    background: var(--bg);
}

.architecture-diagram {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.architecture-diagram svg {
    width: 100%;
    height: auto;
}

/* Brokers Section */
.brokers-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.value-props-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 60px;
}

.value-prop-card {
    background: var(--bg-card);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.value-prop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.value-prop-card h3 {
    margin-bottom: 12px;
}

.value-prop-card p {
    color: var(--text-muted);
}

.products-row {
    margin-top: 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.product-card h4 {
    margin-bottom: 8px;
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Investors Section */
.investors-section {
    padding: 80px 0;
    background: var(--bg);
}

.investor-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.benefit-card {
    background: var(--bg-card);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.benefit-card h3 {
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--text-muted);
}

/* Technical Section */
.technical-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.technical-diagram {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 20px 0;
}

.technical-diagram svg {
    width: 100%;
    height: auto;
}

.technical-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.tech-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 500;
}

.tech-feature svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* Tech Stack Section */
.tech-stack-section {
    padding: 80px 0;
    background: var(--bg);
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.tech-card {
    background: var(--bg-card);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    transition: all 0.3s;
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.tech-card h4 {
    margin-bottom: 8px;
}

.tech-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--gradient);
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 16px;
    color: white;
}

.cta-content > p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.cta-section .btn-primary:hover {
    background: var(--bg-alt);
}

.cta-section .btn-secondary {
    background: transparent;
    border-color: white;
    color: white;
}

.cta-section .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    background: #f1f5f9;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand img {
    height: 32px;
    width: auto;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.footer-col h4 {
    margin-bottom: 16px;
    color: var(--text);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive - Tablet (768px+) */
@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
    
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .value-props-grid,
    .investor-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid,
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    
    .hero-stats {
        gap: 60px;
    }
}

/* Responsive - Desktop (1024px+) */
@media (min-width: 1024px) {
    .logo img {
        height: 36px;
    }
    
    .problems-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .value-props-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .investor-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 2fr 3fr;
        gap: 60px;
    }
}

/* Mobile specific (max 767px) */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px 32px;
        gap: 24px;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: 12px 0;
        font-size: 1.125rem;
    }
    
    .nav-links .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .problem-section,
    .overview-section,
    .brokers-section,
    .investors-section,
    .technical-section,
    .tech-stack-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .section-subtitle {
        margin-bottom: 40px;
    }
    
    .subsection-title {
        margin: 40px 0 32px;
    }
    
    .products-row {
        margin-top: 40px;
    }
    
    .architecture-diagram,
    .technical-diagram {
        padding: 10px;
    }
    
    .footer {
        padding: 40px 0 32px;
    }
}

/* Ensure no horizontal scroll */
body, html {
    max-width: 100%;
    overflow-x: hidden;
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 767px) {
    a, button, .btn {
        min-height: 44px;
        min-width: 44px;
    }
}
