/* ══════════════════════════════════════════════════════
   MelTuc Company Website — Site-Specific Styles
   Extends design_tokens.css + shared.css
   ══════════════════════════════════════════════════════ */

/* ── Hero Background ── */
.hero-section {
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 212, 170, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.04) 0%, transparent 40%);
    pointer-events: none;
}
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(30, 37, 48, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 37, 48, 0.3) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    pointer-events: none;
}

/* ── Pipeline Visualization ── */
.hero-pipeline {
    margin-top: 48px;
    position: relative;
}
.pipeline-track {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}
.pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 1;
}
.pipeline-dot {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
}
.pipeline-dot.active {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(0, 212, 170, 0.2);
}
.pipeline-dot svg { width: 18px; height: 18px; }
.pipeline-label {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pipeline-line {
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--border);
    z-index: 0;
}
.pipeline-line-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 1.5s ease;
}
.pipeline-line-fill.animate {
    width: 100%;
}

/* ── What We've Shipped ── */
.shipped-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.shipped-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s ease;
}
.shipped-card:hover {
    border-color: rgba(0, 212, 170, 0.3);
}
.shipped-mockup {
    height: 180px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    overflow: hidden;
    position: relative;
}
.mockup-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}
.mockup-dot.r { background: #ef4444; }
.mockup-dot.y { background: #f59e0b; }
.mockup-dot.g { background: #22c55e; }
.mockup-url {
    flex: 1;
    height: 16px;
    background: var(--panel);
    border-radius: 2px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 8px;
    color: var(--muted);
}
.mockup-body {
    display: flex;
    gap: 8px;
    height: calc(100% - 30px);
}
.mockup-sidebar {
    width: 48px;
    background: var(--panel);
    border-radius: 2px;
    flex-shrink: 0;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mockup-nav-item {
    height: 4px;
    background: var(--border);
    border-radius: 1px;
}
.mockup-nav-item.active {
    background: var(--accent);
}
.mockup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mockup-header-bar {
    height: 14px;
    background: var(--panel);
    border-radius: 2px;
}
.mockup-stats {
    display: flex;
    gap: 4px;
}
.mockup-stat {
    flex: 1;
    height: 28px;
    background: var(--panel);
    border-radius: 2px;
}
.mockup-table {
    flex: 1;
    background: var(--panel);
    border-radius: 2px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.mockup-row {
    height: 5px;
    background: var(--border);
    border-radius: 1px;
    opacity: 0.5;
}
.mockup-row:first-child { opacity: 0.8; }
.mockup-chart-area {
    flex: 1;
    position: relative;
}
.shipped-info {
    padding: 16px;
}
.shipped-type {
    font-size: 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}
.shipped-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.shipped-desc {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.6;
}

/* ── Contact Next Steps ── */
.next-steps {
    margin-top: 32px;
}
.next-steps-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}
.next-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
}
.next-step-num {
    width: 24px;
    height: 24px;
    border-radius: var(--radius);
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.next-step-text {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}
.next-step-text strong {
    color: var(--text);
}

/* ── Process Icons ── */
.process-step-icon {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.process-step-icon svg {
    width: 14px;
    height: 14px;
}

/* ── Nav Enhancements ── */
.top-nav {
    background: transparent;
    border-bottom-color: transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.top-nav.scrolled {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--muted);
    transition: all 0.15s ease;
}

/* ── Hero ── */
.hero-section {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero {
    padding: 0;
}

.hero-headline {
    max-width: 800px;
}

/* ── Services Grid ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    border-top: 2px solid transparent;
    transition: border-color 0.15s ease;
}
.service-card:hover {
    border-color: rgba(0, 212, 170, 0.3);
    border-top-color: var(--accent);
}
.service-card.featured {
    border-top-color: var(--accent);
    position: relative;
}

.service-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 500;
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 212, 170, 0.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.service-deliverables {
    list-style: none;
    padding: 0;
}
.service-deliverables li {
    font-size: 11px;
    color: var(--muted);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}
.service-deliverables li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ── Process Timeline ── */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.process-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.process-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 0;
    position: relative;
}

.process-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    width: 56px;
    height: 56px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.process-content {
    padding-top: 8px;
    flex: 1;
}

.process-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.process-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 600px;
}

/* ── About ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-narrative p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 20px;
}
.about-narrative p:last-child {
    margin-bottom: 0;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.value-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 170, 0.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.value-desc {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.7;
}

/* ── Technology ── */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tech-category {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.tech-category-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 11px;
    color: var(--text);
}
.tech-tag.accent {
    border-color: rgba(0, 212, 170, 0.3);
    color: var(--accent);
    background: rgba(0, 212, 170, 0.06);
}

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

.contact-form {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.contact-info {
    padding-top: 12px;
}

.contact-info-block {
    margin-bottom: 24px;
}

.contact-info-label {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.contact-info-value {
    font-size: 14px;
    color: var(--text);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
}

a.contact-info-value {
    color: var(--accent);
    text-decoration: none;
}
a.contact-info-value:hover {
    text-decoration: underline;
}

.contact-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

.contact-note {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
}

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 48px 28px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.footer-links a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s ease;
}
.footer-links a:hover {
    color: var(--text);
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--muted);
}

.footer-tagline {
    color: var(--accent);
    font-size: 11px;
}

/* ── Engagement Tiers ── */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.tier-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease;
}
.tier-card:hover {
    border-color: rgba(0, 212, 170, 0.3);
}
.tier-card.highlighted {
    border-color: var(--accent);
    position: relative;
}
.tier-card.highlighted::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -10px;
    left: 24px;
    padding: 2px 10px;
    background: var(--accent);
    color: var(--bg);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: var(--radius);
}

.tier-label {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.tier-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.tier-timeline {
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 16px;
}

.tier-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}
.tier-features li {
    font-size: 11px;
    color: var(--muted);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    border-bottom: 1px solid var(--border);
}
.tier-features li:last-child { border-bottom: none; }
.tier-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
}
.tier-card.highlighted .tier-features li::before {
    background: var(--accent);
}

/* ── Scroll Animations ── */
.animate-target {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.service-card.animate-target:nth-child(2) { transition-delay: 0.05s; }
.service-card.animate-target:nth-child(3) { transition-delay: 0.10s; }
.service-card.animate-target:nth-child(4) { transition-delay: 0.15s; }
.service-card.animate-target:nth-child(5) { transition-delay: 0.10s; }
.service-card.animate-target:nth-child(6) { transition-delay: 0.15s; }

.tier-card.animate-target:nth-child(2) { transition-delay: 0.08s; }
.tier-card.animate-target:nth-child(3) { transition-delay: 0.16s; }

.shipped-card.animate-target:nth-child(2) { transition-delay: 0.08s; }
.shipped-card.animate-target:nth-child(3) { transition-delay: 0.16s; }

.process-step.animate-target:nth-child(2) { transition-delay: 0.05s; }
.process-step.animate-target:nth-child(3) { transition-delay: 0.10s; }
.process-step.animate-target:nth-child(4) { transition-delay: 0.15s; }
.process-step.animate-target:nth-child(5) { transition-delay: 0.20s; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; }
    .tier-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .shipped-grid { grid-template-columns: 1fr; }
    .pipeline-label { font-size: 8px; }
    .pipeline-dot { width: 32px; height: 32px; }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
        min-height: auto;
    }
    .hero-headline { font-size: 36px; }

    .top-nav-links {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--panel);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 28px;
        gap: 12px;
    }
    .top-nav-links.mobile-open {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .process-timeline::before {
        left: 18px;
    }
    .process-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .footer-links {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-headline { font-size: 28px; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 40px 16px; }
    .tech-grid { grid-template-columns: 1fr; }
}
