/* ============================================
   CLAURIX - AI-Powered Terminal & OS
   Cyber-Futuristic Terminal Noir Theme
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #050508;
    --bg-secondary: #0a0a12;
    --bg-tertiary: #10101a;
    --bg-card: rgba(16, 16, 26, 0.7);

    --accent-cyan: #00f0ff;
    --accent-purple: #7c3aed;
    --accent-green: #10b981;
    --accent-pink: #ec4899;

    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 240, 255, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    --gradient-glow: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1280px;

    /* Effects */
    --glow-cyan: 0 0 30px rgba(0, 240, 255, 0.3);
    --glow-purple: 0 0 30px rgba(124, 58, 237, 0.3);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Selection */
::selection {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -3;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: -2;
    animation: float 20s ease-in-out infinite;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    bottom: 20%;
    left: -150px;
    animation-delay: -7s;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    top: 60%;
    right: -100px;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Particle Canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-base);
}

.nav.scrolled {
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-cyan);
    transition: var(--transition-base);
}

.logo:hover .logo-icon {
    filter: drop-shadow(var(--glow-cyan));
}

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

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 16px;
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.mobile-link:hover {
    color: var(--accent-cyan);
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 240, 255, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--accent-cyan);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 120px 40px 80px;
}

.hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-purple);
    margin-bottom: 24px;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.title-gradient {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-description strong {
    color: var(--accent-cyan);
}

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

.download-alts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.dl-alt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dl-alt:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.05);
    transform: translateY(-1px);
}

.dl-alt svg {
    flex-shrink: 0;
}

.cta-actions + .download-alts {
    justify-content: center;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .download-alts {
        gap: 8px;
    }
    .dl-alt {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    display: grid;
    grid-template:
        "value suffix" auto
        "label label" auto / auto auto;
    justify-content: center;
    column-gap: 4px;
    row-gap: 4px;
}

.stat-value {
    grid-area: value;
    align-self: baseline;
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-suffix {
    grid-area: suffix;
    align-self: baseline;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1;
}

.stat-label {
    grid-area: label;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Terminal Window */
.hero-terminal {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.terminal-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(0, 240, 255, 0.05);
}

.terminal-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f57; }
.btn-minimize { background: #febc2e; }
.btn-maximize { background: #28c840; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-actions {
    display: flex;
    align-items: center;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-green);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.terminal-body {
    padding: 20px;
    min-height: 350px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
}

.terminal-output .line {
    margin-bottom: 8px;
}

.prompt {
    color: var(--accent-cyan);
    margin-right: 8px;
}

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

.line.success {
    color: var(--accent-green);
}

.line.success .icon {
    margin-right: 8px;
}

.ai-response {
    background: rgba(124, 58, 237, 0.1);
    border-left: 3px solid var(--accent-purple);
    padding: 16px;
    margin: 16px 0;
    border-radius: 0 8px 8px 0;
}

.ai-badge {
    display: inline-block;
    background: var(--accent-purple);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.ai-message p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.metrics-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.metric {
    display: grid;
    grid-template-columns: 60px 1fr 50px;
    align-items: center;
    gap: 12px;
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.metric-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1s ease;
}

.metric-value {
    color: var(--text-primary);
    font-size: 0.8rem;
    text-align: right;
}

.recommendation {
    background: rgba(16, 185, 129, 0.1);
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--accent-green) !important;
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-cyan);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Section Styles */
section {
    padding: var(--section-padding) 40px;
    max-width: var(--container-width);
    margin: 0 auto;
    /* So that hash navigation (e.g. /#products from a subpage) lands the section
       title below the fixed 80px nav instead of being hidden underneath it. */
    scroll-margin-top: 90px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    padding: 6px 12px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 4px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.product-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px;
    overflow: hidden;
    transition: var(--transition-base);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 240, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-base);
}

.product-card:hover .card-glow {
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--accent-purple);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-content {
    position: relative;
    z-index: 1;
}

.product-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    color: var(--accent-cyan);
}

.product-term .product-icon {
    color: var(--accent-cyan);
}

.product-os .product-icon {
    color: var(--accent-purple);
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-tagline {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 16px;
}

.product-os .product-tagline {
    color: var(--accent-purple);
}

.product-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-features {
    list-style: none;
    margin-bottom: 32px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.product-features svg {
    width: 20px;
    height: 20px;
    color: var(--accent-green);
    flex-shrink: 0;
}

.card-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    opacity: 0.1;
    pointer-events: none;
}

.floating-code {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-cyan);
    transform: rotate(-10deg);
}

.floating-window {
    width: 100px;
    height: 70px;
    border: 2px solid var(--accent-purple);
    border-radius: 8px;
    transform: rotate(10deg);
}

.mini-header {
    height: 15px;
    background: var(--accent-purple);
    border-radius: 6px 6px 0 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition-base);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--accent-cyan);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* Security Section */
.security {
    padding: var(--section-padding) 0;
    max-width: 100%;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.security-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.security-text .section-tag,
.security-text .section-title,
.security-text .section-description {
    text-align: left;
    margin-bottom: 16px;
}

.security-text .section-description {
    margin-bottom: 40px;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.security-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.security-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 12px;
    color: var(--accent-cyan);
}

.security-icon svg {
    width: 24px;
    height: 24px;
}

.security-info h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

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

/* Shield Visual */
.security-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-container {
    position: relative;
    width: 300px;
    height: 350px;
}

.shield-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    animation: shieldPulse 3s ease-in-out infinite;
}

@keyframes shieldPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.shield {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 140px;
}

.shield-check {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 1s ease forwards 0.5s;
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 50%;
    animation: orbit linear infinite;
}

.orbit-1 {
    width: 180px;
    height: 180px;
    margin: -90px 0 0 -90px;
    animation-duration: 10s;
}

.orbit-2 {
    width: 240px;
    height: 240px;
    margin: -120px 0 0 -120px;
    animation-duration: 15s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    animation-duration: 20s;
}

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

.orbit-dot {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    margin-left: -4px;
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    grid-template-rows: auto auto;
    gap: 32px 48px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Profile card - left column, spans 2 rows */
.about-profile {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: sticky;
    top: 100px;
    align-self: start;
}

.profile-avatar {
    width: 170px;
    height: 220px;
    border-radius: 18px;
    object-fit: cover;
    object-position: center 20%;
    margin-bottom: 24px;
    border: 3px solid transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        var(--gradient-primary) border-box;
}

.profile-info { width: 100%; }

.profile-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.profile-role {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin: 0 0 18px;
    font-weight: 500;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 22px;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition-base);
}
.profile-link:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.04);
}
.profile-link svg { flex-shrink: 0; }

/* Right column blocks */
.about-block {
    grid-column: 2;
}

.about-block-title {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* Timeline */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 18px;
    align-items: baseline;
}

.timeline-year {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.85rem;
    font-family: var(--font-mono, monospace);
    letter-spacing: 0.02em;
}

.timeline-body {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.timeline-body strong {
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-desc {
    display: block;
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 2px;
}

/* Certifications */
.cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cert-pill {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-base);
}
.cert-pill:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.08);
}

/* Publications */
.pub-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pub-list li {
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.55;
    padding-left: 18px;
    position: relative;
}

.pub-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

.pub-list em {
    font-style: italic;
    color: var(--text-primary);
}

.pub-authors {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 4px;
}

/* Disabled CTA (e.g. ClaurixOS Coming Soon) */
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    text-align: center;
    justify-content: center;
}

@media (max-width: 880px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-profile {
        grid-column: 1;
        grid-row: auto;
        position: static;
    }
    .about-block {
        grid-column: 1;
    }
    .timeline-item {
        grid-template-columns: 64px 1fr;
        gap: 14px;
    }
}

/* CTA Section */
.cta {
    text-align: center;
    position: relative;
    padding: var(--section-padding) 40px;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    margin-bottom: 20px;
}

.cta-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cta-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
}

.cta-glow {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    filter: blur(60px);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 40px 40px;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

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

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 0;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-powered {
    font-family: var(--font-mono);
    color: var(--accent-purple);
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 140px;
    }

    .hero-content {
        order: 1;
    }

    .hero-terminal {
        order: 2;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

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

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

    .security-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .security-text .section-tag,
    .security-text .section-title,
    .security-text .section-description {
        text-align: center;
    }

    .security-visual {
        order: -1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

    section {
        padding: 60px 20px;
    }

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

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .terminal-body {
        font-size: 0.75rem;
    }

    .product-card {
        padding: 32px;
    }

    /* Mobile perf: GPU-heavy effects (full-screen blur + backdrop-filter)
       are the dominant cause of scroll jank on iOS/Android. */
    .bg-glow {
        animation: none !important;
        opacity: 0.5;
        filter: blur(60px);
    }
    .nav.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(5, 5, 8, 0.96);
    }

    /* About section mobile tightening */
    .about-grid { padding: 0 16px; }
    .about-profile { padding: 28px 20px; }
    .profile-avatar { width: 130px; height: 130px; margin-bottom: 18px; }
    .profile-name { font-size: 1.3rem; }
    .timeline-item { grid-template-columns: 56px 1fr; gap: 12px; }
    .timeline-year { font-size: 0.8rem; }
    .timeline-body { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    /* Keep stats horizontal even on small phones — just tighten and shrink */
    .hero-stats {
        gap: 14px;
        flex-wrap: nowrap;
    }

    .stat-divider {
        display: none;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-suffix {
        font-size: 0.8rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Accessibility: respect users' motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Touch devices: disable magnetic-button drift + parallax (perf + UX) */
@media (hover: none) and (pointer: coarse) {
    .btn-primary,
    .btn-outline {
        transform: none !important;
    }
}

/* Touch target size — minimum 44x44 for tap accessibility on mobile */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}
