@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&family=Rosarivo:ital@0;1&display=swap');

:root {
    --bg-dark: #000000;
    --text-white: #FFFFFF;
    --text-folha: #989E7D;
    --text-muted: rgba(255, 255, 255, 0.4);
    --guide-color: rgba(152, 158, 125, 0.1);
    --transition-slow: 700ms cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
.font-serif {
    font-family: 'Rosarivo', serif;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Global hover effect on text and links */
p,
h1,
h2,
h3,
span,
a,
li {
    transition: opacity 0.3s ease;
}

p:hover,
h1:hover,
h2:hover,
h3:hover,
span:hover,
li:hover {
    opacity: 0.7;
}

/* Click state - Folha Seca Green */
.clicked,
a:active,
.active-link {
    color: var(--text-folha) !important;
}

/* Guide Lines */
.guide-v {
    position: fixed;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: var(--guide-color);
    z-index: 100;
    pointer-events: none;
}

/* Layout Utilities */
.container {
    padding-left: 60px;
    padding-right: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .container {
        padding-left: 100px;
        padding-right: 100px;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 150;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
}

@media (min-width: 768px) {
    header {
        padding: 0 100px;
    }
}

nav {
    display: flex;
    gap: 32px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
}

/* MILEZ style hover effect */
.milez-link {
    position: relative;
    overflow: hidden;
    display: inline-block;
    line-height: 1;
}

.milez-link span {
    display: inline-block;
    transition: transform var(--transition-slow);
}

.milez-link .hover-text {
    position: absolute;
    left: 0;
    top: 100%;
    transform: scaleY(1.5);
    transform-origin: top;
}

.milez-link:hover .original-text {
    transform: translateY(-120%) scaleY(1.5);
    transform-origin: bottom;
}

.milez-link:hover .hover-text {
    transform: translateY(-100%) scaleY(1);
}

/* Vertical Labels */
.vertical-label {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    opacity: 0.2;
    pointer-events: none;
    select-none;
}

.vertical-label.left {
    left: 32px;
}

.vertical-label.right {
    right: 32px;
    transform: translateY(-50%) rotate(180deg);
}

/* Pages Sections */
section,
article {
    width: 100%;
    position: relative;
}

.pt-hero {
    padding-top: 48px;
}

.pt-page {
    padding-top: 192px;
}

.pb-page {
    padding-bottom: 160px;
}

/* Home Specific */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-title {
    font-size: 60px;
    line-height: 0.85;
    letter-spacing: -0.05em;
    margin-bottom: 64px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 120px;
    }
}

.hero-subtitle {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.6em;
    opacity: 0.4;
    display: block;
    margin-bottom: 24px;
    animation: fadeInUp 1.5s var(--transition-slow) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 0.4;
        transform: translateY(0);
    }
}

/* Grid Decoration */
.grid-decoration {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-cols: repeat(4, 1fr);
    pointer-events: none;
    opacity: 0.05;
}

.grid-decoration div {
    border-right: 1px solid var(--text-folha);
}

/* Footer */
footer {
    padding: 80px 60px;
    border-top: 1px solid rgba(152, 158, 125, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

@media (min-width: 768px) {
    footer {
        padding: 80px 100px;
    }
}

.footer-text {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.3;
    font-weight: 700;
}

/* Typography Utilities */
.italic {
    font-style: italic;
}

.opacity-90 {
    opacity: 0.9;
}

.opacity-60 {
    opacity: 0.6;
}

.opacity-40 {
    opacity: 0.4;
}

.tracking-tighter {
    letter-spacing: -0.05em;
}

.leading-tight {
    line-height: 1.25;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.text-8xl {
    font-size: 6rem;
}

/* Grid for subpages */
.subpage-grid {
    display: grid;
    gap: 80px;
}

@media (min-width: 768px) {
    .subpage-grid {
        grid-template-cols: 1fr 2fr;
    }
}

.sticky-aside {
    position: sticky;
    top: 192px;
}

.prose {
    font-size: 1.5rem;
    line-height: 1.6;
}

.prose p {
    margin-bottom: 3rem;
}

blockquote {
    font-size: 1.875rem;
    font-style: italic;
    padding: 3rem 0;
    line-height: 1.2;
}

@media (min-width: 768px) {
    blockquote {
        font-size: 3rem;
    }
}

/* Arquitetura Cards */
.architecture-grid {
    display: grid;
    border-bottom: 1px solid rgba(152, 158, 125, 0.05);
}

@media (min-width: 768px) {
    .architecture-grid {
        grid-template-cols: repeat(3, 1fr);
    }
}

.arch-card {
    padding: 80px 48px 80px 0;
    transition: background-color 0.7s, color 0.7s;
}

@media (max-width: 767px) {
    .arch-card {
        padding: 40px 0;
    }
}

.arch-card:hover {
    background-color: var(--bg-dark);
    /* It's already dark, but user might want a shift? */
    /* Let's make it invert slightly if needed, but project says pure black */
}

/* Roadmap Timeline */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: rgba(152, 158, 125, 0.1);
}

.timeline-item {
    padding: 80px 0 80px 80px;
    border-bottom: 1px solid rgba(152, 158, 125, 0.1);
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-folha);
    transition: transform 0.5s;
}

.timeline-item:hover .timeline-dot {
    transform: translateY(-50%) scale(1);
}

.phase-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.2;
    transition: opacity 0.3s;
}

.timeline-item:hover .phase-tag {
    opacity: 1;
}

/* Buttons */
.btn-outline {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-weight: 700;
    border: 1px solid rgba(152, 158, 125, 0.2);
    padding: 16px 32px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--text-folha);
    color: var(--bg-dark);
}