/* ============================================
   PROJECT X — LANDING PAGE STYLES
   ============================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f1019;
    --bg-card: #13141f;
    --bg-card-hover: #1a1b2e;
    --text-primary: #e8e9f0;
    --text-secondary: #8b8da3;
    --text-muted: #5a5c72;
    --accent-primary: #6366f1;
    --accent-secondary: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-green: #34d399;
    --accent-green-glow: rgba(52, 211, 153, 0.15);
    --accent-amber: #fbbf24;
    --accent-red: #f87171;
    --border-color: rgba(99, 102, 241, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-primary);
}

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

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    font-size: 24px;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.nav-cta {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--accent-secondary);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-1px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--accent-secondary);
    background: var(--accent-glow);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-green), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: 0 0 40px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: var(--accent-glow);
}

.hero-proof {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.proof-icon {
    font-size: 16px;
}

.proof-divider {
    width: 1px;
    height: 20px;
    background: var(--border-subtle);
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section {
    padding: 100px 0;
    position: relative;
}

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

.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.7;
    margin-bottom: 60px;
}

/* ============================================
   STATS / PROBLEM
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-secondary);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.stat-source a {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.stat-source a:hover {
    color: var(--accent-secondary);
}

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

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 36px;
    transition: all 0.3s;
}

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

.problem-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.problem-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   THE ENGINE
   ============================================ */

.section-engine {
    background: var(--bg-primary);
    overflow: hidden;
}

.engine-visual {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.engine-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.engine-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.engine-core {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.engine-core-inner {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-primary), var(--bg-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 60px var(--accent-glow), 0 0 120px rgba(99, 102, 241, 0.08);
}

.engine-core-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    color: white;
}

.engine-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: engine-pulse 4s ease-in-out infinite;
}

.engine-ring-1 {
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}

.engine-ring-2 {
    width: 280px;
    height: 280px;
    animation-delay: 1.3s;
}

.engine-ring-3 {
    width: 360px;
    height: 360px;
    animation-delay: 2.6s;
}

@keyframes engine-pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.05); }
}

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

.engine-feature {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 36px;
    transition: all 0.3s;
}

.engine-feature:hover {
    border-color: var(--border-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.feature-number {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
    background: var(--accent-glow);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.engine-feature h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.engine-feature p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-green);
    background: var(--accent-green-glow);
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

/* ============================================
   BENCHMARKS
   ============================================ */

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

.benchmark-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 36px;
    text-align: center;
    transition: all 0.3s;
}

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

.benchmark-visual {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.benchmark-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.benchmark-ring-bg {
    fill: none;
    stroke: var(--border-subtle);
    stroke-width: 6;
}

.benchmark-ring-fill {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: calc(2 * 3.14159 * 52);
    stroke-dashoffset: calc(2 * 3.14159 * 52 * (1 - var(--percent) / 100));
    transition: stroke-dashoffset 1.5s ease-out;
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.benchmark-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-secondary);
}

.benchmark-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.benchmark-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.benchmark-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
}

.note-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.benchmark-note p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   SECURITY
   ============================================ */

.section-security {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.security-layers {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-layer {
    display: flex;
    gap: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 36px;
    transition: all 0.3s;
    align-items: flex-start;
}

.security-layer:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.06);
}

.layer-depth {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 2px;
    white-space: nowrap;
    min-width: 80px;
    padding-top: 4px;
}

.layer-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.layer-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.layer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.layer-tags span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-green);
    background: var(--accent-green-glow);
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

/* ============================================
   SECTORS
   ============================================ */

.sectors-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.sector-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 36px;
    transition: all 0.3s;
}

.sector-card:hover {
    border-color: var(--border-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.sector-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.sector-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.sector-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.sector-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.sector-stat-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-secondary);
}

.sector-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.sector-source a {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.sector-source a:hover {
    color: var(--accent-secondary);
}

.network-effect-callout {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(52, 211, 153, 0.05));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
}

.callout-icon {
    font-size: 48px;
    color: var(--accent-primary);
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.network-effect-callout h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.network-effect-callout p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 700px;
}

.process-step {
    display: flex;
    gap: 24px;
    position: relative;
    padding-bottom: 48px;
}

.process-step:last-child {
    padding-bottom: 0;
}

.process-step:last-child .step-connector {
    display: none;
}

.step-connector {
    position: absolute;
    left: 22px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--border-subtle));
}

.step-number {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 16px;
    color: var(--accent-secondary);
    flex-shrink: 0;
    z-index: 1;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    padding-top: 10px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   REGISTER INTEREST
   ============================================ */

.section-register {
    background: var(--bg-secondary);
}

.register-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.register-content .section-title {
    font-size: 2.5rem;
}

.register-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.register-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.register-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.register-benefits li::before {
    content: '◈';
    color: var(--accent-green);
    font-size: 14px;
    flex-shrink: 0;
}

.register-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color 0.3s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b8da3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-privacy {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-green-glow);
    border: 2px solid var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent-green);
    margin: 0 auto 20px;
}

.form-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 48px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand .logo-mark,
.footer-brand .logo-text {
    display: inline;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-info p {
    font-size: 13px;
    color: var(--text-muted);
    text-align: right;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .register-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .layer-depth {
        min-width: auto;
    }

    .hero-proof {
        flex-direction: column;
        gap: 12px;
    }

    .proof-divider {
        display: none;
    }

    .footer-info p {
        text-align: left;
    }

    .engine-visual {
        height: 300px;
    }

    .engine-ring-3 {
        width: 280px;
        height: 280px;
    }

    .engine-ring-2 {
        width: 220px;
        height: 220px;
    }

    .sectors-showcase {
        grid-template-columns: 1fr;
    }

    .engine-features {
        grid-template-columns: 1fr;
    }

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

    .register-content .section-title {
        font-size: 2rem;
    }

    .register-form-wrapper {
        padding: 28px;
    }

    .network-effect-callout {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 70px 0;
    }

    .hero {
        padding: 100px 20px 60px;
    }

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