/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-deep-black: #0a0b1a;
    --color-dark-navy: #0d1b2a;
    --color-dark-indigo: #12133a;
    --color-deep-violet: #1a1440;
    --color-mid-violet: #3d2d8a;
    --color-soft-violet: #5b4fa0;
    --color-lavender: #b8a9e8;
    --color-muted: #9a94a8;
    --color-teal: #2dd4a8;
    --color-pink: #e056a0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--color-deep-black);
    color: var(--color-lavender);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Hero Section */
.section-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-deep-black);
    overflow: hidden;
}

.blob-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    opacity: 0.4;
}

.blob-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 15%;
    fill: var(--color-mid-violet);
    animation: blobPulse1 8s ease-in-out infinite;
}

.blob-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: 10%;
    fill: var(--color-teal);
    opacity: 0.3;
    animation: blobPulse2 10s ease-in-out infinite;
}

.blob-3 {
    width: 250px;
    height: 250px;
    bottom: 15%;
    left: 40%;
    fill: var(--color-pink);
    opacity: 0.25;
    animation: blobPulse3 7s ease-in-out infinite;
}

@keyframes blobPulse1 {
    0%, 100% { transform: scale(0.95) rotate(0deg); }
    50% { transform: scale(1.05) rotate(3deg); }
}

@keyframes blobPulse2 {
    0%, 100% { transform: scale(1.05) rotate(0deg); }
    50% { transform: scale(0.95) rotate(-2deg); }
}

@keyframes blobPulse3 {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.08) rotate(4deg); }
}

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

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: var(--color-lavender);
}

.hero-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: letterReveal 0.6s forwards;
}

.hero-title span:nth-child(1) { animation-delay: 0.1s; }
.hero-title span:nth-child(2) { animation-delay: 0.2s; }
.hero-title span:nth-child(3) { animation-delay: 0.3s; }
.hero-title span:nth-child(4) { animation-delay: 0.4s; }
.hero-title span:nth-child(5) { animation-delay: 0.5s; }
.hero-title span:nth-child(6) { animation-delay: 0.6s; color: var(--color-teal); }
.hero-title span:nth-child(7) { animation-delay: 0.7s; color: var(--color-teal); }

@keyframes letterReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    color: var(--color-muted);
    margin-top: 1.5rem;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeIn 1s 1.2s forwards;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--color-teal);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* Diagonal Dividers */
.diagonal-divider {
    width: 100%;
    height: 80px;
    position: relative;
    overflow: hidden;
}

.diagonal-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--color-mid-violet), var(--color-teal));
    opacity: 0.3;
    transform: skewY(-3deg);
}

.diagonal-1::before { transform: skewY(-3deg); }
.diagonal-2::before { transform: skewY(3deg); }
.diagonal-3::before { transform: skewY(-3deg); }
.diagonal-4::before { transform: skewY(3deg); }

/* Sections Common */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--color-lavender);
}

.mono-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8em;
    color: var(--color-teal);
    margin-right: 0.5em;
}

/* Convergence Section */
.section-convergence {
    background: var(--color-dark-indigo);
}

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

.convergence-card {
    position: relative;
    background: rgba(61, 45, 138, 0.2);
    border: 1px solid rgba(184, 169, 232, 0.1);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}

.convergence-card:hover {
    border-color: var(--color-teal);
    transform: translateY(-4px);
}

.convergence-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--color-lavender);
    margin-bottom: 1rem;
}

.convergence-card p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.7;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--color-teal), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.convergence-card:hover .card-glow {
    opacity: 0.05;
}

/* Resolution Section */
.section-resolution {
    background: var(--color-dark-navy);
}

.resolution-display {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(184, 169, 232, 0.1);
}

.metric-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.metric-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-teal);
}

.metric-text {
    color: var(--color-pink);
}

/* Signal Section */
.section-signal {
    background: var(--color-deep-black);
}

.signal-visualization {
    width: 100%;
    height: 300px;
    border: 1px solid rgba(184, 169, 232, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

#signal-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.signal-description {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--color-muted);
    text-align: center;
}

/* Footer */
.section-footer {
    background: var(--color-deep-black);
    border-top: 1px solid rgba(184, 169, 232, 0.05);
}

.section-footer .section-inner {
    padding: 4rem 2rem;
    text-align: center;
}

.footer-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--color-teal);
    margin-bottom: 0.5rem;
}

.footer-domain {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: var(--color-muted);
}
