:root {
    --bg-base: #010604; /* Deep, dark forest green/black */
    --bg-surface: rgba(4, 20, 15, 0.7);
    --accent-primary: #00ffcc; /* Bioluminescent teal */
    --accent-secondary: #00a8ff; /* Deep blue */
    --accent-glow: rgba(0, 255, 204, 0.2);
    --text-primary: #e2f1ec;
    --text-secondary: #8fa8a0;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 255, 204, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 168, 255, 0.05), transparent 25%);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Canvas Background */
#swarm-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.9; /* Restored vividness */
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(1, 6, 4, 0.95); /* Nearly solid to protect text */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 45px;
    height: 45px;
    filter: hue-rotate(150deg); /* Adjusts the original SVG to match the new teal theme */
}

.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.logo-text .highlight {
    color: var(--accent-primary);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Hero Section */
.hero {
    padding: 3rem 5% 6rem 5%; /* Significantly reduced top padding from 8rem */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    background: rgba(1, 6, 4, 0.85); /* Solid protective background */
    padding: 2rem 3rem; /* Tighter padding to save vertical space */
    border-radius: 32px;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 255, 204, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.hero-logo {
    display: block;
    margin: 0 auto 1rem auto; /* Tighter margin */
    width: 130px; /* Scaled down further to save space */
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 204, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.15);
    cursor: pointer;
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Organic, bouncy transition */
}

.hero-logo.expanded {
    width: 300px;
    height: 300px;
    box-shadow: 0 0 60px rgba(0, 255, 204, 0.6);
    border-color: rgba(0, 255, 204, 0.8);
}

.badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    background: rgba(0, 255, 204, 0.05);
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem; /* Tighter margin */
    box-shadow: 0 0 20px var(--accent-glow);
}

h1 {
    font-size: 3.2rem; /* Significantly reduced to keep things above the fold */
    line-height: 1.15;
    margin-bottom: 1rem; /* Tighter margin */
    font-weight: 800;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 255, 204, 0.3);
}

.hero p {
    font-size: 1.1rem; /* Slightly smaller text */
    color: var(--text-secondary);
    margin-bottom: 2rem; /* Tighter margin above buttons */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

button, .primary-btn, .secondary-btn {
    font-family: inherit;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none; /* For anchor tags */
    display: inline-block; /* For anchor tags */
}

.primary-btn {
    padding: 1rem 2.5rem;
    background: var(--accent-primary);
    color: #000;
    border: none;
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.4);
}

.primary-btn:hover {
    box-shadow: 0 0 45px rgba(0, 255, 204, 0.7);
    transform: translateY(-2px);
    background: #fff;
    color: #000;
}

.secondary-btn {
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
}

/* Tiers Section */
.tiers-section {
    padding: 4rem 5% 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    background: rgba(1, 6, 4, 0.8);
    padding: 2rem;
    border-radius: 16px;
    display: inline-block;
    width: 100%;
    backdrop-filter: blur(10px);
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--accent-primary);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.tier-card {
    background: rgba(4, 20, 15, 0.95); /* Increased opacity */
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.tier-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 204, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 204, 0.2);
}

/* Complexity Panel */
.complexity-panel {
    margin-top: 5rem;
    padding: 3.5rem;
    background: rgba(1, 6, 4, 0.95); /* Opaque background for total text safety */
    border-radius: 24px;
    border: 1px solid rgba(0, 255, 204, 0.15);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    text-align: center;
}

.complexity-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
}

.complexity-content .highlight-text {
    font-size: 1.4rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
}

.complexity-content .privacy-panel {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px dashed rgba(0, 255, 204, 0.3);
}

.complexity-content .privacy-panel p {
    font-size: 1.15rem;
    color: #e2f1ec; /* High contrast text */
    font-weight: 500;
    margin-bottom: 0;
}

.image-placeholder {
    width: 100%;
    height: 250px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(0, 255, 204, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.tier-card:hover .image-placeholder img {
    transform: scale(1.05);
}

.placeholder-text {
    color: rgba(0, 255, 204, 0.5);
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border: 1px dashed rgba(0, 255, 204, 0.3);
    padding: 1rem 2rem;
    border-radius: 8px;
}

.card-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tier-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tier-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.specs {
    display: inline-block;
    background: rgba(0, 255, 204, 0.1);
    color: var(--accent-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.tier-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 7rem 5%;
    background: linear-gradient(to top, rgba(0, 255, 204, 0.05), transparent);
    border-top: 1px solid rgba(0, 255, 204, 0.1);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.pulse {
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 204, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(0, 255, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 204, 0); }
}

footer {
    text-align: center;
    padding: 2.5rem;
    color: rgba(143, 168, 160, 0.5);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #010403;
}

@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    .hero { padding: 6rem 5% 4rem 5%; }
    .hero-actions { flex-direction: column; }
    .nav-links { display: none; }
}