:root {
    --bg: #0a0a0b;
    --bg-soft: #121214;
    --bg-card: #17171a;
    --text: #f5f5f6;
    --text-muted: #9c9ca3;
    --text-dim: #6b6b72;
    --line: #26262a;
    --accent: #ff5c1a;
    --radius: 4px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.15;
}

.section-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--text-dim);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 5%;
    background: rgba(10,10,11,0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-links { display: flex; gap: 2.4rem; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 5rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    margin: 1.4rem 0 1.6rem;
}
.hero h1 .light { color: var(--text-muted); font-weight: 400; }

.hero p.lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 480px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
}
.page-hero .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}
.page-hero p.lead {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 1rem 2.4rem;
    border: 1px solid var(--text);
    color: var(--text);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s;
    border-radius: var(--radius);
}
.btn:hover { background: var(--text); color: var(--bg); }

.btn-ghost {
    border-color: var(--line);
    color: var(--text-muted);
    background: transparent;
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); background: transparent; }

.cube-scene {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 900px;
    padding: 3rem 0;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 22s linear infinite;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid var(--line);
    background: var(--bg-card);
}

.cube-face.front  { transform: translateZ(100px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(100px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(100px); background: var(--bg-soft); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

.cube-face .grid {
    width: 100%; height: 100%;
    background:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

@keyframes spin {
    from { transform: rotateX(-15deg) rotateY(0deg); }
    to   { transform: rotateX(-15deg) rotateY(360deg); }
}

section { padding: 6rem 5%; }

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

.section-head { margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.sobre-grid p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.servico {
    background: var(--bg-card);
    border: 1px solid var(--line);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.servico:hover { transform: translateY(-6px); border-color: #3a3a40; }
.servico .num {
    font-family: var(--font-display);
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}
.servico h3 { font-size: 1.2rem; margin-bottom: 0.8rem; font-weight: 500; }
.servico p { color: var(--text-muted); font-size: 0.9rem; flex-grow: 1; }
.servico .btn-saiba {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.3s;
}
.servico .btn-saiba:hover { color: var(--text); }

.content-section { background: var(--bg-soft); }
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.content-block h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 500;
}
.content-block p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
}
.content-block ul {
    color: var(--text-muted);
    margin-left: 1.2rem;
}
.content-block li {
    margin-bottom: 0.6rem;
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}
.diff-item {
    padding: 2.5rem 2rem;
    border-bottom: 1px solid var(--line);
}
.diff-item:nth-child(odd) { border-right: 1px solid var(--line); }
.diff-item h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: 0.6rem; }
.diff-item p { color: var(--text-muted); font-size: 0.88rem; }

.contato {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
}
.contato h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.contato p { color: var(--text-muted); max-width: 520px; margin: 0 auto 2.5rem; }
.contato .btn { margin: 0.5rem; }

footer {
    padding: 2.5rem 5%;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}
footer .logo-footer img {
    height: 30px;
    width: auto;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .cube-scene { order: -1; }
    .cube { width: 140px; height: 140px; }
    .cube-face { width: 140px; height: 140px; }
    .cube-face.front  { transform: translateZ(70px); }
    .cube-face.back   { transform: rotateY(180deg) translateZ(70px); }
    .cube-face.right  { transform: rotateY(90deg) translateZ(70px); }
    .cube-face.left   { transform: rotateY(-90deg) translateZ(70px); }
    .cube-face.top    { transform: rotateX(90deg) translateZ(70px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(70px); }
    .logo img { height: 28px; }

    .servicos-grid, .sobre-grid, .content-grid { grid-template-columns: 1fr; }
    .diff-grid { grid-template-columns: 1fr; }
    .diff-item:nth-child(odd) { border-right: none; }
    .nav-links { display: none; }
}
