/* =============================================
   MajestyCorp — Corporate Showcase
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
    --bg: #050505;
    --bg-card: #0d0d0d;
    --bg-card-2: #111118;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.14);
    --text: #f0f0f0;
    --text-muted: #666;
    --text-secondary: #999;
    --accent: #ff4500;
    --accent-end: #ff6b35;
    --accent-grad: linear-gradient(135deg, #ff4500, #ff6b35);
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.25s ease;
    --font: 'Inter', -apple-system, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { color: var(--text-secondary); line-height: 1.75; }

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

/* =============================================
   NAVBAR
   ============================================= */
.mc-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: all 0.35s ease;
    padding: 0;
}

.mc-nav.scrolled {
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-logo {
    width: 36px;
    height: 36px;
    background: var(--accent-grad);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.brand-accent { color: var(--accent); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-links a {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}

.nav-cta {
    margin-left: 0.5rem;
    padding: 0.55rem 1.25rem;
    background: var(--accent-grad);
    color: #fff;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-cta:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,69,0,0.3);
}

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

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

.nav-mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1rem 24px 1.5rem;
    border-top: 1px solid var(--border);
    background: rgba(5,5,5,0.98);
    backdrop-filter: blur(20px);
    gap: 0.25rem;
}

.nav-mobile-menu a {
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--transition);
}

.nav-mobile-menu a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-cta-mobile {
    margin-top: 0.5rem;
    background: var(--accent-grad);
    color: #fff !important;
    text-align: center;
}

.nav-mobile-menu.open { display: flex; }

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    pointer-events: none;
}

.glow-1 {
    width: 600px; height: 600px;
    background: var(--accent);
    top: -150px; left: -150px;
    opacity: 0.12;
}

.glow-2 {
    width: 500px; height: 500px;
    background: var(--purple);
    top: 50%; right: -100px;
    transform: translateY(-50%);
    opacity: 0.1;
}

.glow-3 {
    width: 400px; height: 400px;
    background: var(--blue);
    bottom: -100px; left: 40%;
    opacity: 0.08;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: rgba(255,69,0,0.1);
    border: 1px solid rgba(255,69,0,0.25);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #ff4500 0%, #ff6b35 40%, #ff9a00 70%, #ffd100 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 1.75rem;
    background: var(--accent-grad);
    color: #fff;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all var(--transition);
    box-shadow: 0 8px 32px rgba(255,69,0,0.25);
}

.btn-primary-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255,69,0,0.4);
}

.btn-ghost-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 1.75rem;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    border: 1px solid var(--border-hover);
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-ghost-lg:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    padding: 1.25rem 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.hero-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.1rem;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-hover);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    position: relative;
}

.scroll-mouse::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes scrollDot {
    0% { top: 5px; opacity: 1; }
    100% { top: 14px; opacity: 0; }
}

/* =============================================
   SECTIONS SHARED
   ============================================= */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: rgba(255,69,0,0.1);
    border: 1px solid rgba(255,69,0,0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

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

/* =============================================
   PROJECTS
   ============================================= */
.projects-section {
    background: var(--bg);
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: 2.5rem;
    overflow: hidden;
    transition: border-color 0.35s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at top left, rgba(255,255,255,0.025), transparent 60%);
    pointer-events: none;
}

.project-card[data-color="orange"]:hover { border-color: rgba(255,69,0,0.35); }
.project-card[data-color="purple"]:hover { border-color: rgba(139,92,246,0.35); }
.project-card[data-color="blue"]:hover { border-color: rgba(59,130,246,0.35); }

.project-card-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}

.project-card-inner.reverse {
    direction: rtl;
}

.project-card-inner.reverse > * {
    direction: ltr;
}

.project-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: color-mix(in srgb, var(--tag-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--tag-color) 25%, transparent);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--tag-color);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    align-self: flex-start;
}

.project-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #fff;
}

.project-name-majesty { color: #fff; }

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.project-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.feature-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.feature-item i {
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.feature-item span {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    padding: 0.3rem 0.7rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn-project {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: color-mix(in srgb, var(--btn-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--btn-color) 30%, transparent);
    color: var(--btn-color);
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all var(--transition);
}

.btn-project:hover {
    background: color-mix(in srgb, var(--btn-color) 20%, transparent);
    transform: translateY(-1px);
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-platforms {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-platforms span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* --- Visual side --- */
.project-visual {
    background: var(--bg-card-2);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem;
}

.project-card-inner.reverse .project-visual {
    border-left: none;
    border-right: 1px solid var(--border);
}

.project-mockup {
    width: 100%;
    max-width: 340px;
}

/* Browser mockup */
.mockup-browser {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #252525;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}

.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }

.mockup-url {
    margin-left: 8px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    font-family: monospace;
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 4px;
    flex: 1;
}

/* App mockup */
.mockup-app {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.mockup-app-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mockup-app-title {
    margin-left: 8px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

/* Craft screen */
.mockup-screen {
    height: 180px;
    padding: 16px;
    overflow: hidden;
}

.craft-screen {
    background: linear-gradient(135deg, #0a0a0a, #141420);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ms-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ms-logo {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 900;
    color: #fff;
}

.ms-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
}

.ms-sub {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.4);
}

.ms-btn {
    width: 60px;
    height: 14px;
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    border-radius: 4px;
    margin-top: 4px;
}

.ms-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.ms-mode {
    padding: 5px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 0.55rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-align: center;
}

/* Challenge screen */
.challenge-screen {
    background: linear-gradient(135deg, #0a0a14, #14101e);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cs-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.cs-badge {
    width: 22px;
    height: 22px;
    background: rgba(139,92,246,0.3);
    border: 1px solid rgba(139,92,246,0.5);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #8b5cf6;
}

.cs-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
}

.cs-sub {
    font-size: 0.5rem;
    color: rgba(255,255,255,0.4);
}

.cs-countdown {
    display: flex;
    gap: 6px;
    margin-top: 3px;
}

.cs-time {
    background: rgba(139,92,246,0.15);
    border: 1px solid rgba(139,92,246,0.25);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    color: #fff;
}

.cs-time span {
    font-size: 0.45rem;
    color: #8b5cf6;
    font-weight: 600;
}

.cs-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cs-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 5px;
    font-size: 0.55rem;
}

.cs-row-1 { background: rgba(255,215,0,0.1); }
.cs-row-2 { background: rgba(192,192,192,0.08); }
.cs-row-3 { background: rgba(205,127,50,0.08); }

.cs-rank {
    font-weight: 900;
    color: rgba(255,255,255,0.6);
    width: 12px;
}

.cs-name { flex: 1; color: rgba(255,255,255,0.8); font-weight: 600; }
.cs-score { color: #8b5cf6; font-weight: 700; }

/* Launcher screen */
.mockup-app-screen {
    display: flex;
}

.launcher-screen {
    height: 180px;
    background: #0d0d14;
}

.ls-sidebar {
    width: 48px;
    background: #111118;
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 12px;
}

.ls-logo {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}

.ls-nav { display: flex; flex-direction: column; gap: 6px; }

.ls-nav-item {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
}

.ls-nav-item.active {
    background: rgba(59,130,246,0.2);
    color: #3b82f6;
}

.ls-main {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ls-version {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    padding: 5px 8px;
}

.ls-v-label { font-size: 0.45rem; color: rgba(255,255,255,0.35); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.ls-v-value { font-size: 0.6rem; color: #fff; font-weight: 700; }

.ls-play-btn {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 7px;
    padding: 7px;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.05em;
}

.ls-mods {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ls-mod {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.5rem;
    color: rgba(255,255,255,0.45);
}

.ls-mod-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

/* Mini stats */
.project-stats-mini {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

.psm-item {
    text-align: center;
    flex: 1;
}

.psm-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.psm-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* =============================================
   ALTERNATIVEAPI BANNER
   ============================================= */
.altapi-banner {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-left: 3px solid #3b82f6;
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.altapi-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at left, rgba(59, 130, 246, 0.05), transparent 60%);
    pointer-events: none;
}

.altapi-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.altapi-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.altapi-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.altapi-text span {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.altapi-tags {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-shrink: 0;
}

.altapi-tags span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .altapi-banner {
        flex-direction: column;
    }
    .altapi-tags {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* =============================================
   EXPERTISE
   ============================================= */
.expertise-section {
    background: linear-gradient(180deg, var(--bg) 0%, #080810 100%);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.expertise-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--icon-color, var(--accent)), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.expertise-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.expertise-card:hover::before { opacity: 1; }

.expertise-icon {
    width: 52px;
    height: 52px;
    background: color-mix(in srgb, var(--icon-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--icon-color) 20%, transparent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--icon-color);
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.08) rotate(-3deg);
}

.expertise-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.expertise-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.expertise-tags span {
    padding: 0.2rem 0.55rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* =============================================
   STATS
   ============================================= */
.stats-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.stats-bg {
    position: absolute;
    inset: 0;
    background: #080810;
}

.stats-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255,69,0,0.07) 0%, transparent 70%);
}

.stats-section .container { position: relative; z-index: 1; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    border-color: rgba(255,69,0,0.25);
    transform: translateY(-3px);
}

.stat-card:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(255,69,0,0.04), transparent 70%);
    pointer-events: none;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-block;
    margin-left: 2px;
}

.stat-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 0.5rem;
}

.stat-detail {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* =============================================
   ABOUT
   ============================================= */
.about-section {
    background: var(--bg);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    transition: border-color 0.25s ease;
}

.value-item:hover { border-color: var(--border-hover); }

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 1rem;
}

.timeline-item {
    display: flex;
    gap: 1.25rem;
    padding-bottom: 2rem;
    position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 20px;
    bottom: 0;
    width: 1px;
    background: var(--border-hover);
}

.timeline-item:last-child::before { display: none; }

.tl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dot-color, var(--accent));
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 2px var(--dot-color, var(--accent));
    flex-shrink: 0;
    margin-top: 5px;
    position: relative;
    z-index: 1;
}

.tl-dot-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--dot-color);
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

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

.tl-content { flex: 1; }

.tl-year {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.tl-content h5 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.tl-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
    background: #08080f;
}

.contact-glow {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(255,69,0,0.08), transparent 70%);
}

.contact-section .container { position: relative; z-index: 1; }

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.contact-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-projects {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-project-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-project-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--btn-color) 5%, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-project-btn:hover {
    border-color: color-mix(in srgb, var(--btn-color) 35%, transparent);
    transform: translateX(6px);
}

.contact-project-btn:hover::before { opacity: 1; }

.cpb-icon {
    width: 44px;
    height: 44px;
    background: color-mix(in srgb, var(--btn-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--btn-color) 25%, transparent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--btn-color);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.cpb-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.cpb-info strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.15rem;
}

.cpb-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: monospace;
}

.cpb-arrow {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.contact-project-btn:hover .cpb-arrow {
    color: var(--btn-color);
    transform: translate(3px, -3px);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: #030303;
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
}

.footer-inner {
    display: flex;
    gap: 4rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 2;
    min-width: 200px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.85rem;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 140px;
}

.footer-links-group h6 {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.footer-links-group a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-links-group a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =============================================
   PARTICLES
   ============================================= */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    animation: floatUp var(--duration, 8s) var(--delay, 0s) infinite ease-in;
}

@keyframes floatUp {
    0% { opacity: 0; transform: translateY(0) scale(1); }
    10% { opacity: 0.6; }
    90% { opacity: 0.2; }
    100% { opacity: 0; transform: translateY(-200px) scale(0); }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* Stagger for grids */
.expertise-card.fade-up:nth-child(1) { transition-delay: 0s; }
.expertise-card.fade-up:nth-child(2) { transition-delay: 0.08s; }
.expertise-card.fade-up:nth-child(3) { transition-delay: 0.16s; }
.expertise-card.fade-up:nth-child(4) { transition-delay: 0.24s; }
.expertise-card.fade-up:nth-child(5) { transition-delay: 0.32s; }
.expertise-card.fade-up:nth-child(6) { transition-delay: 0.40s; }

.stat-card.fade-up:nth-child(1) { transition-delay: 0s; }
.stat-card.fade-up:nth-child(2) { transition-delay: 0.07s; }
.stat-card.fade-up:nth-child(3) { transition-delay: 0.14s; }
.stat-card.fade-up:nth-child(4) { transition-delay: 0.21s; }
.stat-card.fade-up:nth-child(5) { transition-delay: 0.28s; }
.stat-card.fade-up:nth-child(6) { transition-delay: 0.35s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .project-card-inner,
    .project-card-inner.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .project-visual {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border);
    }

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

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-mobile-toggle { display: flex; }

    .section { padding: 70px 0; }

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

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

    .hero-stats {
        gap: 1.25rem;
        padding: 1rem 1.25rem;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-info {
        padding: 1.75rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }
}
