/* ============================================
   hermeswindos.com — Static Preview Styles
   Hermes Agent for Windows by Nous Research
   ============================================ */

/* --- Design Tokens --- */
:root {
    /* Hermes Orange primary */
    --primary-50: #FFF5F0;
    --primary-100: #FFE4D0;
    --primary-200: #FFC9A0;
    --primary-300: #FFAD70;
    --primary-400: #FF9240;
    --primary-500: #E8751A;
    --primary-600: #CC6314;
    --primary-700: #A6500E;
    --primary-800: #803D08;
    --primary-900: #592A04;

    /* Deep Navy secondary */
    --secondary-50: #F0F4FA;
    --secondary-100: #D4DFF0;
    --secondary-200: #A9BFE1;
    --secondary-300: #7D9FD2;
    --secondary-400: #5280C3;
    --secondary-500: #2D5B9D;
    --secondary-600: #244A80;
    --secondary-700: #1C3A63;
    --secondary-800: #132A46;
    --secondary-900: #0B1A2A;

    /* Warm Amber accent */
    --accent-50: #FFF8ED;
    --accent-100: #FFEBC4;
    --accent-200: #FFD78A;
    --accent-300: #FFC350;
    --accent-400: #FFB016;
    --accent-500: #F5A623;
    --accent-600: #D4891A;
    --accent-700: #B36D12;
    --accent-800: #925209;
    --accent-900: #713700;

    --bg: #ffffff;
    --bg-alt: #F0F4FA;
    --bg-card: #ffffff;
    --text-primary: #132A46;
    --text-secondary: #5280C3;
    --text-muted: #A9BFE1;
    --border: #D4DFF0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.10);

    /* Ambient blob colors (for body background gradient orbs) */
    --ambient-warm: #FFF5F0;
    --ambient-cool: #D4DFF0;
    --ambient-amber: #FFEBC4;
}

.dark {
    --primary-50: #592A04;
    --primary-100: #803D08;
    --primary-200: #A6500E;
    --primary-300: #CC6314;
    --primary-400: #E8751A;
    --primary-500: #FF9240;
    --primary-600: #FFAD70;
    --primary-700: #FFC9A0;
    --primary-800: #FFE4D0;
    --primary-900: #FFF5F0;

    --secondary-50: #0B1A2A;
    --secondary-100: #132A46;
    --secondary-200: #1C3A63;
    --secondary-300: #244A80;
    --secondary-400: #2D5B9D;
    --secondary-500: #5280C3;
    --secondary-600: #7D9FD2;
    --secondary-700: #A9BFE1;
    --secondary-800: #D4DFF0;
    --secondary-900: #F0F4FA;

    --accent-50: #713700;
    --accent-100: #925209;
    --accent-200: #B36D12;
    --accent-300: #D4891A;
    --accent-400: #F5A623;
    --accent-500: #FFB016;
    --accent-600: #FFC350;
    --accent-700: #FFD78A;
    --accent-800: #FFEBC4;
    --accent-900: #FFF8ED;

    --bg: #0B1A2A;
    --bg-alt: #132A46;
    --bg-card: #1C3A63;
    --text-primary: #D4DFF0;
    --text-secondary: #7D9FD2;
    --text-muted: #244A80;
    --border: #244A80;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.4);

    /* Ambient blob colors — subtle dark tones */
    --ambient-warm: #592A04;
    --ambient-cool: #132A46;
    --ambient-amber: #713700;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease;
}

html {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    background-image:
        /* Warm orange blob — top right */
        radial-gradient(ellipse 60% 50% at 85% 5%, var(--ambient-warm), transparent 60%),
        /* Cool navy blob — bottom left */
        radial-gradient(ellipse 50% 45% at 10% 75%, var(--ambient-cool), transparent 60%),
        /* Amber accent blob — middle right */
        radial-gradient(ellipse 35% 35% at 65% 55%, var(--ambient-amber), transparent 55%);
    background-attachment: fixed;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Grain texture overlay — sits above everything for a tactile, premium feel */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --- Utility --- */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .section-container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .section-container { padding: 0 2rem; }
}

.section-padding {
    padding: 4rem 0;
}

@media (min-width: 640px) {
    .section-padding { padding: 5rem 0; }
}

@media (min-width: 1024px) {
    .section-padding { padding: 6rem 0; }
}

/* --- Tags --- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--accent-50);
    color: var(--accent-700);
    border: 1px solid var(--accent-200);
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: var(--primary-500);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    background: var(--primary-600);
    transform: scale(1.02);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg);
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
    border-color: var(--secondary-400);
    background: var(--secondary-50);
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* --- Sections --- */
.section-heading {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

@media (min-width: 640px) {
    .section-heading { font-size: 2.25rem; }
}

.section-subheading {
    margin-top: 0.75rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* --- Feature icon --- */
.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-500);
}

/* --- Stat numbers --- */
.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-500);
}

@media (min-width: 640px) {
    .stat-number { font-size: 3rem; }
}

/* --- Divider --- */
.divider {
    width: 4rem;
    height: 0.25rem;
    border-radius: 9999px;
    background: var(--primary-500);
    margin: 0 auto;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    transition: all 0.3s;
}

.nav-scrolled {
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 6rem;
}

@media (min-width: 640px) {
    .nav-inner { height: 7.5rem; }
}

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

.nav-logo-img {
    height: 4rem;
    width: auto;
    display: block;
}

@media (min-width: 640px) {
    .nav-logo-img { height: 5rem; }
}

@media (min-width: 1024px) {
    .nav-logo-img { height: 5.5rem; }
}

/* Legacy fallback — removed from pages, kept for reference */

.nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: var(--primary-500);
    background: var(--secondary-50);
}

.nav-link-disabled {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: not-allowed;
}

.nav-cta {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .nav-cta { display: flex; }
}

/* --- Footer --- */
.footer {
    background: var(--secondary-900);
    color: #7D9FD2;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #D4DFF0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: #7D9FD2;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    border-top: 1px solid #1C3A63;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 640px) {
    .footer-bottom { flex-direction: row; }
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg-1 {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 24rem;
    height: 24rem;
    background: var(--primary-50);
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(5rem);
}

.hero-bg-2 {
    position: absolute;
    bottom: 25%;
    right: 25%;
    width: 20rem;
    height: 20rem;
    background: var(--secondary-50);
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(5rem);
}

/* --- Grid utilities --- */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-4 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.grid-3 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

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

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.grid-6 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .grid-6 { grid-template-columns: repeat(6, 1fr); }
}

.grid-2-stats {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
    .grid-2-stats { grid-template-columns: repeat(4, 1fr); }
}

/* --- Community icon helper --- */
.community-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
}

/* --- Code blocks --- */
.code-block {
    background: #0B1A2A;
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: 'Cascadia Code', 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    color: #4ADE80;
    overflow-x: auto;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.code-label {
    color: #7D9FD2;
    font-size: 0.75rem;
}

.code-copy {
    color: #5280C3;
    background: none;
    border: none;
    font-size: 0.75rem;
    cursor: pointer;
}

.code-copy:hover {
    color: var(--secondary-50);
}

/* --- Theme toggle FAB --- */
.theme-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
}

.theme-fab-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.theme-fab-btn:hover {
    color: var(--primary-500);
    border-color: var(--primary-300);
}

.theme-menu {
    position: absolute;
    bottom: 3.5rem;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-width: 160px;
    display: none;
}

.theme-menu.show { display: block; }

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.theme-option:hover {
    background: var(--secondary-50);
}

.theme-option.active {
    color: var(--primary-500);
    font-weight: 600;
}

.theme-option + .theme-option {
    border-top: 1px solid var(--border);
}

/* --- Screenshot mockup --- */
.screenshot-frame {
    margin-top: 4rem;
    position: relative;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}

.screenshot-inner {
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: var(--secondary-50);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.screenshot-titlebar {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.window-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
}

.window-content {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.window-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Steps connector --- */
.steps-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .steps-wrapper { grid-template-columns: repeat(3, 1fr); }
}

/* --- Tabs for download path --- */
.tab-group {
    display: flex;
    background: var(--secondary-50);
    border-radius: 0.75rem;
    padding: 0.375rem;
    border: 1px solid var(--border);
    max-width: 32rem;
    margin: 0 auto 2.5rem;
}

.tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.tab.active {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}

.tab:hover:not(.active) {
    color: var(--text-primary);
}

/* --- Details / FAQ --- */
details.card {
    cursor: pointer;
}

details.card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

details.card[open] summary svg {
    transform: rotate(180deg);
}

/* --- Responsive table --- */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.responsive-table th {
    background: var(--secondary-50);
    text-align: left;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.responsive-table td {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.responsive-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--border);
}

/* --- Max width utilities --- */
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-16 { margin-top: 4rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.leading-relaxed { line-height: 1.625; }
.w-full { width: 100%; }
.w-fit { width: fit-content; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.scroll-mt-24 { scroll-margin-top: 6rem; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.cursor-pointer { cursor: pointer; }
.no-underline { text-decoration: none; }

/* --- Mobile menu button --- */
@media (max-width: 767px) {
    #mobile-menu-btn { display: flex !important; }
}

/* --- Screenshot mockup improvements --- */
.screenshot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--text-muted);
}

.screenshot-placeholder p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* --- Empty state card --- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    color: var(--primary-300);
}
