/* ============================================
   icenico.es — Tech & AI Blog
   ============================================ */

/* --- Variables --- */
:root {
    --bg-primary: #1c2c46;
    --bg-secondary: #14223a;
    --bg-card: rgba(28, 44, 70, 0.75);
    --bg-card-hover: rgba(35, 55, 85, 0.9);
    --accent: #5fbdb9;
    --accent2: #f8cc0e;
    --accent3: #e64f30;
    --text: #e8e8f0;
    --text-muted: #8899bb;
    --border: rgba(95, 189, 185, 0.15);
    --radius: 14px;
    --shadow: rgba(0,0,0,0.5);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --green: #5fbdb9;
}

/* --- Reset --- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Glow cursor follower --- */
#cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(95,189,185,.08) 0%, transparent 60%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity .6s;
    will-change: transform;
}
#cursor-glow.hidden { opacity: 0; }

a { color: var(--accent); text-decoration: none; transition: color .3s; }
a:hover { color: #7bb0ff; }
img { max-width: 100%; height: auto; display: block; }

/* --- Animated Background --- */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(95,189,185,.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(248,204,14,.08) 0%, transparent 50%);
}

/* --- Floating geometric shapes --- */
.floating-shapes {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.floating-shapes span {
    position: absolute;
    display: block;
    border: 1px solid rgba(95,189,185,.08);
    animation: floatShape linear infinite;
    opacity: 0.5;
}
.floating-shapes span:nth-child(1) {
    width: 60px; height: 60px; left: 10%; top: 20%;
    border-radius: 50%;
    animation-duration: 25s;
    animation-delay: -5s;
}
.floating-shapes span:nth-child(2) {
    width: 40px; height: 40px; left: 85%; top: 60%;
    border-radius: 8px;
    animation-duration: 30s;
    animation-delay: -12s;
}
.floating-shapes span:nth-child(3) {
    width: 80px; height: 80px; left: 50%; top: 80%;
    border-radius: 50%;
    animation-duration: 20s;
    animation-delay: -8s;
}
.floating-shapes span:nth-child(4) {
    width: 30px; height: 30px; left: 25%; top: 70%;
    border-radius: 4px;
    animation-duration: 22s;
    animation-delay: -15s;
    border-color: rgba(248,204,14,.1);
}
.floating-shapes span:nth-child(5) {
    width: 50px; height: 50px; left: 70%; top: 15%;
    border-radius: 50%;
    animation-duration: 28s;
    animation-delay: -3s;
    border-color: rgba(230,79,48,.08);
}
@keyframes floatShape {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-40px) rotate(90deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    75% { transform: translateY(-60px) rotate(270deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* --- Layout --- */
.site-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* --- Header / Nav --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(28,44,70,.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}
.nav-logo {
    font-size: 1.9em;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: text-shadow .3s;
}
.nav-logo:hover {
    text-shadow: 0 0 20px rgba(95,189,185,.6), 0 0 40px rgba(95,189,185,.4), 0 0 80px rgba(95,189,185,.2);
}
.nav-logo .logo-chip { height: 60px; width: auto; max-width: 45%; vertical-align: middle; margin-right: 6px; }
.nav-logo .logo-ic { color: var(--text); }
.nav-logo .logo-hyphen { color: var(--green); }
.nav-logo .logo-tech { color: var(--accent3); }
.nav-links { display: flex; gap: 8px; align-items: stretch; }
.nav-links a {
    color: var(--text-muted);
    padding: 0 16px;
    border-radius: 0;
    font-size: .9em;
    font-weight: 500;
    transition: all .3s;
    display: inline-flex;
    align-items: center;
    height: 64px;
    position: relative;
}
.nav-links a:hover, .nav-links a.active {
    color: #fff;
    background: rgba(95,189,185,.1);
}
/* Menu link hover colors — full height */
.nav-links a:nth-child(1):hover, .nav-links a:nth-child(1).active { background: #5fbdb9; }
.nav-links a:nth-child(2):hover, .nav-links a:nth-child(2).active { background: #e64f30; }
.nav-links a:nth-child(4):hover, .nav-links a:nth-child(4).active { background: #5fbdb9; }
.nav-links a:nth-child(5):hover, .nav-links a:nth-child(5).active { background: #f8cc0e; }
.nav-links a:nth-child(6):hover, .nav-links a:nth-child(6).active { background: #e64f30; }
.nav-links a:nth-child(7):hover, .nav-links a:nth-child(7).active { background: #5fbdb9; }
.nav-sep {
    color: var(--border);
    font-size: .85em;
    margin: 0 4px;
}
.nav-cat {
    font-size: .85em;
    padding: 0 10px;
    color: var(--text-muted);
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5em;
    cursor: pointer;
    padding: 8px;
}

/* ============================================
   HERO — New manz-inspired design
   ============================================ */
.hero-new {
    position: relative;
    background: #1c2c46;
    min-height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Particle canvas background */
#hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Green stripes */
.hero-stripe {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
}
.hero-stripe-top {
    top: -20px;
    right: -20px;
    width: 300px;
    height: 300px;
    border: 2px solid var(--green);
    transform: rotate(25deg);
    border-radius: 30px;
}
.hero-stripe-bottom {
    bottom: -60px;
    left: -40px;
    width: 400px;
    height: 400px;
    border: 2px solid var(--green);
    transform: rotate(-15deg);
    border-radius: 40px;
}
.hero-stripe-glow {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}
.hero-stripe-glow-1 {
    top: 10%;
    right: 15%;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    transform: rotate(-30deg);
    opacity: 0.5;
    box-shadow: 0 0 20px var(--green), 0 0 60px var(--green);
    animation: stripeFloat1 5s ease-in-out infinite;
}
.hero-stripe-glow-2 {
    bottom: 25%;
    left: 10%;
    width: 250px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    transform: rotate(20deg);
    opacity: 0.4;
    box-shadow: 0 0 20px var(--green), 0 0 60px var(--green);
    animation: stripeFloat2 6s ease-in-out infinite;
}
@keyframes stripeFloat1 {
    0%, 100% { top: 8%; }
    50% { top: 18%; }
}
@keyframes stripeFloat2 {
    0%, 100% { bottom: 20%; }
    50% { bottom: 35%; }
}

/* Hero inner layout */
.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
    width: 100%;
    gap: 48px;
}

/* Left: AI Animation */
.hero-visual {
    flex: 0 0 340px;
    height: 300px;
    position: relative;
}
/* Dodecahedron 3D dots animation (replaces old ai-canvas) */
.dodeca-view {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 600px;
    border-radius: 16px;
    overflow: hidden;
}
.dodeca-plane {
    width: 180px;
    height: 180px;
    transform-style: preserve-3d;
    animation: dodeca-rotate 24s infinite linear;
}
.dodeca-plane .circle {
    width: 180px;
    height: 180px;
    position: absolute;
    transform-style: preserve-3d;
    border-radius: 100%;
    box-sizing: border-box;
}
.dodeca-plane .circle:nth-child(1) {
    box-shadow: 0 0 60px rgba(95, 189, 185, 0.25), inset 0 0 60px rgba(95, 189, 185, 0.1);
}
.dodeca-plane .circle:nth-child(2) {
    box-shadow: 0 0 60px rgba(248, 204, 14, 0.2), inset 0 0 60px rgba(248, 204, 14, 0.08);
}
.dodeca-plane .circle:nth-child(3) {
    box-shadow: 0 0 60px rgba(230, 79, 48, 0.2), inset 0 0 60px rgba(230, 79, 48, 0.08);
}
.dodeca-plane .circle:nth-child(4) {
    box-shadow: 0 0 60px rgba(248, 204, 14, 0.2), inset 0 0 60px rgba(248, 204, 14, 0.08);
}
.dodeca-plane .circle:nth-child(5) {
    box-shadow: 0 0 60px rgba(95, 189, 185, 0.25), inset 0 0 60px rgba(95, 189, 185, 0.1);
}
.dodeca-plane .circle:nth-child(6) {
    box-shadow: 0 0 60px rgba(230, 79, 48, 0.2), inset 0 0 60px rgba(230, 79, 48, 0.08);
}
.dodeca-plane .circle::before,
.dodeca-plane .circle::after {
    content: '';
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    margin: auto;
    width: 12px;
    height: 12px;
    border-radius: 100%;
    box-sizing: border-box;
}
.dodeca-plane .circle:nth-child(1)::before,
.dodeca-plane .circle:nth-child(1)::after,
.dodeca-plane .circle:nth-child(5)::before,
.dodeca-plane .circle:nth-child(5)::after {
    background: rgba(95, 189, 185, 0.9);
    box-shadow: 0 0 40px 4px rgba(95, 189, 185, 0.6);
}
.dodeca-plane .circle:nth-child(2)::before,
.dodeca-plane .circle:nth-child(2)::after,
.dodeca-plane .circle:nth-child(4)::before,
.dodeca-plane .circle:nth-child(4)::after {
    background: rgba(248, 204, 14, 0.9);
    box-shadow: 0 0 40px 4px rgba(248, 204, 14, 0.6);
}
.dodeca-plane .circle:nth-child(3)::before,
.dodeca-plane .circle:nth-child(3)::after,
.dodeca-plane .circle:nth-child(6)::before,
.dodeca-plane .circle:nth-child(6)::after {
    background: rgba(230, 79, 48, 0.9);
    box-shadow: 0 0 40px 4px rgba(230, 79, 48, 0.6);
}
.dodeca-plane .circle::before {
    transform: translateZ(-135px);
}
.dodeca-plane .circle::after {
    transform: translateZ(135px);
}
.dodeca-plane .circle:nth-child(1) { transform: rotateZ(72deg) rotateX(63.435deg); }
.dodeca-plane .circle:nth-child(2) { transform: rotateZ(144deg) rotateX(63.435deg); }
.dodeca-plane .circle:nth-child(3) { transform: rotateZ(216deg) rotateX(63.435deg); }
.dodeca-plane .circle:nth-child(4) { transform: rotateZ(288deg) rotateX(63.435deg); }
.dodeca-plane .circle:nth-child(5) { transform: rotateZ(360deg) rotateX(63.435deg); }

@keyframes dodeca-rotate {
    0%   { transform: rotateX(0) rotateY(0) rotateZ(0); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

/* Right: Text content */
.hero-text {
    flex: 1;
    min-width: 0;
}
.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(95,189,185,.15);
    border: 1px solid rgba(95,189,185,.3);
    border-radius: 50px;
    font-size: .8em;
    color: var(--accent3);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text), var(--accent) 50%, var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-text p {
    color: var(--text-muted);
    font-size: 1.15em;
    max-width: 540px;
    margin-bottom: 20px;
}

/* --- Typing effect subtitle --- */
.typing-wrap {
    min-height: 1.7em;
    font-size: 1.05em;
    color: var(--text-muted);
    max-width: 600px;
}
.typing-text {
    display: inline;
    border-right: 2px solid var(--accent);
    animation: blink .75s step-end infinite;
}
.typing-text.done { border-color: transparent; }
@keyframes blink { 50% { border-color: transparent; } }

/* --- Hero HR separator --- */
.hero-hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    margin: 16px 0;
    opacity: 0.8;
    width: clamp(120px, 40%, 300px);
}
.hero-hr.right {
    margin-left: auto;
    margin-right: 0;
}

/* --- Section Headers --- */
.section-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 8px;
}
.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1em;
}

/* --- Blog Header --- */
.blog-header {
    padding: 40px 0 0;
}
.blog-header .section-title {
    margin-bottom: 8px;
}

/* --- Blog Controls (search + filters) --- */
.blog-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 24px auto;
    max-width: 600px;
}
.blog-search {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: .9em;
    outline: none;
    transition: border-color .2s;
}
.blog-search:focus {
    border-color: var(--accent);
}
.blog-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.filter-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: .85em;
    font-weight: 500;
    transition: all .2s;
}
.filter-btn:hover {
    border-color: var(--accent3);
    color: var(--text);
}
.filter-btn.active {
    background: var(--accent3);
    color: #fff;
    border-color: var(--accent3);
}

/* --- Post Cards Grid --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s, border-color .4s;
    cursor: pointer;
    position: relative;
}

/* --- Animated gradient border on hover --- */
.post-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius) + 2px);
    background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3), var(--accent));
    background-size: 300% 300%;
    opacity: 0;
    z-index: -1;
    transition: opacity .5s;
    animation: gradBorder 4s ease-in-out infinite;
}
.post-card:hover::before { opacity: 1; }
@keyframes gradBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.post-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 60px rgba(95,189,185,.18);
    border-color: transparent;
}
.post-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-secondary), #1a1a3a);
}
.post-card-body { padding: 20px 24px 24px; }
.post-card-cat {
    display: inline-block;
    font-size: .75em;
    font-weight: 600;
    color: var(--accent3);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.post-card h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-excerpt {
    font-size: .85em;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-meta {
    font-size: .78em;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    align-items: center;
    opacity: .7;
}
.post-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    font-size: .85em;
    font-weight: 500;
    color: var(--accent);
    transition: gap .3s;
}
.post-card:hover .read-more { gap: 8px; }

/* --- Featured Article Section --- */
.featured-section {
    padding: 40px 0;
}
.featured-card {
    display: flex;
    flex-direction: row;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform .4s cubic-bezier(.22,1,.36,1), border-color .4s;
}
.featured-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}
.featured-card-img {
    flex: 0 0 360px;
    min-height: 280px;
    background-size: cover;
    background-position: center;
}
.featured-card-body {
    flex: 1;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-card .post-card-cat { color: var(--accent3); }
.featured-card h2 {
    font-size: 1.6em;
    font-weight: 700;
    margin: 8px 0;
    line-height: 1.3;
}
.featured-card h2 a {
    color: var(--text);
    text-decoration: none;
}
.featured-card h2 a:hover {
    color: var(--accent);
}
.featured-card p {
    color: var(--text-muted);
    font-size: .95em;
    margin-bottom: 12px;
    line-height: 1.6;
}
.featured-card .post-card-meta { margin-bottom: 4px; }
.featured-card .read-more {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    margin-top: 4px;
    transition: gap .2s;
    gap: 4px;
}
.featured-card .read-more:hover {
    gap: 8px;
}
@media (max-width: 768px) {
    .featured-card {
        flex-direction: column;
    }
    .featured-card-img {
        flex: 0 0 220px;
        width: 100%;
        min-height: 220px;
    }
    .featured-card-body {
        padding: 24px 20px;
    }
    .featured-card h2 {
        font-size: 1.3em;
    }
}

/* --- Article Detail Page --- */
.post-detail {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}
.post-detail-header {
    margin-bottom: 32px;
}
.post-detail-meta {
    font-size: .85em;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.post-detail h1 {
    font-size: 2.2em;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}
.post-detail-img {
    margin-bottom: 32px;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    height: 300px;
}
.post-content {
    font-size: 1.05em;
    line-height: 1.8;
    color: var(--text);
}
.post-content h2 {
    font-size: 1.5em;
    margin: 36px 0 12px;
    font-weight: 700;
}
.post-content h3 {
    font-size: 1.2em;
    margin: 28px 0 10px;
    font-weight: 600;
}
.post-content p {
    margin-bottom: 16px;
}
.post-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.post-content a:hover {
    color: var(--accent2);
}
.post-content ul, .post-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}
.post-content li {
    margin-bottom: 6px;
}
.post-content code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .9em;
    border: 1px solid var(--border);
}
.post-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 20px;
}
.post-content pre code {
    background: transparent;
    border: none;
    padding: 0;
}
.post-content blockquote {
    border-left: 3px solid var(--accent3);
    padding: 12px 20px;
    margin: 20px 0;
    color: var(--text-muted);
    font-style: italic;
    background: var(--bg-card);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 20px 0;
}
.post-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}
.post-content strong {
    font-weight: 700;
}
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: .95em;
}
.post-content th, .post-content td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}
.post-content th {
    background: var(--bg-card);
    font-weight: 600;
}

/* --- Loading State --- */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}
.spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- CTA --- */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95em;
    transition: transform .3s, box-shadow .3s;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(95,189,185,.3);
    color: #fff;
}
/* ripple effect */
.ripple-btn { position: relative; overflow: hidden; }

/* --- Footer --- */
.site-footer {
    margin-top: auto;
    padding: 40px 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-inner p { color: var(--text-muted); font-size: .85em; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: .85em; }
.footer-links a:hover { color: var(--text); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(28,44,70,.98); flex-direction: column; padding: 8px; gap: 2px; border-bottom: 1px solid var(--border); }
    .nav-links.open { display: flex; }
    .nav-links a { height: auto; padding: 10px 16px; border-radius: 6px; }
    .nav-toggle { display: block; }
    .nav-sep { display: none; }

    .hero-inner {
        flex-direction: column;
        padding: 40px 24px 50px;
        gap: 24px;
    }
    .hero-visual {
        flex: 0 0 auto;
        width: 100%;
        max-width: 280px;
        height: 220px;
        order: -1;
    }
    .hero-text { text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .typing-wrap { margin: 0 auto; }

    .featured-card-content { max-width: 100%; }
    .featured-card h2 { font-size: 1.2em; }

    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-visual { max-width: 200px; height: 180px; }
    .hero-text h1 { font-size: 1.8rem; }
}
