/* scriptgrapher.com - Frutiger-Aero Script Visualization */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --aero-sky: #E8F4FD;
    --frosted-glass: rgba(255,255,255,0.8);
    --chrome-blue: #4A86C8;
    --glossy-silver: #C0C4CC;
    --script-gold: #E8A838;
    --glass-highlight: rgba(255,255,255,0.4);
    --deep-marine: #1A2A3A;
    --soft-steel: #6A7A8A;
}
body {
    background: linear-gradient(180deg, var(--aero-sky) 0%, #D4E8F8 100%);
    color: var(--deep-marine);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 400;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Glass Panel */
.glass-panel {
    background: var(--frosted-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(192,196,204,0.5);
    border-radius: 16px;
    padding: 2.5rem;
}

/* Hero */
#hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    text-align: center;
}
.hero-panel {
    display: inline-block;
    padding: 2rem 3rem;
}
.hero-title {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--deep-marine);
}
.hero-subtitle {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.1rem;
    color: var(--soft-steel);
    margin-top: 0.25rem;
}

/* Node Graph */
.node-graph {
    width: 100%;
    max-width: 600px;
    height: 220px;
    margin: 2rem auto 0;
    display: block;
}
.node {
    opacity: 0;
    animation: nodeScale 0.5s ease forwards;
}
.n1 { animation-delay: 0.5s; }
.n2 { animation-delay: 0.8s; }
.n3 { animation-delay: 0.9s; }
.n4 { animation-delay: 1.1s; }
.n5 { animation-delay: 1.2s; }
@keyframes nodeScale {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}
.node-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 9px;
    fill: var(--deep-marine);
}
.bezier-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 0.8s ease forwards;
}
.bl1 { animation-delay: 0.6s; }
.bl2 { animation-delay: 0.7s; }
.bl3 { animation-delay: 1.0s; }
.bl4 { animation-delay: 1.1s; }
@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Diagonal Sections */
.diagonal-section {
    position: relative;
    padding: 4rem 0;
}
.section-1 {
    background: rgba(255,255,255,0.3);
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
    padding: 6rem 0;
}
.section-2 {
    background: rgba(74,134,200,0.05);
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
    padding: 5rem 0;
}
.section-3 {
    background: rgba(255,255,255,0.2);
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
    padding: 5rem 0 3rem;
}
.section-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Act Ribbon */
.act-ribbon {
    display: flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glossy-silver);
    max-width: 400px;
    margin: 0 auto;
}
.act {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--soft-steel);
    background: var(--frosted-glass);
    transition: background 0.3s ease, color 0.3s ease;
}
.act-active {
    background: var(--chrome-blue);
    color: white;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.glossy-card {
    background: var(--frosted-glass);
    border: 1px solid rgba(192,196,204,0.5);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.glossy-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.card-gloss {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}
.card-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--deep-marine);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}
.card-body {
    font-size: 0.95rem;
    color: var(--soft-steel);
    position: relative;
    z-index: 1;
}

/* CTA Panel */
.cta-panel {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.cta-title {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--deep-marine);
    margin-bottom: 1rem;
}
.cta-body {
    color: var(--soft-steel);
}

/* Footer */
#footer {
    text-align: center;
    padding: 3rem 2rem;
}
.footer-text {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.8rem;
    color: var(--soft-steel);
}

/* Section animation */
.section {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
    .feature-grid { grid-template-columns: 1fr; }
    .hero-panel { padding: 1.5rem 2rem; }
}
