@import url('https://fonts.googleapis.com/css2?family=Hubot+Sans:wght@200;300;400;500;600;700;800;900&display=swap');

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

/* Opal-inspired: refine theme tokens and enable proper root selector */
:root {
    --primary-warm: #C26B5C;
    --primary-cool: #6B9B9C;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gradient: linear-gradient(135deg, var(--primary-warm), var(--primary-cool));
    /* Dark theme */
    --bg: #0f1620;
    --bg-alt: #121826;
    --surface: #1b2335;
    --surface-2: #1f2a3b;
    --text: #E6EAF2;
    --muted: #A6B0C3;
    /* Opal-inspired glass and hairline accents */
    --hairline: rgba(255, 255, 255, 0.08);
    --hairline-strong: rgba(255, 255, 255, 0.14);
    --glass-bg: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

body {
    font-family: 'Hubot Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    overflow-x: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    /* Opal-inspired: improved text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Global link color for readability across all pages */
a,
a:visited {
    color: var(--primary-cool, #6B9B9C);
}

a:hover,
a:focus {
    color: var(--primary-cool, #6B9B9C);
}

/* Header */
/* Opal-inspired: header gets subtle hairline and stronger blur */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    background: rgba(18, 24, 38, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
    border-bottom: 1px solid var(--hairline);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

/* Opal-inspired: nav links become subtle pills instead of underline-only */
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.nav-links a:hover { color: var(--primary-warm); background: rgba(255,255,255,0.06); border-color: var(--hairline); }

/* Replaced underline hover with subtle pill background for modern nav */
.nav-links a::after { display: none; }

/* Hero Section */
/* Opal-inspired: hero gets decorative gradient glows */
.hero {
    margin-top: 80px;
    padding: 80px 40px;
    position: relative;
    z-index: 1;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    inset: -10% -10% auto -10%;
    height: 60%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(60% 60% at 20% 30%, rgba(107,155,156,0.25), transparent 60%),
                radial-gradient(50% 50% at 80% 40%, rgba(194,107,92,0.22), transparent 60%);
    filter: blur(24px);
}

.hero::after {
    inset: auto -10% -15% -10%;
    height: 40%;
    background: radial-gradient(60% 60% at 70% 40%, rgba(107,155,156,0.2), transparent 60%),
                radial-gradient(50% 50% at 30% 60%, rgba(194,107,92,0.18), transparent 60%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    animation: slideInLeft 1s ease;
    position: relative;
    z-index: 1;
}

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

/* Opal-inspired: stronger gradient headline presence */
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

/* Opal-inspired: pill buttons with soft ring hover */
.btn-primary {
    padding: 15px 35px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    box-shadow: 0 6px 16px rgba(194, 107, 92, 0.22);
    border: 1px solid var(--hairline);
}

.btn-primary:hover { box-shadow: 0 0 0 8px rgba(194, 107, 92, 0.08), 0 12px 24px rgba(194, 107, 92, 0.28); transform: translateY(-1px); }

.btn-secondary {
    padding: 15px 35px;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-secondary:hover { background: rgba(255,255,255,0.08); color: var(--text); box-shadow: 0 0 0 8px rgba(255,255,255,0.06); transform: translateY(-1px); }

/* Gamification Stats */
.stats {
    display: flex;
    gap: 30px;
}

/* Opal-inspired: glass cards with hairline borders */
.stat-card {
    padding: 15px;
    background: var(--surface);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
    border: 1px solid var(--hairline);
    backdrop-filter: blur(8px);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.xp { background: var(--gradient); }
.stat-icon.streak { background: var(--gradient); }
.stat-icon.level { background: var(--gradient); }

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 0.9rem;
    color: #999;
}

/* Phone Preview */
.phone-preview {
    position: relative;
    animation: slideInRight 1s ease;
}

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

/* Opal-inspired: subtle glow behind phone */
.phone-mockup {
    position: relative;
    width: 320px;
    height: 640px;
    margin: 0 auto;
    background: #1a1a2e;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    animation: float-phone 6s ease-in-out infinite;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    inset: -8% -12% auto -12%;
    height: 50%;
    background: radial-gradient(60% 60% at 50% 50%, rgba(107,155,156,0.25), transparent 60%);
    filter: blur(26px);
    z-index: -1;
}

@keyframes float-phone {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.screenshot-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.screenshot {
    min-width: 100%;
    height: 100%;
    background: #000;
    display: block;
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Opal-inspired: refined carousel dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--hairline);
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255,255,255,0.25);
}

/* Features Section */
/* Opal-inspired: more generous spacing */
.features {
    padding: 100px 40px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.features-container { max-width: 1400px; margin: 0 auto; }

/* Opal-inspired: gradient section titles */
.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 60px;
}

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

/* Opal-inspired: glass feature cards with hairline and hover lift */
.feature-card {
    padding: 40px;
    background: var(--surface);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--hairline);
    backdrop-filter: blur(8px);
}

/* Subtle gradient top rule */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.35); }

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.feature-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 15px; color: var(--text); }
.feature-card p { color: var(--muted); line-height: 1.6; }

/* Progress Bar Animation */
.progress-showcase {
    margin-top: 30px;
    padding: 20px;
    background: var(--surface-2);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #2a3448;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    animation: progressAnimation 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes progressAnimation { 0% { width: 0%; } 100% { width: 85%; } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Team Section */
/* Opal-inspired: alternating surfaces with hairline separation */
.team {
    padding: 100px 40px;
    background: var(--bg-alt);
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--hairline);
}

.team-container { max-width: 1200px; margin: 0 auto; }

/* Opal-inspired: framed team photo area with inner glow */
.team-photo {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    background: var(--surface);
    padding: 20px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    border: 1px solid var(--hairline);
    backdrop-filter: blur(8px);
    position: relative;
}

.team-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(60% 60% at 50% 40%, rgba(107,155,156,0.14), transparent 60%);
}

.team-photo img { width: 100%; height: auto; display: block; border-radius: 12px; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Opal-inspired: team card glass style */
.team-member {
    text-align: center;
    padding: 30px;
    background: var(--surface);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--hairline);
    backdrop-filter: blur(8px);
}

.team-member:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.member-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: 700;
    overflow: hidden;
}

.member-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.member-name { font-size: 1.25rem; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.member-role { color: var(--primary-cool); font-weight: 500; }

/* Footer */
/* Opal-inspired: footer with hairline top border */
footer {
    padding: 60px 40px 40px;
    background: var(--dark);
    color: white;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--hairline);
}

.footer-container { max-width: 1400px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 40px; }
.footer-brand h3 { font-size: 2rem; font-weight: 800; margin-bottom: 20px; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-brand p { color: #999; line-height: 1.6; margin-bottom: 30px; }
.download-btn { display: inline-flex; align-items: center; gap: 15px; padding: 15px 30px; background: var(--gradient); color: white; text-decoration: none; border-radius: 999px; font-weight: 600; transition: box-shadow 0.25s ease, transform 0.2s ease; box-shadow: 0 6px 16px rgba(194, 107, 92, 0.22); border: 1px solid var(--hairline); }
.download-btn:hover { box-shadow: 0 0 0 8px rgba(194, 107, 92, 0.08), 0 12px 24px rgba(194, 107, 92, 0.28); transform: translateY(-1px); }
.footer-links h4 { font-size: 1.2rem; margin-bottom: 20px; color: var(--primary-warm); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--primary-cool); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary-cool); }
.footer-bottom { padding-top: 30px; border-top: 1px solid #333; text-align: center; color: var(--muted); }

/* Mobile Menu Toggle */
.menu-toggle { display: none; flex-direction: column; gap: 4px; cursor: pointer; }
.menu-toggle span { width: 25px; height: 3px; background: var(--text); border-radius: 3px; transition: all 0.3s; }

/* Legal pages */
/* Opal-inspired: legal pages with glass card and hairline */
.legal-container { max-width: 900px; margin: 120px auto 80px; padding: 0 24px; }
.legal-container h1 { font-size: 2.4rem; margin-bottom: 12px; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.legal-container .meta { color: var(--muted); margin-bottom: 30px; font-size: 0.95rem; }
.legal-card { background: var(--surface); border-radius: 16px; padding: 28px; box-shadow: 0 10px 24px rgba(0,0,0,0.25); border: 1px solid var(--hairline); backdrop-filter: blur(8px); }
.legal-card h2 { font-size: 1.15rem; letter-spacing: 0.2px; margin: 22px 0 10px; color: var(--text); }
.legal-card p, .legal-card li { color: var(--muted); line-height: 1.8; }
.legal-card ul { padding-left: 20px; }

/* Ripple animation used by JS */
@keyframes ripple {
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Mobile nav active dropdown */
.nav-links.active {
    display: flex;
    position: fixed;
    top: 70px;
    right: 20px;
    flex-direction: column;
    background: var(--surface);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links { display: none; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .phone-preview { margin-top: 40px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .stats { flex-direction: column; }
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .features-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
}


