@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Syne:wght@600;700;800&family=Manrope:wght@400;500;600&display=swap');

:root {
    --surface:     #111420;
    --surface-2:   #161926;
    --border:      rgba(255,255,255,0.06);
    --blue:        #2269c5;
    --blue-light:  #4a7ede;
    --text:        #e8eaf0;
    --muted:       #a6a6a6;
    --muted-2:     #5c6070;
    --green:       #3ecf8e;
    --yellow:      #f0c060;
    --cyan:        #45d4ea;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    overflow: hidden;
}

.content {
    height: 100%;
    overflow: hidden;
    justify-content: flex-start;
    padding-bottom: 0;
}

.hero {
    position: relative;
    top: -50px;
    width: 100%;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: clamp(20px, 3vw, 56px);
    padding: clamp(16px, 3vh, 36px) clamp(24px, 7vw, 100px) 0;
    overflow: hidden;
    min-height: 0;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34,105,197,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34,105,197,0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 40%, transparent 100%);
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.hero__glow--1 {
    width: 500px; height: 500px;
    top: -100px; left: -80px;
    background: radial-gradient(circle, rgba(34,105,197,0.2) 0%, transparent 70%);
    animation: drift1 12s ease-in-out infinite alternate;
}

.hero__glow--2 {
    width: 350px; height: 350px;
    bottom: -60px; right: 10%;
    background: radial-gradient(circle, rgba(74,126,222,0.12) 0%, transparent 70%);
    animation: drift2 15s ease-in-out infinite alternate;
}

@keyframes drift1 { to { transform: translate(30px, 40px); } }
@keyframes drift2 { to { transform: translate(-20px, -30px); } }

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.8vh, 22px);
    animation: fadeUp 0.8s cubic-bezier(.22,1,.36,1) both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px 5px 9px;
    background: rgba(62,207,142,0.1);
    border: 1px solid rgba(62,207,142,0.25);
    border-radius: 100px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: var(--green);
    width: fit-content;
}

.hero__badge-dot {
    display: block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
    50%       { opacity: 0.5; box-shadow: 0 0 2px var(--green); }
}

.hero__name {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 4vw, 58px);
    line-height: 1.05;
    color: var(--text);
    letter-spacing: -0.02em;
}

.hero__title-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero__role-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero__role-line {
    width: 32px; height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    border-radius: 4px;
    flex-shrink: 0;
}

.hero__role {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(13px, 1.3vw, 16px);
    font-weight: 500;
    color: var(--blue-light);
}

.hero__desc {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(12px, 1.1vw, 15px);
    color: var(--muted);
    line-height: 1.65;
    max-width: 400px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.hero__btn--primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: #fff;
    box-shadow: 0 4px 20px rgba(34,105,197,0.35);
}

.hero__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(34,105,197,0.5);
}

.hero__btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.hero__btn--ghost:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

.hero__card-wrap {
    position: relative;
    z-index: 1;
    animation: fadeUp 0.8s 0.18s cubic-bezier(.22,1,.36,1) both;
    min-height: 0;
}

.hero__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(34,105,197,0.08),
        0 20px 56px rgba(0,0,0,0.4);
}

.hero__card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.hero__card-dots {
    display: flex;
    gap: 6px;
}

.hero__card-dots span {
    display: block;
    width: 10px; height: 10px;
    border-radius: 50%;
}

.hero__card-dots span:nth-child(1) { background: #ff5f57; }
.hero__card-dots span:nth-child(2) { background: #febc2e; }
.hero__card-dots span:nth-child(3) { background: #28c840; }

.hero__card-filename {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted);
}

.hero__code {
    padding: clamp(12px, 1.6vw, 20px);
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(11px, 0.95vw, 13px);
    line-height: 1.8;
    overflow-x: auto;
    background: var(--surface);
    color: var(--text);
}

.c-kw  { color: #c084fc; }
.c-im  { color: var(--blue-light); }
.c-fn  { color: var(--yellow); }
.c-str { color: var(--green); }
.c-op  { color: var(--cyan); }

.hero__card-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}

.hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hero__stat-num {
    font-family: 'Syne', sans-serif;
    font-size: clamp(13px, 1.4vw, 18px);
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue-light), #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__stat-label {
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero__stat-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
}

.hero__stack {
    grid-column: 1 / -1;
    position: relative;
    z-index: 1;
    padding: clamp(12px, 2vh, 20px) 0;
    border-top: 1px solid var(--border);
}

.hero__stack::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.hero__stack-inner {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.5vw, 24px);
    flex-wrap: wrap;
}

.hero__stack-label {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-2);
    white-space: nowrap;
    flex-shrink: 0;
}

.hero__stack-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hero__chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 7px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: transform 0.2s;
    cursor: default;
}

.hero__chip:hover { transform: translateY(-2px); }

.hero__chip--blue   { background: rgba(34,105,197,0.15); color: var(--blue-light); border-color: rgba(34,105,197,0.3); }
.hero__chip--yellow { background: rgba(240,192,96,0.12); color: var(--yellow);     border-color: rgba(240,192,96,0.3); }
.hero__chip--green  { background: rgba(62,207,142,0.12); color: var(--green);      border-color: rgba(62,207,142,0.3); }
.hero__chip--cyan   { background: rgba(69,212,234,0.12); color: var(--cyan);       border-color: rgba(69,212,234,0.3); }
.hero__chip--gray   { background: rgba(160,160,170,0.1); color: var(--muted);      border-color: rgba(160,160,170,0.2); }

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: clamp(16px, 3vh, 32px) clamp(24px, 6vw, 56px) 0;
        text-align: center;
    }

    .hero__badge,
    .hero__actions { margin: 0 auto; }

    .hero__role-wrap { justify-content: center; }

    .hero__desc { margin: 0 auto; }
}

@media (max-width: 640px) {
    .hero {
        padding: 16px 20px 0;
        gap: 20px;
    }

    .hero__name { font-size: clamp(26px, 8vw, 38px); }

    .hero__code { font-size: 11px; }

    .hero__card-stats { padding: 10px 12px; }

    .hero__btn { padding: 9px 16px; font-size: 13px; }
}

@media (max-width: 380px) {
    .hero__actions { flex-direction: column; }
    .hero__btn { width: 100%; justify-content: center; }
}