/* ═══════════════════════════════════════════════════
   Aptos Red — Inner Pages Stylesheet
   Bento grids, terminal UI, page transitions
   ═══════════════════════════════════════════════════ */

/* ── Inner Page Dark Background ─────────────────── */
/* Override the homepage sci-fi background with a clean dark grainy bg */
body.page-inner::before {
    background: #0c0c0c !important;
}

body.page-inner::after {
    background: none !important;
}

/* Static fine grain overlay for inner pages */
body.page-inner .film-grain {
    opacity: 0.5;
    mix-blend-mode: overlay;
}

body.page-inner .film-grain::after {
    opacity: 0.4;
    mix-blend-mode: soft-light;
}

/* Extra static noise layer */
body.page-inner .scan-lines {
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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") !important;
    opacity: 1 !important;
    animation: none !important;
}

/* Kill the glitch bars on inner pages — keep it clean */
body.page-inner .glitch-overlay {
    display: none;
}

/* ── Hero Background Image with Fade to Black ───── */
.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    z-index: 0;
    background:
        url('assets/desert-bg.jpg') center top / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.8) 30%,
            rgba(0, 0, 0, 0.3) 55%,
            rgba(0, 0, 0, 0) 70%);
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.8) 30%,
            rgba(0, 0, 0, 0.3) 55%,
            rgba(0, 0, 0, 0) 70%);
}

/* Dark overlay on the hero bg image */
.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 4, 4, 0.55);
}

/* ── Page Transition ────────────────────────────── */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--color-bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

/* Fade in on load */
.fade-in {
    animation: pageReveal 0.6s ease-out 0.1s both;
}

@keyframes pageReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Page Hero ──────────────────────────────────── */
.page-hero {
    padding: 160px 24px 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px 6px 6px;
    background: rgba(12, 6, 6, 0.55);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 56, 44, 0.25);
    border-radius: 50px;
    margin-bottom: 36px;
    font-size: 0.82rem;
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.page-title {
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-weight: 800;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: 1.1;
    margin-bottom: 28px;
    color: var(--color-off-white);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;
    animation: fadeUp 0.8s ease-out 0.4s both;

    /* Dot matrix text effect (matches homepage) */
    background-image: radial-gradient(circle,
            var(--color-off-white) 1.2px,
            transparent 1.2px);
    background-size: 3.5px 3.5px;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    filter: drop-shadow(0 0 14px rgba(212, 56, 44, 0.2));
}

.title-line {
    display: block;
}

.title-accent {
    /* Dot matrix in red for the accent word */
    background-image: radial-gradient(circle,
            var(--color-accent-bright) 1.2px,
            transparent 1.2px);
    background-size: 3.5px 3.5px;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(212, 56, 44, 0.35));
}

.page-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-light);
    max-width: 560px;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: 0.01em;
    animation: fadeUp 0.8s ease-out 0.6s both;
}

.page-subtitle em {
    color: var(--color-accent-bright);
    font-style: italic;
}

/* ── Terminal Window ────────────────────────────── */
.terminal-section {
    padding: 0 24px 60px;
    position: relative;
    z-index: 1;
}

.terminal-window {
    max-width: 680px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(212, 56, 44, 0.2);
    background: rgba(8, 4, 4, 0.85);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.terminal-window.visible {
    opacity: 1;
    transform: translateY(0);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(20, 12, 12, 0.8);
    border-bottom: 1px solid rgba(212, 56, 44, 0.1);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #28c840;
}

.terminal-title {
    font-family: 'Geist Mono', 'SF Mono', monospace;
    font-size: 0.72rem;
    color: var(--color-muted);
    flex: 1;
    text-align: center;
}

.terminal-body {
    padding: 20px 24px;
    font-family: 'Geist Mono', 'SF Mono', monospace;
    font-size: 0.82rem;
    line-height: 2;
}

.terminal-prompt {
    color: var(--color-accent-bright);
    margin-right: 8px;
}

.terminal-cmd {
    color: var(--color-off-white);
    font-weight: 500;
}

.terminal-flag {
    color: #28c840;
}

.terminal-output {
    color: var(--color-muted);
}

.terminal-cursor {
    color: var(--color-accent-bright);
    animation: cursorBlink 1s steps(1) infinite;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ── Bento Grid ─────────────────────────────────── */
.bento-section {
    padding: 40px 24px 60px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.section-label {
    font-family: 'Geist Mono', 'SF Mono', monospace;
    font-size: 0.75rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--color-off-white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-title em {
    color: var(--color-accent-bright);
    font-style: italic;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--color-light);
    line-height: 1.6;
    font-weight: 300;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.bento-card {
    background: rgba(12, 6, 6, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 56, 44, 0.12);
    border-radius: 16px;
    padding: 32px 28px;
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Staggered reveal delays */
.bento-card:nth-child(1) {
    transition-delay: 0s;
}

.bento-card:nth-child(2) {
    transition-delay: 0.1s;
}

.bento-card:nth-child(3) {
    transition-delay: 0.2s;
}

.bento-card:nth-child(4) {
    transition-delay: 0.25s;
}

.bento-card:nth-child(5) {
    transition-delay: 0.3s;
}

.bento-card:nth-child(6) {
    transition-delay: 0.35s;
}

.bento-card:nth-child(7) {
    transition-delay: 0.4s;
}

.bento-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bento-card:hover {
    border-color: rgba(212, 56, 44, 0.35);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 48px rgba(212, 56, 44, 0.1);
}

/* Card sizes */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-medium {
    grid-column: span 1;
}

.bento-wide {
    grid-column: span 2;
}

.bento-small {
    grid-column: span 1;
}

.bento-icon {
    margin-bottom: 16px;
    color: var(--color-off-white);
    display: flex;
    align-items: center;
}

.bento-title {
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-off-white);
    margin-bottom: 10px;
}

.bento-desc {
    font-size: 0.88rem;
    color: var(--color-light);
    line-height: 1.6;
    font-weight: 300;
}

/* Terminal code inside bento cards */
.bento-terminal {
    margin-top: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(212, 56, 44, 0.1);
    font-family: 'Geist Mono', 'SF Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.8;
}

.code-comment {
    color: var(--color-muted);
}

.code-key {
    color: var(--color-accent-bright);
}

.code-value {
    color: var(--color-off-white);
}

.code-green {
    color: #28c840;
}

/* Stats inside bento */
.bento-stats {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 56, 44, 0.12);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-accent-bright);
}

.stat-label {
    font-size: 0.72rem;
    color: var(--color-muted);
    letter-spacing: 0.02em;
}

/* ── Process Section ────────────────────────────── */
.process-section {
    padding: 60px 24px 80px;
    position: relative;
    z-index: 1;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    background: rgba(12, 6, 6, 0.5);
    border: 1px solid rgba(212, 56, 44, 0.12);
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease;
}

.process-step:nth-child(1) {
    transition-delay: 0s;
}

.process-step:nth-child(2) {
    transition-delay: 0.12s;
}

.process-step:nth-child(3) {
    transition-delay: 0.24s;
}

.process-step:nth-child(4) {
    transition-delay: 0.36s;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.process-step:hover {
    border-color: rgba(212, 56, 44, 0.35);
}

.step-number {
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(212, 56, 44, 0.15);
    line-height: 1;
    margin-bottom: 12px;
}

.step-content h3 {
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-off-white);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--color-light);
    line-height: 1.6;
    font-weight: 300;
}

.step-terminal {
    margin-top: 16px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    font-family: 'Geist Mono', 'SF Mono', monospace;
    font-size: 0.72rem;
    color: var(--color-muted);
    border: 1px solid rgba(212, 56, 44, 0.08);
}

/* ── CTA Section ────────────────────────────────── */
.cta-section {
    padding: 40px 24px 120px;
    position: relative;
    z-index: 1;
}

.cta-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 48px;
    background: rgba(12, 6, 6, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 56, 44, 0.2);
    border-radius: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cta-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-title {
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--color-off-white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-title em {
    color: var(--color-accent-bright);
    font-style: italic;
}

.cta-desc {
    font-size: 0.9rem;
    color: var(--color-light);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-phone {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.phone-link {
    color: var(--color-accent-bright);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: var(--color-white);
}

/* ═══════════════════════════════════════════════════
   AI Lab Page
   ═══════════════════════════════════════════════════ */

/* ── Split Hero ─────────────────────────────────── */
.ai-hero {
    padding: 160px 24px 80px;
    position: relative;
    z-index: 1;
}

.ai-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ai-hero-left {
    animation: fadeUp 0.8s ease-out 0.2s both;
}

/* Badge */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(12, 6, 6, 0.55);
    border: 1px solid rgba(212, 56, 44, 0.3);
    border-radius: 4px;
    margin-bottom: 32px;
    font-family: 'Geist Mono', 'SF Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--color-accent-bright);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent-bright);
    box-shadow: 0 0 8px var(--color-accent-bright);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Description */
.ai-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-light);
    font-weight: 300;
    margin-bottom: 36px;
    max-width: 480px;
}

/* Feature Cards */
.ai-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ai-feature-card {
    background: rgba(12, 6, 6, 0.6);
    border: 1px solid rgba(212, 56, 44, 0.12);
    border-radius: 12px;
    padding: 24px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease;
}

.ai-feature-card:nth-child(1) {
    transition-delay: 0.3s;
}

.ai-feature-card:nth-child(2) {
    transition-delay: 0.45s;
}

.ai-feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.ai-feature-card:hover {
    border-color: rgba(212, 56, 44, 0.3);
}

.ai-feature-title {
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-off-white);
    margin-bottom: 6px;
}

.ai-feature-desc {
    font-size: 0.78rem;
    color: var(--color-muted);
    line-height: 1.5;
    font-weight: 300;
}

/* ── Chat Interface ─────────────────────────────── */
.ai-hero-right {
    animation: fadeUp 0.8s ease-out 0.5s both;
}

.ai-chat-window {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 56, 44, 0.2);
    background: rgba(8, 4, 4, 0.85);
    backdrop-filter: blur(12px);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(20, 12, 12, 0.8);
    border-bottom: 1px solid rgba(212, 56, 44, 0.1);
}

.chat-body {
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 260px;
}

/* Messages */
.chat-msg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.chat-user {
    justify-content: flex-start;
}

.chat-ai {
    justify-content: flex-end;
}

.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Geist Mono', 'SF Mono', monospace;
    font-size: 0.68rem;
    color: var(--color-muted);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-avatar-ai {
    background: rgba(212, 56, 44, 0.15);
    border-color: rgba(212, 56, 44, 0.25);
}

.chat-avatar-ai img {
    border-radius: 3px;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.6;
    max-width: 85%;
}

.chat-bubble-user {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-off-white);
    border-top-left-radius: 3px;
}

.chat-bubble-ai {
    background: rgba(212, 56, 44, 0.1);
    border: 1px solid rgba(212, 56, 44, 0.2);
    color: var(--color-light);
    font-family: 'Geist Mono', 'SF Mono', monospace;
    font-size: 0.78rem;
    border-top-right-radius: 3px;
}

/* Typing dots */
.chat-typing {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent-bright);
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Chat footer */
.chat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-top: 1px solid rgba(212, 56, 44, 0.1);
    background: rgba(12, 8, 8, 0.5);
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--color-muted);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 6px #28c840;
}

.chat-demo-btn {
    font-family: 'Geist Mono', 'SF Mono', monospace;
    font-size: 0.72rem;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--color-off-white);
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.chat-demo-btn:hover {
    border-color: rgba(212, 56, 44, 0.4);
    background: rgba(212, 56, 44, 0.1);
}

/* ═══════════════════════════════════════════════════
   Local SEO Page
   ═══════════════════════════════════════════════════ */

/* Hero CTA Row */
.hero-cta-row {
    margin-bottom: 48px;
    animation: fadeUp 0.8s ease-out 0.6s both;
}

/* Trust Signal Cards */
.trust-signals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 48px auto 0;
}

.trust-card {
    background: rgba(12, 6, 6, 0.6);
    border: 1px solid rgba(212, 56, 44, 0.12);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease;
}

.trust-card:nth-child(1) {
    transition-delay: 0s;
}

.trust-card:nth-child(2) {
    transition-delay: 0.12s;
}

.trust-card:nth-child(3) {
    transition-delay: 0.24s;
}

.trust-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.trust-card:hover {
    border-color: rgba(212, 56, 44, 0.3);
}

.trust-value {
    display: block;
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-off-white);
    margin-bottom: 8px;
}

.trust-label {
    font-size: 0.78rem;
    color: var(--color-muted);
    line-height: 1.5;
    font-weight: 300;
}

/* ── Split Section ──────────────────────────────── */
.seo-split-section {
    padding: 80px 24px 80px;
    position: relative;
    z-index: 1;
}

.seo-split-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.seo-split-heading {
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--color-off-white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.seo-split-desc {
    font-size: 0.9rem;
    color: var(--color-light);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 36px;
}

/* Checklist */
.seo-checklist {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.seo-check-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.seo-check-item:nth-child(1) {
    transition-delay: 0.1s;
}

.seo-check-item:nth-child(2) {
    transition-delay: 0.25s;
}

.seo-check-item:nth-child(3) {
    transition-delay: 0.4s;
}

.seo-check-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.check-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(212, 56, 44, 0.15);
    border: 1px solid rgba(212, 56, 44, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-bright);
    margin-top: 2px;
}

.check-title {
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-off-white);
    margin-bottom: 6px;
}

.check-desc {
    font-size: 0.82rem;
    color: var(--color-muted);
    line-height: 1.6;
    font-weight: 300;
}

/* ── Google SERP Mockup ─────────────────────────── */
.serp-window {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 56, 44, 0.15);
    background: rgba(8, 4, 4, 0.85);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.serp-window.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.serp-header {
    padding: 14px 18px;
    background: rgba(20, 12, 12, 0.8);
    border-bottom: 1px solid rgba(212, 56, 44, 0.1);
}

.serp-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.serp-google {
    font-family: 'Geist Sans', 'Geist', var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-off-white);
}

.serp-query {
    flex: 1;
    font-size: 0.78rem;
    color: var(--color-light);
}

.serp-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.serp-label {
    font-size: 0.65rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-top: 6px;
}

/* SERP Results */
.serp-result {
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
}

.serp-sponsored {
    border-color: rgba(212, 56, 44, 0.25);
    background: rgba(212, 56, 44, 0.06);
}

.serp-organic-highlight {
    border-color: rgba(212, 56, 44, 0.3);
    background: rgba(212, 56, 44, 0.08);
}

.serp-result-inner {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.serp-url {
    font-size: 0.68rem;
    color: var(--color-muted);
    font-family: 'Geist Mono', 'SF Mono', monospace;
}

.serp-result-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #8ab4f8;
}

.serp-sponsored .serp-result-title,
.serp-organic-highlight .serp-result-title {
    color: var(--color-accent-bright);
}

.serp-snippet {
    font-size: 0.72rem;
    color: var(--color-muted);
    line-height: 1.5;
}

/* Map Pack Places */
.serp-places {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.serp-place {
    padding: 10px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.serp-place-highlight {
    border-color: rgba(212, 56, 44, 0.3);
    background: rgba(212, 56, 44, 0.06);
}

.serp-place-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-off-white);
}

.serp-place-highlight .serp-place-name {
    color: var(--color-accent-bright);
}

.serp-place-meta {
    font-size: 0.68rem;
    color: var(--color-muted);
}

.serp-place-addr {
    font-size: 0.65rem;
    color: rgba(154, 128, 128, 0.6);
}

/* ── Active Nav Link ────────────────────────────── */
.nav-link.active {
    color: var(--color-white);
}

/* ── Page Content wrapper (so footer doesn't overlap) ── */
.page-content {
    padding-bottom: 60px;
}

/* ── Inner Page Footer ──────────────────────────── */
.inner-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 24px;
    background: rgba(8, 4, 4, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(212, 56, 44, 0.1);
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-phone,
.footer-email {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.footer-phone:hover,
.footer-email:hover {
    color: var(--color-accent-bright);
}

.footer-divider {
    color: rgba(212, 56, 44, 0.3);
    font-size: 0.75rem;
}

.footer-copy {
    font-size: 0.68rem;
    color: rgba(154, 128, 128, 0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 400;
}

/* ── Responsive — Pages ─────────────────────────── */
@media (max-width: 768px) {
    .page-hero {
        padding: 140px 20px 40px;
    }

    .page-title {
        font-size: 2.4rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .bento-stats {
        flex-direction: column;
        gap: 16px;
    }

    .terminal-body {
        font-size: 0.72rem;
        padding: 16px;
    }

    .ai-hero {
        padding: 140px 20px 40px;
    }

    .ai-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-title {
        text-align: center !important;
    }

    .ai-desc {
        max-width: 100%;
    }

    .ai-features {
        grid-template-columns: 1fr;
    }

    .trust-signals {
        grid-template-columns: 1fr;
    }

    .seo-split-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }

    .cta-content {
        padding: 40px 24px;
    }

    .cta-actions {
        flex-direction: column;
    }

    .bento-card {
        padding: 24px 20px;
    }

    .step-number {
        font-size: 2.2rem;
    }
}

/* ═══════════════════════════════════════════════════
   Web Design — Portfolio Showcase
   ═══════════════════════════════════════════════════ */

.wd-showcase-section {
    padding: var(--space-xl) var(--space-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.wd-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}

.wd-showcase-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 56, 44, 0.08);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.wd-showcase-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.wd-showcase-item.wd-tall {
    grid-row: span 2;
}

.wd-showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.wd-showcase-item:hover img {
    transform: scale(1.05);
}

.wd-showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 16px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wd-showcase-item:hover .wd-showcase-overlay {
    opacity: 1;
}

.wd-showcase-name {
    font-family: 'Geist Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-off-white);
}

@media (max-width: 768px) {
    .wd-showcase-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
        gap: 12px;
    }

    .wd-showcase-item.wd-tall {
        grid-row: span 1;
    }

    .wd-showcase-section {
        padding: 40px 16px;
    }

    .wd-showcase-overlay {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .wd-showcase-grid {
        grid-auto-rows: 200px;
    }
}

/* ═══════════════════════════════════════════════════
   Web Development Page
   ═══════════════════════════════════════════════════ */

/* Terminal Section */
.dev-terminal-section {
    padding: 0 var(--space-lg) var(--space-xl);
    max-width: 720px;
    margin: 0 auto;
}

.dev-terminal {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 56, 44, 0.15);
    background: #0a0a0a;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5);
}

.dev-term-bar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #111;
    border-bottom: 1px solid rgba(212, 56, 44, 0.1);
    gap: 10px;
}

.dev-term-dots {
    display: flex;
    gap: 6px;
}

.dt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dt-red {
    background: #ff5f57;
}

.dt-yellow {
    background: #febc2e;
}

.dt-green {
    background: #28c840;
}

.dev-term-title {
    flex: 1;
    text-align: center;
    font-family: 'Geist Mono', monospace;
    font-size: 0.65rem;
    color: rgba(154, 128, 128, 0.5);
}

.dev-term-body {
    padding: 20px 24px 28px;
    font-family: 'Geist Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.9;
}

.dev-term-line {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.dev-term-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.dt-prompt {
    color: #d4382c;
    font-weight: 700;
}

.dt-text {
    color: #f0e6e6;
}

.dt-comment {
    color: rgba(154, 128, 128, 0.4);
    font-style: italic;
}

.dt-bracket {
    color: rgba(154, 128, 128, 0.5);
}

.dt-key {
    color: #d4382c;
}

.dt-string {
    color: #28c840;
}

.dt-success {
    color: #28c840;
    font-weight: 600;
}

.dt-cursor {
    animation: dtBlink 1s step-end infinite;
    color: #d4382c;
}

@keyframes dtBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Stack Cards Section */
.dev-stack-section {
    padding: var(--space-lg);
    padding-top: 100px;
    padding-bottom: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.dev-section-heading {
    font-family: 'Geist Sans', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 600;
    color: var(--color-off-white);
    text-align: center;
    margin-bottom: 0.5rem;
}

.dev-section-sub {
    font-family: 'Geist Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--color-muted);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.dev-stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dev-stack-card {
    background: rgba(12, 8, 8, 0.6);
    border: 1px solid rgba(212, 56, 44, 0.08);
    border-radius: 14px;
    padding: 32px 28px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.dev-stack-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.dev-stack-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 56, 44, 0.25);
    box-shadow: 0 12px 40px rgba(212, 56, 44, 0.08);
}

.stack-card-icon {
    color: #d4382c;
    margin-bottom: 16px;
}

.stack-card-title {
    font-family: 'Geist Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-off-white);
    margin-bottom: 10px;
}

.stack-card-desc {
    font-family: 'Geist Sans', sans-serif;
    font-size: 0.82rem;
    color: var(--color-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

.stack-card-desc strong {
    color: var(--color-light);
    font-weight: 500;
}

.stack-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stack-card-tags span {
    font-family: 'Geist Mono', monospace;
    font-size: 0.62rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(212, 56, 44, 0.08);
    color: rgba(212, 56, 44, 0.7);
    border: 1px solid rgba(212, 56, 44, 0.1);
}

/* Code Preview Section */
.dev-code-section {
    padding: var(--space-lg);
    padding-top: 100px;
    max-width: 1100px;
    margin: 0 auto;
}

.dev-code-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.dev-code-heading {
    font-family: 'Geist Sans', sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 600;
    color: var(--color-off-white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.dev-code-heading em {
    color: #d4382c;
    font-style: normal;
}

.dev-code-desc {
    font-family: 'Geist Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.dev-code-stats {
    display: flex;
    gap: 32px;
}

.dev-stat {
    display: flex;
    flex-direction: column;
}

.dev-stat-value {
    font-family: 'Geist Mono', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: #d4382c;
}

.dev-stat-label {
    font-family: 'Geist Sans', sans-serif;
    font-size: 0.7rem;
    color: var(--color-muted);
    margin-top: 2px;
}

/* Code Block */
.dev-code-block {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 56, 44, 0.12);
    background: #0a0a0a;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.dev-code-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.dev-code-bar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #111;
    border-bottom: 1px solid rgba(212, 56, 44, 0.08);
    gap: 10px;
}

.dev-code-dots {
    display: flex;
    gap: 6px;
}

.dev-code-filename {
    flex: 1;
    text-align: center;
    font-family: 'Geist Mono', monospace;
    font-size: 0.65rem;
    color: rgba(154, 128, 128, 0.5);
}

.dev-code-content {
    padding: 20px 24px;
    font-family: 'Geist Mono', monospace;
    font-size: 0.72rem;
    line-height: 1.8;
    color: #c8b8b8;
    overflow-x: auto;
    margin: 0;
}

.dev-code-content code {
    font-family: inherit;
}

.code-keyword {
    color: #c678dd;
}

.code-string {
    color: #98c379;
}

.code-func {
    color: #61afef;
}

.code-var {
    color: #e5c07b;
}

.code-comment {
    color: rgba(154, 128, 128, 0.4);
    font-style: italic;
}

.code-type {
    color: #56b6c2;
}

/* ═══════ Responsive - Web Dev Page ═══════ */

@media (max-width: 900px) {
    .dev-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dev-code-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .dev-stack-section {
        padding-top: 60px;
    }

    .dev-code-section {
        padding-top: 60px;
    }
}

@media (max-width: 600px) {
    .dev-stack-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dev-terminal-section {
        padding: 0 16px 20px;
    }

    .dev-term-body {
        padding: 16px;
        font-size: 0.65rem;
        line-height: 1.7;
        overflow-x: auto;
    }

    .dev-stack-section {
        padding: 16px;
        padding-top: 48px;
        padding-bottom: 20px;
    }

    .dev-section-heading {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .dev-section-sub {
        font-size: 0.82rem;
        margin-bottom: 24px;
    }

    .dev-stack-card {
        padding: 24px 20px;
    }

    .dev-code-section {
        padding: 16px;
        padding-top: 48px;
    }

    .dev-code-heading {
        font-size: 1.4rem;
    }

    .dev-code-desc {
        font-size: 0.82rem;
        margin-bottom: 24px;
    }

    .dev-code-stats {
        gap: 20px;
        margin-bottom: 32px;
    }

    .dev-stat-value {
        font-size: 1.3rem;
    }

    .dev-code-content {
        font-size: 0.6rem;
        padding: 16px;
        overflow-x: auto;
    }

    .dev-code-block {
        max-width: 100%;
        overflow: hidden;
    }
}