/* ============================================
   Process X — Continuous by Design
   Futuristic Engineering Theme
   ============================================ */

:root {
    /* Core palette — dark futuristic, cyan + amber accents */
    --bg-deep: #06060a;
    --bg-primary: #0b0b12;
    --bg-elevated: #12121c;
    --bg-card: #161622;
    
    --text-primary: #f0f2f5;
    --text-secondary: #a0a8b8;
    --text-muted: #6b7385;
    
    --accent-cyan: #00e5ff;
    --accent-cyan-dim: rgba(0, 229, 255, 0.15);
    --accent-amber: #ff9f1c;
    --accent-amber-dim: rgba(255, 159, 28, 0.12);
    
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(0, 229, 255, 0.25);
    
    --radius: 12px;
    --radius-lg: 20px;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    
    --nav-height: 72px;
}

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

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

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

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Navigation ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(6, 6, 10, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: baseline;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

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

.logo-hyphen {
    color: var(--text-primary);
    background: linear-gradient(90deg, #f0f2f5 0%, #00e5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.logo-x {
    color: var(--accent-cyan);
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.btn-nav {
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan) !important;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
}

.btn-nav:hover {
    background: rgba(0, 229, 255, 0.25) !important;
}

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

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
}

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin-left: max(24px, calc((100% - 1120px) / 2 + 24px)); /* exact same left edge as the nav logo */
    padding-top: 80px;
    padding-bottom: 80px;
    padding-right: 24px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
    border: 1px solid var(--border-strong);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 8px;
}

.x-accent {
    color: var(--accent-cyan);
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.tagline-strong {
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.04em;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Orbit visual — fixed; subtle in dark gaps; hidden behind solid cards/panels */
.hero-visual {
    position: fixed;
    right: max(24px, calc((100% - 1120px) / 2 + 24px));
    top: 50%;
    transform: translateY(-50%);
    width: 414px;
    height: 414px;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
}

.orbit {
    position: relative;
    width: 100%;
    height: 100%;
}

.orbit-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 50%;
    animation: spin 28s linear infinite;
}

.orbit-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 9px;
    height: 9px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 14px var(--accent-cyan);
}

.orbit-ring.delay {
    inset: 38px;
    animation-duration: 18s;
    animation-direction: reverse;
    border-color: rgba(255, 159, 28, 0.25);
}

.orbit-ring.delay::before {
    background: var(--accent-amber);
    box-shadow: 0 0 14px var(--accent-amber);
}

.orbit-ring.magenta {
    inset: 70px;
    animation-duration: 22s;
    border-color: rgba(255, 0, 170, 0.3);
}

.orbit-ring.magenta::before {
    display: none; /* planet element used instead */
}

.orbit-ring.green {
    inset: 105px;
    animation-duration: 15s;
    animation-direction: reverse;
    border-color: rgba(0, 220, 130, 0.3);
}

.orbit-ring.green::before {
    display: none; /* planet element used instead */
}

/* Planet sits on the ring (like the old ::before dots) */
.planet {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: 2;
}

.magenta-planet {
    width: 8px;
    height: 8px;
    background: #ff00aa;
    box-shadow: 0 0 14px #ff00aa;
}

.green-planet {
    width: 7px;
    height: 7px;
    background: #00dc82;
    box-shadow: 0 0 14px #00dc82;
}

/* Moon orbits around each planet (counter-rotate so moons don't spin with parent ring oddly) */
.moon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border-radius: 50%;
    animation: spin 4s linear infinite;
}

.moon-ring-2 {
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    animation-duration: 6.5s;
    animation-direction: reverse;
}

.moon {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
}

.moon.blue {
    background: #00e5ff;
    box-shadow: 0 0 8px #00e5ff;
}

.moon.pink {
    background: #ff6bcb;
    box-shadow: 0 0 8px #ff6bcb;
}

.moon.purple {
    background: #b44aff;
    box-shadow: 0 0 8px #b44aff;
}

.orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(0, 229, 255, 0.05));
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.15);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-cyan);
    color: #061018;
}

.btn-primary:hover {
    background: #33ebff;
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.btn-full {
    width: 100%;
}

/* ========== Sections ========== */
.section {
    position: relative;
    z-index: 2;          /* sits above the fixed orbit */
    padding: 100px 0;
}

.section-header {
    max-width: 640px;
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.algorithm-block {
    max-width: 640px;
    margin-top: 28px;
    margin-bottom: 8px;
    padding: 20px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.algorithm-block p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 12px;
}

.algorithm-block p:last-child {
    margin-bottom: 0;
}

.algorithm-quote {
    color: var(--text-primary) !important;
    font-style: italic;
    margin-top: 16px !important;
    margin-bottom: 6px !important;
}

.algorithm-attr {
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
}

.algorithm-note {
    color: var(--text-primary) !important;
    font-size: 0.98rem !important;
    margin-top: 8px !important;
}

/* ========== Problem ========== */
.problem {
    background: transparent; /* lets subtle orbit show in gaps between cards */
}

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

.problem-card {
    position: relative;
    z-index: 2;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.2s ease;
}

.problem-card:hover {
    border-color: rgba(0, 229, 255, 0.2);
}

.card-icon {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    opacity: 0.8;
}

.problem-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== Solution ========== */
.solution {
    background: transparent;
}

.solution-highlight {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.highlight-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.highlight-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.check-list {
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.975rem;
}

.check-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: 600;
}

.process-loop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.loop-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.95rem;
    min-width: 140px;
    text-align: center;
}

.loop-step.active {
    background: var(--accent-cyan-dim);
    border-color: var(--border-strong);
    color: var(--accent-cyan);
}

.loop-arrow {
    color: var(--text-muted);
    font-size: 1.25rem;
}

/* ========== Process Timeline ========== */
.process {
    background: transparent;
}

.timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-cyan), transparent);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    gap: 28px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-marker {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent-cyan);
    z-index: 1;
}

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

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.975rem;
    line-height: 1.65;
}

/* ========== Services ========== */
.services {
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

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

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.25);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent-cyan);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ========== Focus ========== */
.focus {
    background: transparent;
    text-align: center;
}

.focus-content {
    max-width: 640px;
    margin: 0 auto;
}

.focus-content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

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

.focus-note {
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    font-style: italic;
}

/* ========== Contact ========== */
.contact {
    background: transparent;
    padding-bottom: 120px;
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.contact-content h2 {
    font-size: 1.85rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.contact-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

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

.contact-details strong {
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

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

/* ========== Footer ========== */
.footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
}

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

.footer-brand .logo-text,
.footer-brand .logo-x {
    font-size: 1.25rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.footer-note {
    text-align: right;
}

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

.footer-note .small {
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .hero-visual {
        width: 260px;
        height: 260px;
        top: 50%;
        transform: translateY(-50%);
        right: 12px;
        opacity: 0.85;
    }
    
    .solution-highlight {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }
    
    .contact-box {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(6, 6, 10, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-content {
        margin-left: 24px;
        margin-right: 24px;
        max-width: none;
        padding: 60px 0;
    }
    
    .section {
        padding: 72px 0;
    }
    
    .timeline::before {
        left: 19px;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
