/*
Theme Name: Polygon
Theme URI: https://polygon2.ru
Description: Тема для сайта документации Polygon2. 
Version: 1.0.0
Author: Polygon Development Team
Author URI: https://polygon2.ru
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: polygon
Domain Path: /languages
Tags: documentation, minimal, responsive, clean
*/

/* === CSS Variables === */
:root {
    /* Fonts */
    --font-jetbrains-mono: 'JetBrains Mono', monospace;
    --font-golos-text: 'Golos Text', sans-serif;
    
    /* Font Sizes */
    --font-size-xs: 14px;
    --font-size-base: 15px;
    --font-size-md: 16px;
    --font-size-h4: 18px;
    --font-size-h3: 24px;
    --font-size-lg: 24px;
    --font-size-h2: 32px;
    --font-size-xl: 48px;
    
    /* Line Heights */
    --line-height-tight: 1.2em;
    --line-height-h4: 1.22em;
    --line-height-h3: 1.22em;
    --line-height-normal: 1.32em;
    --line-height-relaxed: 1.47em;
    
    /* Colors */
    --color-white: #FFFFFF;
    --color-light-gray: #E9ECEC;
    --color-dark-gray: #292929;
    --color-green-main: #247D7A;
    --color-green-dark: #0E5C59;
    --color-footer-green: #405D5C;
    
    /* New colors from Figma */
    --color-green-400: #9EA5A5;
    --color-green-100: #EAF6F6;
    --green-200: #D8DFDF;
    --color-red-100: #FFF2F2;
    --color-yellow-100: #FFF6EC;
    --color-grey-300: #E2E2E2;
    --color-grey-400: #C4C4C4;
    --color-grey-250: #E9ECEC;
    --grey-250: #E9ECEC;
    --color-grey-200: #F5F5F5;
    --grey-200: #F5F5F5;
    --grey-1000: #292929;
    --color-grey-500: #ACA8A8;
    --grey-0: #FFF;
    
    /* Doc Header colors */
    --color-doc-header-bg: #DDE0E2;
    --color-doc-header-text: #363C3E;
    --color-doc-search-border: #DDE0E2;
    
    /* Additional colors */
    --color-black: #000000;
    --color-text-primary: #1d2327;
    --color-text-secondary: #50575e;
    --color-border-default: #ccd0d4;
    --color-border-light: #E2E2E2;
    --color-hover-nav: #405D5C;
    --color-accent-blue: #2271b1;
    --color-accent-blue-hover: #135e96;
    --color-accent-purple: #7F8FB3;
    --color-icon-light: #CDCDCD;
    --color-hover-light: #d5d9d9;
    --color-hover-light-border: #b0b0b0;
    --color-hover-green-light: #d4ebeb;
    --color-bg-light: #f6f7f7;
    --color-bg-success: #F3F9ED;
    --color-bg-warning: #FFF8E6;
    --color-bg-error: #FDEDED;
    --color-success-border: #00a32a;
    --color-warning-border: #f0b849;
    --color-error-border: #d63638;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-base: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 40px;
    --spacing-3xl: 48px;
    --spacing-4xl: 96px;
    
    /* Vertical / horizontal spacing (Figma) */
    --vertical-v-XL: 48px;
    --horizontal-h-XL: 48px;
    
    /* Container padding */
    --container-padding: 48px;
    --container-padding-md: 32px 24px;
    --container-padding-sm: 24px 16px;
    --container-padding-xs: 12px 16px;
    
    /* Gap values */
    --gap-xs: 4px;
    --gap-sm: 8px;
    --gap-md: 12px;
    --gap-base: 16px;
    --gap-lg: 24px;
    --gap-xl: 32px;
    --gap-2xl: 48px;
    --gap-3xl: 96px;
    
    /* Border radius */
    --radius-xs: 2px;
    --radius-sm: 3px;
    --radius-md: 4px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-3xl: 48px;
    
    /* Shadows */
    --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 2px 0 8px rgba(0, 0, 0, 0.1);
    --shadow-overlay: rgba(0, 0, 0, 0.5);
    
    /* Button variables */
    --button-primary-bg: #247D7A;
    --button-primary-text: #FFFFFF;
    --button-primary-hover-bg: #0E5C59;
    --button-dark-bg: var(--grey-1000);
    --button-secondary-bg: transparent;
    --button-secondary-text: #292929;
    --button-secondary-border: #C4C4C4;
    --button-secondary-hover-border: #292929;
    --button-padding: 16px 24px;
    --button-border-radius: 2px;
    --button-font-family: var(--font-golos-text);
    --button-font-weight: 700;
    --button-font-size: var(--font-size-base);
    --button-line-height: var(--line-height-normal);
    --button-gap: 12px;

    /* License Purchase */
    --license-success-notice-bg: rgba(36, 125, 122, 0.08);
    --license-success-notice-radius: var(--radius-lg);
    --license-form-layout-gap: var(--gap-3xl);
    --license-form-gap-field: var(--gap-base);
}

/* === Reset & Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-md);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: var(--font-size-md);
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

/* === Глобальный скроллбар: зелёный, минималистичный === */
html::-webkit-scrollbar {
    width: 6px;
    display: block;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background: var(--color-green-main, #247D7A);
    border-radius: 0;
}

@supports not selector(::-webkit-scrollbar) {
    html {
        scrollbar-width: thin;
        scrollbar-color: var(--color-green-main, #247D7A) transparent;
    }
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    margin: 1em 0 0.5em;
    font-weight: 600;
    line-height: 1.3;
    color: #1d2327;
}

h1 { font-size: 2em; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.25em; }
h5 { font-size: 1.1em; }
h6 { font-size: 1em; }

p {
    margin: 0 0 1em;
}

a {
    color: var(--color-green-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--color-green-dark);
    text-decoration: underline;
}

/* === Layout === */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--color-grey-250);
}

/* === Header === */
.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E9ECEC;
}

.header-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 8px 48px;
    display: flex;
    align-items: center;
    gap: 48px;
    position: relative;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    display: inline-block;
    line-height: 0;
}

.site-logo img {
    display: block;
    height: auto;
}

.main-navigation {
    flex: 1;
}

.main-navigation > .nav-menu {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation > .nav-menu li {
    margin: 0;
}

.main-navigation > .nav-menu a {
    color: var(--color-dark-gray);
    text-decoration: none;
    font-family: var(--font-jetbrains-mono);
    font-weight: 400;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    transition: font-weight 0.2s ease;
}

.main-navigation > .nav-menu a:hover,
.main-navigation > .nav-menu .current-menu-item > a,
.main-navigation > .nav-menu .current_page_item > a {
    font-weight: 800;
}

.header-burger-extras {
    display: none;
}

/* === Burger Menu === */
.burger-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: auto;
}

.burger-line {
    width: 100%;
    height: 3px;
    background: #292929;
    border-radius: 0;
    transition: all 0.3s ease;
}

.burger-menu-toggle[aria-expanded="true"] .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu-toggle[aria-expanded="true"] .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu-toggle[aria-expanded="true"] .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* === Responsive Header (1280px and below) === */
@media (max-width: 1280px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1002;
    }

    .site-wrapper {
        padding-top: 65px;
    }

    .burger-menu-toggle {
        display: flex;
    }

    .header-container {
        justify-content: space-between;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background-color: #FFFFFF;
        border-left: 1px solid #E9ECEC;
        padding: 80px 24px 24px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    }

    .main-navigation.menu-open {
        right: 0;
    }

    .main-navigation > .nav-menu {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .main-navigation > .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #E9ECEC;
    }

    .main-navigation > .nav-menu a {
        display: block;
        padding: 16px 0;
        width: 100%;
    }

    .main-navigation.menu-open .header-burger-extras {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg, 24px);
        margin-top: var(--spacing-lg, 24px);
    }

    .header-burger-extras__toc .toc-nav {
        width: 100%;
    }

    .header-burger-extras__share .share-block__title,
    .header-burger-extras__toc .toc-nav__title {
        margin-top: 0;
    }

    /* Скрываем Поделиться и Оглавление, если нет заголовков (toc-nav добавляет класс через JS) */
    .main-navigation.menu-open .header-burger-extras:has(.toc-nav--no-headings) {
        display: none !important;
    }

    /* Overlay при открытом меню */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .menu-overlay.active {
        display: block;
    }
}

/* Дополнительная адаптация шапки для мобильных разрешений */
@media (max-width: 768px) {
    .site-header {
        min-height: 65px;
    }

    .header-container {
        padding: 8px 16px;
        gap: 16px;
        min-height: 65px;
    }

    .site-logo img {
        max-width: 200px;
        width: 100%;
    }
}

/* Скрываем бургер основного меню, когда открыт сайдбар документации на мобильных */
@media (max-width: 1000px) {
    body.doc-sidebar-open .burger-menu-toggle {
        opacity: 0;
        pointer-events: none;
    }
}

.site-content {
    display: flex;
    flex: 1;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.site-main {
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    background: var(--color-grey-250);
}

.content-area {
    flex: 1;
    padding: 0 0 2rem 0;
    min-width: 0; /* Для корректной работы flex с переполнением */
}

/* Контент страниц (the_content): списки из редактора */
.entry-content ul {
    margin: 0 0 1em;
    padding-left: var(--spacing-lg, 24px);
    list-style: disc;
}

.entry-content ul li {
    margin-bottom: var(--gap-xs, 4px);
}

.entry-content ul li:last-child {
    margin-bottom: 0;
}

.entry-content ol {
    margin: 0 0 1em;
    padding-left: var(--spacing-lg, 24px);
    list-style: decimal;
}

.entry-content ol li {
    margin-bottom: var(--gap-xs, 4px);
}

.entry-content ol li:last-child {
    margin-bottom: 0;
}

/* === Breadcrumbs === */
.breadcrumbs {
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #50575e;
    border-bottom: 1px solid #ccd0d4;
}

.breadcrumbs a {
    color: var(--color-green-main);
}

.breadcrumbs a:hover {
    color: var(--color-green-dark);
    text-decoration: underline;
}

.breadcrumbs-separator {
    margin: 0 0.5rem;
    color: #8c8f94;
}

/* === Page Header Bar === */
.page-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f6f7f7;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.page-header-bar .page-path {
    font-family: monospace;
    color: #50575e;
    font-size: 0.9rem;
}

.page-header-bar .page-actions {
    display: flex;
    gap: 0.5rem;
}

.page-header-bar .button {
    padding: 0.5rem 1rem;
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.page-header-bar .button:hover {
    background-color: #135e96;
    color: #fff;
    text-decoration: none;
}

.page-header-bar .button-secondary {
    background-color: #f0f0f1;
    color: #1d2327;
}

.page-header-bar .button-secondary:hover {
    background-color: #dcdcde;
}


/* === Document Content === */
.document-content {
    padding: 2rem;
    background-color: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.document-content .header-1,
.document-content h1 {
    font-size: 1.75rem;
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ccd0d4;
}

.document-content .header-2,
.document-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ccd0d4;
}

/* Адаптация размеров H1/H2 внутри .document-content на мобильных */
@media (max-width: 768px) {
    .document-content .header-1,
    .document-content h1 {
        font-size: 32px;
    }
}

/* H2 на мобильном — 26px */
@media (max-width: 1000px) {
    :root {
        --font-size-h2: 26px;
    }
    h2 {
        font-size: 26px;
    }
}

.document-content .content-block {
    margin: 1.5rem 0;
}

.document-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

/* === Footer === */
.site-footer {
    background: #405D5C;
    color: #FFFFFF;
    padding: 48px;
    border-top: 1px solid #E9ECEC;
}

.footer-container {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    gap: 48px;
}

.footer-copyright p,
.footer-contacts-title,
.footer-menu a {
    margin: 0;
    font-family: var(--font-jetbrains-mono);
    font-weight: 400;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-white);
}

.footer-copyright p {
    text-align: left;
}

.footer-contacts {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-email {
    font-family: var(--font-jetbrains-mono);
    font-weight: 800;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-email:hover,
.footer-menu a:hover {
    opacity: 0.8;
}

.footer-navigation {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

/* === Footer: адаптация === */
@media (max-width: 1024px) {
    .site-footer {
        padding: 32px 24px;
    }

    .footer-container {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .footer-copyright p {
        text-align: left;
    }

    .footer-navigation {
        align-items: flex-start;
    }

    .footer-menu {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 24px 16px;
    }

    .footer-container {
        gap: 20px;
    }

    .footer-copyright p,
    .footer-contacts-title,
    .footer-menu a {
        font-size: 14px;
    }

    .footer-email {
        font-size: 14px;
    }
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .site-content {
        flex-direction: column;
    }
    
    .widget-area {
        width: 100%;
        padding: 1rem 0;
        border-right: none;
        border-bottom: 1px solid #ccd0d4;
    }
    
    .content-area {
        padding: 1rem 0;
    }
    
    
    .page-header-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .page-header-bar .page-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .page-header-bar .button {
        width: 100%;
        text-align: center;
    }
}

/* === Common Container Patterns === */
/* Общий паттерн для контейнеров блоков документации */
.doc-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 48px;
}

/* === Common Responsive Breakpoints === */
/* Стандартные брейкпоинты для адаптивности */
/* 1920px+ - десктоп большие экраны */
/* 1200-1919px - десктоп средние экраны */
/* 768-1199px - планшеты */
/* <768px - мобильные */
/* <480px - мобильные маленькие */

/* === Common Hover Effects === */
/* Общий hover эффект для элементов навигации документации */
.doc-hover-effect {
    transition: background-color 0.2s ease, color 0.2s ease;
}

.doc-hover-effect:hover {
    background-color: #405D5C;
    color: var(--color-white, #FFFFFF);
}

/* === Glowing Card Effects === */
/* Общие стили для glowing эффектов карточек */
/* Используются в cards-section и doc-library-sections */
.glowing-card {
    --glow-blur: 0px;
    --glow-spread: 20;
    --glow-start: 0;
    --glow-active: 0;
    --glow-border-width: 1px;
    --glow-repeating-conic-gradient-times: 5;
    --glow-gradient: radial-gradient(circle, #dd7bbb 10%, #dd7bbb00 20%),
                     radial-gradient(circle at 40% 40%, #d79f1e 5%, #d79f1e00 15%),
                     radial-gradient(circle at 60% 60%, #5a922c 10%, #5a922c00 20%), 
                     radial-gradient(circle at 40% 60%, #4c7894 10%, #4c789400 20%),
                     repeating-conic-gradient(
                       from 236.84deg at 50% 50%,
                       #dd7bbb 0%,
                       #d79f1e calc(25% / var(--glow-repeating-conic-gradient-times)),
                       #5a922c calc(50% / var(--glow-repeating-conic-gradient-times)), 
                       #4c7894 calc(75% / var(--glow-repeating-conic-gradient-times)),
                       #dd7bbb calc(100% / var(--glow-repeating-conic-gradient-times))
                     );
}

/* Общие стили для glowing эффектов */
.glowing-effect-wrapper,
.glowing-effect-border,
.glowing-effect-glow {
    pointer-events: none;
    position: absolute;
    border-radius: inherit;
}

.glowing-effect-wrapper {
    inset: 0;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.3s;
}

.glowing-effect-wrapper[data-blur] {
    filter: blur(var(--glow-blur));
}

.glowing-effect-border {
    inset: -1px;
    border: var(--glow-border-width) solid transparent;
    background: var(--glow-gradient);
    background-attachment: fixed;
    opacity: var(--glow-active);
    transition: opacity 0.3s;
    /* Webkit support */
    -webkit-mask-image: linear-gradient(#0000, #0000),
                        conic-gradient(
                          from calc((var(--glow-start) - var(--glow-spread)) * 1deg),
                          rgba(0, 0, 0, 0) 0deg,
                          #fff,
                          rgba(0, 0, 0, 0) calc(var(--glow-spread) * 2deg)
                        );
    -webkit-mask-composite: destination-in;
    -webkit-mask-clip: padding-box, border-box;
    /* Standard support */
    mask-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
                conic-gradient(
                  from calc((var(--glow-start) - var(--glow-spread)) * 1deg),
                  rgba(0, 0, 0, 0) 0deg,
                  #fff,
                  rgba(0, 0, 0, 0) calc(var(--glow-spread) * 2deg)
                );
    mask-composite: intersect;
    mask-clip: padding-box, border-box;
}

.glowing-effect-glow {
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

/* === Common Card Grid Patterns === */
/* Общие паттерны для сеток карточек */
.doc-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
}

/* Адаптивность для карточек: 4 колонки на больших экранах */
@media (min-width: 1920px) {
    .doc-card-grid-4 .doc-card-grid-item {
        flex: 0 0 calc((100% - 72px) / 4);
        max-width: calc((100% - 72px) / 4);
    }
}

/* 3 колонки на средних экранах */
@media (max-width: 1919px) and (min-width: 1200px) {
    .doc-card-grid-3 .doc-card-grid-item,
    .doc-card-grid-4 .doc-card-grid-item {
        flex: 0 0 calc(33.333% - 16px);
        max-width: calc(33.333% - 16px);
    }
}

/* 2 колонки на планшетах */
@media (max-width: 1199px) and (min-width: 768px) {
    .doc-card-grid-2 .doc-card-grid-item,
    .doc-card-grid-3 .doc-card-grid-item,
    .doc-card-grid-4 .doc-card-grid-item {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

/* 1 колонка на мобильных */
@media (max-width: 767px) {
    .doc-card-grid-item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* === Common Responsive Padding === */
/* Стандартные отступы для контейнеров на разных разрешениях */
@media (max-width: 1000px) {
    .doc-container {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .doc-container {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .doc-container {
        padding: 24px 16px;
    }
}

/* === Utility Classes === */
.hidden {
    display: none !important;
}

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* === Coming Soon Page === */
.coming-soon-container {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.coming-soon-content {
    text-align: center;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.coming-soon-title {
    font-family: var(--font-golos-text);
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.coming-soon-text {
    font-family: var(--font-golos-text);
    font-size: var(--font-size-md);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.coming-soon-animation {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0;
}

/* CPU Architecture Animation Styles */
.cpu-architecture {
    offset-anchor: 10px 0px;
    animation: animation-path;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0.75, -0.01, 0, 0.99);
}

.cpu-line-1 {
    offset-path: path("M 10 20 h 79.5 q 5 0 5 5 v 30");
    animation-duration: 5s;
    animation-delay: 1s;
}

.cpu-line-2 {
    offset-path: path("M 180 10 h -69.7 q -5 0 -5 5 v 40");
    animation-delay: 6s;
    animation-duration: 2s;
}

.cpu-line-3 {
    offset-path: path("M 130 20 v 21.8 q 0 5 -5 5 h -25");
    animation-delay: 4s;
    animation-duration: 6s;
}

.cpu-line-4 {
    offset-path: path("M 170 80 v -21.8 q 0 -5 -5 -5 h -65");
    animation-delay: 3s;
    animation-duration: 3s;
}

.cpu-line-5 {
    offset-path: path(
        "M 135 65 h 15 q 5 0 5 5 v 10 q 0 5 -5 5 h -39.8 q -5 0 -5 -5 v -35"
    );
    animation-delay: 9s;
    animation-duration: 4s;
}

.cpu-line-6 {
    offset-path: path("M 94.8 95 v -46");
    animation-delay: 3s;
    animation-duration: 7s;
}

.cpu-line-7 {
    offset-path: path(
        "M 88 88 v -15 q 0 -5 -5 -5 h -10 q -5 0 -5 -5 v -5 q 0 -5 5 -5 h 28"
    );
    animation-delay: 4s;
    animation-duration: 4s;
}

.cpu-line-8 {
    offset-path: path("M 30 30 h 25 q 5 0 5 5 v 6.5 q 0 5 5 5 h 35");
    animation-delay: 3s;
    animation-duration: 3s;
}

@keyframes animation-path {
    0% {
        offset-distance: 0%;
    }
    100% {
        offset-distance: 100%;
    }
}

.cpu-svg {
    width: 100%;
    height: auto;
    color: var(--color-text-secondary);
}

.cpu-path {
    stroke: currentColor;
    fill: none;
    stroke-width: 0.3;
    stroke-dasharray: 100 100;
}

.cpu-path-animated {
    animation: cpu-path-draw 1s ease-out forwards;
}

@keyframes cpu-path-draw {
    from {
        stroke-dashoffset: 100;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.cpu-marker-circle {
    animation: cpu-marker-pulse 0.5s ease-out;
}

@keyframes cpu-marker-pulse {
    0% {
        r: 0;
    }
    50% {
        r: 3;
    }
    100% {
        r: 2;
    }
}
