/* Feral Frequencies - Common Styles */
/* All product pages share these styles. Colors come from theme-*.css files */

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

:root {
    /* Base colors (can be overridden by theme files) */
    --bg-dark: #0f1216;
    --bg-darker: #171b21;
    --text-light: #f5f7fa;
    --text-primary: #f5f7fa;
    --text-secondary: #c4c9d0;
    --text-muted: #aeb6c2;
    --card-bg: rgba(23, 27, 33, 0.6);
    --accent: #f0a500;
    --border-color: rgba(240, 165, 0, 0.1);

    /* Theme colors - these MUST be set by theme-*.css */
    /* --accent: primary accent color (may be overridden by theme files) */
    /* --accent-2: secondary accent color */
    /* --accent-rgb: accent as R, G, B for rgba() */
    /* --border-color: typically rgba(accent, 0.1) (may be overridden by theme files) */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Animated Background Canvas ===== */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 50%, rgba(var(--accent-rgb), 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(var(--accent-rgb), 0.02) 0%, transparent 50%);
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(15, 18, 22, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(240, 165, 0, 0.1);
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

/* Logo icons - matches main site sizing */
.logo-container img {
    height: 45px;
    width: 45px;
    border-radius: 8px;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-icon {
    opacity: 1;
}

.company-icon {
    opacity: 0;
    position: absolute;
}

/* Text wrapper reserves space */
.logo-text-wrapper {
    position: relative;
    display: inline-block;
    min-width: 10.5rem;
}

/* Logo text */
.logo-text {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-text {
    opacity: 1;
    transform: translateY(0);
}

.back-text {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

/* Hover effects - transform to main site view */
.logo-container:hover .app-icon {
    opacity: 0;
    transform: scale(0.9);
}

.logo-container:hover .company-icon {
    opacity: 1;
    transform: scale(1);
}

.logo-container:hover .app-text {
    opacity: 0;
    transform: translateY(-8px);
}

.logo-container:hover .back-text {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-menu a:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
}

.nav-menu .nav-btn-primary {
    background: var(--accent);
    color: #000;
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.nav-menu .nav-btn-primary:hover {
    background: var(--accent);
    filter: brightness(1.15);
    color: #000;
}

/* ===== Hamburger Menu ===== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.35rem;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.hamburger-icon span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-btn[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== Mobile Menu Overlay ===== */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.active {
    display: block;
    opacity: 1;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 80px;
    right: 0;
    height: calc(100vh - 80px);
    width: 100%;
    max-width: 300px;
    background: rgba(15, 18, 22, 0.98);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--border-color);
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 1.5rem 0;
}

.mobile-menu-overlay .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    width: 100%;
}

.mobile-menu-overlay .nav-menu li {
    width: 100%;
}

.mobile-menu-overlay .nav-menu a {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
}

.mobile-menu-overlay .nav-menu a:hover {
    background: rgba(var(--accent-rgb), 0.1);
}

.mobile-menu-overlay .nav-btn-primary {
    background: var(--accent);
    color: #000;
    font-weight: 600;
}

.mobile-menu-overlay .nav-btn-primary:hover {
    background: var(--accent);
    filter: brightness(1.15);
    color: #000;
}

/* ===== Main Content ===== */
main {
    padding-top: 120px;
    min-height: 100vh;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 1.5rem 0 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3), 0 0 25px rgba(var(--accent-rgb), 0.15);
}

.hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.03em;
    color: var(--text-light);
    text-shadow: 0 0 40px rgba(var(--accent-rgb), 0.2);
}

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

.hero .subtitle {
    font-size: 1.15rem;
    color: var(--accent-2);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero .description {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn, .cta-button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary, .cta-button {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover, .cta-button:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.3);
}

.btn-secondary {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: var(--accent);
}

/* ===== Sections ===== */
.section {
    padding: 3rem 0;
}

.section-alt {
    background: var(--card-bg);
}

.section-title {
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===== Product Card Large ===== */
.product-card-large {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 2rem;
    max-width: 850px;
    margin: 0 auto;
}

.product-card-large p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    margin: 1rem 0;
}

.product-features li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
}

.product-features li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ===== Card Base (shared by feature-item, support-card, config-card, download-card) ===== */
.feature-item,
.support-card,
.config-card,
.download-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover,
.support-card:hover,
.config-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-item h4,
.support-card h4,
.config-card h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-item p,
.support-card p,
.config-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== Features Grid ===== */
.features-grid,
.support-grid,
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.feature-item,
.support-card {
    text-align: center;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.3rem;
}

/* ===== Download Section ===== */
.download-content {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.download-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.platform-badge {
    display: inline-block;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-2);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.download-card h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.download-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.download-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.version-info {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

/* ===== Installation Steps ===== */
.installation-steps {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: left;
}

.installation-steps h3 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.installation-steps ol {
    color: var(--text-light);
    padding-left: 1.25rem;
    font-size: 0.9rem;
}

.installation-steps li {
    padding: 0.3rem 0;
    line-height: 1.5;
}

/* ===== Support Card (extends base card) ===== */
.support-card .feature-icon {
    margin-bottom: 0.75rem;
}

.support-card p {
    margin-bottom: 0.75rem;
}

/* ===== Footer ===== */
footer {
    padding: 2rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-section p {
    margin: 0.4rem 0;
    font-size: 0.9rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(var(--accent-rgb), 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Download Page Specific ===== */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.download-grid .download-card {
    position: relative;
    overflow: hidden;
}

.download-grid .download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.download-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.download-details ul {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.download-details li {
    padding: 0.3rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.2rem;
}

.download-details li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.download-size {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Requirements Grid ===== */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.requirement-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.requirement-card h4 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.requirement-card ul {
    list-style: none;
}

.requirement-card li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.05);
}

.requirement-card li:last-child {
    border-bottom: none;
}

.requirement-card strong {
    color: var(--accent);
}

/* ===== Instruction Tabs ===== */
.instruction-tabs {
    max-width: 800px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.tab-button {
    padding: 0.8rem 1.5rem;
    background: var(--card-bg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #000;
    border-color: var(--accent);
}

.tab-button:hover:not(.active) {
    border-color: var(--accent);
}

.tab-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.tab-panel {
    display: none;
}

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

.tab-panel h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.instruction-list {
    margin-bottom: 2rem;
}

.instruction-list li {
    padding: 0.8rem 0;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.note {
    background: rgba(var(--accent-rgb), 0.1);
    border-left: 4px solid var(--accent);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-light);
}

/* ===== Documentation Page Specific ===== */
.doc-toc {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    position: sticky;
    top: 90px;
}

.doc-toc h3 {
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.doc-toc ul {
    list-style: none;
}

.doc-toc li {
    padding: 0.3rem 0;
}

.doc-toc a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.doc-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.doc-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.doc-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.doc-sidebar h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-sidebar li {
    margin-bottom: 0.5rem;
}

.doc-sidebar a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: block;
    padding: 0.25rem 0;
}

.doc-sidebar a:hover,
.doc-sidebar a.active {
    color: var(--accent);
}

.doc-content {
    min-width: 0;
}

.doc-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.doc-section h2 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.doc-section h3 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.1rem;
}

.doc-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.doc-section ul,
.doc-section ol {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.doc-section li {
    margin-bottom: 0.5rem;
}

.doc-section strong {
    color: var(--text-primary);
}

.algorithm-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.algorithm-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 1rem 1.25rem;
}

.algorithm-item h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

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

.tip-box {
    background: rgba(240, 165, 0, 0.1);
    border-left: 3px solid var(--accent);
    padding: 1rem 1.25rem;
    border-radius: 0 6px 6px 0;
    margin: 1rem 0;
}

.tip-box p {
    margin: 0;
    color: var(--text-secondary);
}

.command-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.command-section h2 {
    color: var(--accent);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.command-item {
    margin: 1.25rem 0;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--accent-2);
    border-radius: 6px;
}

.command-name {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 1.05rem;
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 0.35rem;
}

.command-desc {
    color: var(--text-light);
    margin: 0.35rem 0 0.75rem 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.param-table {
    width: 100%;
    margin: 0.75rem 0;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.param-table th {
    background: var(--card-bg);
    color: var(--accent-2);
    padding: 0.5rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.param-table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

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

.param-name {
    font-family: 'Monaco', monospace;
    color: var(--accent);
    font-weight: bold;
}

.param-type {
    font-family: 'Monaco', monospace;
    color: var(--accent-2);
    font-size: 0.9rem;
}

.example-code {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    padding: 0.75rem;
    margin: 0.75rem 0;
    overflow-x: auto;
}

.example-code pre {
    margin: 0;
    color: var(--text-light);
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* ===== Inline Code ===== */
code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
}

.namespace-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

.namespace-os {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #000;
}

.namespace-pt {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #000;
}

.namespace-sm {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

/* ===== Warning Box ===== */
.warning-box {
    border: 2px solid rgba(var(--accent-rgb), 0.3);
    background: rgba(var(--accent-rgb), 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.warning-box h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* ===== Code Blocks (for documentation) ===== */
.code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

.code-block code {
    font-family: inherit;
}

/* ===== CTA Button (legacy support) ===== */
.cta-button {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    background: var(--accent);
    color: #000;
}

.cta-button:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.3);
}

/* ===== Screenshots Grid ===== */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.screenshot-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-card .card-content {
    padding: 1.5rem;
}

.screenshot-card h4 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

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

.free-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* ===== Platform Badges ===== */
.platform-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

/* ===== Beta Badge ===== */
.beta-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00d4ff, #8b5cf6);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Subsite-specific beta badge (for non-inline usage) */
.beta-badge.badge-block {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #000;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    margin-left: 0;
    vertical-align: baseline;
}

/* ===== Notice Box ===== */
.notice-box {
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
}

.notice-box p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.notice-box a {
    color: var(--accent);
    text-decoration: none;
}

.notice-box a:hover {
    text-decoration: underline;
}

/* ===== Config Card (extends base card) ===== */
.config-card h4 {
    color: var(--accent);
}

.config-card ul {
    list-style: none;
    margin-top: 0.75rem;
}

.config-card li {
    padding: 0.2rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Testimonials ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.testimonial-author {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ===== Form & Card Styles ===== */
.form-card,
.recovery-form {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.recovery-form p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input[type="email"]:focus,
.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.3);
}

.form-group input[type="email"]::placeholder,
.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.btn-primary-block,
.submit-btn {
    width: 100%;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #000;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-block:hover,
.submit-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

/* ===== Accordion / Collapsible ===== */
.accordion-item,
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-trigger,
.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--text-primary);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
}

.accordion-trigger:hover,
.faq-question:hover {
    background: rgba(var(--accent-rgb), 0.05);
}

.accordion-trigger::after,
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-trigger::after,
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.accordion-content,
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.accordion-item.active .accordion-content,
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Video/Embed Container ===== */
.responsive-embed,
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.responsive-embed::before,
.video-container::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.responsive-embed iframe,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Release/Changelog Styling ===== */
.changelog-section {
    max-width: 700px;
    margin: 3rem auto 0;
}

.release-card,
.release-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.release-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.release-version {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
}

.release-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.change-items,
.change-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.change-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.change-icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.change-item::before {
    content: '→';
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0;
    font-weight: bold;
}

/* ===== Grid Utilities ===== */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.grid-2col {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
}

/* ===== Centered Sections ===== */
.section-centered {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.section-centered p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ===== Help Text / Secondary Text ===== */
.help-text {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.help-text a:hover {
    text-decoration: underline;
}

/* ===== Utility Classes ===== */
.btn-full-width {
    width: 100%;
}

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

.text-secondary {
    color: var(--text-secondary);
}

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

.link-accent {
    color: var(--accent);
    text-decoration: none;
}

.link-accent:hover {
    text-decoration: underline;
}

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

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

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

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

.pb-2 {
    padding-bottom: 2rem;
}

.pb-3 {
    padding-bottom: 3rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-500 {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.max-w-600 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.max-w-700 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.max-w-900 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.font-small {
    font-size: 0.9rem;
}

.font-large {
    font-size: 1.1rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-half {
    margin-bottom: 0.75rem;
}

.pt-2 {
    padding-top: 2rem;
}

.px-auto {
    margin-left: auto;
    margin-right: auto;
}

.min-h-auto {
    min-height: auto;
}

.p-2 {
    padding: 2rem 0;
}

.text-light {
    color: var(--text-light);
}

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

/* ===== Main Site Specific Styles ===== */

/* Intro Section */
.intro {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.intro h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    color: var(--text-light);
    text-shadow: 0 0 40px rgba(240, 165, 0, 0.2);
}

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

.intro p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Products Section */
.products-section {
    margin: 3rem 0 5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(240, 165, 0, 0.15);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    letter-spacing: -0.01em;
}

.tech-notice {
    background: rgba(240, 165, 0, 0.08);
    border-left: 3px solid var(--accent);
    padding: 0.75rem;
    margin: 1rem 0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tech-notice strong {
    color: var(--accent);
}

.product-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Product Button Container */
.product-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Contact Section */
.contact-section {
    margin: 6rem 0 4rem;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-section p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .doc-grid,
    .doc-layout {
        grid-template-columns: 1fr;
    }

    .doc-toc {
        position: relative;
        top: 0;
    }
}

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

    .doc-sidebar {
        position: static;
        margin-bottom: 2rem;
        height: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    nav {
        padding: 0 1.5rem;
    }

    .hamburger-btn {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-container {
        gap: 0.75rem;
    }

    .nav-menu {
        gap: 0.25rem;
    }

    .nav-menu a {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    /* Main site intro section */
    .intro h1 {
        font-size: 2rem;
    }

    .intro p {
        font-size: 1rem;
    }

    /* Main site products grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .contact-buttons {
        flex-direction: column;
    }

    /* Subsite hero */
    .hero h1 {
        font-size: 2rem;
    }

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

    .hero-icon {
        width: 100px;
        height: 100px;
    }

    .features-grid,
    .support-grid,
    .screenshots-grid,
    .config-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

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

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

    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
}
