/* sim-ai.xyz - Pastoral Romantic AI */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Font: Inter (Frutiger-clean) */

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

:root {
    --deep-base: #1a1a2e;
    --primary-blue: #4a90d9;
    --warm-white: #f5f0e8;
    --accent-gold: #e8b84b;
    --muted-gray: #6c757d;
    --glass-bg: rgba(26, 26, 46, 0.6);
    --glass-border: rgba(232, 184, 75, 0.15);
    --glass-blur: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a2e;
    color: #f5f0e8;
    overflow-x: hidden;
    line-height: 1.6;
}

#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ===== NAVIGATION ===== */
#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.4s ease, padding 0.4s ease;
}

#mainNav.scrolled {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(232, 184, 75, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #f5f0e8;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-star {
    animation: starSpin 12s linear infinite;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #f5f0e8;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
    color: #e8b84b;
}

.nav-cta {
    background: rgba(232, 184, 75, 0.15);
    border: 1px solid rgba(232, 184, 75, 0.3);
    padding: 8px 20px !important;
    border-radius: 8px;
    color: #e8b84b !important;
    font-weight: 500 !important;
    opacity: 1 !important;
}

.nav-cta:hover {
    background: rgba(232, 184, 75, 0.25) !important;
}

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #f5f0e8;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    text-decoration: none;
    color: #f5f0e8;
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.mobile-menu a:hover {
    opacity: 1;
    color: #e8b84b;
}

/* ===== PULSE ATTENTION ANIMATION ===== */
@keyframes pulseAttention {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 184, 75, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px 4px rgba(232, 184, 75, 0.15); }
}

.pulse-attention {
    animation: pulseAttention 3s ease-in-out infinite;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(74, 144, 217, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(232, 184, 75, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(74, 144, 217, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><circle fill="rgba(245,240,232,0.02)" cx="50" cy="50" r="0.5"/></svg>');
    z-index: 1;
}

.hero-constellation {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.6;
}

.constellation-svg {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
    margin-top: 60px;
}

.hero-glass {
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(232, 184, 75, 0.12);
    border-radius: 24px;
    padding: 60px;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 184, 75, 0.1);
    border: 1px solid rgba(232, 184, 75, 0.2);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 0.8rem;
    color: #e8b84b;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: #f5f0e8;
}

.gold-text {
    color: #e8b84b;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e8b84b, #d4a03a);
    color: #1a1a2e;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 184, 75, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #f5f0e8;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid rgba(245, 240, 232, 0.2);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.btn-secondary:hover {
    border-color: rgba(232, 184, 75, 0.4);
    background: rgba(232, 184, 75, 0.05);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #e8b84b, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

.hero-scroll-indicator span {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

/* ===== GLASSMORPHISM CARDS ===== */
.glass-card {
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(232, 184, 75, 0.1);
    border-radius: 20px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 184, 75, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.glass-card-dark {
    background: rgba(13, 13, 26, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(74, 144, 217, 0.1);
    border-radius: 20px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card-dark:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 144, 217, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ===== FEATURES SECTION ===== */
.features {
    position: relative;
    padding: 120px 0;
    z-index: 1;
}

.section-bg-warm {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(232, 184, 75, 0.05) 0%, transparent 60%);
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e8b84b;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #f5f0e8;
}

.section-desc {
    font-size: 1.05rem;
    color: #6c757d;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 40px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #f5f0e8;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.7;
    font-weight: 300;
}

/* ===== SIMULATIONS SECTION ===== */
.simulations {
    position: relative;
    padding: 120px 0;
    z-index: 1;
}

.simulations-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(74, 144, 217, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(232, 184, 75, 0.05) 0%, transparent 40%);
    z-index: 0;
}

.sim-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sim-card {
    overflow: hidden;
}

.sim-visual {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.sim-gradient {
    position: absolute;
    inset: 0;
}

.sim-gradient-1 {
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.3) 0%, rgba(232, 184, 75, 0.15) 50%, rgba(26, 26, 46, 0.8) 100%);
}

.sim-gradient-2 {
    background: linear-gradient(135deg, rgba(232, 184, 75, 0.25) 0%, rgba(74, 144, 217, 0.2) 50%, rgba(26, 26, 46, 0.8) 100%);
}

.sim-gradient-3 {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.3) 0%, rgba(74, 144, 217, 0.25) 50%, rgba(26, 26, 46, 0.8) 100%);
}

.sim-stars {
    position: absolute;
    inset: 0;
}

.sim-stars svg {
    width: 100%;
    height: 100%;
}

.sim-info {
    padding: 28px;
}

.sim-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e8b84b;
    background: rgba(232, 184, 75, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.sim-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #f5f0e8;
}

.sim-info p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 16px;
    font-weight: 300;
}

.sim-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a90d9;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease, gap 0.3s ease;
}

.sim-link:hover {
    color: #e8b84b;
    gap: 12px;
}

/* ===== ABOUT SECTION ===== */
.about {
    position: relative;
    padding: 120px 0;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-content .section-tag {
    justify-content: flex-start;
}

.about-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: #f5f0e8;
}

.about-content p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 16px;
    font-weight: 300;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e8b84b;
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-glass-panel {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.orbit-system {
    position: relative;
    width: 280px;
    height: 280px;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(74, 144, 217, 0.15);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 { width: 120px; height: 120px; }
.orbit-2 { width: 200px; height: 200px; }
.orbit-3 { width: 270px; height: 270px; }

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
}

.dot-1 {
    background: #4a90d9;
    animation: orbitRotate1 8s linear infinite;
}

.dot-2 {
    background: #e8b84b;
    animation: orbitRotate2 12s linear infinite;
}

.dot-3 {
    background: #6c757d;
    animation: orbitRotate3 16s linear infinite;
}

@keyframes orbitRotate1 {
    from { transform: rotate(0deg) translateX(60px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}

@keyframes orbitRotate2 {
    from { transform: rotate(0deg) translateX(100px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

@keyframes orbitRotate3 {
    from { transform: rotate(0deg) translateX(135px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(135px) rotate(-360deg); }
}

/* ===== CONTACT SECTION ===== */
.contact {
    position: relative;
    padding: 120px 0;
    z-index: 1;
}

.contact-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(74, 144, 217, 0.1) 0%, transparent 60%);
    z-index: 0;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(232, 184, 75, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.contact-glass {
    max-width: 640px;
    margin: 0 auto;
    padding: 56px;
    text-align: center;
}

.contact-glass h2 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.contact-glass > p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 32px;
    font-weight: 300;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(245, 240, 232, 0.1);
    border-radius: 12px;
    color: #f5f0e8;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    transition: border-color 0.3s ease;
    outline: none;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6c757d;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(232, 184, 75, 0.4);
}

.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.form-success {
    padding: 32px;
    text-align: center;
}

.form-success p {
    color: #e8b84b;
    margin-top: 12px;
    font-weight: 400;
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(245, 240, 232, 0.06);
    padding: 64px 0 32px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: #f5f0e8;
}

.footer-brand p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f5f0e8;
    margin-bottom: 4px;
}

.footer-col a {
    text-decoration: none;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #e8b84b;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(245, 240, 232, 0.06);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 300;
}

/* ===== ANIMATIONS ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .section-header h2,
    .about-content h2 {
        font-size: 2.2rem;
    }

    .sim-showcase {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-glass {
        padding: 40px 28px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-glass {
        padding: 36px 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .about-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-glass {
        padding: 32px 20px;
    }

    .section-header h2,
    .about-content h2,
    .contact-glass h2 {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 28px;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}