:root {
    --bg-dark: #0F1715;
    --surface-dark: #1A2622;
    /* Surface-Green */
    --primary: #10B981;
    /* Emerald */
    --secondary: #86EFAC;
    /* Mint Muted */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --font-family: 'Outfit', sans-serif;
    --card-bg: #1A2622;
    --progress-bg: #25332E;
}

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

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

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

/* Navbar */
.navbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(15, 23, 21, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo {
    height: 32px;
    width: auto;
}

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

/* Hero */
.hero {
    padding: 60px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background Abstract Glow */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 21, 0) 70%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(16, 185, 129, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.01em;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0ea572 100%);
    color: #ffffff;
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.5);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.6);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 320px;
    height: 650px;
    background: #000;
    border-radius: 44px;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.6);
    padding: 12px;
    border: 3px solid #2a2a2a;
    position: relative;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.screen {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* App Header */
.app-header {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-top: 10px;
    color: var(--text-primary);
}

.app-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.app-body {
    padding: 10px 20px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    border-bottom: 2px solid #25332E;
}

.tab {
    padding-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    cursor: default;
}

.tab.active {
    color: var(--primary);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* Plan Card */
.plan-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.plan-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.3;
}

.plan-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Progress */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
}

.highlight-text {
    color: var(--primary);
}

.dimmer {
    color: var(--text-secondary);
}

.progress-bar-bg {
    height: 6px;
    background-color: var(--progress-bg);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 3px;
}

/* Card Footer (Avatars + Button) */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.avatars {
    display: flex;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
}

.btn-sm {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: default;
}


/* NavBar in App */
.app-nav {
    height: 70px;
    background: var(--surface-dark);
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}


/* Features */
.features {
    padding: 100px 0;
    background: var(--surface-dark);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 700;
}

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

.feature-card {
    background: var(--bg-dark);
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: 16px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--bg-dark);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.footer p {
    color: var(--text-secondary);
}

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

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

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-image {
        margin-top: 0;
    }
}

/* Join Mode */
.cta-buttons.join-mode {
    flex-direction: column;
    align-items: flex-start;
}

.join-action-wrapper {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .cta-buttons.join-mode {
        align-items: center;
    }
}