:root {
    --bg: #ffffff;
    --surface: #f7fff9;
    --surface2: #eefcf3;

    --green: #28a745;
    --green-dim: #1e7e34;
    --green-glow: rgba(40,167,69,0.12);

    --text: #1f2937;
    --text-muted: #6b7280;

    --border: rgba(40,167,69,0.15)
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
    content:'';
    position:fixed;
    inset:0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events:none;
    z-index:9999;
    opacity:0.4;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(11,15,14,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.08em;
    color: var(--green);
    text-transform: uppercase;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }

/* ── HERO ── */
#hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 80px 80px;
    gap: 60px;
    position: relative;
    overflow: hidden;
}
#hero::after {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(61,220,132,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.hero-text { z-index: 1; }
.hero-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 28px;
    background: var(--green-glow);
}
.hero-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}
.hero-title span { color: var(--green); }
.hero-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 40px;
}
.hero-stats {
    display: flex;
    gap: 36px;
}
.stat { }
.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--green);
}
.stat-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.robot-frame {
    width: 420px;
    height: 420px;
    border-radius: 32px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(61,220,132,0.08), inset 0 1px 0 rgba(255,255,255,0.05);
}
.robot-frame::before {
    content:'';
    position:absolute;
    inset:0;
    background: linear-gradient(135deg, rgba(61,220,132,0.04) 0%, transparent 60%);
}
.robot-svg {
    width: 260px;
    height: 260px;
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
}
.corner-dot {
    position: absolute;
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
}
.corner-dot:nth-child(1) { top: 20px; left: 20px; }
.corner-dot:nth-child(2) { top: 20px; right: 20px; }
.corner-dot:nth-child(3) { bottom: 20px; left: 20px; }
.corner-dot:nth-child(4) { bottom: 20px; right: 20px; }
.ping {
    position: absolute;
    top: 20px; left: 20px;
    width: 8px; height: 8px;
}
.ping::after {
    content:'';
    position:absolute;
    inset:-6px;
    border-radius:50%;
    border: 1.5px solid var(--green);
    animation: ping 2s ease-out infinite;
}
@keyframes ping {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

/* ── SCROLL CATEGORIES ── */
#categories {
    padding: 0 80px 80px;
}
.section-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 20px;
}
.scroll-track-wrap {
    position: relative;
}
.scroll-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    cursor: grab;
}
.scroll-track::-webkit-scrollbar { display: none; }
.scroll-track:active { cursor: grabbing; }

.cat-card {
    flex: 0 0 260px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 24px;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
    user-select: none;
}
.cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green-glow), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.cat-card:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(61,220,132,0.1); }
.cat-card:hover::before { opacity: 1; }
.cat-card.active { border-color: var(--green); background: var(--surface2); box-shadow: 0 0 40px rgba(61,220,132,0.15); }

.cat-icon {
    width: 48px; height: 48px;
    background: var(--green-glow);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    font-size: 22px;
}
.cat-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}
.cat-sub {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}
.cat-arrow {
    position: absolute;
    bottom: 22px; right: 22px;
    color: var(--green);
    font-size: 18px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s, transform 0.2s;
}
.cat-card:hover .cat-arrow { opacity: 1; transform: translateX(0); }

/* ── DETAIL PANEL ── */
#detail-panel {
    margin: 0 80px 80px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: none;
    animation: slideDown 0.35s cubic-bezier(0.16,1,0.3,1);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
#detail-panel.open { display: block; }
.detail-header {
    padding: 36px 40px 28px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.detail-header-left { display: flex; gap: 20px; align-items: flex-start; }
.detail-icon {
    width: 56px; height: 56px;
    background: var(--green-glow);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.detail-title-group { }
.detail-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 26px;
    margin-bottom: 6px;
}
.detail-subtitle { font-size: 14px; color: var(--text-muted); }
.detail-subtitle a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.detail-subtitle a:hover { color: var(--green); }
.detail-close {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s, border-color 0.2s;
}
.detail-close:hover { color: var(--green); border-color: var(--green); }
.detail-body {
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.detail-text p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.detail-text p:last-child { margin-bottom: 0; }
.detail-text strong { color: var(--text); font-weight: 500; }
.detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.chip {
    font-size: 12px;
    letter-spacing: 0.05em;
    background: var(--green-glow);
    border: 1px solid var(--border);
    color: var(--green);
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}
.chip-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.chip-link:hover {
    transform: translateY(-1px);
    border-color: rgba(40,167,69,0.3);
    background: rgba(40,167,69,0.16);
}
.detail-specs {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.spec-item {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.spec-item-link {
    text-decoration: none;
    color: inherit;
}
.spec-item-link:hover {
    transform: translateY(-2px);
    border-color: rgba(40,167,69,0.32);
    background: rgba(40,167,69,0.08);
}
.spec-emoji { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.spec-label {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}
.spec-val {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── DIVIDER ── */
.divider {
    margin: 0 80px;
    border: none;
    border-top: 1px solid var(--border);
    margin-bottom: 80px;
}

/* ── RESULT ── */
#result {
    padding: 0 80px 80px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}
.result-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 14px;
}
.result-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.result-title span { color: var(--green); }
.result-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.use-cases {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}
.use-case {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
}
.use-case::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── TEAM ── */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: border-color 0.2s, transform 0.2s;
}
.team-card:hover { border-color: var(--green); transform: translateY(-2px); }
.team-avatar {
    width: 40px; height: 40px;
    background: var(--green-glow);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--green);
    margin-bottom: 12px;
    border: 1px solid var(--border);
}
.team-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}
.team-role {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}
.supervisor-card {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(61,220,132,0.06), var(--surface));
    border: 1px solid rgba(61,220,132,0.3);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 4px;
}
.supervisor-avatar {
    width: 48px; height: 48px;
    background: var(--green-glow);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: var(--green);
    border: 1px solid rgba(61,220,132,0.4);
    flex-shrink: 0;
    font-size: 18px;
}
.supervisor-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 3px;
}
.supervisor-role {
    font-size: 12px;
    color: var(--green);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 13px;
}
footer span { color: var(--green); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    nav { padding: 16px 24px; }
    .nav-links { display: none; }
    #hero { grid-template-columns: 1fr; padding: 100px 24px 60px; }
    .robot-frame { width: 300px; height: 300px; }
    #categories { padding: 0 24px 60px; }
    #detail-panel { margin: 0 24px 60px; }
    .detail-body { grid-template-columns: 1fr; }
    .divider { margin: 0 24px; margin-bottom: 60px; }
    #result { grid-template-columns: 1fr; padding: 0 24px 60px; }
    .team-grid { grid-template-columns: 1fr; }
    footer { padding: 24px; flex-direction: column; gap: 12px; text-align: center; }
}
