/* Ausare Labs - Corporate Portal Styles
   Minimal, precise, instrument-like aesthetic
   System fonts only */

:root {
    --bg: #0e1419;
    --bg-elevated: #161d24;
    --bg-panel: #1c252e;
    --text: #e8eef4;
    --text-muted: #9aa8b5;
    --accent: #c9a86a; /* muted gold for precision marks */
    --accent-hover: #d4b57a;
    --border: #2a3540;
    --input-bg: #12181e;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
.site-header {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.logo {
    font-weight: 600;
    letter-spacing: 0.18em;
    font-size: 0.95rem;
    color: var(--accent);
    transition: color 0.15s;
}
.logo.binaural-pulse {
    animation: hue-cycle 1s linear infinite;
}
@keyframes hue-cycle {
    0%   { color: #c9a86a; }
    20%  { color: #7dcea0; }
    40%  { color: #6a9ec9; }
    60%  { color: #c96aa8; }
    80%  { color: #c9c06a; }
    100% { color: #c9a86a; }
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 28px;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.main-nav a:visited {
    color: var(--text-muted);
}
.main-nav a:hover {
    color: var(--text);
}

/* Hero */
.hero {
    position: relative;
    min-height: 520px;
    background: 
        linear-gradient(135deg, rgba(14, 20, 25, 0.78) 0%, rgba(14, 20, 25, 0.62) 100%),
        url('../hbanner.png') center / cover no-repeat;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(201, 168, 106, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
    width: 100%;
}

.hero-text h1 {
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 460px;
}

/* Login Panel */
.login-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 32px 28px;
    box-shadow: var(--shadow);
}

.login-panel h2 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
    color: var(--accent);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--accent);
}

.btn-login {
    width: 100%;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}

.btn-login:hover {
    background: var(--accent);
    color: var(--bg);
}

.login-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* Description */
.description {
    padding: 72px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.description h2 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.description p {
    margin-bottom: 16px;
    color: var(--text-muted);
    max-width: 720px;
}

.description p:last-child {
    margin-bottom: 0;
}

/* Public Links */
.public-links {
    padding: 72px 0;
}

.public-links h2 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 32px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.link-card {
    display: block;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    border-radius: 2px;
    transition: border-color 0.2s, transform 0.15s;
}

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

.link-card h3 {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text);
}

.link-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Footer */
.site-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-note {
    margin-top: 6px;
    font-size: 0.78rem;
    opacity: 0.8;
}

.update-article {
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
    margin-bottom: 28px;
}

.update-article h2 {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.update-meta {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.update-article p {
    color: var(--text-muted);
    max-width: 680px;
}
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 18, 0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-window {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    padding: 22px;
    color: var(--text-muted);
}

.modal-body ul {
    margin: 12px 0 16px 20px;
}

.modal-body li {
    margin-bottom: 8px;
}

.contact-form textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 2px;
    outline: none;
    font-family: inherit;
    resize: vertical;
}

.contact-form textarea:focus {
    border-color: var(--accent);
}
@media (max-width: 860px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.1rem;
    }

    .main-nav a {
        margin-left: 16px;
        font-size: 0.85rem;
    }

    .site-header .container {
        flex-direction: column;
        gap: 12px;
    }
}

/* Frequency Generator Bar — embedded under header */
.freq-bar {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 70px;
    z-index: 9;
    height: 46px;
}

.freq-inner {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 24px;
    max-width: 1120px;
    margin: 0 auto;
    gap: 14px;
}

.freq-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9aa8b5;
    white-space: nowrap;
    min-width: 32px;
}

.freq-select {
    background: #12181e;
    border: 1px solid #2a3540;
    color: #c8d0d8;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-family: inherit;
    border-radius: 2px;
    cursor: pointer;
    height: 28px;
    appearance: none;
    -webkit-appearance: none;
}

.freq-select:focus {
    outline: none;
    border-color: #c9a86a;
}

.freq-btn {
    background: #12181e;
    border: 1px solid #2a3540;
    color: #9aa8b5;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-family: inherit;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    height: 28px;
    min-width: 76px;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.freq-btn:hover {
    border-color: #c9a86a;
    color: #c9a86a;
}

.freq-btn.active,
.freq-btn.playing {
    background: #1c252e;
    border-color: #c9a86a;
    color: #c9a86a;
}

.freq-volume {
    width: 72px;
    height: 4px;
    accent-color: #c9a86a;
    cursor: pointer;
    background: #2a3540;
    border-radius: 2px;
}

.freq-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c9a86a;
    border: none;
}
/* Injected into main-nav when collapsed for discrete access */
.nav-freq-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 28px;
    letter-spacing: 0.02em;
    padding: 0;
    font-family: inherit;
}

.nav-freq-toggle:hover, .nav-freq-toggle.active {
    color: var(--accent);
}

/* Gadgets bar — replaces frequency controls */
.gadgets-bar {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 70px;
    z-index: 9;
    height: 46px;
    overflow: hidden;
}
.gadgets-inner {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 24px;
    max-width: 1120px;
    margin: 0 auto;
    gap: 16px;
    flex-wrap: nowrap;
    overflow: hidden;
}
.gadgets-toggle {
    background: #12181e;
    border: 1px solid #2a3540;
    color: #9aa8b5;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-family: inherit;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    height: 30px;
    flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.gadgets-toggle:hover,
.gadgets-toggle.active {
    border-color: #c9a86a;
    color: #c9a86a;
}
.gadgets-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    padding: 0;
}
.gadgets-strip[hidden] {
    display: none !important;
}
.gadget-banner {
    background: transparent;
    border: 1px solid transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 2px;
    height: 36px;
    min-width: 140px;
    flex-shrink: 0;
    overflow: hidden;
    transition: border-color 0.15s;
}
.gadget-banner:hover {
    border-color: #c9a86a;
}
.gadget-banner-img {
    height: 36px;
    width: auto;
    display: block;
    object-fit: cover;
}
.gadgets-empty {
    font-size: 0.75rem;
    color: #9aa8b5;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
