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

:root {
    /* Color Palette */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #0891b2;
    --accent-color: #06b6d4;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --macro-color: #3b82f6;
    --meso-color: #8b5cf6;
    --micro-color: #ec4899;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Monaco', 'Courier New', monospace;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

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

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

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

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

.logo {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

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

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

.cta-button {
    background: var(--primary-color);
    color: white !important;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: background 0.3s;
}

.cta-button:hover {
    background: var(--primary-dark);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl) auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

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

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

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

.hero-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.scale-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    min-width: 200px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.scale-box h3 {
    color: white;
    margin-bottom: var(--spacing-xs);
}

.scale-box p {
    opacity: 0.9;
    margin-bottom: var(--spacing-xs);
}

.scale-range {
    font-size: 0.875rem;
    opacity: 0.8;
    font-family: var(--font-mono);
}

.arrow {
    font-size: 2rem;
    opacity: 0.8;
}

/* ===========================
   Buttons
   =========================== */
.button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.button-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* ===========================
   Sections
   =========================== */
.section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-size: 2.5rem;
}

.section-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl) auto;
}

/* ===========================
   Problem Section
   =========================== */
.problem-section {
    background: var(--bg-light);
}

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

.problem-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.problem-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.problem-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ===========================
   Solution Section
   =========================== */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.solution-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.solution-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
}

.solution-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.solution-card p {
    color: var(--text-light);
}

/* ===========================
   Features Section
   =========================== */
.features-section {
    background: var(--bg-light);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

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

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.2;
    min-width: 80px;
}

.feature-content h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.feature-content p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ===========================
   Use Cases Section
   =========================== */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.use-case-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s;
}

.use-case-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.use-case-header {
    margin-bottom: var(--spacing-md);
}

.use-case-header h3 {
    color: var(--text-dark);
}

.use-case-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.use-case-example {
    background: var(--bg-light);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.use-case-example strong {
    color: var(--primary-color);
}

/* ===========================
   Roadmap Section
   =========================== */
.roadmap-section {
    background: var(--bg-light);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    padding-left: 60px;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 4px solid var(--border-color);
}

.timeline-item.active .timeline-marker {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.timeline-content {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.timeline-item.active .timeline-content {
    border: 2px solid var(--primary-color);
}

.timeline-date {
    display: inline-block;
    background: var(--bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.timeline-content h3 {
    margin-bottom: var(--spacing-sm);
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content ul li {
    padding: 0.25rem 0;
    color: var(--text-light);
}

.timeline-content ul li::before {
    content: '→ ';
    color: var(--primary-color);
    font-weight: bold;
}

/* ===========================
   Signup Section
   =========================== */
.signup-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.signup-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.signup-box h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.signup-box > p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: var(--spacing-xl);
}

.signup-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.form-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.form-input {
    flex: 1;
    min-width: 250px;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
}

.form-input:focus {
    outline: none;
    border-color: white;
    background: white;
}

.form-note {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.signup-benefits {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: left;
}

.signup-benefits h3 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.signup-benefits ul {
    list-style: none;
    padding-left: 0;
}

.signup-benefits ul li {
    padding: 0.5rem 0;
    font-size: 1.125rem;
}

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

.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,
.footer-section h4 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .hero-cta {
        flex-direction: column;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    .form-group {
        flex-direction: column;
    }

    .form-input {
        min-width: 100%;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-marker {
        left: 1px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .scale-box {
        min-width: 100%;
    }

    .arrow {
        transform: rotate(90deg);
    }
}
