/* Ground Signal - Main Stylesheet */

/* Variables */
:root {
    --primary-color: #0066FF;
    --secondary-color: #1A1A1A;
    --accent-color: #00D084;
    --error-color: #FF3B30;
    --bg-white: #FFFFFF;
    --bg-light: #FAFBFC;
    --bg-dark: #0A0E27;
    --bg-code: #1E1E1E;
    --text-primary: #1A1A1A;
    --text-secondary: #4A5568;
    --text-light: #FFFFFF;
    --text-muted: #718096;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

code, pre {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    width: 100%;
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
}

@media (min-width: 1024px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

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

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

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

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

.btn-disabled {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--bg-light);
    color: var(--text-muted);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--space-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: none;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

@media (min-width: 768px) {
    .hero {
        padding: 120px 0 var(--space-3xl);
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo-wrapper {
    margin-bottom: var(--space-lg);
}

.hero-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    animation: pulse 3s ease-in-out infinite;
}

@media (min-width: 768px) {
    .hero-logo {
        width: 300px;
        height: 300px;
    }
}

@media (min-width: 1024px) {
    .hero-logo {
        width: 400px;
        height: 400px;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.375rem;
    }
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

.api-preview {
    margin-top: var(--space-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.api-preview pre {
    background-color: var(--bg-code);
    color: #d4d4d4;
    padding: var(--space-md);
    border-radius: 16px;
    overflow-x: auto;
    text-align: left;
    font-size: 14px;
    line-height: 1.8;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .api-preview pre {
        padding: var(--space-lg);
        font-size: 16px;
    }
}

.api-preview code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    white-space: pre;
}

/* Syntax highlighting */
.api-preview .comment {
    color: #6A9955;
}

.api-preview .keyword {
    color: #569CD6;
}

.api-preview .string {
    color: #CE9178;
}

.api-preview .function {
    color: #DCDCAA;
}

.api-preview .property {
    color: #9CDCFE;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 1s ease-out;
}

.animate-slide-up-delay {
    animation: slideUp 1s ease-out 0.2s both;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.4s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
section {
    padding: var(--space-2xl) 0;
}

@media (min-width: 768px) {
    section {
        padding: var(--space-3xl) 0;
    }
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .section-subtitle {
        font-size: 1.25rem;
        margin-bottom: var(--space-3xl);
    }
}

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

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

@media (min-width: 768px) {
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

@media (min-width: 1024px) {
    .problem-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.problem-stat {
    text-align: center;
    background-color: white;
    padding: var(--space-lg);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.problem-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

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

.problem-stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

.problem-stat p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Solution Section */
.solution-section {
    background-color: white;
}

.solution-diagram {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

@media (min-width: 768px) {
    .solution-diagram {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
}

.input-column, .process-column, .output-column {
    text-align: center;
}

.input-column h3, .process-column h3, .output-column h3 {
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.input-items, .output-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.input-item, .output-item {
    background-color: var(--bg-light);
    padding: var(--space-md);
    border-radius: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.input-item:hover, .output-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(4px);
}

.process-box {
    background-color: var(--bg-dark);
    color: white;
    padding: var(--space-lg);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.process-step {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.process-step:last-child {
    border-bottom: none;
}

/* API Section */
.api-section {
    background-color: var(--bg-dark);
    color: white;
}

.api-section .section-title {
    color: white;
}

.api-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.api-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

@media (min-width: 768px) {
    .api-features {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

.api-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg);
    border-radius: 16px;
    transition: var(--transition);
}

.api-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.api-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: white;
}

.api-card pre {
    background-color: var(--bg-code);
    padding: var(--space-md);
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: var(--space-md);
    font-size: 14px;
    line-height: 1.8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.api-card code {
    color: #9CDCFE;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
}

.api-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.api-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .api-stats {
        grid-template-columns: repeat(4, 1fr);
        padding: var(--space-xl);
    }
}

.stat {
    text-align: center;
}

.stat h4 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: var(--space-xs);
}

.stat p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Products Section */
.products-section {
    background-color: var(--bg-light);
}

.products-description {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.products-description p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.format-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

@media (min-width: 768px) {
    .format-showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .format-showcase {
        grid-template-columns: repeat(6, 1fr);
    }
}

.format-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background-color: white;
    border-radius: 16px;
    transition: var(--transition);
}

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

.format-icon {
    font-size: 2.5rem;
}

.format-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* Community Section */
.communities-section {
    background-color: white;
}

.community-content {
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
    text-align: center;
}

.community-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.community-examples {
    margin-top: var(--space-2xl);
}

.community-examples h3 {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.examples-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .examples-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.example {
    text-align: left;
    padding: var(--space-lg);
    background-color: var(--bg-light);
    border-radius: 16px;
    transition: var(--transition);
}

.example:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.example h4 {
    margin-bottom: var(--space-sm);
    color: var(--primary-color);
}

.example p {
    font-size: 1rem;
    line-height: 1.8;
}

/* Technical Section */
.technical-section {
    background-color: var(--bg-light);
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tech-card {
    background-color: white;
    padding: var(--space-lg);
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.tech-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.tech-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.tech-card p {
    font-size: 1rem;
    line-height: 1.8;
}

/* Pricing Section */
.pricing-section {
    background-color: white;
}

.pricing-tiers {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .pricing-tiers {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}

.tier-card {
    background-color: var(--bg-light);
    padding: var(--space-xl);
    border-radius: 16px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.tier-card.featured {
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .tier-card.featured {
        transform: scale(1.05);
    }
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.tier-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tier-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: var(--space-lg);
}

.tier-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.tier-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.tier-features {
    list-style: none;
    text-align: left;
    margin: var(--space-lg) 0;
}

.tier-features li {
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 2rem;
    line-height: 1.8;
}

.tier-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.usage-pricing {
    margin-top: var(--space-2xl);
    background-color: var(--bg-light);
    padding: var(--space-xl);
    border-radius: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.usage-pricing h3 {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.usage-pricing p {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.usage-rates {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .usage-rates {
        grid-template-columns: repeat(3, 1fr);
    }
}

.rate {
    text-align: center;
    padding: var(--space-md);
    background-color: white;
    border-radius: 12px;
}

.rate-label {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.rate-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Team Section */
.team-section {
    background-color: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.team-member {
    text-align: center;
    background-color: white;
    padding: var(--space-lg);
    border-radius: 16px;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.member-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-light);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-light), white);
}

.team-member h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.member-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.member-bio {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: var(--space-sm) 0;
    font-size: 0.875rem;
}

.member-linkedin {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.member-linkedin:hover {
    color: var(--accent-color);
}

/* Investor Section */
.investor-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
}

.investor-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    color: white;
}

@media (min-width: 768px) {
    .investor-content h2 {
        font-size: 3rem;
    }
}

.investor-content > p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.market-opportunity {
    margin-bottom: var(--space-xl);
}

.market-opportunity h3 {
    color: white;
    margin-bottom: var(--space-lg);
    font-size: 1.75rem;
}

.market-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .market-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.market-stat {
    text-align: center;
    padding: var(--space-lg);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.market-stat h4 {
    font-size: 2.5rem;
    margin-bottom: var(--space-xs);
    color: white;
}

.market-stat p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.traction-metrics {
    margin-bottom: var(--space-2xl);
}

.traction-metrics h3 {
    color: white;
    margin-bottom: var(--space-lg);
    font-size: 1.75rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-lg);
    }
}

.metric {
    text-align: center;
    padding: var(--space-md);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: white;
}

.metric-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.raise-details {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-xl);
    border-radius: 16px;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.raise-info h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.raise-info p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.raise-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

@media (min-width: 768px) {
    .raise-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.raise-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.raise-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.investor-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    justify-content: center;
    align-items: center;
    margin-top: var(--space-xl);
}

@media (min-width: 768px) {
    .investor-cta {
        flex-direction: row;
    }
}

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

.investor-cta .btn-primary:hover {
    background-color: var(--bg-light);
}

.investor-cta .btn-secondary {
    border-color: white;
    color: white;
}

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

/* Footer */
.footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    color: white;
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1) 20%, rgba(255,255,255,0.1) 80%, transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 3fr 1.5fr;
        gap: 4rem;
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 1.5fr 3fr 1.5fr;
    }
}

/* Footer Brand Section */
.footer-brand {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-brand {
        text-align: left;
    }
}

.footer-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-social {
        justify-content: flex-start;
    }
}

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

.footer-social a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* Footer Links */
.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-links {
        text-align: left;
        gap: 3rem;
    }
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
}

.footer-column a:hover {
    color: white;
    padding-left: 8px;
}

@media (min-width: 768px) {
    .footer-column a:hover {
        padding-left: 8px;
    }
}

/* Footer Contact */
.footer-contact {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-contact {
        text-align: left;
    }
}

.footer-contact h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

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

.footer-contact a:hover {
    color: white;
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom-content p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-legal {
        justify-content: flex-end;
    }
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    position: relative;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-legal a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Styles */
.nav-menu.active {
    display: flex;
    position: fixed;
    top: 60px;
    right: 20px;
    left: 20px;
    flex-direction: column;
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
    z-index: 999;
    max-width: calc(100vw - 40px);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Mobile-specific fixes to prevent horizontal overflow and gaps */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    /* Fix API preview overflow */
    .api-preview {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .api-preview pre {
        margin: 0;
        border-radius: 8px;
        font-size: 12px;
        padding: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Fix section paddings */
    section {
        padding: var(--space-xl) 0;
        overflow-x: hidden;
    }

    /* Fix grid layouts */
    .problem-grid,
    .api-features,
    .tech-grid,
    .pricing-tiers,
    .team-grid,
    .examples-grid,
    .format-showcase,
    .market-stats,
    .metrics-grid {
        gap: 1rem;
        width: 100%;
    }

    /* Fix cards and items */
    .problem-stat,
    .api-card,
    .tech-card,
    .tier-card,
    .team-member,
    .example,
    .format-item,
    .market-stat,
    .metric,
    .input-item,
    .output-item,
    .raise-details {
        width: 100%;
        box-sizing: border-box;
    }

    /* Fix hero content */
    .hero-content {
        width: 100%;
        padding: 0;
    }

    .hero-title {
        font-size: 2rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Fix solution diagram */
    .solution-diagram {
        gap: 2rem;
    }

    .process-box {
        padding: 1.5rem;
    }

    /* Fix investor section */
    .investor-content > p {
        padding: 0 1rem;
    }

    /* Fix usage pricing */
    .usage-pricing {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    /* Fix descriptions */
    .products-description,
    .community-content {
        padding: 0 1rem;
    }

    /* Ensure all text content wraps properly */
    p, h1, h2, h3, h4, h5, h6, li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Fix navbar */
    .navbar .container {
        padding: 1rem;
    }

    /* Fix footer */
    .footer {
        padding: 3rem 0 0;
    }
    
    .footer-content {
        padding: 0 1.5rem;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        padding: 1.25rem 0;
    }
    
    .footer-bottom-content {
        padding: 0 1rem;
    }
    
    .footer-social {
        margin-bottom: 0.5rem;
    }
}