/* ==============================================
   RESET & BASE
   ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==============================================
   CSS VARIABLES
   ============================================== */
:root {
    /* Color System */
    --bg-primary: #000000;
    --bg-secondary: #1d1d1f;
    --bg-tertiary: #2d2d2f;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --text-tertiary: #a1a1a6;
    --accent: #00a8ff;
    --accent-light: #80d4ff;
    --border: #424245;
    --border-light: #333336;

    /* Forging-themed color accents */
    --forge-primary: #ff9500;
    --forge-secondary: #ff3b30;
    --forge-gradient: linear-gradient(135deg, #ff9500, #ff3b30);
    --forge-glow: 0 0 20px rgba(255, 59, 48, 0.3);
    
    /* Danger/Warning Colors */
    --danger: #ff3b30;
    --danger-light: #ff9494;
    --warning: #ffcc00;
    
    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
    
    /* Spacing & Measurements */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 20px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --sidenav-width: 220px;
    --container-max-width: 1200px;
    --content-max-width: 800px;
}

/* ==============================================
   TYPOGRAPHY
   ============================================== */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    font-family: var(--font-main);
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

strong {
    font-weight: 600;
    color: var(--accent);
}

em {
    font-style: italic;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-tertiary);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
}

/* ==============================================
   SELECTION & SCROLLBAR
   ============================================== */
::selection {
    background-color: rgba(0, 122, 255, 0.3);
    color: var(--text-primary);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

.code-content::-webkit-scrollbar {
    height: 6px;
}

.code-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.code-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* ==============================================
   CONTAINER & LAYOUT
   ============================================== */
.container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.main-content {
    flex: 1;
    margin-left: var(--sidenav-width);
    padding: 3rem 2rem;
    max-width: var(--container-max-width);
    width: calc(100% - var(--sidenav-width));
}

.content-section {
    margin-bottom: 3rem;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.simple-divider {
    height: 1px;
    background: var(--border);
    margin: 2.5rem auto;
    max-width: var(--content-max-width);
}

/* ==============================================
   SIDENAV
   ============================================== */
.sidenav {
    width: var(--sidenav-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(15, 15, 15, 0.97);
    border-right: 1px solid rgba(255, 149, 0, 0.2);
    padding: 2rem 1rem;
    z-index: 100;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sidenav-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 149, 0, 0.2);
    text-align: center;
}

.sidenav-header h1 {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--forge-primary);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, var(--forge-primary), var(--forge-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidenav-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.nav-links {
    list-style: none;
    margin-bottom: 2rem;
}

.nav-links li {
    margin: 0.25rem 0;
}

.nav-links a {
    display: block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    border-left: 2px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-links a:hover {
    color: var(--forge-primary);
    background: rgba(255, 149, 0, 0.08);
    border-left: 2px solid var(--forge-primary);
}

.nav-links a.active {
    color: var(--forge-primary);
    background: rgba(255, 149, 0, 0.12);
    border-left: 2px solid var(--forge-primary);
    font-weight: 500;
    position: relative;
}

.nav-links a.active::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--forge-primary), var(--forge-secondary));
    border-radius: 1px;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 149, 0, 0.05), transparent);
    border-radius: 6px;
    pointer-events: none;
    animation: forgePulse 3s infinite;
}

@keyframes forgePulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.1;
    }
}

.nav-category {
    color: rgba(255, 149, 0, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1.5rem 0 0.5rem 1rem;
    font-weight: 600;
    position: relative;
    padding-left: 0.5rem;
}

.nav-category::before {
    content: '⚒️';
    position: absolute;
    left: -0.5rem;
    font-size: 0.6rem;
}

.sidenav-social {
    display: flex;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 149, 0, 0.2);
    justify-content: center;
}

.sidenav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 149, 0, 0.1);
    border-radius: 4px;
    color: var(--forge-primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
}

.sidenav-social a:hover {
    background: rgba(255, 149, 0, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 149, 0, 0.2);
}

.sidenav-toggle {
    display: none;
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    background: rgba(255, 149, 0, 0.1);
    color: var(--forge-primary);
    border: 1px solid var(--forge-primary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    z-index: 1000;
    cursor: pointer;
    transition: var(--transition);
}

.sidenav-toggle:hover {
    background: rgba(255, 149, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.2);
}

.sidenav::-webkit-scrollbar {
    width: 4px;
}

.sidenav::-webkit-scrollbar-track {
    background: rgba(255, 149, 0, 0.05);
}

.sidenav::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--forge-primary), var(--forge-secondary));
    border-radius: 2px;
}

.sidenav::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--forge-secondary), var(--forge-primary));
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    text-align: center;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

.article-meta {
    margin-top: 1rem;
    color: var(--text-tertiary);
    font-style: italic;
    font-size: 0.95rem;
}

.article-section {
    margin-bottom: 3rem;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.article-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.article-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ==============================================
   BUTTONS & LINKS
   ============================================== */
.simple-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.simple-link:hover {
    background: rgba(0, 122, 255, 0.2);
    border-color: var(--accent);
}

.nav-link-forward,
.nav-link-backward {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link-forward:hover {
    background: rgba(0, 122, 255, 0.2);
    border-color: var(--accent);
    transform: translateX(4px);
}

.nav-link-backward:hover {
    background: rgba(0, 122, 255, 0.2);
    border-color: var(--accent);
    transform: translateX(-4px);
}

.entry-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-link:hover {
    background: rgba(0, 122, 255, 0.2);
    border-color: var(--accent);
    transform: translateX(4px);
}

.threshold-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    background: rgba(0, 122, 255, 0.1);
    border: 2px solid rgba(0, 122, 255, 0.2);
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.threshold-link:hover {
    background: rgba(0, 122, 255, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ==============================================
   CARDS & BOXES
   ============================================== */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 3rem 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.card strong {
    color: var(--accent);
    font-weight: 600;
}

.card ul,
.card ol {
    text-align: center;
    padding: 0;
    margin: 1rem 0 0 0;
}

.card ul {
    list-style: none;
    display: inline-block;
    text-align: left;
}

.card ol {
    display: inline-block;
    text-align: left;
}

.card li {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    text-align: left;
}

.card ul li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0.5rem;
    font-size: 1.2rem;
}

.card ol {
    list-style-position: outside;
    padding-left: 1.5rem;
}

.card ol li {
    padding-left: 0.5rem;
}

.simple-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2rem auto;
    max-width: var(--content-max-width);
    transition: var(--transition);
}

.simple-box:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.simple-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.simple-box ul,
.simple-box ol {
    text-align: center;
    padding: 0;
    margin: 1rem 0 0 0;
}

.simple-box ul {
    list-style: none;
    display: inline-block;
    text-align: left;
}

.simple-box ol {
    display: inline-block;
    text-align: left;
}

.simple-box li {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    text-align: left;
}

.simple-box ul li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0.5rem;
    font-size: 1.2rem;
}

.simple-box ol {
    list-style-position: outside;
    padding-left: 1.5rem;
}

.simple-box ol li {
    padding-left: 0.5rem;
}

.note {
    background: rgba(0, 122, 255, 0.05);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-left: 3px solid var(--accent);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem auto;
    max-width: var(--content-max-width);
    transition: var(--transition);
}

.note:hover {
    border-color: rgba(0, 122, 255, 0.3);
    transform: translateY(-2px);
}

.note-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.note h4 {
    color: var(--accent);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.note.warning {
    background: rgba(255, 59, 48, 0.05);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-left: 3px solid var(--danger);
}

.note.warning h4 {
    color: var(--danger);
}

/* ==============================================
   GRID LAYOUTS
   ============================================== */
.comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.75rem;
    margin: 2rem auto;
    max-width: var(--content-max-width);
    width: 100%;
}

.comparison-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.comparison-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.comparison-item h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.comparison-item ul {
    list-style: none;
    padding-left: 0;
}

.comparison-item li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.comparison-item li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.comparison-item strong {
    color: var(--text-primary);
}

.characteristics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: var(--content-max-width);
    width: 100%;
}

.characteristic {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}

.characteristic:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.characteristic h4 {
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.characteristic ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.characteristic li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    text-align: left;
}

.characteristic li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.characteristic p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: left;
}

.characteristic-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: var(--content-max-width);
    width: 100%;
}

.insight {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-align: center;
}

.insight:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.insight h4 {
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.insight p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.philosophy-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-point {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.philosophy-point:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.philosophy-point::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: var(--transition);
}

.philosophy-point:hover::before {
    opacity: 1;
}

.point-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.philosophy-point h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.philosophy-point p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.philosophy-point strong {
    color: var(--text-primary);
    font-weight: 600;
}

.garden-philosophy h3 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* ==============================================
   INSTALLATION PATH
   ============================================== */
.installation-path {
    margin: 3rem auto;
    max-width: 700px;
    position: relative;
    padding: 0 1rem;
}

.installation-path::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 32px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--accent) 10%,
        var(--accent) 90%,
        transparent 100%
    );
    opacity: 0.2;
    z-index: 1;
}

.path-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(0, 168, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 168, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.path-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.path-header h4 {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    position: relative;
}

.path-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
    opacity: 0.9;
}

.path-step {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.path-step:last-child {
    margin-bottom: 0;
}

.path-step .step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--accent);
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.15);
    z-index: 3;
}

.path-step .step-number::before {
    content: '';
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(0, 168, 255, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.path-step .step-content {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.path-step .step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: var(--transition);
}

.path-step .step-content:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.path-step .step-content:hover::before {
    opacity: 1;
}

.path-step h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.path-step p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}

.path-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    margin: 0.5rem 0 2rem 0;
    position: relative;
    z-index: 2;
}

.path-connector::after {
    content: '↓';
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--bg-primary);
    padding: 0 1.5rem;
    z-index: 2;
    position: relative;
    animation: pulseArrow 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulseArrow {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.7;
        transform: translateY(5px);
    }
}

.path-step:hover .step-number {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.3);
}

.path-step:hover .step-number::before {
    border-color: rgba(0, 168, 255, 0.3);
}

.path-step.completed .step-number {
    background: var(--accent);
    color: white;
    border-color: var(--accent-light);
}

.path-step.completed .step-content {
    border-color: var(--accent);
    background: rgba(0, 168, 255, 0.02);
}

.path-step.completed .step-content::before {
    opacity: 1;
    background: var(--accent-light);
}

.path-step.completed h4 {
    color: var(--accent-light);
}

/* ==============================================
   PROCESS STEPS
   ============================================== */
.process-step {
    display: flex;
    gap: 1.75rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.process-step:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: var(--transition);
}

.process-step:hover::before {
    opacity: 0.5;
}

.process-step .step-number {
    flex-shrink: 0;
    min-width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
    transition: var(--transition);
}

.process-step:hover .step-number {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.4);
}

.process-step .step-content {
    flex: 1;
}

.process-step .step-content h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.process-step .step-content h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.process-step ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 0 0;
}

.process-step li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
    position: relative;
    transition: var(--transition);
}

.process-step li:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.process-step li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.7;
    transition: var(--transition);
}

.process-step li:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

.process-step li strong {
    color: var(--accent);
    font-weight: 600;
}

.process-step li[data-icon] {
    padding-left: 2.5rem;
}

.process-step li[data-icon]::before {
    content: attr(data-icon);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    width: auto;
    height: auto;
    background: transparent;
    color: var(--accent);
    font-size: 0.9rem;
    left: 0.25rem;
    top: 0.15rem;
}

.process-step li[data-icon="🗑️"]::before,
.process-step li[data-icon="🚫"]::before {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
}

.process-step li[data-icon]:hover::before {
    transform: scale(1.1);
    opacity: 1;
}

/* ==============================================
   NAVIGATION & THRESHOLDS
   ============================================== */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.progress {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
}

/* Threshold Components */
.threshold {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
}

.threshold-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.threshold-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 1rem;
}

.threshold-word {
    transition: var(--transition);
}

.threshold-word:hover {
    color: var(--accent);
}

.threshold-divider {
    color: var(--text-secondary);
    font-weight: 300;
}

.threshold-instruction {
    text-align: center;
    max-width: var(--content-max-width);
    margin: 2rem auto;
}

.threshold-instruction p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.threshold-instruction strong {
    color: var(--accent);
    font-weight: 600;
}

.threshold-navigation {
    text-align: center;
    margin: 3rem 0;
}

.threshold-path {
    display: inline-block;
    position: relative;
}

/* ==============================================
   TIER SECTIONS
   ============================================== */
.tier-section {
    margin-top: 3rem;
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.tier-number {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.tier-header h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

/* Entry Points */
.entry-points h3 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.entry-point {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    position: relative;
}

.entry-point:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.entry-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.entry-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 1.1rem;
}

.entry-point h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.entry-content {
    padding-left: 0.5rem;
}

.entry-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.entry-content strong {
    color: var(--accent);
    font-weight: 600;
}

/* Invitation */
.invitation {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    margin: 2rem auto;
    max-width: var(--content-max-width);
    text-align: center;
    transition: var(--transition);
}

.invitation:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.invitation h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.invitation-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.invitation-content strong {
    color: var(--accent);
    font-weight: 600;
}

.invitation-note {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.invitation-note p {
    font-style: italic;
    color: var(--text-tertiary);
    font-size: 1rem;
    margin: 0;
}

.invitation-note em {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

/* ==============================================
   TABLES
   ============================================== */
.distinction-table {
    width: 100%;
    overflow-x: auto;
    margin: 2rem auto;
    max-width: var(--content-max-width);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.distinction-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 600px;
}

.distinction-table thead {
    background: rgba(0, 122, 255, 0.1);
}

.distinction-table th {
    text-align: center;
    padding: 1.25rem 1rem;
    border-bottom: 2px solid var(--border);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    border-right: 1px solid var(--border-light);
}

.distinction-table th:last-child {
    border-right: none;
}

.distinction-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    line-height: 1.6;
    vertical-align: top;
    border-right: 1px solid var(--border-light);
}

.distinction-table td:last-child {
    border-right: none;
}

.distinction-table tbody tr:last-child td {
    border-bottom: none;
}

.distinction-table tbody tr:nth-child(even) {
    background: rgba(0, 122, 255, 0.02);
}

.distinction-table tbody tr:hover {
    background: rgba(0, 122, 255, 0.05);
}

.distinction-table td:first-child {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

.distinction-table td:first-child,
.distinction-table th:first-child {
    padding-left: 1.5rem;
}

.distinction-table td:last-child,
.distinction-table th:last-child {
    padding-right: 1.5rem;
}

/* ==============================================
   FORGE ENHANCEMENTS
   ============================================== */
/* Forging-themed text gradient */
.forge-accent {
    background: linear-gradient(135deg, var(--forge-primary), var(--forge-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Forge-themed buttons */
.forge-button {
    animation: hammerPulse 2s infinite;
    background: linear-gradient(135deg, var(--forge-primary), var(--forge-secondary));
    color: white;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.forge-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.forge-button:hover {
    animation: none;
    transform: scale(1.05);
    box-shadow: var(--forge-glow);
}

.forge-button:hover::before {
    left: 100%;
}

/* Stage icons with forging colors */
.stage-icon {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
}

.stage-1-icon { 
    background: rgba(255, 149, 0, 0.1); 
    color: var(--forge-primary);
    border: 2px solid rgba(255, 149, 0, 0.3);
}

.stage-2-icon { 
    background: rgba(255, 59, 48, 0.1); 
    color: var(--forge-secondary);
    border: 2px solid rgba(255, 59, 48, 0.3);
}

.stage-3-icon { 
    background: rgba(0, 122, 255, 0.1); 
    color: var(--accent);
    border: 2px solid rgba(0, 122, 255, 0.3);
}

.stage-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Animated fire background for emergency sections */
.fire-bg {
    background: linear-gradient(45deg, 
        rgba(255, 59, 48, 0.05) 0%, 
        rgba(255, 149, 0, 0.05) 25%, 
        rgba(255, 59, 48, 0.05) 50%, 
        rgba(255, 149, 0, 0.05) 75%, 
        rgba(255, 59, 48, 0.05) 100%);
    background-size: 400% 400%;
    animation: fireShift 15s ease infinite;
    border: 1px solid rgba(255, 59, 48, 0.2);
    position: relative;
}

.fire-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--forge-secondary), transparent);
}

/* Forge card enhancements */
.forge-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.forge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--forge-gradient);
    opacity: 0;
    transition: var(--transition);
}

.forge-card:hover {
    border-color: var(--forge-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.forge-card:hover::before {
    opacity: 1;
}

/* Forge process steps */
.forge-step {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.forge-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 20px;
    height: 20px;
    background: var(--forge-gradient);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.3);
}

.forge-step::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 30px;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--forge-primary), transparent);
}

.forge-step:last-child::after {
    display: none;
}

/* Heat gauge indicator */
.heat-gauge {
    height: 4px;
    background: linear-gradient(90deg, 
        var(--forge-primary) 0%, 
        var(--forge-secondary) 100%);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.heat-gauge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: gaugeShimmer 2s infinite;
}

@keyframes gaugeShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==============================================
   SPECIAL COMPONENTS
   ============================================== */
/* Danger Components */
.danger-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--danger);
}

.danger-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 59, 48, 0.2);
}

.danger-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.danger-item strong {
    color: var(--danger-light);
    display: inline-block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.danger-item ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
}

.danger-item li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.danger-item li::before {
    content: "•";
    color: var(--danger);
    position: absolute;
    left: 0.5rem;
    font-weight: bold;
}

.danger-card {
    background: rgba(255, 59, 48, 0.05);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-left: 3px solid var(--danger);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
    transition: var(--transition);
}

.danger-card:hover {
    border-color: rgba(255, 59, 48, 0.3);
    transform: translateY(-2px);
}

.danger-card .danger-header {
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.danger-card h4 {
    color: var(--danger);
    margin: 0;
}

/* Mantra Box */
.mantra-box {
    padding: 2rem;
}

.mantra-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    margin: 0;
}

/* Special Effects */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 2px;
    opacity: 0.1;
    z-index: 9999;
}

.glow-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(0, 122, 255, 0.02) 50%,
        transparent 100%
    );
    z-index: 9998;
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 122, 255, 0.1);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.reading-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accent Border */
.accent-border-left {
    border-left: 4px solid var(--accent) !important;
}

/* Quote Style */
.quote-style {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
}

/* ==============================================
   FOOTER
   ============================================== */
.simple-footer {
    padding: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    text-align: center;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
}

.footer-subtext {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    color: var(--text-tertiary);
}

/* ==============================================
   ANIMATIONS
   ============================================== */
@media (prefers-reduced-motion: no-preference) {
    .series-part,
    .card,
    .simple-box,
    .comparison-item,
    .note,
    .characteristic,
    .insight {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .series-part:nth-child(1) { animation-delay: 0.1s; }
    .series-part:nth-child(2) { animation-delay: 0.2s; }
    .series-part:nth-child(3) { animation-delay: 0.3s; }
    .series-part:nth-child(4) { animation-delay: 0.4s; }
    .series-part:nth-child(5) { animation-delay: 0.5s; }

    .path-step {
        opacity: 0;
        transform: translateX(-20px);
        animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .path-step:nth-child(2) { animation-delay: 0.2s; }
    .path-step:nth-child(4) { animation-delay: 0.4s; }
    .path-step:nth-child(6) { animation-delay: 0.6s; }

    .process-step li {
        opacity: 0;
        transform: translateX(-10px);
        animation: slideInListItem 0.5s ease forwards;
    }
    
    .process-step li:nth-child(1) { animation-delay: 0.1s; }
    .process-step li:nth-child(2) { animation-delay: 0.2s; }
    .process-step li:nth-child(3) { animation-delay: 0.3s; }
    .process-step li:nth-child(4) { animation-delay: 0.4s; }
    .process-step li:nth-child(5) { animation-delay: 0.5s; }
    .process-step li:nth-child(6) { animation-delay: 0.6s; }

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

    @keyframes slideInRight {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideInListItem {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* Heat/hammer animation for buttons */
@keyframes hammerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Animated fire background */
@keyframes fireShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */
@media (max-width: 1024px) {
    .sidenav {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: var(--shadow-md);
    }

    .sidenav.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 2.5rem;
    }

    .sidenav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 4rem 1.5rem 2.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .card,
    .simple-box {
        padding: 2rem 1.5rem;
        margin: 2rem auto;
    }

    .card p,
    .simple-box p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.75rem;
        margin: 2.5rem 0 1.5rem;
    }

    .comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .characteristics,
    .insights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .process-step {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .distinction-table {
        font-size: 0.85rem;
        border: none;
    }
    
    .distinction-table table {
        min-width: 100%;
    }
    
    .distinction-table th,
    .distinction-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .distinction-table td:first-child,
    .distinction-table th:first-child {
        padding-left: 0.75rem;
    }
    
    .distinction-table td:last-child,
    .distinction-table th:last-child {
        padding-right: 0.75rem;
    }
    
    .navigation {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .navigation .nav-link-forward,
    .navigation .nav-link-backward {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .threshold {
        flex-direction: column;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .threshold-text {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 1rem;
    }
    
    .threshold-divider {
        display: none;
    }
    
    .threshold-word {
        padding: 0.5rem 0;
    }
    
    .threshold-line {
        width: 80%;
    }
    
    .philosophy-points {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .philosophy-point {
        padding: 1.5rem;
    }
    
    .entry-point {
        padding: 1.5rem;
    }
    
    .entry-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .entry-point h4 {
        text-align: center;
        font-size: 1.2rem;
    }
    
    .invitation {
        padding: 1.5rem;
    }
    
    .threshold-link {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .installation-path {
        margin: 2rem auto;
        padding: 0;
    }
    
    .installation-path::before {
        left: 28px;
    }
    
    .path-step {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .path-step .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .path-step .step-content {
        padding: 1.25rem;
    }
    
    .path-step h4 {
        font-size: 1.1rem;
    }
    
    .path-step p {
        font-size: 0.9rem;
    }
    
    .path-connector {
        height: 30px;
        margin: 0.5rem 0 1rem 0;
    }
    
    .path-connector::after {
        font-size: 1.25rem;
        padding: 0 1rem;
    }
    
    /* Forge enhancements mobile */
    .forge-step {
        padding-left: 2.5rem;
    }
    
    .forge-step::before {
        width: 16px;
        height: 16px;
        top: 0.3rem;
    }
    
    .forge-step::after {
        left: 8px;
        top: 26px;
    }
    
    .forge-button {
        animation: hammerPulse 3s infinite;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .card,
    .simple-box {
        padding: 1.5rem 1rem;
    }

    .threshold-text {
        font-size: 0.9rem;
    }
    
    .philosophy-point {
        padding: 1.25rem;
    }
    
    .entry-point {
        padding: 1.25rem;
    }
    
    .invitation {
        padding: 1.25rem 1rem;
    }
    
    .invitation h3 {
        font-size: 1.3rem;
    }
    
    .threshold-link,
    .nav-link-forward,
    .nav-link-backward {
        width: 100%;
        justify-content: center;
    }

    .distinction-table {
        font-size: 0.8rem;
    }
    
    .distinction-table th,
    .distinction-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .distinction-table td:first-child,
    .distinction-table th:first-child {
        padding-left: 0.5rem;
    }
    
    .distinction-table td:last-child,
    .distinction-table th:last-child {
        padding-right: 0.5rem;
    }
    
    .step-number,
    .stage-icon {
        font-size: 0.75rem;
        min-width: 35px;
        height: 35px;
    }

    .installation-path::before {
        display: none;
    }
    
    .path-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .path-step .step-number {
        margin-bottom: 0.5rem;
    }
    
    .path-step .step-content {
        text-align: center;
        width: 100%;
    }
    
    .path-header {
        padding: 1rem;
    }
    
    .path-header h4 {
        font-size: 1rem;
    }
    
    .path-header p {
        font-size: 0.85rem;
    }
    
    .path-connector::after {
        font-size: 1.1rem;
    }
}
