/* tanso.tech - Tech Notebook */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --dark-slate: #1A1A28;
    --surface: #242438;
    --aurora-green: #40E090;
    --aurora-blue: #40A0E0;
    --aurora-purple: #9060E0;
    --text-primary: #F0F0F0;
    --text-body: #C8C8D0;
    --text-code: #90E0A0;
}
body {
    background: var(--dark-slate);
    color: var(--text-primary);
    font-family: 'Cabin', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
}

/* Leather Grain */
.leather-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Aurora Lines */
.aurora-lines {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}
.a-line {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawLine 1.5s ease forwards;
}
.a-line:nth-child(2) { animation-delay: 0.3s; }
@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Hero */
#hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
}
.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 600;
    background: linear-gradient(135deg, var(--aurora-green), var(--aurora-blue), var(--aurora-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}
.hero-meta {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: var(--text-code);
    margin-top: 0.75rem;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.5s forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Broken Grid */
.broken-grid {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Tech Cards */
.tech-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 6px 4px 8px 3px;
    position: relative;
    overflow: hidden;
    transform: rotate(var(--rot, 0deg));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    grid-column: span 3;
}
.tech-card:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.card-wide {
    grid-column: span 4;
}
.tech-card:nth-child(1) { grid-column: 1 / 4; }
.tech-card:nth-child(2) { grid-column: 3 / 7; }
.tech-card:nth-child(3) { grid-column: 1 / 4; }
.tech-card:nth-child(4) { grid-column: 4 / 7; }
.tech-card:nth-child(5) { grid-column: 1 / 5; }
.tech-card:nth-child(6) { grid-column: 4 / 7; }

/* Sharp Corner Accent */
.sharp-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent var(--aurora-green) transparent transparent;
    opacity: 0.4;
}

.card-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: var(--text-code);
    display: block;
    margin-bottom: 0.5rem;
}
.card-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}
.card-body {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.card-stat {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--aurora-green);
}
.stat-unit {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-body);
}

/* Section Animation */
.section {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.section.visible {
    opacity: 1;
}

/* Footer */
#footer {
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(64,224,144,0.1);
}
.footer-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-code);
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 768px) {
    .broken-grid {
        grid-template-columns: 1fr;
    }
    .tech-card,
    .tech-card:nth-child(1),
    .tech-card:nth-child(2),
    .tech-card:nth-child(3),
    .tech-card:nth-child(4),
    .tech-card:nth-child(5),
    .tech-card:nth-child(6),
    .card-wide {
        grid-column: 1 / -1;
        transform: none;
    }
}
