/* ===========================
   RAIVO.API — Custom Design v2
   Neon-inspired, terminal aesthetic
   =========================== */

:root {
    --bg: #0a0a0f;
    --bg-alt: #08080d;
    --bg-card: #111118;
    --bg-card-hover: #16161f;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text: #e4e4ed;
    --text-muted: #8888a4;
    --text-dim: #44445a;
    --accent: #646cff;
    --accent-bright: #818cf8;
    --accent-glow: rgba(100, 108, 255, 0.12);
    --accent-glow-strong: rgba(100, 108, 255, 0.25);
    --green: #00e5a0;
    --green-dim: #00b87f;
    --green-glow: rgba(0, 229, 160, 0.12);
    --green-glow-strong: rgba(0, 229, 160, 0.25);
    --forest: #4ade80;
    --forest-glow: rgba(74, 222, 128, 0.12);
    --yellow: #fbbf24;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --radius: 12px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.mono-sm { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em; }
.mono-xs { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.03em; color: var(--text-dim); }

/* Cursor glow */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 160, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===========================
   NAVIGATION
   =========================== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 24px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}

.nav-logo { font-size: 1.15rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.nav-logo span { color: var(--green); }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
    padding: 6px 12px; font-size: 0.8rem; font-weight: 500;
    color: var(--text-dim); border-radius: 8px; transition: var(--transition);
    font-family: var(--mono);
}
.nav-link:hover { color: var(--text-muted); background: rgba(255,255,255,0.03); }

.nav-link-cta {
    color: var(--green); background: var(--green-glow);
    border: 1px solid rgba(0, 229, 160, 0.15);
}
.nav-link-cta:hover { background: rgba(0, 229, 160, 0.15); }

.nav-lang { display: flex; gap: 4px; }

.lang-btn {
    background: none; border: 1px solid var(--border);
    color: var(--text-dim); padding: 3px 8px; font-size: 0.7rem;
    font-weight: 600; font-family: var(--mono); border-radius: 6px;
    cursor: pointer; transition: var(--transition);
}
.lang-btn.active { color: var(--green); border-color: rgba(0,229,160,0.3); background: var(--green-glow); }
.lang-btn:hover { color: var(--text-muted); }

.nav-mobile-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-mobile-toggle span { display: block; width: 20px; height: 1.5px; background: var(--text-dim); transition: var(--transition); }

.mobile-menu {
    display: none; position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px; z-index: 99; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-link { padding: 12px 16px; font-size: 0.9rem; color: var(--text-muted); border-radius: 8px; font-family: var(--mono); }
.mobile-menu-link:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.mobile-lang { display: flex; gap: 8px; padding: 12px 16px; }

@media (max-width: 768px) {
    .nav-links, .nav-lang { display: none; }
    .nav-mobile-toggle { display: flex; }
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; font-size: 0.85rem; font-weight: 600;
    font-family: var(--mono); border-radius: 10px; border: none;
    cursor: pointer; transition: var(--transition);
}

.btn-primary {
    background: var(--green); color: #0a0a0f;
    box-shadow: 0 0 20px var(--green-glow-strong);
}
.btn-primary:hover {
    background: #00f0aa;
    box-shadow: 0 0 30px var(--green-glow-strong);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent; color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    color: var(--text); border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-sm { padding: 9px 18px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 0.9rem; }

.btn-forest { background: var(--forest); }
.btn-forest:hover { background: #5ee98e; }

/* ===========================
   HERO
   =========================== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 100px 24px 40px; overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 160, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 160, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 100%);
}

.hero-glow { position: absolute; border-radius: 50%; filter: blur(100px); }
.hero-glow-1 { width: 500px; height: 500px; background: var(--green); top: -250px; left: 50%; transform: translateX(-50%); opacity: 0.04; }
.hero-glow-2 { width: 300px; height: 300px; background: var(--accent); bottom: 10%; right: -50px; opacity: 0.04; }
.hero-glow-3 { width: 200px; height: 200px; background: var(--green); bottom: 20%; left: -50px; opacity: 0.03; }

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 780px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px; color: var(--green);
    background: var(--green-glow);
    border: 1px solid rgba(0, 229, 160, 0.12);
    border-radius: 100px; margin-bottom: 24px;
}

.hero-badge-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--green);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 var(--green-glow-strong); }
    50% { box-shadow: 0 0 0 8px transparent; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900; line-height: 1.1; letter-spacing: -0.04em;
    margin-bottom: 24px; color: #fff;
}

.typewriter::after {
    content: '|'; color: var(--green); animation: blink 0.7s infinite; font-weight: 300;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-subtitle {
    font-size: 1rem; color: var(--text-muted); line-height: 1.8;
    margin-bottom: 36px; max-width: 620px; margin-left: auto; margin-right: auto;
}
.hero-subtitle strong { color: var(--green); font-weight: 600; }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===========================
   BRANCH DIAGRAM (Git-style workflow)
   =========================== */
.workflow-section {
    position: relative; z-index: 1; width: 100%; max-width: 1000px;
    margin: 60px auto 0; padding: 0 24px;
}

.workflow-label {
    text-align: center; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--text-dim); margin-bottom: 24px;
}

.branch-diagram {
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    overflow: hidden;
}

.branch-svg { width: 100%; height: auto; }

.branch-label {
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    fill: var(--text-muted); font-weight: 500;
}
.branch-label-accent { fill: var(--accent-bright); }
.branch-label-green { fill: var(--green); }
.branch-label-main {
    font-family: 'JetBrains Mono', monospace; font-size: 10px;
    fill: var(--text-dim); font-weight: 400;
}
.branch-timestamp {
    font-family: 'JetBrains Mono', monospace; font-size: 9px;
    fill: var(--text-dim);
}

.branch-line-animate {
    animation: drawLine 3s ease-in-out forwards;
    animation-delay: 0.5s;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.release-dot {
    animation: pulseRelease 2s ease-in-out infinite;
    animation-delay: 3.5s;
    opacity: 0;
}

@keyframes pulseRelease {
    0% { opacity: 0.8; r: 6; }
    50% { opacity: 1; r: 8; }
    100% { opacity: 0.8; r: 6; }
}

@media (max-width: 640px) {
    .branch-diagram { padding: 12px; }
    .branch-svg { min-width: 600px; }
    .branch-diagram { overflow-x: auto; }
}

/* ===========================
   HEATMAP STRIP
   =========================== */
.heatmap-strip {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}

.heatmap-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}

.heatmap-stat {
    display: flex; align-items: center; gap: 12px;
}

.heatmap-number {
    font-family: var(--mono); font-size: 1.5rem; font-weight: 700;
    color: var(--green);
}

.heatmap-legend {
    display: flex; align-items: center; gap: 6px;
}

.legend-squares {
    display: flex; gap: 3px;
}

.legend-squares span {
    width: 10px; height: 10px; border-radius: 2px;
    background: var(--green);
}

.heatmap-canvas {
    width: 100%; height: 90px; display: block;
    border-radius: 8px;
}

.heatmap-meta {
    display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}

.heatmap-days {
    display: flex; gap: 6px;
}

.heatmap-day-label {
    padding: 2px 6px; border-radius: 4px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}

.heatmap-hours {
    display: flex; justify-content: space-between;
    margin-top: 8px; padding: 0 4px;
}

/* ===========================
   SECTIONS
   =========================== */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 56px; }

.section-tag {
    display: inline-block; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--mono);
    color: var(--green); background: var(--green-glow);
    border: 1px solid rgba(0, 229, 160, 0.12);
    padding: 4px 14px; border-radius: 100px; margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800; letter-spacing: -0.03em;
    color: #fff; margin-bottom: 14px;
}

.section-subtitle {
    font-size: 0.95rem; color: var(--text-muted);
    max-width: 560px; margin: 0 auto; line-height: 1.7;
}

/* ===========================
   PROJECT CARDS with TERMINALS
   =========================== */
.project-card { position: relative; margin-bottom: 40px; }

.project-card-glow {
    position: absolute; inset: -1px; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(0, 229, 160, 0.06), transparent 50%);
    opacity: 0; transition: opacity 0.5s; z-index: 0;
}
.project-card-glow-forest {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.06), transparent 50%);
}
.project-card:hover .project-card-glow { opacity: 1; }

.project-card-inner {
    position: relative; display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px; z-index: 1;
    transition: var(--transition);
}
.project-card:hover .project-card-inner { border-color: var(--border-hover); }

.project-card-reverse .project-card-inner { direction: rtl; }
.project-card-reverse .project-card-inner > * { direction: ltr; }

/* Terminal visuals */
.project-terminal {
    border-radius: var(--radius); overflow: hidden;
    background: #0d0d14; border: 1px solid var(--border);
}

.terminal-header {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 5px; }
.terminal-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.terminal-dots span:first-child { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:last-child { background: #28c840; }

.terminal-body { padding: 16px; font-family: var(--mono); font-size: 0.75rem; line-height: 1.9; }

.terminal-line { white-space: nowrap; }
.t-prompt { color: var(--green); font-weight: 700; }
.t-cmd { color: #fff; }
.t-flag { color: var(--accent-bright); }
.t-output { opacity: 0.9; }
.t-green { color: var(--green); }
.t-yellow { color: var(--yellow); }
.t-forest { color: var(--forest); }
.t-dim { color: var(--text-dim); }
.t-cursor { color: var(--green); animation: blink 1s infinite; }

.project-terminal-forest { border-color: rgba(74, 222, 128, 0.1); }

.project-visual {
    display: flex; align-items: center; justify-content: center;
}

.project-info { display: flex; flex-direction: column; gap: 14px; }

.project-name {
    font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: #fff;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
    font-size: 0.7rem; font-weight: 500; padding: 3px 10px;
    border-radius: 100px; font-family: var(--mono);
    color: var(--green); background: var(--green-glow);
    border: 1px solid rgba(0, 229, 160, 0.1);
}
.tag-forest { color: var(--forest); background: var(--forest-glow); border-color: rgba(74,222,128,0.1); }

.project-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

.project-features { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.project-features li {
    font-size: 0.8rem; color: var(--text-muted); padding-left: 18px; position: relative;
}
.project-features li::before {
    content: ''; position: absolute; left: 0; top: 7px;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 6px var(--green-glow-strong);
}
.project-features-forest li::before { background: var(--forest); box-shadow: 0 0 6px var(--forest-glow); }

@media (max-width: 768px) {
    .project-card-inner { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
    .project-card-reverse .project-card-inner { direction: ltr; }
}

/* ===========================
   FEATURES
   =========================== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px 28px; text-align: center;
    transition: var(--transition);
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }

.feature-icon {
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; background: var(--green-glow); color: var(--green);
    margin: 0 auto 18px;
}

.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }

/* ===========================
   EXPERTISE
   =========================== */
.expertise-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.code-window {
    border-radius: var(--radius); overflow: hidden;
    background: #0a0a12; border: 1px solid var(--border); margin-bottom: 28px;
}

.code-header {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; background: rgba(255,255,255,0.015);
    border-bottom: 1px solid var(--border);
}
.code-dots { display: flex; gap: 5px; }
.code-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.code-dots span:first-child { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:last-child { background: #28c840; }
.code-filename { font-size: 0.7rem; color: var(--text-dim); font-family: var(--mono); }

.code-body { padding: 16px; }
.code-line { font-family: var(--mono); font-size: 0.78rem; line-height: 1.9; white-space: pre; }
.ln { color: var(--text-dim); margin-right: 16px; user-select: none; display: inline-block; width: 16px; text-align: right; }
.ck { color: #c678dd; }
.cv { color: #e06c75; }
.cp { color: #61afef; }
.cs { color: #98c379; }

.expertise-heading { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.expertise-text { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; margin-bottom: 14px; }

.expertise-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.expertise-list li { font-size: 0.82rem; color: var(--text-muted); padding-left: 18px; position: relative; }
.expertise-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

.skill-cards { display: flex; flex-direction: column; gap: 12px; }
.skill-card {
    display: flex; gap: 14px; padding: 18px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); transition: var(--transition);
}
.skill-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }

.skill-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; background: var(--green-glow); color: var(--green);
}
.skill-card h4 { font-size: 0.85rem; font-weight: 600; color: #fff; margin-bottom: 3px; }
.skill-card p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 768px) { .expertise-layout { grid-template-columns: 1fr; } }

/* ===========================
   UNICONTA
   =========================== */
.uniconta-card { position: relative; }
.uniconta-glow {
    position: absolute; inset: -1px; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(0,229,160,0.05), transparent, rgba(100,108,255,0.03));
    z-index: 0;
}
.uniconta-inner {
    position: relative; z-index: 1; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px;
}
.uniconta-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.75rem; font-weight: 600; font-family: var(--mono);
    color: var(--green); background: var(--green-glow);
    border: 1px solid rgba(0,229,160,0.12);
    padding: 5px 14px; border-radius: 100px; margin-bottom: 20px;
}
.uniconta-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 14px; }
.uniconta-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; max-width: 650px; margin-bottom: 36px; }

.uniconta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
.uniconta-item {
    padding: 20px; background: rgba(255,255,255,0.015);
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: var(--transition);
}
.uniconta-item:hover { border-color: var(--border-hover); }
.uniconta-item svg { color: var(--green); margin-bottom: 10px; }
.uniconta-item h4 { font-size: 0.9rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.uniconta-item p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }

.uniconta-case {
    padding: 20px; background: rgba(0, 229, 160, 0.03);
    border: 1px solid rgba(0, 229, 160, 0.08); border-radius: var(--radius);
}
.uniconta-case h4 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.uniconta-case > p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; }
.uniconta-case-items { display: flex; flex-wrap: wrap; gap: 8px; }
.uniconta-case-items span {
    font-size: 0.75rem; font-family: var(--mono); padding: 5px 12px;
    background: var(--green-glow); color: var(--green);
    border-radius: 100px; border: 1px solid rgba(0,229,160,0.1);
}

@media (max-width: 768px) {
    .uniconta-inner { padding: 28px; }
    .uniconta-grid { grid-template-columns: 1fr; }
}

/* ===========================
   SERVICES BENTO GRID
   =========================== */
.services-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bento-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px;
    transition: var(--transition); position: relative; overflow: hidden;
}
.bento-item:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.bento-large { grid-column: span 2; }

.bento-icon {
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; background: var(--green-glow); color: var(--green);
    margin-bottom: 16px;
}
.bento-item h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.bento-item p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; max-width: 400px; }

/* Bento visual: connected dots */
.bento-visual { margin-top: 20px; position: relative; height: 50px; }
.bento-dots { display: flex; align-items: center; gap: 30px; position: relative; }
.bd {
    width: 12px; height: 12px; border-radius: 50%; background: var(--green);
    animation: bdPulse 2s infinite; position: relative;
}
.bd-1 { animation-delay: 0s; }
.bd-2 { animation-delay: 0.4s; }
.bd-3 { animation-delay: 0.8s; }
@keyframes bdPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--green-glow-strong); }
    50% { box-shadow: 0 0 0 8px transparent; }
}
.bento-connect { position: absolute; left: 6px; top: -8px; }

/* Bento visual: chart bars */
.bento-chart {
    display: flex; align-items: flex-end; gap: 6px; height: 60px; margin-top: 20px;
}
.chart-bar {
    flex: 1; height: var(--h); background: var(--green);
    border-radius: 3px 3px 0 0; opacity: 0.6;
    transition: opacity 0.3s;
}
.bento-item:hover .chart-bar { opacity: 0.9; }

@media (max-width: 768px) {
    .services-bento { grid-template-columns: 1fr; }
    .bento-large { grid-column: span 1; }
}

/* ===========================
   CONTACT
   =========================== */
.contact-block {
    position: relative; text-align: center; padding: 72px 36px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.contact-glow {
    position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    width: 350px; height: 350px; background: var(--green); border-radius: 50%;
    filter: blur(120px); opacity: 0.05; pointer-events: none;
}
.contact-block .section-title, .contact-block .section-subtitle, .contact-block .btn,
.contact-block .section-tag { position: relative; }
.contact-block .section-subtitle { margin-bottom: 28px; }

/* ===========================
   FOOTER
   =========================== */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-logo { font-size: 1rem; font-weight: 800; color: var(--text-dim); }
.footer-logo span { color: var(--green); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.78rem; color: var(--text-dim); font-family: var(--mono); transition: var(--transition); }
.footer-links a:hover { color: var(--text-muted); }
.footer-info { text-align: right; }
.footer-info p { font-size: 0.75rem; color: var(--text-dim); font-family: var(--mono); }

@media (max-width: 768px) {
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-info { text-align: center; }
}

/* ===========================
   SCROLL REVEAL
   =========================== */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.features-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.services-bento .reveal:nth-child(2) { transition-delay: 0.05s; }
.services-bento .reveal:nth-child(3) { transition-delay: 0.1s; }
.services-bento .reveal:nth-child(4) { transition-delay: 0.15s; }
.services-bento .reveal:nth-child(5) { transition-delay: 0.2s; }
.services-bento .reveal:nth-child(6) { transition-delay: 0.25s; }

/* ===========================
   MISC
   =========================== */
/* ===========================
   MOBILE OVERRIDES
   =========================== */
@media (max-width: 640px) {
    .hero {
        padding: 90px 16px 30px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -0.03em;
        word-break: break-word;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        line-height: 1.7;
        margin-bottom: 28px;
    }

    .hero-subtitle br { display: none; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions .btn {
        justify-content: center;
    }

    .hero-badge { font-size: 0.7rem; padding: 4px 12px; }

    /* Branch diagram: hide on small screens, show simple steps */
    .workflow-section {
        margin-top: 40px;
        padding: 0 8px;
    }

    .branch-diagram {
        display: none;
    }

    .workflow-mobile {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        padding: 0 8px;
    }

    .wf-mobile-step {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        position: relative;
    }

    .wf-mobile-step:last-child .wf-mobile-line { display: none; }

    .wf-mobile-dot {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--surface);
        border: 2px solid #2a2a4a;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }

    .wf-mobile-dot-accent { border-color: var(--purple); }
    .wf-mobile-dot-green { border-color: var(--green); }
    .wf-mobile-dot-final {
        border-color: var(--green);
        background: rgba(0, 229, 160, 0.15);
        box-shadow: 0 0 12px rgba(0, 229, 160, 0.3);
    }

    .wf-mobile-num {
        font-size: 0.6rem;
        font-family: var(--mono);
        color: var(--text-dim);
    }

    .wf-mobile-dot-accent .wf-mobile-num { color: var(--purple); }
    .wf-mobile-dot-green .wf-mobile-num { color: var(--green); }

    .wf-mobile-line {
        position: absolute;
        left: 13px;
        top: 28px;
        width: 2px;
        bottom: 0;
        background: linear-gradient(to bottom, #2a2a4a, rgba(42, 42, 74, 0.3));
    }

    .wf-mobile-content {
        padding: 4px 0 24px;
    }

    .wf-mobile-name {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 2px;
    }

    .wf-mobile-content small {
        font-size: 0.68rem;
        color: var(--text-dim);
        font-family: var(--mono);
    }

    .workflow-label { margin-bottom: 16px; font-size: 0.65rem; }

    /* Heatmap */
    .heatmap-strip { padding: 28px 0; }

    .heatmap-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .heatmap-meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .heatmap-number { font-size: 1.25rem; }

    .heatmap-canvas { height: 70px; }

    .heatmap-hours { font-size: 0.55rem; }
    .heatmap-days { gap: 4px; }
    .heatmap-day-label { font-size: 0.55rem; padding: 1px 4px; }

    /* Sections */
    .section { padding: 64px 0; }
    .section-header { margin-bottom: 36px; }
    .section-title { font-size: 1.6rem; }
    .section-subtitle { font-size: 0.88rem; }

    /* Project cards */
    .project-card { margin-bottom: 24px; }
    .project-card-inner { padding: 20px; gap: 20px; }

    .terminal-body { font-size: 0.65rem; padding: 12px; line-height: 1.8; }
    .terminal-header { padding: 8px 12px; }

    .project-name { font-size: 1.3rem; }
    .project-desc { font-size: 0.82rem; }
    .project-features li { font-size: 0.75rem; }
    .project-tags { gap: 4px; }
    .tag { font-size: 0.6rem; padding: 2px 8px; }

    /* Features */
    .feature-card { padding: 28px 20px; }
    .feature-card h3 { font-size: 0.95rem; }
    .feature-card p { font-size: 0.8rem; }

    /* Expertise */
    .code-body { padding: 12px; }
    .code-line { font-size: 0.68rem; line-height: 1.7; }
    .ln { margin-right: 10px; }

    .skill-card { padding: 14px; gap: 12px; }
    .skill-card h4 { font-size: 0.8rem; }
    .skill-card p { font-size: 0.72rem; }
    .skill-icon { width: 32px; height: 32px; }

    /* Uniconta */
    .uniconta-inner { padding: 24px; }
    .uniconta-title { font-size: 1.3rem; }
    .uniconta-desc { font-size: 0.85rem; }
    .uniconta-item { padding: 16px; }
    .uniconta-item h4 { font-size: 0.82rem; }
    .uniconta-item p { font-size: 0.75rem; }
    .uniconta-case { padding: 16px; }
    .uniconta-case h4 { font-size: 0.88rem; }
    .uniconta-case-items span { font-size: 0.68rem; padding: 4px 10px; }

    /* Services bento */
    .bento-item { padding: 22px; }
    .bento-icon { width: 40px; height: 40px; margin-bottom: 12px; }
    .bento-item h3 { font-size: 0.92rem; }
    .bento-item p { font-size: 0.78rem; }

    /* Contact */
    .contact-block { padding: 48px 20px; }
    .contact-block .section-title { font-size: 1.4rem; }

    /* Footer */
    .footer { padding: 32px 0; }
    .footer-links { flex-wrap: wrap; gap: 12px; justify-content: center; }
    .footer-links a { font-size: 0.72rem; }
}


/* Hide mobile workflow on desktop */
.workflow-mobile { display: none; }

::selection { background: var(--green); color: #0a0a0f; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* Accent (indigo) variant for Planner project */
.t-accent { color: var(--accent-bright); }
.tag-accent { color: var(--accent-bright); background: var(--accent-glow); border-color: rgba(100, 108, 255, 0.15); }
.project-terminal-accent { border-color: rgba(100, 108, 255, 0.1); }
.project-card-glow-accent { background: linear-gradient(135deg, rgba(100, 108, 255, 0.06), transparent 50%); }
.project-features-accent li::before { background: var(--accent-bright); box-shadow: 0 0 6px var(--accent-glow-strong); }
.btn-accent { background: var(--accent-bright); box-shadow: 0 0 20px var(--accent-glow-strong); }
.btn-accent:hover { background: #929cf8; box-shadow: 0 0 30px var(--accent-glow-strong); }
