/* ============================================
   Masland Tech LLC
   ============================================ */

:root {
    --bg: #0a0a0a;
    --border: #1a1a1a;
    --border-hover: #333333;
    --text: #d4d4d8;
    --text-2: #a1a1aa;
    --text-3: #52525b;
    --accent: #f97316;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', monospace;
    --max: 880px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Nav --- */
#main-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.nav-logo {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 0.9rem;
}

.hex {
    height: 1.25em;
    width: auto;
    vertical-align: middle;
    margin-right: 6px;
    margin-top: -3px;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 5px 12px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.2s var(--ease);
}

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

/* --- Labels --- */
.label {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-3);
    margin-bottom: 20px;
}

/* --- Hero --- */
.hero {
    padding: 148px 0 96px;
}

.hero h1 {
    font-family: var(--mono);
    font-size: clamp(2.8rem, 8vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

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

.sub {
    font-size: 0.95rem;
    color: var(--text-2);
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: 36px;
}

/* --- Automation --- */
.automation {
    padding: 64px 0 80px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--text-2);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 4px;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.tag:hover {
    color: var(--text);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* --- Services --- */
.services {
    padding: 64px 0 80px;
}

.service {
    display: flex;
    gap: 12px;
    padding: 28px 0;
    border-top: 1px solid var(--border);
    align-items: center;
    overflow: hidden;
}

.service:first-of-type {
    border-top: none;
}

.num {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    flex-shrink: 0;
    width: 20px;
    padding-top: 1px;
}

.service>div {
    min-width: 0;
    flex: 1;
}

.service h3 {
    font-family: var(--mono);
    font-size: clamp(0.5rem, 3vw, 0.95rem);
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service p {
    font-size: clamp(0.4rem, 1.9vw, 0.88rem);
    color: var(--text-2);
    line-height: 1.7;
    max-width: 520px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Projects --- */
.projects {
    padding: 64px 0 80px;
}

.project+.project {
    margin-top: 24px;
}

.project h3 {
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-link {
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
    transition: border-color 0.2s var(--ease);
}

.project-link:hover {
    border-color: var(--accent);
}

.project p {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 10px;
}

.project-meta {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-3);
}

.accent-link {
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease);
}

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

/* --- Contact --- */
.contact {
    padding: 64px 0 100px;
}

.contact-links {
    display: flex;
    gap: 24px;
}

.contact-item {
    font-family: var(--mono);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-2);
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border);
    padding: 20px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-3);
}

.footer-copy {
    font-size: 0.72rem;
    color: var(--text-3);
}

/* --- Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile --- */
@media (max-width: 600px) {
    .hero {
        padding: 112px 0 56px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

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