/* ===== SOPHISTICATED RESILIENCE DESIGN ===== */

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

:root {
    /* Sophisticated color palette */
    --deep-navy: #1a2332;
    --slate-blue: #2d3e50;
    --soft-gold: #c9a961;
    --warm-ivory: #f8f6f0;
    --pearl-white: #ffffff;
    --charcoal: #2c3e50;
    --muted-silver: #95a5a6;
    --accent-copper: #b8956d;
    --soft-shadow: rgba(26, 35, 50, 0.1);
    --medium-shadow: rgba(26, 35, 50, 0.15);
    --deep-shadow: rgba(26, 35, 50, 0.25);
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions */
    --smooth-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --slow-transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce-transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--charcoal);
    background: var(--warm-ivory);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== NAVIGATION ===== */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(248, 246, 240, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--smooth-transition);
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}

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

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

.logo-symbol {
    position: relative;
    width: 40px;
    height: 40px;
}

.neural-network {
    position: relative;
    width: 100%;
    height: 100%;
}

.neural-network .node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--soft-gold);
    border-radius: 50%;
    animation: pulse-node 3s ease-in-out infinite;
}

.neural-network .node:nth-child(1) { top: 5px; left: 16px; animation-delay: 0s; }
.neural-network .node:nth-child(2) { bottom: 5px; left: 5px; animation-delay: 1s; }
.neural-network .node:nth-child(3) { bottom: 5px; right: 5px; animation-delay: 2s; }

.neural-network .connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, var(--soft-gold), transparent);
    animation: pulse-connection 3s ease-in-out infinite;
}

.neural-network .connection:nth-child(4) {
    top: 20px;
    left: 10px;
    width: 20px;
    transform: rotate(-45deg);
    animation-delay: 0.5s;
}

.neural-network .connection:nth-child(5) {
    bottom: 15px;
    left: 12px;
    width: 15px;
    animation-delay: 1.5s;
}

@keyframes pulse-node {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}

@keyframes pulse-connection {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--deep-navy);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--slate-blue);
    font-weight: 400;
    font-size: 1rem;
    position: relative;
    transition: var(--smooth-transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--soft-gold);
    transition: var(--smooth-transition);
    transform: translateX(-50%);
}

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

.nav-link:hover::after {
    width: 100%;
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--deep-navy);
    transition: var(--smooth-transition);
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--warm-ivory) 0%, #f5f3eb 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.neural-canvas {
    width: 100%;
    height: 100%;
}

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

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--deep-navy);
    margin-bottom: 2rem;
}

.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    animation: reveal-word 0.8s ease-out forwards;
}

.hero-title .word:nth-child(1) { animation-delay: 0.2s; }
.hero-title .word:nth-child(2) { 
    animation-delay: 0.4s; 
    background: linear-gradient(135deg, var(--soft-gold), var(--accent-copper));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title .word:nth-child(3) { animation-delay: 0.6s; }
.hero-title .word:nth-child(4) { 
    animation-delay: 0.8s;
    background: linear-gradient(135deg, var(--soft-gold), var(--accent-copper));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes reveal-word {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-container {
    opacity: 0;
    animation: fade-in-up 1s ease-out 1.2s forwards;
}

.typed-text {
    font-size: 1.3rem;
    color: var(--slate-blue);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fade-in-up 1s ease-out 1.6s forwards;
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--smooth-transition);
    overflow: hidden;
    letter-spacing: 0.5px;
}

.cta-button.primary {
    background: var(--deep-navy);
    color: var(--pearl-white);
}

.cta-button.secondary {
    background: transparent;
    color: var(--deep-navy);
    border: 2px solid var(--deep-navy);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--medium-shadow);
}

.cta-button.primary:hover {
    background: var(--slate-blue);
}

.cta-button.secondary:hover {
    background: var(--deep-navy);
    color: var(--pearl-white);
}

.button-ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    transform: scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== RESILIENCE TREE VISUALIZATION ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fade-in-up 1.2s ease-out 2s forwards;
}

.resilience-tree {
    position: relative;
    width: 300px;
    height: 400px;
}

.tree-trunk {
    position: absolute;
    bottom: 80px;
    left: 50%;
    width: 8px;
    height: 120px;
    background: var(--accent-copper);
    transform: translateX(-50%);
    border-radius: 4px;
    animation: grow-trunk 2s ease-out 2.5s forwards;
    transform-origin: bottom;
    scale: 1 0;
}

@keyframes grow-trunk {
    to { scale: 1 1; }
}

.tree-branch {
    position: absolute;
    background: var(--accent-copper);
    border-radius: 3px;
    animation: grow-branch 1.5s ease-out forwards;
    transform-origin: left;
    scale: 0 1;
}

.branch-1 {
    bottom: 160px;
    left: 50%;
    width: 40px;
    height: 4px;
    transform: translateX(-50%) rotate(-30deg);
    animation-delay: 3s;
}

.branch-2 {
    bottom: 140px;
    left: 50%;
    width: 50px;
    height: 4px;
    transform: translateX(-50%) rotate(25deg);
    animation-delay: 3.2s;
}

.branch-3 {
    bottom: 120px;
    left: 50%;
    width: 35px;
    height: 3px;
    transform: translateX(-50%) rotate(-45deg);
    animation-delay: 3.4s;
}

.branch-4 {
    bottom: 100px;
    left: 50%;
    width: 45px;
    height: 3px;
    transform: translateX(-50%) rotate(40deg);
    animation-delay: 3.6s;
}

@keyframes grow-branch {
    to { scale: 1 1; }
}

.tree-leaves .leaf {
    position: absolute;
    width: 12px;
    height: 8px;
    background: var(--soft-gold);
    border-radius: 50% 0;
    opacity: 0;
    animation: bloom-leaf 0.8s ease-out forwards, gentle-sway 4s ease-in-out infinite;
}

.leaf-1 { top: 60px; left: 120px; animation-delay: 4s, 4.5s; }
.leaf-2 { top: 80px; right: 100px; animation-delay: 4.1s, 4.8s; }
.leaf-3 { top: 100px; left: 110px; animation-delay: 4.2s, 5.1s; }
.leaf-4 { top: 120px; right: 110px; animation-delay: 4.3s, 5.4s; }
.leaf-5 { top: 90px; left: 130px; animation-delay: 4.4s, 5.7s; }
.leaf-6 { top: 110px; right: 120px; animation-delay: 4.5s, 6s; }

@keyframes bloom-leaf {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gentle-sway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    75% { transform: rotate(-2deg); }
}

.tree-roots .root {
    position: absolute;
    background: var(--accent-copper);
    border-radius: 2px;
    opacity: 0.7;
    animation: grow-root 1.8s ease-out forwards;
    transform-origin: top;
    scale: 1 0;
}

.root-1 {
    bottom: 0;
    left: 45%;
    width: 3px;
    height: 80px;
    transform: translateX(-50%) rotate(-15deg);
    animation-delay: 2.8s;
}

.root-2 {
    bottom: 0;
    left: 55%;
    width: 4px;
    height: 60px;
    transform: translateX(-50%) rotate(10deg);
    animation-delay: 3.1s;
}

.root-3 {
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 70px;
    transform: translateX(-50%);
    animation-delay: 3.3s;
}

@keyframes grow-root {
    to { scale: 1 1; }
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fade-in 1s ease-out 4s forwards;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--slate-blue);
    border-radius: 20px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--soft-gold);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.scroll-indicator span {
    font-size: 0.9rem;
    color: var(--slate-blue);
    letter-spacing: 0.5px;
}

@keyframes fade-in {
    to { opacity: 1; }
}

/* ===== PHILOSOPHY SECTION ===== */
.philosophy-section {
    padding: 6rem 0;
    background: var(--pearl-white);
}

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

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--deep-navy);
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 3px;
    background: var(--soft-gold);
    transform: translateX(-50%);
}

.philosophy-quote blockquote {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--slate-blue);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}

.philosophy-quote blockquote::before,
.philosophy-quote blockquote::after {
    content: '"';
    font-size: 3rem;
    color: var(--soft-gold);
    position: absolute;
    font-family: var(--font-serif);
}

.philosophy-quote blockquote::before {
    top: -10px;
    left: 0;
}

.philosophy-quote blockquote::after {
    bottom: -30px;
    right: 0;
}

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

.philosophy-card {
    background: var(--warm-ivory);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--smooth-transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 97, 0.2);
}

.philosophy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.1), transparent);
    transition: var(--slow-transition);
}

.philosophy-card:hover::before {
    left: 100%;
}

.philosophy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--soft-shadow);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}

/* Adaptive Shape Animation */
.adaptive-shape {
    width: 100%;
    height: 100%;
    background: var(--soft-gold);
    border-radius: 50%;
    animation: morph-shape 6s ease-in-out infinite;
}

@keyframes morph-shape {
    0%, 100% { border-radius: 50%; }
    25% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 20px; }
    75% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* Growth Spiral Animation */
.growth-spiral {
    width: 100%;
    height: 100%;
    position: relative;
}

.growth-spiral::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--soft-gold);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spiral-grow 3s linear infinite;
}

.growth-spiral::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-copper);
    border-right: 2px solid transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spiral-grow 2s linear infinite reverse;
}

@keyframes spiral-grow {
    0% { transform: rotate(0deg) scale(0.8); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(0.8); }
}

/* Connection Web Animation */
.connection-web {
    width: 100%;
    height: 100%;
    position: relative;
}

.connection-web::before,
.connection-web::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--soft-gold);
    border-radius: 50%;
    animation: web-pulse 2s ease-in-out infinite;
}

.connection-web::before {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.connection-web::after {
    bottom: 20%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes web-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.5); opacity: 1; }
}

/* Meaning Compass Animation */
.meaning-compass {
    width: 100%;
    height: 100%;
    position: relative;
    border: 3px solid var(--soft-gold);
    border-radius: 50%;
}

.meaning-compass::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 2px;
    background: var(--accent-copper);
    transform: translate(-50%, -50%);
    animation: compass-rotate 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes compass-rotate {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -50%) rotate(90deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
    75% { transform: translate(-50%, -50%) rotate(270deg); }
}

.philosophy-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--deep-navy);
    margin-bottom: 1rem;
}

.philosophy-card p {
    color: var(--slate-blue);
    line-height: 1.7;
    font-size: 1rem;
}

/* ===== INSIGHTS SECTION ===== */
.insights-section {
    padding: 6rem 0;
    background: var(--warm-ivory);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--slate-blue);
    max-width: 600px;
    margin: 0 auto;
}

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

.insight-card {
    background: var(--pearl-white);
    border-radius: 25px;
    overflow: hidden;
    transition: var(--smooth-transition);
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.15);
}

.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(44, 62, 80, 0.15);
}

.insight-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--slate-blue) 100%);
    color: var(--pearl-white);
}

.card-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-visual {
    width: 60px;
    height: 60px;
    position: relative;
}

/* Brain Network Animation */
.brain-network {
    width: 100%;
    height: 100%;
    position: relative;
}

.brain-network::before,
.brain-network::after {
    content: '';
    position: absolute;
    background: var(--soft-gold);
    border-radius: 50%;
    animation: brain-pulse 3s ease-in-out infinite;
}

.brain-network::before {
    width: 20px;
    height: 20px;
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.brain-network::after {
    width: 15px;
    height: 15px;
    bottom: 0;
    right: 0;
    animation-delay: 1s;
}

@keyframes brain-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* Book Pages Animation */
.book-pages {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--soft-gold);
    border-radius: 8px;
}

.book-pages::before,
.book-pages::after {
    content: '';
    position: absolute;
    background: var(--pearl-white);
    border-radius: 4px;
    animation: page-turn 4s ease-in-out infinite;
}

.book-pages::before {
    width: 80%;
    height: 3px;
    top: 30%;
    left: 10%;
    animation-delay: 0s;
}

.book-pages::after {
    width: 60%;
    height: 3px;
    top: 50%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes page-turn {
    0%, 100% { opacity: 0.8; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(0.9); }
}

/* Meditation Ripple Animation */
.meditation-ripple {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--soft-gold);
    border-radius: 50%;
    animation: meditation-breathe 4s ease-in-out infinite;
}

.meditation-ripple::before,
.meditation-ripple::after {
    content: '';
    position: absolute;
    border: 2px solid var(--soft-gold);
    border-radius: 50%;
    opacity: 0;
    animation: ripple-expand 3s ease-out infinite;
}

.meditation-ripple::before {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.meditation-ripple::after {
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    animation-delay: 1.5s;
}

@keyframes meditation-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes ripple-expand {
    0% { opacity: 0.7; transform: scale(0.8); }
    100% { opacity: 0; transform: scale(1.2); }
}

/* Question Bloom Animation */
.question-bloom {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--soft-gold);
    border-radius: 50%;
}

.question-bloom::before {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    color: var(--pearl-white);
    font-weight: bold;
    animation: question-pulse 2s ease-in-out infinite;
}

@keyframes question-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Nutrition Flow Animation */
.nutrition-flow {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(45deg, var(--soft-gold), var(--accent-copper));
    border-radius: 15px;
    overflow: hidden;
}

.nutrition-flow::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: flow-wave 3s ease-in-out infinite;
    transform: translateX(-100%);
}

@keyframes flow-wave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}

.category {
    background: rgba(201, 169, 97, 0.2);
    color: var(--deep-navy);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.insight-card.featured .category {
    background: rgba(255, 255, 255, 0.2);
    color: var(--pearl-white);
}

.read-time {
    color: var(--muted-silver);
    font-size: 0.9rem;
}

.insight-card.featured .read-time {
    color: rgba(255, 255, 255, 0.8);
}

.card-content {
    padding: 0 2rem 1rem;
}

.card-content h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--deep-navy);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.insight-card.featured .card-content h3 {
    color: var(--pearl-white);
}

.card-content p {
    color: var(--slate-blue);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.insight-card.featured .card-content p {
    color: rgba(255, 255, 255, 0.9);
}

.key-insights {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.insight-tag {
    background: rgba(201, 169, 97, 0.1);
    color: var(--soft-gold);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(201, 169, 97, 0.3);
}

.card-footer {
    padding: 0 2rem 2rem;
}

.read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--soft-gold);
    text-decoration: none;
    font-weight: 500;
    transition: var(--smooth-transition);
}

.read-link:hover {
    color: var(--accent-copper);
    transform: translateX(5px);
}

.link-arrow {
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: var(--smooth-transition);
}

.link-arrow::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

/* ===== CONNECT SECTION ===== */
.connect-section {
    padding: 6rem 0;
    background: var(--deep-navy);
    color: var(--pearl-white);
}

.connect-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.connect-text h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--pearl-white);
}

.connect-text > p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.connection-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.connection-form h3 {
    color: var(--pearl-white);
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.connection-form > p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: var(--pearl-white);
    font-size: 1rem;
    transition: var(--smooth-transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--soft-gold);
    background: rgba(255, 255, 255, 0.15);
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    transition: var(--smooth-transition);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -8px;
    left: 0.8rem;
    font-size: 0.85rem;
    background: var(--deep-navy);
    padding: 0 0.5rem;
    color: var(--soft-gold);
}

.submit-button {
    position: relative;
    background: var(--soft-gold);
    color: var(--deep-navy);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--smooth-transition);
    overflow: hidden;
}

.submit-button:hover {
    background: var(--accent-copper);
    transform: translateY(-2px);
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border: 3px solid rgba(201, 169, 97, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

/* Community Network Animation */
.connect-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.community-network {
    width: 300px;
    height: 300px;
    position: relative;
}

.network-nodes .node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--soft-gold);
    border-radius: 50%;
    animation: node-pulse 3s ease-in-out infinite;
}

.network-nodes .node.active {
    background: var(--pearl-white);
    animation: active-pulse 2s ease-in-out infinite;
}

.network-nodes .node:nth-child(1) { top: 20%; left: 50%; animation-delay: 0s; }
.network-nodes .node:nth-child(2) { top: 40%; left: 20%; animation-delay: 0.5s; }
.network-nodes .node:nth-child(3) { top: 40%; right: 20%; animation-delay: 1s; }
.network-nodes .node:nth-child(4) { bottom: 40%; left: 30%; animation-delay: 1.5s; }
.network-nodes .node:nth-child(5) { bottom: 40%; right: 30%; animation-delay: 2s; }
.network-nodes .node:nth-child(6) { bottom: 20%; left: 50%; animation-delay: 2.5s; }

@keyframes node-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}

@keyframes active-pulse {
    0%, 100% { transform: scale(1.2); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.8; }
}

.network-connections .connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, var(--soft-gold), transparent, var(--soft-gold));
    animation: connection-flow 4s ease-in-out infinite;
}

.network-connections .connection:nth-child(1) {
    top: 25%;
    left: 40%;
    width: 20%;
    transform: rotate(-30deg);
    animation-delay: 0s;
}

.network-connections .connection:nth-child(2) {
    top: 45%;
    left: 25%;
    width: 25%;
    transform: rotate(0deg);
    animation-delay: 1s;
}

.network-connections .connection:nth-child(3) {
    bottom: 45%;
    left: 35%;
    width: 30%;
    transform: rotate(20deg);
    animation-delay: 2s;
}

.network-connections .connection:nth-child(4) {
    top: 40%;
    right: 25%;
    width: 25%;
    transform: rotate(60deg);
    animation-delay: 1.5s;
}

.network-connections .connection:nth-child(5) {
    bottom: 30%;
    left: 45%;
    width: 15%;
    transform: rotate(90deg);
    animation-delay: 2.5s;
}

@keyframes connection-flow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--charcoal);
    color: var(--pearl-white);
    padding: 3rem 0 1rem;
}

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

.footer-brand {
    display: flex;
    gap: 1.5rem;
}

.brand-text h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--pearl-white);
}

.brand-text p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.link-group h5 {
    color: var(--pearl-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.link-group ul {
    list-style: none;
}

.link-group ul li {
    margin-bottom: 0.5rem;
}

.link-group ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--smooth-transition);
}

.link-group ul li a:hover {
    color: var(--soft-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--smooth-transition);
}

.social-link:hover {
    background: var(--soft-gold);
    color: var(--deep-navy);
    transform: translateY(-2px);
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(248, 246, 240, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem 0;
        transition: var(--smooth-transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .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);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 4rem 1rem 2rem;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .resilience-tree {
        width: 250px;
        height: 300px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .philosophy-card {
        padding: 2rem 1.5rem;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .insight-card.featured {
        grid-column: span 1;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .card-meta {
        text-align: center;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .connect-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .connection-form {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .typed-text {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .philosophy-card,
    .insight-card {
        padding: 1.5rem;
    }
    
    .card-visual {
        width: 50px;
        height: 50px;
    }
    
    .connection-form {
        padding: 1.5rem;
    }
    
    .resilience-tree {
        width: 200px;
        height: 250px;
    }
    
    .community-network {
        width: 250px;
        height: 250px;
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .neural-canvas {
        display: none;
    }
    
    .floating-elements {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --deep-navy: #000000;
        --slate-blue: #333333;
        --soft-gold: #ffff00;
        --warm-ivory: #ffffff;
        --pearl-white: #ffffff;
    }
}

/* Focus styles for keyboard navigation */
.keyboard-navigation *:focus {
    outline: 3px solid var(--soft-gold);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    .main-nav,
    .scroll-indicator,
    .neural-canvas,
    .floating-elements,
    .cta-button,
    .submit-button {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .philosophy-section,
    .insights-section,
    .connect-section {
        padding: 2rem 0;
    }
    
    .philosophy-grid,
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .philosophy-card,
    .insight-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ===== UTILITY CLASSES ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* ===== ANIMATION KEYFRAMES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* ===== LOADING STATES ===== */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(201, 169, 97, 0.2), 
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --deep-navy: #0f1419;
        --slate-blue: #1e2936;
        --charcoal: #151b23;
        --warm-ivory: #0f1419;
        --pearl-white: #1e2936;
        --text-primary: #e8e6e0;
        --text-secondary: #b8b4ab;
        --text-muted: #8a8580;
        --border-light: #2a3441;
    }
    
    .main-nav {
        background: rgba(15, 20, 25, 0.95);
        border-bottom-color: rgba(201, 169, 97, 0.3);
    }
    
    .hero {
        background: linear-gradient(135deg, #0f1419 0%, #151b23 100%);
    }
    
    .philosophy-section {
        background: #1e2936;
    }
    
    .insights-section {
        background: #0f1419;
    }
    
    .philosophy-card,
    .insight-card {
        background: #1e2936;
        border-color: rgba(201, 169, 97, 0.2);
    }
    
    .insight-card:not(.featured) {
        background: #151b23;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

.hardware-accelerated {
    transform: translate3d(0, 0, 0);
}

/* Preload critical animations */
.preload-animations * {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
}

/* Remove preload class after load */
.loaded .preload-animations * {
    animation-duration: initial !important;
    transition-duration: initial !important;
}