/* ===========================================
   TANSO GROUP — styles.css
   Colors: #e4e8f0, #1a2a4a, #e86a30, #a8b8c8, #2a3a50, #6a4a2a
   Fonts: Nunito (headlines), Inter (body), Space Mono (data)
   =========================================== */

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

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.75;
    color: #1a2a4a;
    background-color: #e4e8f0;
    overflow-x: hidden;
    position: relative;
}

/* --- Noise texture overlay on body --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* --- Utility --- */
.mono {
    font-family: 'Space Mono', monospace;
}

.highlight {
    color: #e86a30;
    font-weight: 600;
}

/* --- Organic blob shapes --- */
.blob-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    background: #1a2a4a;
    opacity: 0.08;
    will-change: border-radius, transform;
}

.blob-1 {
    width: 55vw;
    height: 55vw;
    top: -15vw;
    left: -10vw;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blobMorph1 18s ease-in-out infinite alternate;
}

.blob-2 {
    width: 40vw;
    height: 40vw;
    bottom: -5vw;
    right: -8vw;
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    animation: blobMorph2 22s ease-in-out infinite alternate;
}

.blob-3 {
    width: 30vw;
    height: 30vw;
    top: 40%;
    left: 55%;
    border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%;
    animation: blobMorph3 15s ease-in-out infinite alternate;
}

@keyframes blobMorph1 {
    0%   { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: translate(0, 0) scale(1); }
    33%  { border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%; transform: translate(2vw, 3vw) scale(1.04); }
    66%  { border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%; transform: translate(-1vw, 1vw) scale(0.97); }
    100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; transform: translate(1vw, -2vw) scale(1.02); }
}

@keyframes blobMorph2 {
    0%   { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; transform: translate(0, 0) rotate(0deg); }
    50%  { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: translate(-3vw, 2vw) rotate(15deg); }
    100% { border-radius: 50% 50% 50% 50% / 40% 60% 60% 40%; transform: translate(2vw, -1vw) rotate(-10deg); }
}

@keyframes blobMorph3 {
    0%   { border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%; transform: translate(0, 0) scale(1); }
    50%  { border-radius: 30% 70% 50% 50% / 60% 40% 60% 40%; transform: translate(-4vw, -2vw) scale(1.08); }
    100% { border-radius: 60% 40% 40% 60% / 50% 50% 50% 50%; transform: translate(3vw, 1vw) scale(0.95); }
}

/* --- HUD frame elements --- */
.hud-frame {
    position: relative;
    padding: 3rem 2.5rem;
}

.hud-bracket {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: #a8b8c8;
    border-style: solid;
    border-width: 0;
}

.hud-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.hud-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.hud-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.hud-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

.hud-bracket-inline {
    color: #a8b8c8;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* --- Status indicators --- */
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    vertical-align: middle;
}

.status-dot--active {
    background: #4caf50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
    animation: statusPulse 2.5s ease-in-out infinite;
}

.status-dot--orange {
    background: #e86a30;
    box-shadow: 0 0 6px rgba(232, 106, 48, 0.5);
    animation: statusPulse 2.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a8b8c8;
}

.status-divider {
    color: #a8b8c8;
    font-size: 0.65rem;
    margin: 0 0.5rem;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frost-overlay {
    position: absolute;
    inset: 0;
    background: rgba(228, 232, 240, 0.72);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: -1;
}

.hero-hud {
    text-align: center;
    max-width: 700px;
    width: 90%;
    animation: heroFadeIn 1.2s ease-out both;
}

.hud-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.5s both;
}

.hero-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 5.5vw, 64px);
    letter-spacing: 0.08em;
    color: #1a2a4a;
    margin-bottom: 1rem;
    opacity: 0;
    animation: heroBounceIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 1.8vw, 20px);
    color: #2a3a50;
    letter-spacing: 0.04em;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.8s both;
}

@keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes heroBounceIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    60% { opacity: 1; transform: translateY(-6px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Panel Sections --- */
.panel-section {
    position: relative;
    z-index: 2;
    padding: 5rem 6%;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 3vw, 32px);
    letter-spacing: 0.1em;
    color: #1a2a4a;
}

/* --- HUD Panels Grid (Divisions) --- */
.hud-panels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hud-panel {
    position: relative;
    background: rgba(228, 232, 240, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(168, 184, 200, 0.4);
    border-radius: 2px;
    padding: 2rem 1.8rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hud-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 42, 74, 0.1);
    border-color: #e86a30;
}

.hud-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.panel-id {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: #a8b8c8;
    text-transform: uppercase;
}

.panel-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2.2vw, 24px);
    color: #1a2a4a;
    margin-bottom: 0.75rem;
}

.panel-body {
    color: #2a3a50;
    font-size: clamp(14px, 1.3vw, 16px);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.panel-metrics {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(168, 184, 200, 0.3);
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e86a30;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a8b8c8;
    margin-top: 0.2rem;
}

/* --- Leather texture panels --- */
.leather-panel {
    background:
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 2px,
            rgba(106, 74, 42, 0.04) 2px,
            rgba(106, 74, 42, 0.04) 4px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(106, 74, 42, 0.03) 3px,
            rgba(106, 74, 42, 0.03) 5px
        ),
        rgba(228, 232, 240, 0.55);
    border-color: rgba(106, 74, 42, 0.2);
}

.leather-panel:hover {
    border-color: #6a4a2a;
}

/* --- Leather accent block --- */
.leather-accent {
    position: relative;
    padding: 2.5rem;
    border-radius: 2px;
    background:
        repeating-linear-gradient(
            120deg,
            transparent,
            transparent 2px,
            rgba(106, 74, 42, 0.05) 2px,
            rgba(106, 74, 42, 0.05) 4px
        ),
        repeating-linear-gradient(
            30deg,
            transparent,
            transparent 3px,
            rgba(106, 74, 42, 0.03) 3px,
            rgba(106, 74, 42, 0.03) 6px
        ),
        rgba(106, 74, 42, 0.06);
    border-left: 3px solid #6a4a2a;
}

/* --- Slide reveal animation --- */
.slide-reveal {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.slide-reveal.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* --- Network Section --- */
.network-section {
    background: linear-gradient(180deg, transparent 0%, rgba(26, 42, 74, 0.03) 50%, transparent 100%);
}

.network-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.network-stat {
    text-align: center;
    padding: 1.5rem;
}

.stat-value {
    display: block;
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 700;
    color: #1a2a4a;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-unit {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a8b8c8;
    margin-bottom: 1rem;
}

.stat-bar {
    width: 100%;
    height: 3px;
    background: rgba(168, 184, 200, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #e86a30, #1a2a4a);
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.about-lead {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2.5vw, 26px);
    color: #1a2a4a;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.about-text-block p {
    margin-bottom: 1rem;
    color: #2a3a50;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(228, 232, 240, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 184, 200, 0.3);
    border-radius: 2px;
    height: fit-content;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
}

.sidebar-label {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #a8b8c8;
    margin-bottom: 0.25rem;
}

.sidebar-value {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #1a2a4a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Footer --- */
.footer-section {
    position: relative;
    z-index: 2;
    padding: 4rem 6% 3rem;
}

.footer-hud {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-brand {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 2vw, 22px);
    letter-spacing: 0.1em;
    color: #1a2a4a;
}

.footer-divider {
    color: #a8b8c8;
    font-size: 0.8rem;
}

.footer-contact {
    font-size: 0.8rem;
    color: #2a3a50;
    letter-spacing: 0.05em;
}

.footer-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .panel-section {
        padding: 3.5rem 5%;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .hud-panels-grid {
        grid-template-columns: 1fr;
    }

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

    .hud-frame {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .network-dashboard {
        grid-template-columns: 1fr;
    }

    .panel-metrics {
        flex-direction: column;
        gap: 1rem;
    }
}
