:root {
    --bg-dark: #121214;
    --bg-darker: #0d0d0e;
    --bg-card: #1c1c1e;
    --text-main: #e0e0e0;
    --text-muted: #8e8e93;
    --accent: #ff6b00;
    --accent-hover: #ff8533;
    --grid-color: rgba(255, 255, 255, 0.03);
    --grid-color-strong: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    
    /* Blueprint background pattern */
    background-image: 
        linear-gradient(var(--grid-color-strong) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color-strong) 1px, transparent 1px),
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px;
}

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

h1, h2, h3, .logo-text, .btn-text, .badge, .card-icon, .step-num, .col-name {
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.section-padding {
    padding: 120px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(18, 18, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-main);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: rgba(255, 107, 0, 0.1);
    color: var(--accent);
    padding: 6px 12px;
    font-size: 0.8rem;
    border: 1px solid var(--accent);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-authors {
    background: var(--bg-card);
    padding: 15px 20px;
    border-left: 3px solid var(--accent);
    margin-bottom: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-authors strong {
    color: var(--text-main);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent);
    color: #fff;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
}

.hero-visual {
    position: relative;
    padding: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: lighten;
}

/* Sections */
.section-heading {
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.section-heading h2 {
    font-size: 2rem;
    color: var(--text-main);
    white-space: nowrap;
}

.tech-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    position: relative;
}

.tech-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    background: var(--accent);
}

/* Overview Grid */
.overview-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
}

.overview-item {
    background: var(--bg-card);
    padding: 30px;
    border-left: 3px solid var(--accent);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
}

.overview-item:hover {
    background: rgba(255, 107, 0, 0.05);
    transform: translateX(10px);
}

.overview-num {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.8;
}

.overview-content h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    color: var(--text-main);
}

.overview-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Goals Section */
.goals-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main-goal {
    background: rgba(255, 107, 0, 0.05);
    border: 1px solid var(--accent);
    padding: 40px;
    position: relative;
    border-radius: 4px;
}

.goal-label {
    position: absolute;
    top: -12px;
    left: 30px;
    background: var(--bg-darker);
    padding: 0 10px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
}

.main-goal h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0;
}

.tasks-list {
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid var(--border);
}

.tasks-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.styled-list {
    list-style-type: none;
    padding-left: 0;
    counter-reset: custom-counter;
}

.styled-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.styled-list li::before {
    counter-increment: custom-counter;
    content: "0" counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
}

/* Methodology Tabs */
.tabs-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    min-height: 300px;
}

.tabs-nav {
    width: 300px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-authors strong {
    color: var(--text-main);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent);
    color: #fff;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
}

.hero-visual {
    position: relative;
    padding: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: lighten;
}

/* Sections */
.section-heading {
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.section-heading h2 {
    font-size: 2rem;
    color: var(--text-main);
    white-space: nowrap;
}

.tech-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    position: relative;
}

.tech-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    background: var(--accent);
}

/* Overview Grid */
.overview-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
}

.overview-item {
    background: var(--bg-card);
    padding: 30px;
    border-left: 3px solid var(--accent);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
}

.overview-item:hover {
    background: rgba(255, 107, 0, 0.05);
    transform: translateX(10px);
}

.overview-num {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.8;
}

.overview-content h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    color: var(--text-main);
}

.overview-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Goals Section */
.goals-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main-goal {
    background: rgba(255, 107, 0, 0.05);
    border: 1px solid var(--accent);
    padding: 40px;
    position: relative;
    border-radius: 4px;
}

.goal-label {
    position: absolute;
    top: -12px;
    left: 30px;
    background: var(--bg-darker);
    padding: 0 10px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
}

.main-goal h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0;
}

.tasks-list {
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid var(--border);
}

.tasks-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.styled-list {
    list-style-type: none;
    padding-left: 0;
    counter-reset: custom-counter;
}

.styled-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.styled-list li::before {
    counter-increment: custom-counter;
    content: "0" counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
}

/* Methodology Tabs */
.tabs-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    min-height: 300px;
}

.tabs-nav {
    width: 300px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 20px 30px;
    text-align: left;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--accent);
    background: rgba(255, 107, 0, 0.05);
    border-left: 3px solid var(--accent);
}

.tabs-content {
    flex: 1;
    padding: 50px;
    position: relative;
    overflow-x: auto;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.tab-pane p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Six Hats Grid */
.hats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 25px;
    border-top: 3px solid var(--accent);
    transition: var(--transition);
}

.hat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hat-title {
    font-family: var(--font-mono);
    color: var(--text-main);
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.hat-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Hat Colors */
.hat-white { border-top-color: #ffffff; }
.hat-red { border-top-color: #ff4d4d; }
.hat-black { border-top-color: #777777; }
.hat-green { border-top-color: #4caf50; }
.hat-yellow { border-top-color: #ffc107; }
.hat-blue { border-top-color: #2196f3; }

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.product-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.product-image {
    position: relative;
    padding: 40px;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.tech-specs {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
}

.tech-specs span {
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 8px;
    border: 1px solid var(--accent);
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    margin-bottom: 15px;
}

.product-info p {
    color: var(--text-muted);
}

/* DIY Animation */
.diy-placeholder {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wireframe-obj {
    width: 80px;
    height: 80px;
    border: 2px dashed var(--accent);
    animation: spin 10s linear infinite;
}

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

/* TRIZ Tabs */
.triz-tabs-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.triz-tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.triz-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 20px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.triz-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
}

.triz-tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: rgba(255, 107, 0, 0.05);
}

.triz-tabs-content {
    padding: 40px;
}

.triz-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.triz-pane.active {
    display: block;
}

.triz-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-main);
    text-align: center;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 15px;
}

.triz-rules {
    margin-bottom: 30px;
}

.triz-rules p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.rule-highlight {
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
}

.resource-box {
    text-align: center;
    padding: 40px;
    border: 1px dashed var(--accent);
    font-size: 1.1rem;
    color: var(--text-main);
    background: rgba(255, 107, 0, 0.05);
}

.table-responsive {
    overflow-x: auto;
}

.triz-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    color: var(--text-main);
    font-family: var(--font-sans);
    border: 1px solid var(--border);
}

.triz-table th {
    background: var(--bg-darker);
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border: 1px solid var(--border);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.triz-table td {
    padding: 15px;
    border: 1px solid var(--border);
    background: transparent;
}

.triz-table tbody tr {
    transition: var(--transition);
}

.triz-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.triz-table .merged-cell {
    background: rgba(0, 0, 0, 0.2);
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
    vertical-align: middle;
}

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

/* Override dark mode specific for these tables to match the screenshots perfectly */
.triz-tabs-content .table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

/* Production Path */
.production-path {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 0;
}

.path-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-num {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--accent);
    position: relative;
    z-index: 2;
}

.step-desc {
    font-weight: 600;
    color: var(--text-muted);
}

.path-connector {
    flex: 1;
    height: 2px;
    background: var(--border);
    position: relative;
}

.path-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 1s ease;
}

.production-path:hover .path-connector::after {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 60px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.footer-info p {
    color: var(--text-muted);
}

.footer-authors {
    text-align: right;
}

.authors-label {
    display: block;
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.footer-authors strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.footer-authors p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-in.is-visible {
    opacity: 1;
}

.animate-slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
.lateral-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .mission-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .hats-grid { grid-template-columns: repeat(2, 1fr); }
    .lateral-grid { grid-template-columns: 1fr; }
    .craft-grid { grid-template-columns: 1fr !important; }
    .scheme-grid { grid-template-columns: 1fr !important; }
    .hero-container { grid-template-columns: 1fr; }
    .tabs-container { flex-direction: column; }
    .tabs-nav { width: 100%; border-right: none; border-bottom: 1px solid var(--border); flex-direction: row; overflow-x: auto;}
    .table-header, .table-row { grid-template-columns: 1fr; }
    .col-name { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 15px;}
    .col-val { padding-top: 15px; }
    .production-path { flex-direction: column; gap: 40px; }
    .path-connector { display: none; }
}

@media (max-width: 768px) {
    .hats-grid { grid-template-columns: 1fr; }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .top-nav {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .tabs-content {
        padding: 20px;
    }
    
    /* Hide scrollbars for navs on mobile */
    .top-nav::-webkit-scrollbar,
    .tabs-nav::-webkit-scrollbar {
        display: none;
    }
    .top-nav, .tabs-nav {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* Page Views */
.page-view {
    display: none;
    opacity: 0;
}

.page-view.active {
    display: block;
    opacity: 1;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Nav links styling */
.top-nav .nav-link {
    cursor: pointer;
    position: relative;
    padding-bottom: 5px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}
.top-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.top-nav .nav-link.active::after, .top-nav .nav-link:hover::after {
    width: 100%;
}
.top-nav .nav-link.active {
    color: var(--accent);
}

/* Better Tables */
.triz-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border: none;
}
.triz-table th {
    background: linear-gradient(180deg, #222224 0%, #161618 100%);
    border-bottom: 2px solid var(--accent);
    border-left: none;
    border-right: none;
    border-top: none;
}
.triz-table td {
    border-color: rgba(255,255,255,0.05);
}
.triz-table tbody tr {
    transition: all 0.3s ease;
}
.triz-table tbody tr:hover td {
    background: rgba(255, 107, 0, 0.05) !important;
    box-shadow: inset 0 0 10px rgba(255,107,0,0.05);
}
.triz-table tbody tr:hover {
    transform: scale(1.005);
    z-index: 10;
    position: relative;
}

/* Tab button animations */
.tab-btn {
    position: relative;
    overflow: hidden;
}
.tab-btn::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tab-btn.active::before, .tab-btn:hover::before {
    transform: translateX(0);
}

/* Mobile Hotfixes */
.tab-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

@media (max-width: 768px) {
    .triz-table {
        min-width: 600px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .nav.top-nav {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding-bottom: 10px;
        flex-wrap: nowrap;
        gap: 20px;
    }

    /* Hide scrollbar for nav */
    .nav.top-nav::-webkit-scrollbar {
        display: none;
    }
    .nav.top-nav {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .tabs-nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        border-bottom: 1px solid var(--border);
        border-right: none;
        width: 100%;
    }
    
    .tabs-nav::-webkit-scrollbar {
        display: none;
    }
    .tabs-nav {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

@media (max-width: 768px) {
    .tabs-content {
        padding: 20px !important;
    }
}

/* Strict Horizontal Scroll Prevention */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tabs-content {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .section-heading h2 {
        white-space: normal !important;
        font-size: 1.5rem !important;
    }
    .hero-title {
        font-size: 2rem !important;
    }
    .tab-pane h3 {
        font-size: 1.3rem !important;
        line-height: 1.3;
    }
    .tabs-container {
        width: 100%;
        max-width: 100vw;
        overflow: hidden; /* prevents inner content from breaking container */
    }
    .tabs-content {
        overflow-x: hidden; /* Inner tables will scroll, not the whole pane */
    }
}

/* Auto-generated Utility Classes to replace inline styles */
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-italic { font-style: italic; }
.text-muted { color: #8e8e93; }
.text-red { color: #ff4d4d; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: bold; }
.align-middle { vertical-align: middle; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.conclusion-box-style { background: rgba(255,255,255,0.02); border-left: 4px solid var(--accent); padding: 20px; font-size: 1.05rem; line-height: 1.5; color: var(--text-main); }
.dashed-box { border: 1px dashed var(--accent); padding: 30px; }

/* Auto-generated utility classes */
.auto-style-1 { transition-delay: 0.1s; }
.auto-style-2 { transition-delay: 0.2s; }
.auto-style-3 { transition-delay: 0.3s; }
.auto-style-4 { transition-delay: 0.4s; }
.auto-style-5 { width: 20%; font-weight: 700; font-family: var(--font-mono); color: var(--text-main); text-transform: uppercase; }
.auto-style-6 { font-weight: 700; font-family: var(--font-mono); color: var(--accent); text-transform: uppercase; }
.auto-style-7 { font-weight: 700; font-family: var(--font-mono); color: var(--text-muted); text-transform: uppercase; }
.auto-style-8 { text-transform: none; }
.auto-style-9 { font-weight: 600; text-align: center; color: var(--text-muted); }
.auto-style-10 { width: 35%; }
.auto-style-11 { background: rgba(255, 107, 0, 0.05); }
.auto-style-12 { font-weight: 700; text-align: center; color: var(--accent); font-family: var(--font-mono); text-transform: uppercase; }
.auto-style-13 { font-weight: 600; color: var(--text-main); }
.auto-style-14 { background: var(--bg-card); border: 1px solid var(--border); padding: 30px; }
.auto-style-15 { font-family: var(--font-mono); color: var(--text-muted); margin-bottom: 25px; border-bottom: 1px solid var(--border); padding-bottom: 15px; text-transform: uppercase; }
.auto-style-16 { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; font-size: 0.95rem; }
.auto-style-17 { color: var(--text-main); font-family: var(--font-mono); }
.auto-style-18 { margin-top: 30px; padding: 20px; background: rgba(255,255,255,0.02); border: 1px dashed var(--border); }
.auto-style-19 { color: var(--text-muted); font-family: var(--font-mono); }
.auto-style-20 { background: var(--bg-card); border: 1px solid var(--accent); padding: 30px; position: relative; }
.auto-style-21 { position: absolute; top: -1px; left: -1px; right: -1px; height: 4px; background: var(--accent); }
.auto-style-22 { font-family: var(--font-mono); color: var(--accent); margin-bottom: 25px; border-bottom: 1px solid var(--border); padding-bottom: 15px; text-transform: uppercase; }
.auto-style-23 { margin-top: 30px; padding: 20px; background: rgba(255,107,0,0.05); border: 1px solid var(--accent); }
.auto-style-24 { color: var(--accent); font-family: var(--font-mono); }
.auto-style-25 { display: grid; grid-template-columns: 1fr; gap: 15px; margin-bottom: 20px; }
.auto-style-26 { background: var(--bg-card); border-left: 3px solid var(--accent); padding: 20px; }
.auto-style-27 { color: var(--text-muted); }
.auto-style-28 { color: #4caf50; }
.auto-style-29 { background: var(--bg-card); padding: 40px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 20px; overflow-x: auto; }
.auto-style-30 { display: flex; justify-content: space-between; align-items: flex-start; min-width: 800px; gap: 20px; }
.auto-style-31 { flex: 1; text-align: center; }
.auto-style-32 { background: var(--bg-darker); color: var(--text-main); border: 2px solid var(--accent); padding: 15px; border-radius: 50px; font-weight: 700; margin-bottom: 30px; position: relative; }
.auto-style-33 { position: absolute; right: -25px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 15px solid var(--accent); }
.auto-style-34 { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.auto-style-35 { font-size: 0.85rem; color: var(--text-muted); padding: 5px 10px; border: 1px dashed var(--border); border-radius: 4px; }
.auto-style-36 { background: var(--bg-darker); color: var(--text-main); border: 2px solid var(--accent); padding: 15px; border-radius: 50px; font-weight: 700; margin-bottom: 30px; }
.auto-style-37 { width: 10%; font-size: 2rem; font-weight: 700; color: var(--accent); text-align: center; font-family: var(--font-mono); border-right: 1px solid var(--border); }
.auto-style-38 { font-weight: 600; }
.auto-style-39 { background: var(--bg-card); padding: 30px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 20px; }
.auto-style-40 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.auto-style-41 { display: flex; flex-direction: column; gap: 15px; }
.auto-style-42 { display: flex; justify-content: space-between; margin-bottom: 5px; }
.auto-style-43 { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-main); }
.auto-style-44 { font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent); }
.auto-style-45 { width: 100%; height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
.auto-style-46 { width: 87.5%; height: 100%; background: var(--accent); }
.auto-style-47 { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-muted); }
.auto-style-48 { width: 75%; height: 100%; background: var(--text-muted); }
.auto-style-49 { width: 62.5%; height: 100%; background: var(--text-muted); }
.auto-style-50 { width: 50%; height: 100%; background: var(--text-muted); }
.auto-style-51 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.auto-style-52 { background: var(--bg-card); border-top: 3px solid var(--accent); padding: 0; }
.auto-style-53 { background: var(--accent); color: #fff; padding: 15px; font-weight: 700; text-align: center; text-transform: uppercase; }
.auto-style-54 { list-style: none; padding: 20px; margin: 0; display: flex; flex-direction: column; gap: 15px; color: var(--text-main); }
.auto-style-55 { position: relative; padding-left: 15px; }
.auto-style-56 { position: absolute; left: 0; color: var(--accent); }
.auto-style-57 { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }
.auto-style-58 { display: flex; flex-wrap: wrap; border: 1px solid var(--border); background: var(--bg-card); border-radius: 8px; overflow: hidden; }
.auto-style-59 { background: var(--accent); color: #fff; padding: 20px; flex: 1; min-width: 250px; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 1.1rem; }
.auto-style-60 { font-size: 0.85rem; font-weight: 400; opacity: 0.9; margin-top: 5px; display: block; }
.auto-style-61 { padding: 20px; flex: 2; min-width: 300px; display: flex; align-items: center; color: var(--text-main); }
.auto-style-62 { background: rgba(255, 107, 0, 0.8); color: #fff; padding: 20px; flex: 1; min-width: 250px; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 1.1rem; }
.auto-style-63 { background: rgba(255, 107, 0, 0.6); color: #fff; padding: 20px; flex: 1; min-width: 250px; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 1.1rem; }
.auto-style-64 { width: 33%; text-align: center; }
.auto-style-65 { width: 34%; text-align: center; }
.auto-style-66 { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.auto-style-67 { width: 16.6%; }
.auto-style-68 { width: 16.6%; text-align: center; }
.auto-style-69 { font-weight: 700; text-align: center; color: var(--text-main); }
.auto-style-70 { font-size: 1.5rem; font-weight: 700; }
.auto-style-71 { font-size: 1.5rem; color: #4caf50; font-weight: 700; }
.auto-style-72 { font-size: 1.5rem; color: #f44336; font-weight: 700; }
.auto-style-73 { font-weight: 700; }
.auto-style-74 { font-size: 0.85rem; font-weight: 400; }
.auto-style-75 { font-size: 1.2rem; }
.auto-style-76 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 20px; }
.auto-style-77 { background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid var(--accent); padding: 20px; border-radius: 8px; }
.auto-style-78 { color: var(--text-main); margin-bottom: 15px; }
.auto-style-79 { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; color: var(--text-main); }
.auto-style-80 { position: relative; padding-left: 20px; }
.auto-style-81 { position: absolute; left: 0; color: var(--accent); font-weight: bold; }
.auto-style-82 { background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid #ff9800; padding: 20px; border-radius: 8px; }
.auto-style-83 { position: absolute; left: 0; color: #ff9800; font-weight: bold; }
.auto-style-84 { background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid #4caf50; padding: 20px; border-radius: 8px; }
.auto-style-85 { position: absolute; left: 0; color: #4caf50; font-weight: bold; }
.auto-style-86 { text-align: center; font-weight: 700; font-size: 1.2rem; }
.auto-style-87 { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; color: var(--text-main); }
.auto-style-88 { background: var(--bg-card); padding: 20px; border-left: 4px solid var(--accent); border-radius: 4px; }
.auto-style-89 { color: var(--accent); margin-bottom: 10px; }
.auto-style-90 { margin-top: 10px; }
.auto-style-91 { text-align: center; font-weight: 700; }
.auto-style-92 { background: var(--bg-card); padding: 25px; border-top: 4px solid #f44336; border-radius: 8px; }
.auto-style-93 { text-align: center; font-size: 1.2rem; margin-bottom: 15px; color: #f44336; }
.auto-style-94 { color: var(--text-main); font-size: 1.05rem; line-height: 1.6; }
.auto-style-95 { background: var(--bg-card); padding: 25px; border-top: 4px solid #2196f3; border-radius: 8px; }
.auto-style-96 { text-align: center; font-size: 1.2rem; margin-bottom: 15px; color: #2196f3; }
.auto-style-97 { background: var(--bg-card); padding: 25px; border-top: 4px solid #ff9800; border-radius: 8px; }
.auto-style-98 { text-align: center; font-size: 1.2rem; margin-bottom: 15px; color: #ff9800; }
.auto-style-99 { background: var(--bg-card); padding: 30px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 20px; overflow-x: auto; }
.auto-style-100 { position: relative; min-width: 700px; max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
.auto-style-101 { display: flex; justify-content: center; position: relative; }
.auto-style-102 { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: bold; color: var(--accent); }
.auto-style-103 { background: #e67e22; color: #fff; padding: 20px 30px; border-radius: 50px; text-align: center; width: 60%; font-weight: 600; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 2; position: relative; }
.auto-style-104 { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: bold; color: #e67e22; }
.auto-style-105 { display: flex; justify-content: space-between; align-items: center; position: relative; }
.auto-style-106 { position: absolute; left: 50%; top: -30px; bottom: -30px; width: 2px; background: #e67e22; transform: translateX(-50%); z-index: 1; }
.auto-style-107 { background: #e67e22; color: #fff; padding: 20px; border-radius: 12px; text-align: center; width: 30%; font-weight: 600; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 2; }
.auto-style-108 { background: #e67e22; color: #fff; padding: 30px 20px; border-radius: 50px; text-align: center; width: 30%; font-weight: 600; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 2; }
.auto-style-109 { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: bold; color: #e67e22; }
.auto-style-110 { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: bold; color: var(--accent); }
@media (max-width: 768px) {
    .section-padding {
        padding: 160px 0 80px 0 !important;
    }
}
@media (max-width: 768px) {
    .hero {
        padding-top: 130px !important;
    }
}
