:root {
    --bg-deep: #0a0b0f;
    --bg-card: rgba(18, 20, 28, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --accent-teal: #14b8a6;
    --accent-teal-glow: rgba(20, 184, 166, 0.3);
    --accent-amber: #f59e0b;
    --accent-amber-glow: rgba(245, 158, 11, 0.3);
    --accent-violet: #8b5cf6;
    --accent-rose: #f43f5e;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Flowing Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.flow-line {
    fill: none;
    stroke-width: 1;
    stroke-linecap: round;
    animation: flowPulse 8s ease-in-out infinite;
}

.flow-line:nth-child(1) { stroke: var(--accent-teal); animation-delay: 0s; }
.flow-line:nth-child(2) { stroke: var(--accent-amber); animation-delay: 2s; opacity: 0.6; }
.flow-line:nth-child(3) { stroke: var(--accent-violet); animation-delay: 4s; opacity: 0.4; }

@keyframes flowPulse {
    0%, 100% { stroke-dashoffset: 0; opacity: 0.3; }
    50% { stroke-dashoffset: 100; opacity: 0.8; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, var(--bg-deep), transparent);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

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

.nav-cta {
    padding: 0.75rem 1.5rem;
    background: var(--accent-teal);
    color: var(--bg-deep);
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-teal-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    width: fit-content;
    animation: fadeInUp 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-teal);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero h1 em {
    font-style: italic;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.btn-primary {
    padding: 1rem 2rem;
    background: var(--accent-teal);
    color: var(--bg-deep);
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--accent-teal-glow);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bg-glass);
    border-color: var(--text-muted);
}

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

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 4rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

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

.stat-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Section Styles */
section {
    padding: 8rem 4rem;
    position: relative;
    z-index: 1;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-teal);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 4rem;
}

/* Platform Section */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    perspective: 2000px;
}

/* Flip Card Container - Click to flip */
.flip-card {
    height: 400px;
    perspective: 2000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

/* Click to flip - handled by JS adding .flipped class */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
}

/* Front of card - Hover Pulse Effect */
.flip-card-front {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.95), rgba(15, 15, 25, 0.98));
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Card hover pulse - whole card breathes */
.flip-card:hover .flip-card-front {
    transform: scale(1.03);
    border-color: var(--accent-teal);
    box-shadow: 
        0 35px 70px -15px rgba(20, 184, 166, 0.25),
        0 0 0 1px rgba(20, 184, 166, 0.3),
        inset 0 0 60px rgba(20, 184, 166, 0.03);
}

/* Animated gradient border on hover */
.flip-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-violet), var(--accent-rose), var(--accent-teal));
    background-size: 300% 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.flip-card:hover .flip-card-front::before {
    opacity: 1;
}

/* Glow ring effect on hover */
.flip-card-front::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.4), rgba(139, 92, 246, 0.2), rgba(244, 63, 94, 0.2));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}

.flip-card:hover .flip-card-front::after {
    opacity: 1;
}

/* Back of card */
.flip-card-back {
    background: linear-gradient(145deg, rgba(15, 25, 30, 0.98), rgba(10, 15, 20, 0.99));
    border: 1px solid var(--accent-teal);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 25px 50px -12px rgba(20, 184, 166, 0.2),
        inset 0 0 80px rgba(20, 184, 166, 0.02);
}

/* Back card header - fixed */
.back-header {
    padding: 1.5rem 1.5rem 0;
    flex-shrink: 0;
}

.flip-card-back h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--accent-teal);
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(20, 184, 166, 0.3);
}

/* Scrollable content area */
.back-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-teal) transparent;
}

/* Modern scrollbar */
.back-content::-webkit-scrollbar {
    width: 6px;
}

.back-content::-webkit-scrollbar-track {
    background: rgba(20, 184, 166, 0.1);
    border-radius: 3px;
}

.back-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-teal), var(--accent-violet));
    border-radius: 3px;
}

.back-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-teal);
}

.flip-card-back p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.flip-card-back ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flip-card-back li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.flip-card-back li:last-child {
    border-bottom: none;
}

.flip-card-back li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-size: 0.9rem;
}

/* Back footer - fixed */
.back-footer {
    padding: 1rem 1.5rem;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(20, 184, 166, 0.15);
}

.back-tag {
    display: inline-block;
    background: rgba(20, 184, 166, 0.15);
    color: var(--accent-teal);
    font-size: 0.7rem;
    font-family: var(--font-mono);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

/* Scroll indicator - pulsing arrow */
.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-content:not(:has(:last-child:not(:focus))):hover + .back-footer .scroll-indicator,
.scroll-indicator.visible {
    opacity: 1;
}

.scroll-arrow {
    animation: scrollPulse 1.5s ease-in-out infinite;
    font-size: 1rem;
}

@keyframes scrollPulse {
    0%, 100% { 
        transform: translateY(0); 
        opacity: 0.5;
    }
    50% { 
        transform: translateY(4px); 
        opacity: 1;
    }
}

/* Close/flip back button */
.flip-back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.flip-back-btn:hover {
    background: rgba(20, 184, 166, 0.1);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

/* Pulsing Icon - only pulses on card hover */
.card-icon {
    width: 110px;
    height: 110px;
    background: linear-gradient(145deg, rgba(20, 184, 166, 0.08), rgba(139, 92, 246, 0.05));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(20, 184, 166, 0.2);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(20, 184, 166, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Icon pulses on card hover */
.flip-card:hover .card-icon {
    transform: scale(1.1);
    border-color: var(--accent-teal);
    box-shadow: 
        0 15px 50px rgba(20, 184, 166, 0.3),
        0 0 30px rgba(20, 184, 166, 0.2);
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.4s ease;
}

.flip-card:hover .card-icon img {
    transform: scale(1.05);
}

.flip-card-front h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff, #ddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
}

.flip-card:hover .flip-card-front h3 {
    background: linear-gradient(135deg, var(--accent-teal), #fff);
    -webkit-background-clip: text;
}

.flip-card-front p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.flip-hint {
    position: absolute;
    bottom: 1.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flip-hint-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.flip-card:hover .flip-hint {
    opacity: 1;
    color: var(--accent-teal);
}

.flip-card:hover .flip-hint-icon {
    animation: tapPulse 1s ease infinite;
}

@keyframes tapPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Dr-Bot Section */
.drbot-section {
    background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(20, 184, 166, 0.05) 50%, var(--bg-deep) 100%);
}

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

.drbot-visual {
    position: relative;
}

.drbot-image {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.drbot-badge {
    position: absolute;
    bottom: -20px;
    right: 40px;
    background: var(--accent-amber);
    color: var(--bg-deep);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px var(--accent-amber-glow);
}

/* Personas Section */
.personas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.persona-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.persona-card.sage { --persona-color: var(--accent-teal); }
.persona-card.swift { --persona-color: var(--accent-rose); }
.persona-card.ethos { --persona-color: var(--accent-violet); }

.persona-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 60px var(--persona-color);
}

.persona-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--persona-color);
    padding: 4px;
    background: var(--bg-deep);
}

.persona-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.persona-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.persona-role {
    font-size: 0.85rem;
    color: var(--persona-color);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.persona-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.persona-virtue {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.persona-virtue span {
    color: var(--persona-color);
}

/* Yamas Section */
.yamas-section {
    background: linear-gradient(180deg, var(--bg-deep), rgba(139, 92, 246, 0.05), var(--bg-deep));
}

.yamas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.yama-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
}

.yama-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-violet);
}

.yama-score {
    font-family: var(--font-display);
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.yama-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.yama-meaning {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Architecture Section */
.arch-visual {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.arch-visual img {
    width: 100%;
    border-radius: 12px;
}

.arch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(20, 184, 166, 0.1));
    pointer-events: none;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.metric-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent-teal);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 10rem 4rem;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-teal-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section .section-title {
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.cta-section .section-subtitle {
    max-width: 500px;
    margin: 0 auto 3rem;
}

/* Footer */
footer {
    padding: 4rem;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.turangawaewae {
    font-family: var(--font-mono);
    font-size: 1.25rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    nav { padding: 1.5rem 2rem; }
    .nav-links { display: none; }
    section { padding: 5rem 2rem; }
    .hero { padding: 6rem 2rem 3rem; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 2rem; }
    .platform-grid { grid-template-columns: 1fr; }
    .drbot-grid { grid-template-columns: 1fr; }
    .personas-grid { grid-template-columns: 1fr; }
    .yamas-grid { grid-template-columns: repeat(2, 1fr); }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
    .stats-bar { grid-template-columns: 1fr; }
    .yamas-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
}

/* Scroll Animations */
.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

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

/* Staggered delays for common groups */
.persona-card:nth-child(2) { transition-delay: 0.1s; }
.persona-card:nth-child(3) { transition-delay: 0.2s; }
.feature-icon:nth-child(2) { transition-delay: 0.1s; }
.feature-icon:nth-child(3) { transition-delay: 0.2s; }


/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-card);
    margin: 15% auto; 
    padding: 2rem;
    border: 1px solid var(--border-subtle);
    width: 90%; 
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
    color: var(--text-primary);
    position: relative;
}

.close {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.modal input:focus {
    outline: none;
    border-color: var(--accent-teal);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

