/* FitStat Design System in Zero Position: "Scientific Premium" */

:root {
    /* 1. Design Philosophy: "Radical White" & "Scientific Premium" */

    /* Primitive Colors */
    --primitive-white: #FFFFFF;
    --primitive-light-gray: #F5F5F7;
    --primitive-black: #050505;
    /* Radical Black */
    --primitive-dark-gray: #111111;
    --primitive-text-main-light: #1D1D1F;
    --primitive-text-sub-light: #86868b;
    --primitive-text-main-dark: #F5F5F7;
    --primitive-text-sub-dark: #A1A1A6;

    /* Semantic Variables (Light Mode Default) */
    --bg-base: var(--primitive-light-gray);
    --bg-card: var(--primitive-white);
    --text-main: var(--primitive-text-main-light);
    --text-sub: var(--primitive-text-sub-light);
    --accent-gold: #D4AF37;
    --stroke-struct: rgba(0, 0, 0, 0.05);

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.15);

    /* SVG Fills */
    --svg-fill-primary: #1d1d1f;

    --font-heading: 'Helvetica Neue', 'Arial', sans-serif;
    --font-body: 'Helvetica Neue', 'Arial', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
}

[data-theme="dark"] {
    /* Semantic Variables (Dark Mode - Bluish Black) */
    --bg-base: #0a0d14;
    --bg-card: #0f1218;
    --text-main: #F5F5F7;
    --text-sub: #a8b3c7;
    --stroke-struct: rgba(100, 140, 200, 0.15);
    --accent-glow: rgba(80, 140, 255, 0.15);

    /* Shadows with Blue Glow */
    --shadow-soft: 0 4px 24px rgba(30, 80, 180, 0.15);
    --shadow-hover: 0 20px 50px -10px rgba(60, 120, 220, 0.25);

    /* SVG Fills - White for visibility */
    --svg-fill-primary: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-jp);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* 2. Typography & Layout */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    /* Tight, precise */
}

/* Navbar (Glassmorphism) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    z-index: 1000;
    background: var(--bg-base);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--stroke-struct);
    /* Structural line */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 40px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-sub);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-neumorphic {
    border: none;
    outline: none;
    background: var(--text-main);
    color: var(--bg-base);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-neumorphic:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Hero - Keeping Original as requested but tweaking fonts */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

#globe-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 700;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-sub);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #1D1D1F 0%, #6e6e73 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3. The "Card" Component (Physical but Light) */
.section-gray {
    padding: 10rem 0;
    /* Ample whitespace */
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    /* Structural spacing */
}

.hover-card {
    background: var(--bg-card);
    border-radius: 32px;
    /* Generous radius */
    padding: 50px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* For containing animations */
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Dark Mode Service Cards */
[data-theme="dark"] .hover-card {
    background: rgba(16, 24, 40, 0.9);
    border: 1px solid rgba(100, 150, 255, 0.12);
    box-shadow:
        0 10px 40px rgba(20, 60, 150, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(80, 140, 255, 0.06);
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

[data-theme="dark"] .hover-card:hover {
    box-shadow:
        0 20px 60px rgba(30, 80, 180, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(80, 140, 255, 0.1);
}

.card-icon-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Dark Mode Service Card Icons */
[data-theme="dark"] .card-icon-container svg {
    stroke: #ffffff;
    fill: none;
}

[data-theme="dark"] .card-icon-container .solid-icon {
    fill: #ffffff;
    stroke: none;
}

/* Typography in Cards */
h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.card-sub {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-sub);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.card-desc {
    font-size: 1rem;
    color: var(--text-sub);
    line-height: 1.7;
}

/* 4. Iconic Animations (CSS Keyframes) */
@keyframes flow {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

@keyframes flow-h {
    0% {
        transform: translateX(-10px);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateX(10px);
        opacity: 0;
    }
}


@keyframes pulse {
    0% {
        opacity: 0.3;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.3;
        transform: scale(0.9);
    }
}

@keyframes spin-slow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Toggle Button Styles */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background-color: rgba(128, 128, 128, 0.1);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Ecosystem Section */
.section-white {
    padding: 10rem 0;
    background: var(--bg-card);
}

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

.mb-5 {
    margin-bottom: 5rem;
}

.section-heading {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-sub {
    font-size: 1.2rem;
    color: var(--text-sub);
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.eco-card {
    background: var(--bg-card);
    /* was #FAFAFA */
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background 0.3s ease;
    border: 1px solid transparent;
}

.eco-card:hover {
    background: var(--bg-base);
    /* was #F0F0F2 */
    border-color: var(--stroke-struct);
}

.eco-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.eco-icon-wrap {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-header h4 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.eco-desc {
    font-size: 1rem;
    color: var(--text-sub);
    line-height: 1.6;
}

.eco-desc strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Philosophy Section */
.philosophy-text {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-main);
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--stroke-struct);
    background: var(--bg-base);
}

.footer-logo {
    font-weight: 700;
    margin-right: 1rem;
    color: var(--text-main);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-sub);
}

/* Utilities */
.fade-in {
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-2 {
    animation-delay: 0.2s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Iconic Animations for Ecosystem - Scientific Premium */
@keyframes sway {

    /* Deprecated - kept for fallback */
    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

@keyframes organic-breathe {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.05);
        filter: brightness(0.9);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes pulse-synapse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    30% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes engine-resonance {
    0% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(5deg);
    }

    40% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes data-flow {
    0% {
        transform: translateY(0);
        opacity: 0.9;
    }

    50% {
        transform: translateY(-8px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 0.9;
    }
}

/* =========================================
   FitStat Scientific Premium Design System
   ========================================= */

/* 1. Global Iconic Animations */

/* Flowing dot/line along a path */
@keyframes flow {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* Living Pulse (Biological/Data) */
@keyframes pulse-scientific {
    0% {
        opacity: 0.4;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.4;
        transform: scale(0.95);
    }
}

/* Oscillating Data Bar */
@keyframes oscillate {
    0% {
        height: 10%;
        opacity: 0.5;
    }

    50% {
        height: 80%;
        opacity: 1;
    }

    100% {
        height: 10%;
        opacity: 0.5;
    }
}

/* Rotation for Radar/Scan */
@keyframes scan-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 2. The "Card" Component (Physical but Light) */
.neu-card,
.eco-card {
    background: #FFFFFF;
    border-radius: 32px;
    /* Generous radius */
    padding: 3rem;
    /* Ample whitespace */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    /* Resting state */
    border: 1px solid rgba(0, 0, 0, 0.04);
    /* Subtle structural border */
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.neu-card:hover,
.eco-card:hover {
    transform: translateY(-5px);
    /* Lift */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    /* Deep, soft shadow */
    border-color: rgba(0, 0, 0, 0.08);
}

/* 3. Typography & Layout */
body {
    background-color: var(--bg-base);
    /* Light Gray Page Background */
    color: var(--text-main);
    /* Text Main */
}

h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    /* Clean, Corporate */
    letter-spacing: -0.02em;
}

.card-sub {
    color: #86868b;
    /* Text Sub */
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 4. Icon Containers */
.card-icon-container,
.eco-icon-wrap {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: var(--bg-base);
    /* Subtle Off-White backing */
    border-radius: 50%;
    /* Circle container for primitive focus */
}

/* SVG Base Styles */
svg {
    overflow: visible;
    /* Allow glow/movement outside */
}


/* SVG Logo Styling */
.logo-svg {
    height: 52px;
    width: 52px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-svg:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
}

/* Logo Pulse Animation */
.logo-pulse {
    animation: logo-pulse-anim 2.5s ease-in-out infinite;
}

@keyframes logo-pulse-anim {

    0%,
    100% {
        r: 6;
        opacity: 0.3;
    }

    50% {
        r: 9;
        opacity: 0.1;
    }
}

/* Dark Mode Logo Glow */
[data-theme="dark"] .logo-svg {
    filter: drop-shadow(0 4px 12px rgba(80, 140, 255, 0.25));
}

[data-theme="dark"] .logo-svg:hover {
    filter: drop-shadow(0 6px 18px rgba(80, 140, 255, 0.35));
}

/* Service Icon Styles (Large & Conceptual) */
.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 60px;
    height: 60px;
    fill: var(--svg-fill-primary);
    transition: all 0.5s ease;
}

/* Service Specific Animations (Conceptual) */
@keyframes audit-scan {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes write-flow {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px) rotate(5deg);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes build-block {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

.icon-audit svg {
    animation: audit-scan 4s infinite;
}

.icon-curation svg {
    animation: write-flow 3s infinite;
}

.icon-hq svg {
    animation: build-block 5s infinite;
}

.neu-card:hover .service-icon svg {
    transform: scale(1.2);
    fill: #000;
}

/* =========================================
   5. Arai's "Digital Omotenashi" Improvements
   ========================================= */

/* Breathing Button Animation */
@keyframes button-breathe {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
}

@keyframes button-inhale {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.btn-neumorphic:hover {
    animation: button-breathe 3s infinite ease-in-out;
}

.btn-neumorphic:active {
    animation: button-inhale 0.2sease-out;
}

/* =========================================
   6. Fujii's AEO Glossary Styling
   ========================================= */
.section-aeo {
    padding: 6rem 0;
    background: var(--bg-card);
    /* Updated to match new scheme */
    border-top: 1px solid var(--stroke-struct);
}

.glossary-grid {
    display: grid;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.glossary-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--stroke-struct);
    align-items: baseline;
}

.glossary-item:last-child {
    border-bottom: none;
}

.term {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.def {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.6;
}

/* Language Switcher */
.lang-switch {
    font-size: 0.9rem;
    color: var(--text-sub);
    font-weight: 500;
}

.lang-btn {
    cursor: pointer;
    transition: color 0.3s;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--text-main);
}

/* =========================================
   7. Mobile & Tablet Optimization
   ========================================= */

@media (max-width: 768px) {

    /* Global Adjustments */
    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Nav */
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        width: 100%;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
        padding-right: 2rem;
        /* Avoids overlap with toggle */
    }

    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-sub {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Cards Grid */
    .cards-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 20px;
    }

    /* Ecosystem Grid */
    .ecosystem-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 20px;
    }

    /* AEO Glossary */
    .glossary-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.btn-neumorphic {
    /* Existing base styles remain, just enhancing animation */
    /* animation: button-breathe 4s ease-in-out infinite; */
    /* Subtle life by default? Or only on hover? Let's do hover for "Focus" */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-neumorphic:hover {
    animation: button-breathe 2s ease-in-out infinite;
    background-color: #1a1a1c;
    /* Slightly lighter black */
}

.btn-neumorphic:active {
    transform: scale(0.92);
    transition: transform 0.1s;
}


/* =========================================
   6. Fujii's "AEO Glossary" Styles
   ========================================= */

.section-aeo {
    padding: 6rem 0;
    background: var(--bg-card);
    /* was #FAFAFA */
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.aeo-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.aeo-header {
    margin-bottom: 3rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 1rem;
}

.aeo-title {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

.aeo-subtitle {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #86868b;
}

/* Definition List for LLMs */
.neu-glossary {
    display: grid;
    gap: 2rem;
}

.glossary-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--stroke-struct);
}

.glossary-item:last-child {
    border-bottom: none;
}

.neu-term {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.neu-def {
    font-family: var(--font-jp);
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.8;
}

.neu-meta {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    color: #86868b;
    background: var(--bg-base);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    width: fit-content;
}

/* Responsive for Glossary */
@media (max-width: 768px) {
    .glossary-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* =========================================
   8. Domain Page Specific Styles
   ========================================= */

.domain-header {
    padding: 8rem 0 4rem;
    background: var(--bg-base);
    border-bottom: 1px solid var(--stroke-struct);
}

.max-w-600 {
    max-width: 600px;
}

.center-block {
    margin-left: auto;
    margin-right: auto;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Step Grid (Process Flow) */
.step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--stroke-struct);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.1);
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .step-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Transition Wrapper */
.page-transition-wrapper {
    animation: fadeInPage 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   8. Domain Page Specific Styles
   ========================================= */

.domain-header {
    padding: 8rem 0 4rem;
    background: var(--bg-base);
    border-bottom: 1px solid var(--stroke-struct);
}

.max-w-600 {
    max-width: 600px;
}

.center-block {
    margin-left: auto;
    margin-right: auto;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Step Grid (Process Flow) */
.step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--stroke-struct);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.1);
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .step-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Transition Wrapper */
.page-transition-wrapper {
    animation: fadeInPage 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Circular Ecosystem Cycle (知の循環)
   Using CSS Grid for reliable diamond layout
   ========================================= */

.ecosystem-cycle {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 200px 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 2rem;
    max-width: 800px;
    margin: 4rem auto;
    justify-items: center;
    align-items: center;
    min-height: 520px;
}

/* Grid placements for diamond pattern */
.cycle-pos-top {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
}

.cycle-pos-right {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
}

.cycle-pos-bottom {
    grid-column: 2;
    grid-row: 3;
    justify-self: center;
}

.cycle-pos-left {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
}

/* Story Center - Absolute positioned for perfect centering */
.cycle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Hide arrows in grid layout */
.cycle-arrow {
    display: none;
}

/* Glassmorphism Card Design - Light Mode */
.cycle-card {
    width: 200px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Unified Glassmorphism - Light */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    /* Premium Shadow with Texture */
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.06),
        0 4px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Dark Mode - Bluish Black with Glow */
[data-theme="dark"] .cycle-card {
    background: rgba(16, 24, 40, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(100, 150, 255, 0.15);
    box-shadow:
        0 10px 40px rgba(20, 60, 150, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(120, 180, 255, 0.1),
        0 0 20px rgba(80, 140, 255, 0.08);
}

.cycle-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .cycle-card:hover {
    box-shadow:
        0 20px 60px rgba(30, 80, 180, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(120, 180, 255, 0.15),
        0 0 30px rgba(80, 140, 255, 0.12);
}

/* Step Badge */
.cycle-step {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-main);
    background: var(--bg-base);
    border: 2px solid var(--text-sub);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 28px;
    margin-bottom: 0.5rem;
}

/* Icon Container - Larger for PC */
.cycle-icon {
    width: 56px;
    height: 56px;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* Kanji Display - Bold Impact */
.cycle-kanji {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-main);
    font-family: 'Noto Sans JP', sans-serif;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-sub) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .cycle-kanji {
    background: linear-gradient(135deg, #ffffff 0%, rgba(120, 180, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cycle-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

/* Dark Mode Icon - Ensure visibility */
[data-theme="dark"] .cycle-icon {
    color: #ffffff;
}

[data-theme="dark"] .cycle-icon svg {
    stroke: #ffffff;
    fill: none;
}

[data-theme="dark"] .cycle-icon svg circle[fill],
[data-theme="dark"] .cycle-icon svg rect[fill] {
    fill: rgba(120, 180, 255, 0.3);
}

/* Text */
.cycle-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.cycle-tagline {
    font-size: 0.75rem;
    color: var(--text-sub);
    line-height: 1.4;
}

/* Center "Story" Label */
.cycle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Center "Story" Label - Glassmorphism */
.cycle-center-text {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 1.2rem 1.4rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="dark"] .cycle-center-text {
    background: rgba(16, 24, 40, 0.9);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(100, 150, 255, 0.2);
    color: #ffffff;
    box-shadow:
        0 10px 40px rgba(20, 60, 150, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(80, 140, 255, 0.15),
        inset 0 1px 0 rgba(120, 180, 255, 0.12);
}

/* Arrows are hidden in grid layout (defined in main .cycle-arrow rule above) */
/* Arrow position rules remain for any future use but are not displayed */


/* CSS fallback for text muted if not in vars */
:root {
    --text-muted: #86868b;
}

[data-theme="dark"] {
    --text-muted: #6e6e73;
}

/* Mobile Responsive for Cycle */
@media (max-width: 768px) {
    .ecosystem-cycle {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
        gap: 1rem;
    }

    .cycle-pos-top {
        grid-column: 1;
        grid-row: 1;
    }

    .cycle-pos-right {
        grid-column: 1;
        grid-row: 2;
    }

    .cycle-center {
        grid-column: 1;
        grid-row: 3;
    }

    .cycle-pos-left {
        grid-column: 1;
        grid-row: 4;
    }

    .cycle-pos-bottom {
        grid-column: 1;
        grid-row: 5;
    }

    .cycle-card {
        width: 100%;
        max-width: 280px;
    }
}

/* =========================================
   Service Flow Section
   ========================================= */

.section-flow {
    padding: 6rem 0;
    background: var(--bg-base);
}

.flow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.flow-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--stroke-struct);
    box-shadow: var(--shadow-soft);
    width: 180px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.flow-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--text-main);
}

.flow-icon svg {
    width: 100%;
    height: 100%;
}

.flow-number {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-sub);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.flow-step h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.flow-desc {
    font-size: 0.85rem;
    color: var(--text-sub);
    line-height: 1.5;
}

.flow-arrow {
    width: 40px;
    height: 20px;
    flex-shrink: 0;
}

.flow-arrow svg {
    width: 100%;
    height: 100%;
}

/* Flow Animations */
.flow-pulse {
    animation: flow-pulse-anim 2s ease-in-out infinite;
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
}

@keyframes flow-pulse-anim {

    0%,
    100% {
        r: 25;
        opacity: 0;
    }

    50% {
        r: 28;
        opacity: 0.3;
    }
}

.flow-rotate {
    animation: flow-rotate-anim 3s linear infinite;
    transform-origin: 30px 30px;
}

@keyframes flow-rotate-anim {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -80;
    }
}

/* Dark Mode Flow */
[data-theme="dark"] .flow-step {
    background: rgba(16, 24, 40, 0.9);
    border-color: rgba(100, 150, 255, 0.12);
    box-shadow:
        0 8px 32px rgba(20, 60, 150, 0.15),
        0 0 15px rgba(80, 140, 255, 0.05);
}

[data-theme="dark"] .flow-step:hover {
    box-shadow:
        0 15px 50px rgba(30, 80, 180, 0.2),
        0 0 25px rgba(80, 140, 255, 0.1);
}

[data-theme="dark"] .flow-icon {
    color: #ffffff;
}

/* =========================================
   Use Cases Section
   ========================================= */

.section-usecases {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-base) 0%, rgba(0, 0, 0, 0.02) 100%);
}

[data-theme="dark"] .section-usecases {
    background: linear-gradient(180deg, var(--bg-base) 0%, rgba(80, 140, 255, 0.03) 100%);
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.usecase-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--stroke-struct);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.usecase-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.usecase-industry {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4A90D9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.usecase-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.usecase-problem {
    font-size: 0.9rem;
    color: var(--text-sub);
    background: rgba(0, 0, 0, 0.03);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

[data-theme="dark"] .usecase-problem {
    background: rgba(255, 255, 255, 0.05);
}

.usecase-solution {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.usecase-result {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--stroke-struct);
}

.result-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-sub);
}

.result-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4A90D9;
}

/* Dark Mode Use Cases */
[data-theme="dark"] .usecase-card {
    background: rgba(16, 24, 40, 0.85);
    border-color: rgba(100, 150, 255, 0.12);
}

/* =========================================
   News Section
   ========================================= */

.section-news {
    padding: 6rem 0;
    background: var(--bg-base);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--stroke-struct);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-sub);
}

.news-category {
    font-size: 0.7rem;
    font-weight: 700;
    color: #4A90D9;
    background: rgba(74, 144, 217, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4A90D9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-link:hover {
    color: #2F70B9;
}

/* Dark Mode News */
[data-theme="dark"] .news-card {
    background: rgba(16, 24, 40, 0.85);
    border-color: rgba(100, 150, 255, 0.12);
}

[data-theme="dark"] .news-category {
    background: rgba(80, 140, 255, 0.2);
    color: rgba(120, 180, 255, 1);
}

/* =========================================
   Pricing Section
   ========================================= */

.section-pricing {
    padding: 6rem 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, var(--bg-base) 100%);
}

[data-theme="dark"] .section-pricing {
    background: linear-gradient(180deg, rgba(80, 140, 255, 0.05) 0%, var(--bg-base) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--stroke-struct);
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.pricing-featured {
    border: 2px solid #4A90D9;
    transform: scale(1.02);
}

.pricing-featured:hover {
    transform: scale(1.02) translateY(-6px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4A90D9 0%, #3A70B9 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.pricing-header {
    margin-bottom: 1.5rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.plan-target {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.pricing-price {
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.price-period {
    font-size: 1rem;
    color: var(--text-sub);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--text-main);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--stroke-struct);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.feature-disabled {
    color: var(--text-sub) !important;
    opacity: 0.6;
}

.btn-pricing {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    background: transparent;
    border: 2px solid var(--stroke-struct);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-pricing:hover {
    background: var(--bg-base);
    border-color: var(--text-sub);
}

.btn-pricing-primary {
    background: linear-gradient(135deg, #4A90D9 0%, #3A70B9 100%);
    color: white;
    border: none;
}

.btn-pricing-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 217, 0.3);
}

/* Dark Mode Pricing */
[data-theme="dark"] .pricing-card {
    background: rgba(16, 24, 40, 0.9);
    border-color: rgba(100, 150, 255, 0.12);
}

[data-theme="dark"] .pricing-featured {
    border-color: rgba(80, 140, 255, 0.5);
    box-shadow:
        0 10px 40px rgba(20, 60, 150, 0.2),
        0 0 20px rgba(80, 140, 255, 0.1);
}

[data-theme="dark"] .btn-pricing:hover {
    background: rgba(80, 140, 255, 0.1);
    border-color: rgba(120, 180, 255, 0.5);
}

/* =========================================
   Responsive: New Sections
   ========================================= */

@media (max-width: 768px) {
    .flow-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }

    .flow-step {
        width: 100%;
        max-width: 280px;
    }

    .usecases-grid,
    .news-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-featured {
        transform: none;
    }

    .pricing-featured:hover {
        transform: translateY(-6px);
    }
}

/* =========================================
   Philosophy Theme Text Switching
   ========================================= */
.theme-content-light {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.theme-content-dark {
    display: none;
}

[data-theme="dark"] .theme-content-light {
    display: none;
}

[data-theme="dark"] .theme-content-dark {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

/* Adjust Philosophy Background for Deep Black */
[data-theme="dark"] .section-white {
    background: #000000;
    /* Pure black for Deep Black concept */
}

/* =========================================
   Technology Page (Story Blocks)
   ========================================= */

.story-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 4rem 0;
}

.story-block.reverse-layout {
    flex-direction: row-reverse;
}

.story-content {
    flex: 1;
}

.story-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-svg {
    width: 250px;
    height: 250px;
}

.story-label {
    display: block;
    font-size: 0.9rem;
    color: #4A90D9;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.story-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.story-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-sub);
    margin-bottom: 1.5rem;
}

.highlight-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main) !important;
    margin-top: 1.5rem;
    border-left: 4px solid #4A90D9;
    padding-left: 1rem;
}

[data-theme="dark"] .story-svg circle,
[data-theme="dark"] .story-svg rect,
[data-theme="dark"] .story-svg path,
[data-theme="dark"] .story-svg line {
    stroke: #ffffff;
}

/* Responsive for Story */
@media (max-width: 768px) {

    .story-block,
    .story-block.reverse-layout {
        flex-direction: column;
        gap: 3rem;
        text-align: left;
    }

    .story-content h2 {
        font-size: 1.8rem;
    }
}/* =========================================
   Enhanced Iconic Animations (Neu Audit, Curation, HQ)
   ========================================= */

/* 1. Neu Audit: Radar Scan Ripple */
.ink-ripple {
    animation: ripple-scan 3s infinite cubic-bezier(0, 0, 0.2, 1);
    transform-origin: 30px 30px;
    /* Center of 60x60 SVG */
    opacity: 0;
}

.delay-1 {
    animation-delay: 0s;
}

.delay-2 {
    animation-delay: 0.8s;
}

.delay-3 {
    animation-delay: 1.6s;
}

@keyframes ripple-scan {
    0% {
        r: 4;
        opacity: 0.8;
        stroke-width: 2px;
    }

    100% {
        r: 28;
        opacity: 0;
        stroke-width: 0px;
    }
}

/* 2. Intelligence Curation: Orbiting & Synthesis */
.ink-pulse-core {
    animation: core-breath 4s infinite ease-in-out;
    transform-origin: 30px 30px;
}

@keyframes core-breath {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.ink-orbiter-x {
    animation: orbit-circle-1 8s infinite linear;
    transform-origin: 30px 30px;
}

.ink-orbiter-x-rev {
    animation: orbit-circle-2 12s infinite linear;
    transform-origin: 30px 30px;
}

.ink-orbiter-y {
    animation: orbit-circle-3 10s infinite linear reverse;
    transform-origin: 30px 30px;
}

@keyframes orbit-circle-1 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes orbit-circle-2 {
    from {
        transform: rotate(120deg);
    }

    to {
        transform: rotate(480deg);
    }
}

@keyframes orbit-circle-3 {
    from {
        transform: rotate(240deg);
    }

    to {
        transform: rotate(600deg);
    }
}

/* 3. Digital HQ: Global Scan */
.ink-scan {
    animation: globe-scan-3d 5s infinite ease-in-out;
    transform-origin: 30px 30px;
}

@keyframes globe-scan-3d {
    0% {
        ry: 2;
        opacity: 0.1;
        stroke-width: 1px;
    }

    50% {
        ry: 24;
        /* Full width */
        opacity: 0.6;
        stroke-width: 2px;
    }

    100% {
        ry: 2;
        opacity: 0.1;
        stroke-width: 1px;
    }
}

/* Data Flow Lines for HQ */
.ink-fill {
    stroke-dasharray: 4;
    animation: dash-move 1s infinite linear;
}

@keyframes dash-move {
    to {
        stroke-dashoffset: -8;
    }
}