/* Root variables */
:root {
    --primary: #2D3047;
    --secondary: #419D78;
    --accent: #E0A458;
    --text: #2D3047;
    --background: #EDF2F4;
    --card-bg: #FFFFFF;
    --shadow-elevation-low: 
        0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.34),
        0.4px 0.8px 1px -1.2px hsl(var(--shadow-color) / 0.34),
        1px 2px 2.5px -2.5px hsl(var(--shadow-color) / 0.34);
    --shadow-elevation-medium:
        0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.36),
        0.8px 1.6px 2px -0.8px hsl(var(--shadow-color) / 0.36),
        2.1px 4.1px 5.2px -1.7px hsl(var(--shadow-color) / 0.36),
        5px 10px 12.6px -2.5px hsl(var(--shadow-color) / 0.36);
    --gradient-start: #2D3047;
    --gradient-end: #8B5CF6;
    --text-color: #FFFFFF;
}

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

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-color);
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Header */
.main-header {
    background: var(--primary);
    padding: 2rem 0;
    color: white;
}

.logo-container {
    margin-top: 6rem;
    text-align: center;
}

.logo {
    width: clamp(80px, 20vw, 120px);
    height: auto;
}

.logo-container span {
    font-size: 1.5rem;
}

.logo-text {
    margin-top: 1rem;
    font-size: 24px;
    font-weight: 600;
    opacity: 0.9;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0;
    background: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    color: var(--primary);
    opacity: 0.05;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    background: var(--primary);
    padding: 4rem;
    border-radius: 1.5rem;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin: 0;
}

/* Mission Section */
.mission {
    background: var(--primary);
    color: white;
    padding: 4rem 0;
    margin: 4rem 0;
}

.mission h2 {
    margin-bottom: 1.5rem;
}

/* Tool Preview Animation */
.tool-preview {
    margin: 4rem 0;
    padding: 2rem;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.animation-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: 300px;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    overflow: hidden;
    position: relative;
}

/* Tool Sections */
.tool-section {
    padding: 6rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.tool-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-elevation-low);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevation-medium);
}

.tool-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Resonance Section */
.resonance-section {
    padding: 4rem 0;
    background: var(--background);
}

.resonance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.tool-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-elevation-low);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevation-medium);
}

.tool-card h3 {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    color: var(--primary);
}

.tool-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.enhancement-ring {
    position: absolute;
    inset: -4px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(1.1);
    animation: enhance 2s infinite;
}

@keyframes enhance {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Tool features tags */
.tool-features-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-features-tags span {
    background: #f0f1f3;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--primary);
}

/* Waitlist Section */
.waitlist-section {
    background: white;
    padding: 4rem 0;
    text-align: center;
}

.waitlist-form {
    max-width: 500px;
    margin: 2rem auto;
    display: flex;
    gap: 1rem;
}

.waitlist-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: white;
    box-shadow: 
        inset 2px 2px 5px rgba(0,0,0,0.1),
        inset -2px -2px 5px rgba(255,255,255,0.8);
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--secondary);
}

/* Animation Components */
.scene-wrapper {
    height: calc(100% - 3rem);
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene-caption {
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.scene-caption.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 4rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .tool-section {
        padding: 4rem 1rem;
    }
    
    .tool-features,
    .resonance-grid {
        grid-template-columns: 1fr;
    }
    
    .waitlist-form {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .animation-container {
        padding: 1rem;
    }
}

/* Animation utility classes */
.bg-red { background-color: #FEE2E2; }
.bg-yellow { background-color: #FEF3C7; }
.bg-green { background-color: #D1FAE5; }
.bg-blue { background-color: #DBEAFE; }
.bg-purple { background-color: #EDE9FE; }

/* Animation Components */
.flex-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
    max-width: 600px;
}

.flex-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.image-placeholder {
    width: 8rem;
    height: 8rem;
    background: #F3F4F6;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.text-line {
    height: 1rem;
    background: #F3F4F6;
    border-radius: 0.5rem;
    width: 75%;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 600px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

.keyboard-layout {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
    padding: 1rem;
}

.key-cap {
    aspect-ratio: 1;
    background: #F3F4F6;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.splash {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.manifesto {
    text-align: center;
}

h1 {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 3rem;
    line-height: 1.1;
}

.content {
    font-size: 50px;
    max-width: 1000px;
    margin: 0 auto;
    font-weight: 600;
}

.content p {
    margin-bottom: 2rem;
}

.closing {
    font-size: 72px;
    font-weight: 800;
    margin-top: 3rem;
}

/* Update logo colors to white */
.logo circle {
    fill: transparent;
    stroke: #FFFFFF;
}

.logo path {
    stroke: #FFFFFF;
}

/* Ensure sufficient contrast for accessibility */
@media (prefers-contrast: more) {
    :root {
        --gradient-start: #1a1c2e;
        --gradient-end: #6b46c1;
    }
}

/* Reduce motion if preferred */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1, .closing {
        font-size: 48px;
    }
    
    .content {
        font-size: 32px;
    }
}

.divider {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wave-icon {
    width: 120px;
    height: 60px;
    stroke: var(--text-color);
    opacity: 0.6;
}
