:root {
    --bg: #0a0a0f;
    --bg-light: #12121a;
    --surface: #1a1a2e;
    --border: #2a2a3e;
    --text: #e4e4ef;
    --text-muted: #8888a0;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --gradient: linear-gradient(135deg, #6c5ce7, #00cec9, #6c5ce7);
    --green: #00b894;
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(108, 92, 231, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 206, 201, 0.12) 0%, transparent 60%);
}

.login-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.login-logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: var(--gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    margin-bottom: 24px;
}

.login-card h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.login-field {
    text-align: left;
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.login-field input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.login-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.login-field input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.login-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.login-button {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: var(--gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

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

.nav-divider {
    color: var(--border);
    font-weight: 200;
}

.nav-subtitle {
    color: var(--text-muted);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-light);
}

.nav-links a.active {
    color: #ffffff;
    font-weight: 600;
}

.nav-links a.active::after {
    transform: scaleX(1);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 206, 201, 0.1) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    background: rgba(108, 92, 231, 0.1);
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-light);
}

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

#training .section-header {
    margin-bottom: 24px;
}

.section-tag {
    display: inline-block;
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.card-problem .card-icon {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
}

.card-solution .card-icon {
    background: rgba(108, 92, 231, 0.15);
    color: var(--accent-light);
}

.card-edge .card-icon {
    background: rgba(0, 184, 148, 0.15);
    color: var(--green);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.goal-banner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 36px 40px;
    text-align: center;
    margin-bottom: 40px;
}

.goal-banner h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.goal-banner p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Media Overview */
.media-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 32px 0 20px;
}

.media-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.media-video video {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: block;
}

.media-caption {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 10px;
}

.media-article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.media-article h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.media-article p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
}

.article-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.article-link:hover {
    color: #ffffff;
}

.gradient-highlight {
    background: var(--gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    font-weight: 700;
}

@media (max-width: 768px) {
    .media-overview {
        grid-template-columns: 1fr;
    }
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.team-avatar-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
}

.team-card h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.team-role {
    display: inline-block;
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.team-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.coming-soon-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(108, 92, 231, 0.15);
    color: var(--accent-light);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.info-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.2s;
}

.info-item:hover {
    transform: translateY(-3px);
}

.info-icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.info-item h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.info-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Setup Steps */
.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.step-content {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.tools-section {
    margin-bottom: 20px;
}

.tools-section h4 {
    font-size: 0.9rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

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

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.15s;
}

.check-item:hover {
    background: rgba(108, 92, 231, 0.08);
}

.check-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.check-item input[type="checkbox"]:checked {
    background: var(--green);
    border-color: var(--green);
}

.check-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check-item input[type="checkbox"]:checked + span {
    text-decoration: line-through;
    color: var(--text-muted);
}

.check-item span {
    color: var(--text);
    font-size: 0.92rem;
}

/* Code Block */
.code-block {
    background: #0d0d14;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 16px 0;
}

.code-header {
    background: var(--surface);
    padding: 10px 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.code-block pre {
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text);
}

.code-block .comment {
    color: #5a5a7a;
}

.step-note {
    color: var(--green);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 12px;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.timeline-item {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.timeline-marker {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timeline-marker span {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
}

.timeline-marker small {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.timeline-content h3 {
    font-size: 1.15rem;
    margin-bottom: 14px;
}

.timeline-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-content li {
    color: var(--text-muted);
    font-size: 0.92rem;
    padding-left: 20px;
    position: relative;
}

.timeline-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* Role Card */
.role-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 700px;
    margin: 0 auto;
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

.role-header h3 {
    font-size: 1.3rem;
}

.role-title {
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 4px;
}

.role-meta span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.role-responsibilities h4 {
    font-size: 0.85rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.role-responsibilities ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.role-responsibilities li {
    color: var(--text-muted);
    font-size: 0.92rem;
    padding-left: 20px;
    position: relative;
}

.role-responsibilities li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

/* Training */
.training-callout {
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 16px 24px;
    text-align: center;
    color: var(--text);
    font-size: 0.92rem;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.training-image-wrap {
    text-align: center;
    margin-bottom: 32px;
}

.training-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.training-cta {
    font-size: 0.95rem;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.photo-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.3s;
}

.photo-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.photo-item.photo-wide {
    grid-column: span 2;
}

.photo-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.photo-item.photo-wide img {
    height: 340px;
}

.photo-item:hover img {
    transform: scale(1.03);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(10, 10, 15, 0.9));
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
    object-fit: contain;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

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

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

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 20px 32px;
        gap: 16px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 60px 0;
    }

    .step {
        flex-direction: column;
        gap: 16px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

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

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .photo-item.photo-wide {
        grid-column: span 1;
    }

    .photo-item img,
    .photo-item.photo-wide img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
