/* ============================================
   Made with AI — Digital Exhibition
   ============================================ */
:root {
    --bg: #09090b;
    --surface: #111113;
    --card: #16161a;
    --card-hover: #1c1c22;
    --border: rgba(255,255,255,0.06);
    --text: #ededef;
    --text2: #8a8a9a;
    --accent: #818cf8;
    --accent2: #34d399;
    --pink: #f472b6;
    --radius: 20px;
    --radius-sm: 12px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* ============ HERO ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 30% 20%, rgba(129,140,248,0.12), transparent),
        radial-gradient(ellipse 500px 350px at 70% 70%, rgba(244,114,182,0.08), transparent),
        radial-gradient(ellipse 400px 300px at 50% 50%, rgba(52,211,153,0.06), transparent);
    animation: heroPulse 8s ease-in-out infinite alternate;
}
@keyframes heroPulse {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}
.hero-content { position: relative; z-index: 1; padding: 0 24px; }

.hero-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 32px;
    animation: fadeUp 0.7s var(--ease) both;
}
.counter-num {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.counter-label {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text2);
    font-weight: 500;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    animation: fadeUp 0.7s var(--ease) 0.1s both;
}
.glow-text {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: var(--text2);
    max-width: 540px;
    margin: 0 auto 28px;
    line-height: 1.7;
    animation: fadeUp 0.7s var(--ease) 0.2s both;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    animation: fadeUp 0.7s var(--ease) 0.3s both;
}
.meta-item {
    font-size: 0.9rem;
    color: var(--text2);
}
.meta-val {
    color: var(--accent);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}
.meta-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--text2);
    opacity: 0.4;
}

.scroll-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    background: rgba(129,140,248,0.1);
    border: 1px solid rgba(129,140,248,0.25);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease);
    animation: fadeUp 0.7s var(--ease) 0.4s both;
}
.scroll-cta:hover {
    background: rgba(129,140,248,0.18);
    transform: translateY(-2px);
}
.arrow-down {
    display: inline-block;
    width: 8px; height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
}

/* Start Demo CTA */
.start-demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(129,140,248,0.2), rgba(52,211,153,0.15));
    border: 1px solid rgba(129,140,248,0.35);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.3px;
    transition: all 0.35s var(--ease);
    animation: fadeUp 0.7s var(--ease) 0.4s both;
    position: relative;
    overflow: hidden;
}
.start-demo-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(129,140,248,0.3), rgba(52,211,153,0.25));
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}
.start-demo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(129,140,248,0.25), 0 4px 16px rgba(52,211,153,0.15);
    border-color: rgba(129,140,248,0.5);
}
.start-demo-btn:hover::before {
    opacity: 1;
}
.start-demo-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s var(--ease);
    position: relative;
}
.start-demo-btn:hover .start-demo-arrow {
    transform: translateX(4px);
}

/* ============ WALL ============ */
.wall { padding: 120px 0; }
.wall-header { text-align: center; margin-bottom: 56px; }
.wall-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}
.wall-header p {
    color: var(--text2);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

.wall-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.35s var(--ease);
    overflow: hidden;
    cursor: default;
}
.project-card:hover {
    border-color: rgba(255,255,255,0.12);
    background: var(--card-hover);
}
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--glow-color, rgba(129,140,248,0.06)), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.project-card:hover .card-glow { opacity: 1; }

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
    background: rgba(129,140,248,0.1);
    padding: 3px 10px;
    border-radius: 6px;
}
.card-time {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent2);
    font-weight: 600;
}
.card-icon {
    font-size: 2.5rem;
    line-height: 1;
}
.project-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.project-card p {
    font-size: 0.85rem;
    color: var(--text2);
    line-height: 1.55;
    flex: 1;
}
.card-stack {
    font-size: 0.72rem;
    color: var(--text2);
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.7;
}
.card-live {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent2);
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-live::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent2);
    animation: livePulse 2s ease-in-out infinite;
}
.card-live.card-local { color: var(--text2); }
.card-live.card-local::before { background: var(--text2); animation: none; }

.card-adopted {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #22c55e;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    width: fit-content;
}
.card-adopted::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.card-live-split {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.split-link {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent2);
    text-decoration: none;
    text-align: center;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(0, 206, 201, 0.08);
    border: 1px solid rgba(0, 206, 201, 0.15);
    transition: background 0.2s, border-color 0.2s;
}
.split-link:hover {
    background: rgba(0, 206, 201, 0.15);
    border-color: rgba(0, 206, 201, 0.3);
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ============ SPOTLIGHT ============ */
.spotlight { padding: 100px 0 120px; }
.spotlight h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}
.spot-sub {
    text-align: center;
    color: var(--text2);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.spot-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.spot-tab {
    padding: 10px 24px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--text2);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    font-family: inherit;
}
.spot-tab:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.spot-tab.active {
    background: rgba(129,140,248,0.12);
    border-color: rgba(129,140,248,0.35);
    color: var(--accent);
}

.spot-frame {
    display: none;
    animation: fadeIn 0.3s var(--ease);
}
.spot-frame.active { display: block; }

.frame-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}
.frame-time {
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent2);
    font-weight: 600;
}
.frame-link {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    transition: opacity 0.2s;
}
.frame-link:hover { opacity: 0.7; }

.iframe-wrap {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}
.iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}
.iframe-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--surface);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.iframe-wrap:not(:has(iframe)) .iframe-fallback,
.iframe-fallback.visible {
    opacity: 1;
    pointer-events: auto;
}
.iframe-fallback p { color: var(--text2); }

.tgapp-noframe {
    display: flex;
    align-items: center;
    justify-content: center;
}
.tgapp-open {
    text-align: center;
    padding: 40px 20px;
}
.tgapp-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}
.tgapp-open h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.tgapp-open p {
    color: var(--text2);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn {
    display: inline-flex;
    padding: 12px 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease);
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(129,140,248,0.3); }

/* ============ PROCESS ============ */
.process { padding: 120px 0; }
.process h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}
.process-sub {
    text-align: center;
    color: var(--text2);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

/* Terminal */
.terminal-demo {
    max-width: 750px;
    margin: 0 auto 56px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0c0c10;
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}
.terminal-dots {
    display: flex;
    gap: 6px;
}
.terminal-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #28ca41; }
.terminal-title {
    font-size: 0.75rem;
    color: var(--text2);
    font-family: 'JetBrains Mono', monospace;
}
.terminal-body {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.8;
}
.term-line {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.term-prompt { color: var(--accent2); font-weight: 700; }
.term-cmd { color: var(--text); }
.term-response { padding-left: 16px; }
.term-step {
    color: var(--text2);
    opacity: 0;
    transform: translateY(8px);
    animation: termStep 0.4s var(--ease) forwards;
}
.term-step:nth-child(1) { animation-delay: 0.8s; }
.term-step:nth-child(2) { animation-delay: 1.4s; }
.term-step:nth-child(3) { animation-delay: 2.0s; }
.term-step:nth-child(4) { animation-delay: 2.6s; }
.term-step:nth-child(5) { animation-delay: 3.2s; }
.term-step:nth-child(6) { animation-delay: 3.8s; }
.term-check { color: var(--accent2); margin-right: 6px; }
.term-step.done { color: var(--accent2); font-weight: 600; }
.term-step.done a { color: var(--accent); text-decoration: underline; }

@keyframes termStep {
    to { opacity: 1; transform: translateY(0); }
}

/* Process grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}
.process-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: all 0.3s var(--ease);
}
.process-card:hover {
    border-color: rgba(129,140,248,0.2);
    transform: translateY(-4px);
}
.proc-num {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(129,140,248,0.15);
    line-height: 1;
    margin-bottom: 12px;
}
.process-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.process-card p {
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 1.6;
}

/* MCP block */
.process-key {
    background: var(--card);
    border: 1px solid rgba(129,140,248,0.2);
    border-radius: var(--radius);
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
}
.process-key::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.process-key h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent);
}
.process-key p {
    font-size: 0.95rem;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 12px;
}
.process-key p:last-child { margin-bottom: 0; }

/* ============ CTA ============ */
.cta { padding: 60px 0 120px; }
.cta-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 56px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(129,140,248,0.08), transparent);
    pointer-events: none;
}
.cta-box h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    position: relative;
}
.cta-lead {
    color: var(--text2);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.6;
    position: relative;
}
.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    position: relative;
}
.cta-action {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: left;
    max-width: 260px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.cta-num {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
}
.cta-link-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.cta-link-btn:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}
.cta-quote {
    font-style: italic;
    color: var(--text2);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 440px;
    margin: 0 auto;
    position: relative;
}

/* ============ FOOTER ============ */
.footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text2);
    flex-wrap: wrap;
}
.footer-dot { opacity: 0.3; }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============ HUB CARDS ============ */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.hub-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.35s var(--ease);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}
.hub-card:hover {
    transform: translateY(-8px);
    border-color: rgba(129, 140, 248, 0.25);
    background: var(--card-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(129, 140, 248, 0.06);
}
.hub-card .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--glow-color, rgba(129, 140, 248, 0.06)), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.hub-card:hover .card-glow { opacity: 1; }

.hub-icon {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 4px;
}
.hub-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.hub-card p {
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 1.6;
}
.hub-arrow {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}
.hub-card:hover .hub-arrow {
    gap: 10px;
}

/* Hub card full-width variant */
.hub-card.hub-wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 32px 40px;
}
.hub-card.hub-wide .hub-icon {
    font-size: 2.4rem;
    margin-bottom: 0;
}
.hub-card.hub-wide .hub-card-content {
    flex: 1;
}
.hub-card.hub-wide .hub-arrow {
    margin-top: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .wall-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: 1fr; }
    .hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .wall-grid { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-box { padding: 40px 20px; }
    .process-key { padding: 28px 20px; }
    .iframe-wrap { height: 450px; }
    .terminal-body { font-size: 0.72rem; padding: 14px; }
    .hero-meta { gap: 10px; }
    .hub-grid { grid-template-columns: 1fr; }
    .hub-card { padding: 28px 24px; }
    .hub-card.hub-wide { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}
