:root {
    --bg-color: #ffffff;
    --text-color: #1f2328;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --border-color: #d0d7de;
    --link-color: #0969da;
    --link-hover-color: #0a69da;
    --shadow-subtle: 0 1px 0 rgba(31, 35, 40, 0.04);
    --dropdown-bg: #ffffff;
    --code-bg: #f6f8fa;
    --item-hover: #f3f4f6;
    --tag-bg: #eff1f3;
    --tag-text: #57606a;
    --meta-color: #636c76;
    --accent-color: #afb8c1;
}

.dark-mode {
    --bg-color: #0d1117;
    --text-color: #e6edf3;
    --header-bg: #0d1117;
    --card-bg: #161b22;
    --border-color: #30363d;
    --link-color: #2f81f7;
    --link-hover-color: #2f81f7;
    --shadow-subtle: none;
    --dropdown-bg: #161b22;
    --code-bg: #161b22;
    --item-hover: #21262d;
    --tag-bg: #21262d;
    --tag-text: #8b949e;
    --meta-color: #7d8590;
    --accent-color: #484f58;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s, color 0.3s;
    font-size: 21px;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1012px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
}

.page-content-wrapper {
    background-color: var(--bg-color);
    padding: 48px;
    margin-top: 24px;
}

/* Header Styles */
.site-header {
    background-color: var(--header-bg);
    padding: 20px 0;
    /* Keeping spacing */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: none;
    /* Removed border */
    box-shadow: none;
    /* Removed shadow */
    transition: background-color 0.3s;
}

.header-content {
    max-width: 1200px;
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.branding-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-title {
    font-size: 34px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

.site-title a,
.site-title a:hover {
    color: var(--text-color);
}

.terminal-symbol,
.site-title a:hover .terminal-symbol {
    color: var(--link-color);
    margin-right: 8px;
    font-family: var(--font-mono, monospace);
    opacity: 0.8;
}

/* Dropdown Button */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

/* Dropdown Button - Exact Google AI Pill Shape */
.dropdown-btn {
    background-color: var(--item-hover);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    height: 32px;
    padding: 0 14px;
    border-radius: 16px;
    transition: all 0.2s ease;
    opacity: 0.8;
    line-height: 1;
}

.dropdown-btn:hover {
    background-color: var(--border-color);
    opacity: 1;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.dropdown-btn.active .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dropdown-bg);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 0;
    top: 100%;
    /* Below button */
    left: 0;
    margin-top: 4px;
}

.dropdown-content.show {
    display: block;
    /* Toggled by JS */
}

.dropdown-content a {
    color: var(--text-color);
    padding: 10px 16px;
    display: block;
    font-size: 18px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.dropdown-content a:hover {
    background-color: var(--item-hover);
    color: var(--link-color);
}

.dropdown-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

/* Right Nav Area */
.right-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Navigation */
.navigation ul {
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;
}

.navigation a {
    color: var(--text-color);
    font-size: 21px;
    padding: 6px 10px;
}

.navigation a:hover {
    color: var(--link-hover-color);
}

.navigation a.active {
    color: var(--link-color);
    font-weight: 600;
}

.dark-mode-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-color);
    transition: all 0.2s;
    opacity: 0.7;
}

.dark-mode-btn:hover {
    background-color: var(--item-hover);
    opacity: 1;
}

/* Main Content */
.content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
    background-color: var(--bg-color);
}

/* Page Styles */
.page-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 32px;
    text-align: center;
}

.page-header h1 {
    color: var(--text-color);
    font-size: 89px;
    font-weight: 600;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 21px;
}

.page-description {
    color: var(--meta-color);
    font-size: 16px;
}

/* Post/List Styles */
.post-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.post-header h1 {
    color: var(--text-color);
    font-size: 55px;
    font-weight: 600;
    margin-bottom: 12px;
}

.post-meta {
    color: var(--meta-color);
}

.news-list,
.post-list,
.item-list {
    list-style: none;
}

/* Reduced News List (Homepage) */
.news-list.reduced {
    padding: 0;
    margin: 0;
}

.news-list.reduced .news-item {
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.news-list.reduced .news-item:last-child {
    border-bottom: none;
}

.news-link {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: center;
    padding: 18px 0;
    text-decoration: none !important;
    color: var(--text-color) !important;
    transition: all 0.2s ease;
}

.news-link:hover {
    opacity: 0.7;
}

.news-title {
    font-size: 20px;
    font-weight: 500;
    font-family: inherit;
}

.news-category {
    color: var(--meta-color);
    font-size: 16px;
}

.news-date-row {
    color: var(--meta-color);
    font-size: 16px;
    text-align: right;
}

.news-item,
.post-item,
.item-list li {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child,
.post-item:last-child,
.item-list li:last-child {
    border-bottom: none;
}

.news-item h3,
.post-item h3,
.item-list h3 {
    margin-bottom: 8px;
    font-size: 34px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
}

.news-item p,
.post-item p,
.item-list p {
    font-size: 21px;
}

.news-date,
.post-date {
    color: var(--meta-color);
    font-size: 14px;
    margin-bottom: 8px;
}

.news-excerpt,
.post-excerpt,
.item-list p {
    color: var(--text-color);
    color: var(--meta-color);
    font-size: 21px;
}

/* Content Sections */
.content-section {
    margin-bottom: 48px;
    text-align: center;
}

.content-section h2 {
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 24px;
    text-align: center;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.product-link {
    background-color: var(--tag-bg);
    color: var(--text-color) !important;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 6px;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.product-link:hover {
    background-color: var(--item-hover);
    border-color: var(--accent-color);
}

/* Header Actions (Buttons under title) */
.header-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: -10px auto 40px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    background-color: var(--tag-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.action-btn:hover {
    background-color: var(--item-hover);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.action-btn.primary {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.action-btn.primary:hover {
    opacity: 0.9;
}

.action-btn.secondary-btn {
    padding: 6px 12px;
    font-size: 13px;
    opacity: 0.8;
}

.action-btn.secondary-btn:hover {
    opacity: 1;
}

.top-right-action {
    position: absolute;
    top: 48px;
    right: 32px;
    z-index: 10;
}

/* Upgraded Product Card */
.product-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    padding-bottom: 60px;
    /* Space for division indicator */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit !important;
    min-height: 200px;
}

.product-card:hover {
    border-color: var(--link-color);
    box-shadow: 0 12px 30px -10px rgba(9, 105, 218, 0.3);
    transform: translateY(-6px) scale(1.01);
}

.division-indicator {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.product-card:hover .division-indicator {
    opacity: 1;
}

.division-logo {
    width: 18px;
    height: 18px;
}

.division-name {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.product-logo-container {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}

.product-card-logo {
    height: 48px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
}

.dark-mode .product-card-logo {
    /* Subtle glow/shadow to ensure blue is visible on dark bg */
    filter: drop-shadow(0 0 4px rgba(9, 105, 218, 0.2));
}

.product-card:hover .product-card-logo {
    opacity: 1;
    transform: scale(1.05);
}

.dark-mode .product-card:hover {
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}

.product-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.product-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-bottom: 0 !important;
}

.product-card h3,
.product-card h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.product-quick-links {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.product-card:hover .product-quick-links {
    opacity: 1;
}

.quick-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--meta-color);
    background-color: transparent;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.quick-link-icon:hover {
    background-color: var(--tag-bg);
    color: var(--link-color);
    border-color: var(--border-color);
}


/* Secondary Info (Parent Company) */
.secondary-info {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--meta-color);
    font-size: 14px;
}

.secondary-info a {
    color: var(--link-color);
    font-weight: 500;
}

.site-footer {
    background-color: var(--bg-color);
    /* Matches body now, cleaner */
    border-top: 1px solid var(--border-color);
    color: var(--meta-color);
    padding: 32px 0;
    margin-top: 64px;
    text-align: center;
}

.social-links a {
    color: var(--meta-color);
}

.social-links a:hover {
    color: var(--link-color);
}

/* Tags */
.post-tags {
    border-top: 1px solid var(--border-color);
    margin-top: 32px;
    padding-top: 24px;
}

.tag {
    background: var(--tag-bg);
    color: var(--link-color);
    border: 1px solid transparent;
    padding: 0 7px;
    border-radius: 2em;
    margin-right: 8px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    line-height: 18px;
}

/* Development Status */
.development-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.development-item h3 {
    color: var(--text-color);
}

/* Installation Section */
.installation-section {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
}

.installation-section h3 {
    color: var(--text-color);
}

.installation-section code,
.installation-section pre {
    background: var(--card-bg);
    /* Contrast against code-bg */
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--link-color);
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--link-hover-color);
}

.btn-secondary {
    background-color: var(--meta-color);
    color: white !important;
}

.btn-secondary:hover {
    background-color: var(--link-color);
}

/* About Section */
.about-section {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 32px;
    border-radius: 8px;
}

.about-section h2 {
    color: var(--text-color);
}

/* GitHub-style Markdown */
.page-content {
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    color: var(--text-color);
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.page-content h1 {
    font-size: 2em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--border-color);
}

.page-content h2 {
    font-size: 1.5em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--border-color);
}

.page-content h3 {
    font-size: 1.25em;
}

.page-content h4 {
    font-size: 1em;
}

.page-content p,
.page-content blockquote,
.page-content ul,
.page-content ol,
.page-content dl,
.page-content table,
.page-content pre {
    margin-top: 0;
    margin-bottom: 16px;
}

.product-title {
    font-size: 34px;
}

.page-content p {
    font-size: 21px;
}

.page-content ul,
.page-content ol {
    padding-left: 2em;
}

.page-content li {
    margin-bottom: 0.25em;
}

.page-content blockquote {
    padding: 0 1em;
    color: var(--meta-color);
    border-left: 0.25em solid var(--accent-color);
}

.page-content code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    white-space: break-spaces;
    background-color: var(--tag-bg);
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
}

.page-content pre {
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: var(--code-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    position: relative;
    /* Ensure relative for copy button */
}

/* Copy Button Styling */
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px;
    background-color: var(--card-bg);
    color: var(--meta-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0;
    z-index: 10;
}

.page-content pre:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background-color: var(--item-hover);
    color: var(--link-color);
    border-color: var(--accent-color);
}

.copy-btn.copied {
    color: #2da44e;
    border-color: #2da44e;
}

.page-content pre code {
    padding: 0;
    margin: 0;
    background-color: transparent;
    border: 0;
    font-size: 100%;
    white-space: pre;
}

.page-content img {
    max-width: 100%;
    box-sizing: content-box;
    background-color: var(--bg-color);
}

.highlight .c {
    color: #8b949e;
    font-style: italic;
}

/* Comment */
.highlight .k {
    color: #ff7b72;
}

/* Keyword */
.highlight .s {
    color: #a5d6ff;
}

/* String */
.highlight .nb {
    color: #79c0ff;
}

/* Built-in */
.highlight .nf {
    color: #d2a8ff;
}

/* Function */
.highlight .no {
    color: #ffa657;
}

/* Constant */
.highlight .nv {
    color: #ffa657;
}

/* Variable */
.dark-mode .highlight .c,
.dark-mode .highlight .cm,
.dark-mode .highlight .c1 {
    color: #8b949e;
}

.dark-mode .highlight .k,
.dark-mode .highlight .kd,
.dark-mode .highlight .kn {
    color: #ff7b72;
}

.dark-mode .highlight .s,
.dark-mode .highlight .s1,
.dark-mode .highlight .s2 {
    color: #a5d6ff;
}

.dark-mode .highlight .nf {
    color: #d2a8ff;
}

.dark-mode .highlight .no {
    color: #ffa657;
}

.dark-mode .highlight .nv {
    color: #ffa657;
}

/* Responsive */
@media (max-width: 1024px) {

    .container,
    .header-content {
        width: 90%;
    }
}

@media (max-width: 768px) {

    .container,
    .header-content {
        width: 95%;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .right-nav {
        flex-direction: column;
        gap: 16px;
    }

    .branding-area {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-content {
        left: auto;
        right: 0;
    }
}


.dynamic-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 34px;
    position: relative;
    white-space: nowrap;
}

.logo-e {
    display: inline-block;
    font-weight: 400;
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        letter-spacing 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-e1 {
    transform: translateX(0);
}

.logo-e2 {
    transform: translateX(0);
}

.logo-fade {
    display: inline-block;
    overflow: hidden;
    max-width: 200px;
    opacity: 1;
    white-space: nowrap;
    transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-space {
    display: inline-block;
    width: 0.3em;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.header-scrolled .logo-fade {
    max-width: 0;
    opacity: 0;
}

body.header-scrolled .logo-space {
    width: 0;
}

body.header-scrolled .logo-e {
    color: var(--link-color);
}

body.header-scrolled .logo-e1 {
    transform: translateX(0);
}

body.header-scrolled .logo-e2 {
    transform: translateX(-0.4em);
}

body:not(.header-scrolled) .logo-fade {
    transition-delay: 0.1s;
}

body:not(.header-scrolled) .logo-space {
    transition-delay: 0.05s;
}

body:not(.header-scrolled) .logo-e2 {
    transition-delay: 0s;
}