/* ============================================
   BLACKSITE SYSTEMS — main.css
   ============================================ */

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

:root {
    --primary-dark:   #09090b;
    --secondary-dark: #111113;
    --surface:        #18181b;
    --surface-hover:  #1e1e22;
    --border:         rgba(255,255,255,0.07);
    --border-strong:  rgba(255,255,255,0.12);
    --text-primary:   #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted:     #71717a;
    --accent:         #1a6cff;
    --accent-hover:   #1558e0;
    --success:        #22c55e;
    --card-w:         520px;
    --card-h:         300px;
    --gap:            28px;
    --radius-sm:      6px;
    --radius-md:      10px;
    --radius-lg:      14px;
    --radius-xl:      18px;
    --radius-full:    999px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

/* Subtle grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    z-index: -1;
}

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

/* ============================================
   NAVIGATION
   ============================================ */

.navbar-links {
    display: flex !important;
    align-items: center;
    gap: 2px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    padding: 100px 24px 80px;
    text-align: center;
    background-color: var(--secondary-dark);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* Glow orbs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.hero::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26,108,255,0.12), transparent 70%);
    bottom: -200px;
    right: -100px;
    filter: blur(40px);
}
.hero::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26,108,255,0.08), transparent 70%);
    top: -100px;
    left: -100px;
    filter: blur(60px);
}

.hero > * { position: relative; z-index: 1; }
.hero .container { position: relative; z-index: 1; }

.hero-logo {
    height: 72px;
    width: auto;
    margin-bottom: 1.75rem;
    border-radius: var(--radius-md);
    opacity: 0.95;
}

/* Status badge */
#statusBadge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.22);
    border-radius: var(--radius-full);
    font-size: 11.5px;
    color: #4ade80;
    font-weight: 500;
    letter-spacing: 0.2px;
    margin-bottom: 24px;
    cursor: default;
}

#statusBadge span {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #4ade80;
    animation: pulse 2.2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.08;
    letter-spacing: -1.5px;
    word-break: break-word;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.65;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 26px;
    font-size: 0.93rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
    letter-spacing: 0.1px;
}

.cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(26,108,255,0.35);
}

/* Stats bar */
.stats-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 680px;
    margin: 48px auto 0;
    overflow: hidden;
}

.stats-bar .stat {
    padding: 22px 24px;
    text-align: left;
    border-right: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
}

.stats-bar .stat:last-child { border-right: none; }

.stats-bar .stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1;
}

.stats-bar .stat-label {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 5px;
    letter-spacing: 0.2px;
}

/* ============================================
   SERVICES
   ============================================ */

.services {
    background: var(--primary-dark);
    padding: 88px 24px;
}

.section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.6px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
}

.services h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.8px;
    text-align: center;
}

.subtitle {
    font-size: 0.97rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.65;
    text-align: center;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

/* ── 3D CAROUSEL ── */
.stage {
    position: relative;
    width: 100%;
    height: calc(var(--card-h) + 80px);
    perspective: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.track {
    position: relative;
    width: var(--card-w);
    height: var(--card-h);
    transform-style: preserve-3d;
}

.card {
    position: absolute;
    width: var(--card-w);
    height: var(--card-h);
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition:
        transform   0.52s cubic-bezier(0.33, 1, 0.68, 1),
        opacity     0.52s ease,
        filter      0.52s ease,
        box-shadow  0.52s ease;
    will-change: transform, opacity;
    top: 0; left: 0;
}

.card-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

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

.card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    opacity: 0.4;
    pointer-events: none;
}

.card-accent {
    position: absolute;
    top: 0; left: 0;
    width: 60px;
    height: 3px;
    border-radius: 0 0 2px 2px;
    z-index: 4;
}

.card-icon {
    position: absolute;
    top: 28px; right: 32px;
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.card-icon svg {
    width: 26px; height: 26px;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-inner {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 32px 36px;
    z-index: 3;
}

.card-label {
    font-family: 'Bebas Neue', 'Arial Black', sans-serif;
    font-size: 42px;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 10px;
    font-weight: 700;
}

.card-desc {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    line-height: 1.55;
    max-width: 340px;
}

/* Card positions */
.card[data-pos="0"] {
    transform: translateX(0) translateZ(0) scale(1);
    opacity: 1;
    filter: brightness(1);
    z-index: 10;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
    pointer-events: all;
}

.card[data-pos="-1"] {
    transform: translateX(calc(-1 * (var(--card-w) + var(--gap)))) translateZ(-120px) scale(0.88) rotateY(12deg);
    opacity: 0.45;
    filter: brightness(0.5);
    z-index: 5;
    pointer-events: all;
}

.card[data-pos="1"] {
    transform: translateX(calc(var(--card-w) + var(--gap))) translateZ(-120px) scale(0.88) rotateY(-12deg);
    opacity: 0.45;
    filter: brightness(0.5);
    z-index: 5;
    pointer-events: all;
}

.card[data-pos="-2"] {
    transform: translateX(calc(-2 * (var(--card-w) + var(--gap)) + 40px)) translateZ(-240px) scale(0.76) rotateY(18deg);
    opacity: 0.15;
    filter: brightness(0.3);
    z-index: 2;
    pointer-events: none;
}

.card[data-pos="2"] {
    transform: translateX(calc(2 * (var(--card-w) + var(--gap)) - 40px)) translateZ(-240px) scale(0.76) rotateY(-18deg);
    opacity: 0.15;
    filter: brightness(0.3);
    z-index: 2;
    pointer-events: none;
}

.card[data-pos="hidden"] {
    transform: translateX(0) translateZ(-400px) scale(0.6);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

/* Progress bar */
.progress-bar {
    width: var(--card-w);
    height: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    margin: 20px auto 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: box-shadow 0.2s ease;
}

/* ============================================
   ABOUT
   ============================================ */

.about {
    padding: 88px 24px;
    background-color: var(--secondary-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-logo {
    height: 64px;
    width: auto;
    margin: 0 auto 1.75rem;
    display: block;
    border-radius: var(--radius-md);
    opacity: 0.9;
}

.about h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    letter-spacing: -0.8px;
}

.about-content { max-width: 760px; margin: 0 auto; }

.about-text p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.75;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 1.9rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.stat-label {
    color: var(--text-muted);
    margin-top: 4px;
    font-size: 0.8rem;
    letter-spacing: 0.2px;
}

/* Code window in about */
.code-window {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    max-width: 680px;
    margin: 0 auto;
}

.code-titlebar {
    background: var(--surface-hover);
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.code-filename {
    margin-left: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
}

.code-body {
    padding: 24px 28px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.9;
    color: #c9c9d4;
    overflow-x: auto;
}

.kw  { color: #c084fc; }
.fn  { color: #34d399; }
.str { color: #fbbf24; }
.cm  { color: rgba(255,255,255,0.22); font-style: italic; }
.op  { color: rgba(255,255,255,0.4); }
.nm  { color: #60a5fa; }

/* ============================================
   CONTACT
   ============================================ */

.contact {
    padding: 88px 24px;
    background-color: var(--primary-dark);
    border-bottom: 1px solid var(--border);
}

.contact h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 0.97rem;
}

.contact-form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    padding: 11px 14px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.93rem;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface-hover);
    box-shadow: 0 0 0 3px rgba(26,108,255,0.12);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form .cta-btn {
    margin-top: 4px;
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-md);
}

/* ============================================
   FOOTER (enhanced)
   ============================================ */

.footer-enhanced {
    background: var(--secondary-dark);
    border-top: 1px solid var(--border);
    padding: 52px 24px 32px;
    max-width: 100%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto 40px;
}

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

/* The logo-icon wrapper — just holds the actual img, no colored box */
.footer-logo-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
}

.footer-brand-name {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 210px;
    line-height: 1.65;
    margin-top: 4px;
}

.footer-cols { display: flex; gap: 52px; }

.footer-col h4 {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1.3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.15s;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    max-width: 1100px;
    margin: 0 auto;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-socials { display: flex; gap: 8px; }

.social-btn {
    width: 30px; height: 30px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    text-decoration: none;
    color: var(--text-muted);
}

.social-btn:hover {
    border-color: var(--border-strong);
    background: var(--surface-hover);
    color: var(--text-secondary);
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-size: 11px;
    color: #4ade80;
    font-weight: 500;
    margin-top: 14px;
}

.status-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2.2s infinite;
}

/* ============================================
   USER DROPDOWN
   ============================================ */

.user-dropdown { position: relative; display: inline-block; }

.user-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px;
    background: var(--surface);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-strong);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.user-badge:hover { background: var(--surface-hover); }

.user-badge img {
    width: 28px; height: 28px;
    border-radius: 50%;
}

.user-badge .username {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    min-width: 150px;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.dropdown-menu a {
    display: block;
    padding: 11px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.15s;
}

.dropdown-menu a:hover { background: var(--surface-hover); }

.dropdown-menu a.logout-item {
    color: #f87171;
    border-top: 1px solid var(--border);
}

.dropdown-menu a.logout-item:hover { background: rgba(248,113,113,0.08); }

.user-dropdown.open .dropdown-menu { display: block; }

.linked-role-badge {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #1a0a00;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
}

.owner-badge {
    background: linear-gradient(135deg, #ff6b00, #ff8f00);
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    nav { padding: 12px 20px !important; }
}

@media (max-width: 900px) {
    .navbar-links { display: none !important; }
    nav > div { gap: 20px !important; }
    .footer-top { flex-direction: column; gap: 32px; }
    .footer-cols { flex-wrap: wrap; gap: 28px; }
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .stats-bar .stat:nth-child(2) { border-right: none; }
    .stats-bar .stat:nth-child(3) { border-top: 1px solid var(--border); }
    .stats-bar .stat:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}

@media (max-width: 768px) {
    :root { --card-w: 85vw; --card-h: 280px; --gap: 20px; }

    nav { padding: 10px 15px !important; }
    nav > div { gap: 15px !important; }
    nav > div > div:nth-child(1) span { display: none; }
    nav > div > div:nth-child(3) { gap: 6px !important; }
    nav > div > div:nth-child(3) a { padding: 6px 12px !important; font-size: 12px !important; }

    .hero { padding: 60px 20px 56px; }
    .hero h1 { font-size: 2rem; }
    .hero p  { font-size: 0.95rem; }
    .hero-logo { height: 60px; }

    .services { padding: 60px 20px; }
    .services h2 { font-size: 2rem; }

    .about, .contact { padding: 60px 20px; }
    .about h2, .contact h2 { font-size: 2rem; }

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

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

    .card-label { font-size: 28px; }
    .card-desc  { font-size: 12px; max-width: 90%; }
    .card-inner { padding: 20px 24px; }
    .card-icon  { width: 44px; height: 44px; top: 20px; right: 24px; }
    .card-icon svg { width: 22px; height: 22px; }
    .card-accent { width: 50px; }
    .progress-bar { width: 85vw; }

    .code-body { font-size: 12px; padding: 18px 20px; }
}

@media (max-width: 480px) {
    :root { --card-w: 90vw; --card-h: 240px; --gap: 14px; }

    nav { padding: 8px 12px !important; }
    nav > div { gap: 10px !important; }
    nav > div > div:nth-child(1) { gap: 6px !important; }
    nav > div > div:nth-child(1) img { width: 22px !important; height: 22px !important; }
    nav > div > div:nth-child(3) { gap: 4px !important; }
    nav > div > div:nth-child(3) a { padding: 6px 10px !important; font-size: 11px !important; }

    .hero { padding: 48px 16px 40px; }
    .hero h1 { font-size: 1.5rem; letter-spacing: -0.5px; }
    .hero p  { font-size: 0.88rem; }
    .hero-logo { height: 52px; margin-bottom: 1rem; }

    .cta-btn { padding: 10px 22px; font-size: 0.88rem; }

    .stats-bar { grid-template-columns: 1fr 1fr; }

    .services { padding: 48px 16px; }
    .section-label { font-size: 10px; }
    .services h2 { font-size: 1.5rem; }
    .subtitle { font-size: 0.85rem; margin-bottom: 1.5rem; }

    .about, .contact { padding: 48px 16px; }
    .about h2, .contact h2 { font-size: 1.5rem; }
    .section-logo { height: 48px; margin-bottom: 1.25rem; }
    .about-text p { font-size: 0.9rem; }
    .stats { grid-template-columns: 1fr; gap: 1rem; }
    .stat-number { font-size: 1.5rem; }
    .stat-label  { font-size: 0.78rem; }

    .contact-form { gap: 10px; }
    .contact-form input, .contact-form textarea { padding: 10px 12px; font-size: 0.88rem; }

    .footer-enhanced { padding: 36px 16px 24px; }
    .footer-brand-name { font-size: 14px; }

    .card-label  { font-size: 22px; margin-bottom: 6px; }
    .card-desc   { font-size: 11px; line-height: 1.45; }
    .card-inner  { padding: 14px 18px; }
    .card-icon   { width: 38px; height: 38px; top: 14px; right: 16px; }
    .card-icon svg { width: 19px; height: 19px; }
    .card-accent { width: 40px; }
    .progress-bar { width: 90vw; margin-top: 12px; }
    .stage { height: calc(var(--card-h) + 50px); }

    .code-body { font-size: 11px; padding: 16px; }
    .code-window { border-radius: var(--radius-lg); }
}

@media (max-width: 360px) {
    :root { --card-w: 95vw; --card-h: 200px; --gap: 12px; }

    .hero h1 { font-size: 1.2rem; }
    .hero p  { font-size: 0.78rem; }

    .services h2, .about h2, .contact h2 { font-size: 1.3rem; }

    .card-label { font-size: 18px; }
    .card-desc  { font-size: 10px; }
}