/* JefeWorks - AI Engineering Studio */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@300;400;500&display=swap');

/* ============================================
   Variables
   ============================================ */
:root {
    --bg: #08090d;
    --bg-raised: #0e1015;
    --bg-panel: #12141b;
    --bg-card: #14161e;
    --bg-hover: #1a1d28;
    --border: #1e2130;
    --border-hover: #2a2e42;
    --text: #c4c9d4;
    --text-bright: #eaedf3;
    --text-dim: #5c6170;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-dim: rgba(99, 102, 241, 0.1);
    --accent-border: rgba(99, 102, 241, 0.2);
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.1);
    --yellow: #eab308;
    --yellow-dim: rgba(234, 179, 8, 0.1);
    --red: #ef4444;
    --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
    --radius: 8px;
    --radius-lg: 12px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent);
    color: white;
}

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 9, 13, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s var(--ease);
}

.navbar.scrolled {
    background: rgba(8, 9, 13, 0.95);
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-bright);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.2s;
}

.nav-logo:hover { color: var(--accent-light); }

.nav-logo-img {
    width: 32px;
    height: 32px;
}

.logo-mark {
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s var(--ease);
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all 0.25s var(--ease);
    border-radius: 1px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 40px;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-light);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.6rem);
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-accent {
    color: var(--accent-light);
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text-bright);
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

/* Hero Terminal */
.hero-terminal {
    grid-column: 2;
    grid-row: 1 / span 5;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.terminal-body {
    padding: 16px 18px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.8;
}

.terminal-line {
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
}

.t-prompt { color: var(--green); margin-right: 8px; }
.t-dim { color: var(--text-dim); }
.t-success { color: var(--green); }

/* ============================================
   Sections
   ============================================ */
.section {
    position: relative;
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-raised);
}

.section-header {
    margin-bottom: 56px;
}

.section-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-light);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 560px;
}

/* ============================================
   Product Cards
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.25s var(--ease);
    position: relative;
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.product-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-indicator.active {
    background: var(--green);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.status-indicator.dev {
    background: var(--yellow);
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.3);
}

.product-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.product-icon svg {
    width: 100%;
    height: 100%;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-stack span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent-light);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    padding: 3px 10px;
    border-radius: 4px;
}

/* ============================================
   Infrastructure
   ============================================ */
.infra-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
}

.infra-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.2s var(--ease);
}

.infra-card:hover {
    border-color: var(--border-hover);
}

.infra-card.titan {
    padding: 40px;
}

.infra-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.infra-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent-light);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.infra-status-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--green);
}

.pulse-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.infra-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.infra-spec {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.infra-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.infra-detail {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.detail-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
}

.infra-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.infra-mini-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.infra-mini-desc {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.6;
}

/* ============================================
   Chat / AI Assistant
   ============================================ */
.chat-container {
    max-width: 820px;
}

.chat-chrome {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-raised);
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.chat-header-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-bright);
}

.chat-header-info {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.chat-messages {
    height: 385px;
    overflow-y: auto;
    padding: 18px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.message {
    margin-bottom: 16px;
    animation: msgIn 0.3s var(--ease);
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-content {
    max-width: 88%;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    line-height: 1.6;
}

.ai-message .message-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
}

.user-message {
    display: flex;
    justify-content: flex-end;
}

.user-message .message-content {
    background: var(--accent);
    color: white;
    border: none;
}

.message-content p { margin-bottom: 8px; }
.message-content p:last-child { margin-bottom: 0; }
.message-content strong { color: var(--text-bright); font-weight: 600; }
.message-content ul { margin: 8px 0; padding-left: 20px; }
.message-content li { margin-bottom: 4px; font-size: 0.85rem; }

.typing-indicator .message-content {
    padding: 14px 20px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: typing 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 18px 14px;
}

.suggestion-btn {
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-light);
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: 20px;
    padding: 5px 14px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.suggestion-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-light);
}

.chat-input-area {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border);
    background: var(--bg-raised);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-bright);
    font-family: var(--font);
    font-size: 0.88rem;
    padding: 14px 18px;
    outline: none;
}

.chat-input::placeholder {
    color: var(--text-dim);
}

.chat-send {
    background: none;
    border: none;
    color: var(--accent-light);
    cursor: pointer;
    padding: 14px 18px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.chat-send:hover { color: var(--accent); }

.chat-send svg {
    width: 18px;
    height: 18px;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.chat-close:hover { color: var(--text); }

.chat-close svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Floating Chat FAB
   ============================================ */
.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.25s var(--ease);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.chat-fab.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.chat-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.5);
}

.chat-fab svg {
    width: 22px;
    height: 22px;
}

.fab-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid var(--accent);
}

/* Floating Chat Panel */
.chat-floating-panel {
    position: fixed;
    bottom: 88px;
    right: 24px;
    z-index: 95;
    width: 440px;
    max-height: 600px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.95);
    transition: all 0.25s var(--ease);
}

.chat-floating-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-floating-panel .chat-messages {
    height: 425px;
}

.chat-floating-panel .chat-chrome {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Contact
   ============================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-text {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 440px;
}

.contact-email {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-light);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 2px solid var(--accent-border);
    transition: all 0.2s var(--ease);
}

.contact-email:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.contact-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    background: var(--bg);
    padding: 40px 0 28px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
}

.footer-logo-img {
    width: 24px;
    height: 24px;
}

.footer-tagline {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 2px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.75rem;
}

/* ============================================
   Dev Log Preview (homepage section)
   ============================================ */
.devlog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.devlog-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s var(--ease);
    display: flex;
    flex-direction: column;
}

.devlog-preview-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.devlog-preview-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.devlog-preview-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-bright);
    line-height: 1.35;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.devlog-preview-summary {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.devlog-preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.devlog-preview-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 500;
    color: white;
    opacity: 0.85;
}

@media (max-width: 960px) {
    .devlog-preview-grid {
        grid-template-columns: 1fr 1fr;
    }

    .devlog-preview-grid > :nth-child(3) {
        display: none;
    }
}

@media (max-width: 480px) {
    .devlog-preview-grid {
        grid-template-columns: 1fr;
    }

    .devlog-preview-grid > :nth-child(2),
    .devlog-preview-grid > :nth-child(3) {
        display: none;
    }
}

/* ============================================
   Scroll Reveal
   ============================================ */
.product-card,
.infra-card,
.contact-detail,
.devlog-preview-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.2s, box-shadow 0.25s;
}

.product-card.visible,
.infra-card.visible,
.contact-detail.visible,
.devlog-preview-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-terminal {
        grid-column: 1;
        grid-row: auto;
        max-width: 480px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .infra-layout {
        grid-template-columns: 1fr;
    }

    .infra-side {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(8, 9, 13, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 10px 14px;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .section {
        padding: 64px 0;
    }

    .infra-side {
        grid-template-columns: 1fr;
    }

    .infra-details {
        grid-template-columns: 1fr 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .chat-floating-panel {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 80px;
    }

    .chat-fab {
        bottom: 16px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .product-card {
        padding: 24px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .chat-suggestions {
        flex-direction: column;
    }

    .suggestion-btn {
        text-align: left;
    }

    .infra-card.titan {
        padding: 24px;
    }

    .infra-details {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
