/* Future Money Lab - Ghost Theme Styles */

:root {
    --primary-green: #87A96B;
    --secondary-rose: #D4A574;
    --accent-mint: #A8E6CF;
    --neutral-gray: #F5F5F3;
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--neutral-gray);
    overflow-x: hidden;
}

/* Site Wrapper */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    color: var(--text-medium);
    font-size: 1.125rem;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Navigation */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.site-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    position: relative;
    gap: 0.4rem;
}

.logo-text {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-beaker {
    width: 18px;
    height: 34px;
    position: relative;
    margin-right: -2px;
    transform: rotate(-10deg);
    transition: transform 0.3s ease;
}

.logo:hover .logo-beaker {
    transform: rotate(-15deg) translateY(-2px);
}

.beaker-shape {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-mint) 100%);
    clip-path: polygon(45% 0%, 55% 0%, 55% 22%, 59% 34%, 65% 48%, 73% 62%, 81% 76%, 89% 90%, 93% 97%, 91% 100%, 9% 100%, 7% 97%, 11% 90%, 19% 76%, 27% 62%, 35% 48%, 41% 34%, 45% 22%);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.beaker-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.9) 0%, rgba(212, 165, 116, 0.7) 100%);
    clip-path: polygon(27% 62%, 73% 62%, 91% 100%, 9% 100%);
    animation: bubble 3s ease-in-out infinite;
    box-shadow: inset 0 0 5px rgba(168, 230, 207, 0.3);
}

.beaker-bubble {
    position: absolute;
    width: 3px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    bottom: 20%;
    left: 50%;
    animation: rise 3s ease-in-out infinite;
}

.beaker-bubble-small {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    bottom: 22%;
    left: 40%;
    animation: rise 3.5s ease-in-out infinite;
    animation-delay: 1s;
}

.beaker-rim {
    position: absolute;
    top: -1px;
    left: 44%;
    right: 44%;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-mint) 100%);
    border-radius: 1px;
}

@keyframes rise {
    0% { transform: translateY(0) translateX(-50%); opacity: 0.8; }
    100% { transform: translateY(-10px) translateX(-50%); opacity: 0; }
}

@keyframes bubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 7rem 2rem 5rem;
    background: linear-gradient(135deg, rgba(135, 169, 107, 0.05) 0%, rgba(168, 230, 207, 0.08) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(135, 169, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(168, 230, 207, 0.1) 0%, transparent 50%);
    animation: float 20s infinite ease-in-out;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(135, 169, 107, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(135, 169, 107, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, transparent 20%, black 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, transparent 20%, black 70%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.5;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(135, 169, 107, 0.1) 0%, rgba(168, 230, 207, 0.1) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.feature-text {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.3;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-visualization {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.chart-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--primary-green) 0deg 120deg,
        var(--accent-mint) 120deg 200deg,
        var(--secondary-rose) 200deg 280deg,
        rgba(135, 169, 107, 0.2) 280deg
    );
    animation: rotate 20s linear infinite;
    filter: blur(20px);
    opacity: 0.3;
}

.chart-center {
    position: absolute;
    inset: 40px;
    background: var(--neutral-gray);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.chart-label {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-top: 0.5rem;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    animation: floatCard 15s infinite ease-in-out;
}

.floating-card-1 {
    top: 10%;
    left: -60px;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 20%;
    right: -40px;
    animation-delay: 5s;
}

.floating-card-3 {
    top: 50%;
    left: -20px;
    animation-delay: 10s;
}

.floating-cards-mobile {
    display: contents;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    33% { transform: translateY(-20px) translateX(10px) rotate(2deg); }
    66% { transform: translateY(10px) translateX(-5px) rotate(-1deg); }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-mint) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    font-size: 1.1rem;
}

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

/* Experiments Dashboard */
.experiments-section {
    padding: 5rem 2rem;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

.experiments-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.experiment-card {
    background: var(--neutral-gray);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experiment-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--accent-mint) 100%);
}

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

.experiment-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(135, 169, 107, 0.1);
    color: var(--primary-green);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.experiment-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.experiment-card h3 a {
    color: inherit;
    text-decoration: none;
}

.experiment-card h3 a:hover {
    color: var(--primary-green);
}

.experiment-card p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.progress-bar {
    background: rgba(0,0,0,0.05);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--accent-mint) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-label {
    font-size: 0.875rem;
    color: var(--text-medium);
}

/* Latest Discoveries */
.discoveries-section {
    padding: 5rem 2rem;
    background: var(--neutral-gray);
}

.discoveries-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.discovery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

.card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-rose) 0%, var(--accent-mint) 100%);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.card-image::after {
    content: "📊";
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 3rem;
    opacity: 0.3;
}

.card-content {
    padding: 1.5rem;
}

.card-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(212, 165, 116, 0.1);
    color: var(--secondary-rose);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-content h4 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.card-content h4 a {
    color: inherit;
    text-decoration: none;
}

.card-content h4 a:hover {
    color: var(--primary-green);
}

.card-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Process Section */
.process-section {
    padding: 5rem 2rem;
    background: white;
}

.process-steps {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.process-step {
    text-align: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(135, 169, 107, 0.1) 0%, rgba(168, 230, 207, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    transform: rotate(5deg) scale(1.1);
}

.process-step h4 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.process-step p {
    font-size: 0.95rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(135, 169, 107, 0.05) 0%, rgba(212, 165, 116, 0.05) 100%);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-text h2 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.newsletter-text p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

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

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(135, 169, 107, 0.1);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-mint) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

/* Footer */
.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.footer-column a:hover {
    color: var(--accent-mint);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.copyright {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* Ghost Editor Content Styles */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    max-width: calc(100% + 240px);
    margin: 2rem calc(50% - 50vw);
    transform: translateX(calc(50vw - 50%));
}

.kg-width-full {
    position: relative;
    width: 100vw;
    margin: 2rem calc(50% - 50vw);
    transform: translateX(calc(50vw - 50%));
}

.kg-card-hascaption {
    display: grid;
    grid-template-columns: inherit;
}

.kg-bookmark-card,
.kg-bookmark-publisher,
.kg-bookmark-container,
.kg-bookmark-content,
.kg-bookmark-title,
.kg-bookmark-description,
.kg-bookmark-metadata,
.kg-bookmark-icon,
.kg-bookmark-author,
.kg-bookmark-thumbnail {
    font-family: inherit;
}

/* Ghost Content Cards */
.kg-card {
    margin: 2rem 0;
}

.kg-bookmark-card {
    width: 100%;
    position: relative;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.kg-bookmark-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
    box-shadow: none;
}

.kg-bookmark-content {
    flex: 1;
    padding: 1.5rem;
}

.kg-bookmark-title {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.kg-bookmark-description {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-medium);
    max-height: 3em;
    overflow: hidden;
}

.kg-bookmark-metadata {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.kg-bookmark-icon {
    width: 22px;
    height: 22px;
    margin-right: 0.5rem;
}

.kg-bookmark-author {
    line-height: 1.5;
}

.kg-bookmark-publisher::before {
    content: "•";
    margin: 0 0.5rem;
}

.kg-bookmark-thumbnail {
    position: relative;
    min-width: 33%;
}

.kg-bookmark-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ghost Gallery Cards */
.kg-gallery-card {
    margin: 3rem 0;
}

.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kg-gallery-row {
    display: flex;
    gap: 1rem;
}

.kg-gallery-image {
    flex: 1;
    cursor: zoom-in;
}

.kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Ghost Image Cards */
.kg-image-card {
    margin: 2rem 0;
}

.kg-image-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.kg-image-card figcaption {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Ghost Embed Cards */
.kg-embed-card {
    margin: 2rem 0;
}

.kg-embed-card > * {
    position: relative;
    padding-top: 56.25%;
}

.kg-embed-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Ghost Code Cards */
.kg-code-card {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.kg-code-card pre {
    margin: 0;
    background: var(--text-dark);
    color: white;
    padding: 1.5rem;
    overflow-x: auto;
}

.kg-code-card figcaption {
    background: rgba(0,0,0,0.05);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-medium);
}

/* Tables */
.post-content table,
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.post-content th,
.post-content td,
.page-content th,
.page-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.post-content th,
.page-content th {
    background: var(--neutral-gray);
    font-weight: 600;
    color: var(--text-dark);
}

.post-content tr:hover,
.page-content tr:hover {
    background: rgba(135, 169, 107, 0.05);
}

/* Blockquotes */
.post-content blockquote,
.page-content blockquote {
    border-left: 4px solid var(--primary-green);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-medium);
}

/* Lists */
.post-content ul,
.post-content ol,
.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li,
.page-content li {
    margin-bottom: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .kg-bookmark-container {
        flex-direction: column;
    }
    
    .kg-bookmark-thumbnail {
        min-width: 100%;
        height: 200px;
    }
    
    .kg-gallery-row {
        flex-direction: column;
    }
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 4rem 1.5rem 3rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }
    
    .hero-visual {
        height: auto;
        order: -1;
        padding-bottom: 2rem;
    }
    
    .chart-container {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .floating-card {
        position: static;
        animation: none;
        margin-top: 2rem;
    }
    
    .data-visualization {
        flex-direction: column;
    }
    
    .floating-cards-mobile {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        width: 100%;
        max-width: 400px;
        margin: 2rem auto 0;
    }
    
    .experiments-grid,
    .discoveries-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .kg-width-wide {
        width: 100%;
        max-width: 100%;
        margin: 2rem 0;
        transform: none;
    }
    
    .kg-width-full {
        width: 100%;
        margin: 2rem 0;
        transform: none;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .floating-cards-mobile {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .floating-card {
        padding: 0.75rem 1rem;
    }
    
    .floating-card > div:first-child {
        font-size: 0.7rem !important;
    }
    
    .floating-card > div:last-child {
        font-size: 0.9rem !important;
    }
}

/* Offset fixed header so content isn't hidden */
.page-content {
    padding-top: 5rem; /* matches header height */
}
.page-header + .page-content {
    padding-top: 0;
}

/* Ensure hero header sits below fixed nav */
.page-header {
    margin-top: 5rem; /* matches .site-header height */
}


/* Offset hero title below fixed nav */
.page-header-content {
    padding-top: 6rem; /* ensure title not hidden */
}


/* Styling for hero headers **without** a feature image */
.page-header:not(.with-image) {
    background: var(--neutral-gray);
    padding: 4rem 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-header:not(.with-image) .page-header-content {
    padding-top: 0; /* override previous offset */
}



/* Constrain page text width and add side padding */
.page-content {
    max-width: 720px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* -------------------------------------------------
   Readability tweaks for static pages
   ------------------------------------------------- */
.page-content p,
.page-content ul,
.page-content ol,
.page-content blockquote,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    margin-bottom: 1.25rem;
}

.page-content ul,
.page-content ol {
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}
