/* ==========================================================================
   CSS Variables & Base Reset
   ========================================================================== */

:root {
    --bg-background: #020617; /* Slate 950 */
    --bg-surface: #0f172a; /* Slate 900 */
    --bg-surface-alt: rgba(15, 23, 42, 0.5);
    
    --text-main: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
    --text-dim: #64748b; /* Slate 500 */
    
    --primary-indigo: #4f46e5;
    --primary-indigo-hover: #4338ca;
    --primary-violet: #7c3aed;
    
    --border-color: rgba(30, 41, 59, 0.5); /* Slate 800 / 50% */
    --border-light: rgba(51, 65, 85, 0.5); /* Slate 700 / 50% */
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-background);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */

h1, h2, h3, h4 {
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, var(--primary-indigo), var(--primary-violet));
}

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-indigo); }
.hover-text-light:hover { color: #cbd5e1; transition: color 0.2s; }
.mt-2 { margin-top: 0.5rem; }
.mr-1 { margin-right: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }

.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-sm { height: 2.25rem; padding: 0 0.75rem; font-size: 0.875rem; }
.btn-lg { height: 2.75rem; padding: 0 2rem; font-size: 0.875rem; }

.btn-primary {
    background: linear-gradient(to right, var(--primary-indigo), var(--primary-violet));
    color: white;
}
.btn-primary:hover {
    background: linear-gradient(to right, #4338ca, #6d28d9);
}

.btn-outline {
    background: var(--bg-background);
    border: 1px solid var(--border-light);
    color: var(--text-main);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-white {
    background: white;
    color: #4338ca; /* indigo 700 */
}
.btn-white:hover {
    background: #e0e7ff; /* indigo 100 */
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-primary { background: var(--primary-violet); color: white; }
.badge-secondary { background: #475569; color: #f1f5f9; } /* slate 600 */
.badge-gradient { background: linear-gradient(to right, #9333ea, #7c3aed); color: white; } /* purple to violet */

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 6rem;
}

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

.logo-link {
    display: flex;
    align-items: center;
    height: 3rem;
}

.logo {
    height: 48px; /* 3rem */
    width: auto;
}

/* ==========================================================================
   Sections Base
   ========================================================================== */

.section {
    padding: 5rem 0;
}
.bg-alt { background-color: var(--bg-surface-alt); }
.bg-alt-dark { background-color: rgba(15, 23, 42, 0.3); }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}
.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .section-header h2 { font-size: 3rem; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    min-height: calc(100vh - 6rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #020617, #0f172a);
    padding-top: 3rem;
    padding-bottom: 5rem;
    margin-top: -4rem; /* pull up */
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top -1px;
}

.hero-content {
    text-align: center;
    max-width: 1024px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .hero-title { font-size: 3.5rem; } }
@media (min-width: 768px) { .hero-title { font-size: 4rem; } }

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 42rem;
    margin: 0 auto 2rem auto;
    display: none;
}
@media (min-width: 768px) { .hero-subtitle { display: block; } }

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}
@media (min-width: 640px) { .hero-cta { flex-direction: row; } }

.hero-disclaimer {
    font-size: 0.875rem;
    color: var(--text-dim);
    font-style: italic;
    margin-top: 1rem;
}

.bounce-arrow {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25%); }
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    max-width: 1152px;
    margin: 0 auto;
}
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.feature-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.feature-card .badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.feature-icon-wrapper {
    display: inline-flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: rgba(67, 56, 202, 0.3); /* indigo 900/30 */
    color: #818cf8; /* indigo 400 */
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
}
.feature-list svg {
    margin-right: 0.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.workflow-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1024px;
    margin: 0 auto;
}

.workflow-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    width: 100%;
    scrollbar-width: none; /* Firefox */
}
.workflow-tabs::-webkit-scrollbar { display: none; }

.workflow-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background-color: rgba(15, 23, 42, 0.5); /* slate 900/50 */
    border: 1px solid var(--border-color);
    flex: 1;
    min-width: max-content;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.workflow-tab .tab-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #1e293b; /* slate 800 */
    color: #cbd5e1; /* slate 300 */
    transition: all 0.2s ease;
}
.workflow-tab .tab-label {
    font-weight: 500;
    color: #cbd5e1;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.workflow-tab:hover {
    background-color: rgba(49, 46, 129, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
}

.workflow-tab.active {
    background-color: rgba(67, 56, 202, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.workflow-tab.active .tab-number {
    background-color: #4f46e5; /* indigo 600 */
    color: white;
}
.workflow-tab.active .tab-label {
    color: white;
}

.workflow-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.workflow-info { margin-bottom: 1.5rem; }
.workflow-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.workflow-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--primary-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
}
.workflow-title-wrap h3 { font-size: 1.5rem; }
.workflow-info p { color: #cbd5e1; }

.workflow-video { margin-top: 20px;
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-light);
    aspect-ratio: 16 / 9;
    background-color: #000;
}
.workflow-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workflow-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.ctrl-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    background: transparent;
    border: none;
    cursor: pointer;
}
.workflow-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #334155;
    transition: all 0.3s ease;
    cursor: pointer;
}
.dot:hover { background-color: #475569; }
.dot.active {
    width: 1.5rem;
    background-color: var(--primary-indigo);
}

/* ==========================================================================
   Team Section
   ========================================================================== */

.team-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    max-width: 1024px;
    margin: 0 auto;
}
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.team-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}
.team-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.team-card .absolute-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.member-img-wrap {
    width: 6rem;
    height: 6rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.member-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
.member-role {
    color: #818cf8; /* indigo-400 */
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}
.member-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.member-link {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #818cf8;
    transition: color 0.2s ease;
}
.member-link:hover { color: #a5b4fc; }

.team-footer {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.team-footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    background: linear-gradient(to bottom right, #4f46e5, #6d28d9); /* indigo 600 to violet 700 */
    color: white;
    padding: 5rem 0;
}

.cta-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}
.cta-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}
@media (min-width: 768px) { .cta-content h2 { font-size: 3rem; } }

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.form-wrapper {
    max-width: 28rem;
    margin: 0 auto;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}
@media (min-width: 640px) {
    .waitlist-form { flex-direction: row; gap: 0.75rem; }
}

.input-group {
    flex: 1;
}

.waitlist-form input {
    width: 100%;
    height: 3rem;
    padding: 0 1rem;
    border-radius: 0.5rem;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
}
.waitlist-form input:focus {
    background-color: white;
    box-shadow: 0 0 0 2px var(--primary-indigo);
}

.waitlist-form button {
    height: 3rem;
    padding: 0 1.25rem;
    border: none;
    font-weight: 600;
    flex-shrink: 0;
}

.form-disclaimer {
    font-size: 0.875rem !important;
    color: #c7d2fe !important; /* indigo 200 */
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background-color: #020617; /* Slate 950 */
    color: #cbd5e1;
    padding: 3rem 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.875rem;
    color: var(--text-dim);
}
