@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0f766e;
    --primary-hover: #115e59;
    --primary-light: #f0fdfa;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
}
/* Trigger upload comment */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
    box-shadow: 0 4px 6px rgba(15, 118, 110, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(15, 118, 110, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary) !important;
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

/* Legacy landing markup still uses cta-button anchors */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    background: var(--primary);
    color: #fff !important;
    border: 2px solid var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.22);
}

.cta-button:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
}

.hero .cta-button {
    margin-top: 0.5rem;
}

/* Hero Section - Enhanced Animation */
.hero {
    position: relative;
    text-align: center;
    padding: 9rem 0 7rem 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background: #0f172a; /* Deep dark background */
}

/* Animated Grid Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    transform: perspective(500px) rotateX(45deg) scale(2);
    transform-origin: top center;
    animation: gridMove 20s linear infinite;
    z-index: 0;
    opacity: 0.4;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(45deg) scale(2) translateY(0); }
    100% { transform: perspective(500px) rotateX(45deg) scale(2) translateY(50px); }
}

/* Vibrant Glowing Orbs */
.hero-animated-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: floatComplex 15s infinite cubic-bezier(0.4, 0, 0.2, 1) alternate;
}

.hero-shape-1 {
    width: 600px; height: 600px;
    background: #0ea5e9; /* Bright Blue */
    top: -20%; left: -10%;
    opacity: 0.4;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 700px; height: 700px;
    background: #10b981; /* Emerald Green */
    bottom: -30%; right: -10%;
    opacity: 0.3;
    animation-delay: -5s;
}

.hero-shape-3 {
    width: 500px; height: 500px;
    background: #8b5cf6; /* Vibrant Purple */
    top: 20%; left: 40%;
    opacity: 0.35;
    animation-delay: -10s;
}

@keyframes floatComplex {
    0% { transform: translate(0px, 0px) scale(1) rotate(0deg); }
    33% { transform: translate(40px, -50px) scale(1.1) rotate(10deg); }
    66% { transform: translate(-30px, 40px) scale(0.9) rotate(-5deg); }
    100% { transform: translate(20px, -20px) scale(1.05) rotate(5deg); }
}

.hero .container {
    position: relative;
    z-index: 2; /* Sit above animations */
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 auto 1.5rem;
    color: #ffffff;
    max-width: 900px;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: #ffffff !important;
}

.hero .btn-outline:hover {
    border-color: #ffffff;
    background-color: rgba(255,255,255,0.1);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

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

.feature-card {
    background-color: var(--bg-main);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Internal Pages - Header */
.page-header {
    background-color: var(--text-main);
    color: #ffffff;
    padding: 6rem 2rem;
    text-align: center;
    background-image: radial-gradient(circle at top right, #1e293b, transparent 50%);
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.page-header p {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    padding: 6rem 0;
    background-color: var(--bg-main);
}

.feature-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.feature-detail {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 900px) {
    .feature-detail {
        flex-direction: row;
        align-items: center;
    }
    .feature-detail:nth-child(even) {
        flex-direction: row-reverse;
    }
    .feature-detail-text, .feature-detail-image {
        flex: 1;
    }
}

.feature-detail-text h3 {
    font-size: 2.25rem;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.feature-detail-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.feature-detail-image {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.25rem;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 40px rgba(15, 118, 110, 0.15);
    transform: scale(1.05);
    position: relative;
    z-index: 10;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #ffffff;
    padding: 0.3rem 1.2rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pricing-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.pricing-card .price span {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin: 0 0 2.5rem 0;
    padding: 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: "✓";
    color: #10b981;
    margin-right: 0.75rem;
    font-weight: bold;
    font-size: 1.25rem;
}

.pricing-card .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Footer */
.main-footer {
    background-color: var(--text-main);
    color: #94a3b8;
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid #1e293b;
    font-size: 0.95rem;
}

.main-footer p {
    color: #cbd5e1;
}

/* Lobby / Loading Page */
.lobby-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--bg-main);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-bottom: 2rem;
}

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

.lobby-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.lobby-text {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container { flex-direction: column; height: auto; padding: 1rem 0; gap: 1rem; }
    .main-nav { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .hero h1 { font-size: 2.75rem; }
    .hero p { font-size: 1.125rem; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-8px); }
    .page-header h1 { font-size: 2.5rem; }
}
