/* ============================================
   PLOTGRAPHER.COM - Anti-Design + Sci-Fi HUD
   Colors: #3d0c1c #7c1e3b #b07280 #f5ede0 #fdf9f4 #1a1a1a #8a7f7a #c04a2a
   Fonts: Barlow Condensed, IBM Plex Sans, Share Tech Mono
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background-color: #1a1a1a;
    color: #fdf9f4;
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* --- Scanning Line Animation --- */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #c04a2a 20%, #7c1e3b 50%, #c04a2a 80%, transparent 100%);
    opacity: 0.4;
    z-index: 9999;
    pointer-events: none;
    animation: scanDown 8s linear infinite;
}

@keyframes scanDown {
    0% { top: -1px; }
    100% { top: 100vh; }
}

/* --- HUD Grid Overlay --- */
.hud-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(rgba(124, 30, 59, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 30, 59, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* --- HUD Frame & Corners --- */
.hud-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    pointer-events: none;
    z-index: 2;
}

.hud-corner {
    position: absolute;
    width: 30px;
    height: 30px;
}

.hud-corner--tl {
    top: 0;
    left: 0;
    border-top: 2px solid #7c1e3b;
    border-left: 2px solid #7c1e3b;
}

.hud-corner--tr {
    top: 0;
    right: 0;
    border-top: 2px solid #7c1e3b;
    border-right: 2px solid #7c1e3b;
}

.hud-corner--bl {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid #7c1e3b;
    border-left: 2px solid #7c1e3b;
}

.hud-corner--br {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid #7c1e3b;
    border-right: 2px solid #7c1e3b;
}

/* --- HUD Labels --- */
.hud-label {
    position: absolute;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: #8a7f7a;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 3;
}

.hud-label--top-left { top: 8px; left: 40px; }
.hud-label--top-right { top: 8px; right: 40px; }
.hud-label--bottom-left { bottom: 8px; left: 40px; }
.hud-label--bottom-right { bottom: 8px; right: 40px; }

/* --- Section HUD Bar --- */
.section-hud-bar {
    display: flex;
    justify-content: space-between;
    padding: 12px 40px;
    border-bottom: 1px solid rgba(124, 30, 59, 0.3);
    margin-bottom: 60px;
}

.hud-data {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: #8a7f7a;
    letter-spacing: 0.2em;
}

/* --- Section Titles --- */
.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 0.9;
    text-transform: uppercase;
    color: #fdf9f4;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
}

.section-title--left {
    text-align: left;
}

.section-desc {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.1rem;
    color: #8a7f7a;
    max-width: 550px;
    line-height: 1.7;
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: 1px solid #7c1e3b;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.btn--primary {
    background-color: #7c1e3b;
    color: #fdf9f4;
}

.btn--primary:hover {
    background-color: #c04a2a;
    border-color: #c04a2a;
}

.btn--ghost {
    background: transparent;
    color: #b07280;
    border-color: #b07280;
}

.btn--ghost:hover {
    color: #fdf9f4;
    border-color: #fdf9f4;
}

.btn--large {
    padding: 18px 48px;
    font-size: 0.9rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 60px;
    overflow: hidden;
}

.hero__content {
    position: relative;
    z-index: 5;
    max-width: 700px;
}

.hero__overline {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: #c04a2a;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
}

.hero__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(5rem, 14vw, 12rem);
    line-height: 0.85;
    text-transform: uppercase;
    color: #fdf9f4;
    letter-spacing: -0.03em;
    margin-bottom: 30px;
}

.hero__subtitle {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.15rem;
    color: #b07280;
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero__cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__geometry {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    opacity: 0.3;
    z-index: 1;
    animation: rotateGeometry 60s linear infinite;
}

@keyframes rotateGeometry {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.hero__polygon {
    width: 100%;
    height: 100%;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    position: relative;
    padding: 100px 40px 120px;
}

.features__header {
    margin-bottom: 80px;
    padding-left: 20px;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    position: relative;
    padding: 50px 40px;
    background: rgba(61, 12, 28, 0.15);
    border: 1px solid rgba(124, 30, 59, 0.2);
    transition: background 0.4s ease;
}

.feature-card:hover {
    background: rgba(61, 12, 28, 0.35);
}

.feature-card--offset {
    margin-top: 60px;
}

.feature-card--wide {
    grid-column: 1 / -1;
}

.feature-card__hud-frame {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    pointer-events: none;
}

.feature-card__hud-frame .hud-corner {
    width: 16px;
    height: 16px;
}

.feature-card__number {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 4rem;
    color: rgba(192, 74, 42, 0.15);
    line-height: 1;
    margin-bottom: 10px;
}

.feature-card__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fdf9f4;
    margin-bottom: 16px;
}

.feature-card__desc {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.95rem;
    color: #8a7f7a;
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-card__tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: #c04a2a;
    letter-spacing: 0.15em;
}

/* ============================================
   SHOWCASE / STATS SECTION
   ============================================ */
.showcase {
    position: relative;
    padding: 150px 60px;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase__bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(15rem, 30vw, 40rem);
    color: rgba(61, 12, 28, 0.1);
    line-height: 1;
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
}

.showcase__content {
    position: relative;
    z-index: 5;
}

.showcase__stats {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-block {
    text-align: center;
}

.stat-block__value {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(4rem, 8vw, 7rem);
    color: #c04a2a;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-block__label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: #8a7f7a;
    letter-spacing: 0.25em;
}

.showcase__geometry {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    opacity: 0.15;
    z-index: 1;
    animation: pulseReticle 4s ease-in-out infinite;
}

@keyframes pulseReticle {
    0%, 100% { opacity: 0.15; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.25; transform: translate(-50%, -50%) scale(1.05); }
}

.showcase__reticle {
    width: 100%;
    height: 100%;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    position: relative;
    padding: 100px 40px 120px;
}

.about__layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.about__text-col .section-title {
    margin-bottom: 40px;
}

.about__body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.05rem;
    color: #b07280;
    line-height: 1.8;
    margin-bottom: 24px;
}

.about__body em {
    color: #fdf9f4;
    font-style: italic;
}

.about__code-block {
    background: rgba(61, 12, 28, 0.2);
    border: 1px solid rgba(124, 30, 59, 0.3);
    padding: 30px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    position: relative;
    margin-top: 40px;
}

.about__code-block::before {
    content: 'PLOTGRAPHER.CONFIG';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #1a1a1a;
    padding: 0 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    color: #8a7f7a;
    letter-spacing: 0.15em;
}

.code-line {
    white-space: pre;
}

.code-keyword { color: #7c1e3b; }
.code-string { color: #c04a2a; }
.code-func { color: #b07280; }
.code-num { color: #f5ede0; }

/* ============================================
   WORKFLOW SECTION
   ============================================ */
.workflow {
    position: relative;
    padding: 100px 40px 120px;
}

.workflow__header {
    padding-left: 20px;
    margin-bottom: 80px;
}

.workflow__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    max-width: 1200px;
    margin: 0 auto;
}

.workflow-step {
    position: relative;
    padding: 50px 30px;
    background: rgba(61, 12, 28, 0.08);
    border: 1px solid rgba(124, 30, 59, 0.15);
    transition: background 0.4s ease;
}

.workflow-step:hover {
    background: rgba(61, 12, 28, 0.25);
}

.workflow-step__line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #7c1e3b, #c04a2a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.workflow-step:hover .workflow-step__line {
    transform: scaleX(1);
}

.workflow-step__marker {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: #c04a2a;
}

.workflow-step__marker .hud-corner {
    width: 12px;
    height: 12px;
}

.workflow-step__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fdf9f4;
    margin-bottom: 16px;
}

.workflow-step__desc {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9rem;
    color: #8a7f7a;
    line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: 150px 60px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1a1a1a 0%, #3d0c1c 100%);
}

.cta-section .hud-frame {
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 40px;
}

.cta-section__content {
    position: relative;
    z-index: 5;
}

.cta-section__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(3.5rem, 9vw, 8rem);
    line-height: 0.9;
    text-transform: uppercase;
    color: #fdf9f4;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.cta-section__desc {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.15rem;
    color: #b07280;
    margin-bottom: 40px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    padding: 60px 40px 40px;
    border-top: 1px solid rgba(124, 30, 59, 0.3);
    background: #3d0c1c;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer__logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    color: #fdf9f4;
    display: block;
}

.footer__version {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: #8a7f7a;
    letter-spacing: 0.15em;
    margin-top: 6px;
    display: block;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.footer__links a {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: #b07280;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: #c04a2a;
}

.footer__copy {
    text-align: right;
}

.footer__copy span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: #8a7f7a;
    letter-spacing: 0.1em;
}

.footer__scan-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7c1e3b, #c04a2a, #7c1e3b, transparent);
    animation: footerScan 3s ease-in-out infinite;
}

@keyframes footerScan {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .features__grid {
        grid-template-columns: 1fr;
    }

    .feature-card--offset {
        margin-top: 0;
    }

    .about__layout {
        grid-template-columns: 1fr;
    }

    .workflow__steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 30px;
    }

    .hero__geometry {
        width: 300px;
        height: 300px;
        right: -100px;
        opacity: 0.15;
    }

    .features {
        padding: 80px 20px;
    }

    .feature-card {
        padding: 40px 25px;
    }

    .showcase__stats {
        gap: 40px;
    }

    .workflow__steps {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__copy {
        text-align: center;
    }

    .footer__links {
        justify-content: center;
    }

    .section-hud-bar {
        padding: 12px 20px;
    }

    .hud-frame {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cta-section {
        padding: 100px 30px;
    }
}