/* === TiaCommander Landing Page === */

:root {
    --bg-primary: #171a2c;
    --bg-deeper: #121524;
    --bg-deepest: #0e1120;
    --bg-card: #1e2138;
    --gold: #d4b044;
    --gold-dim: rgba(212,176,68,0.12);
    --gold-faint: rgba(212,176,68,0.04);
    --text-bright: #f0eeea;
    --text-mid: #c8c6c0;
    --text-body: #9a9eb8;
    --text-secondary: #7a7e98;
    --text-dim: #5a5e78;
    --text-faint: #4a4e68;
    --text-ghost: #3e4260;
    --border: #2e3250;
    --border-dim: #242840;
    --mono: 'IBM Plex Mono', monospace;
    --sans: 'IBM Plex Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: #0e1020;
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
}

/* === PAGE WRAPPER === */
.page-wrap { max-width: 1120px; margin: 0 auto; }

/* === NAV === */
.nav { border-bottom: 0.5px solid var(--border); background: var(--bg-deeper); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1120px; margin: 0 auto; width: 100%; padding: 14px 48px; }
.nav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.nav-logo img { height: 38px; }
.nav-logo .wordmark { color: #eeecea; font-size: 15px; font-weight: 600; letter-spacing: 0.8px; }
.nav-links { display: flex; gap: 24px; align-items: center; font-size: 13px; }
.nav-links a { color: var(--text-body); text-decoration: none; transition: color 0.15s; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--text-bright); }
.nav-links a.nav-active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-links .login { color: var(--gold); border: 0.5px solid #4a4530; padding: 6px 18px; border-radius: 4px; font-weight: 500; }
.nav-links .login:hover { background: rgba(212,176,68,0.08); }
.nav-hamburger { display: none; background: none; border: none; color: var(--text-body); cursor: pointer; font-size: 1.4rem; }

/* === USER DROPDOWN === */
.nav-user { position: relative; }
.nav-user-btn {
    background: none; border: 0.5px solid #4a4530; color: var(--gold);
    padding: 6px 14px; border-radius: 4px; font-family: var(--sans);
    font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.15s;
}
.nav-user-btn:hover { background: rgba(212,176,68,0.08); }
.nav-user-dropdown {
    display: none; position: absolute; right: 0; top: calc(100% + 8px);
    background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 6px;
    min-width: 160px; overflow: hidden; z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.nav-user.open .nav-user-dropdown { display: block; }
.nav-user-dropdown a {
    display: block; padding: 10px 16px; font-size: 13px;
    color: var(--text-body); text-decoration: none; transition: background 0.1s;
}
.nav-user-dropdown a:hover { background: rgba(255,255,255,0.04); color: var(--text-bright); }

/* === SECTIONS === */
.section { padding: 0 48px; scroll-margin-top: 60px; }
.section-inner { border-top: 0.5px solid var(--border); padding: 32px 0; }
.section:first-of-type .section-inner { border-top: none; }
h2 { font-size: 15px; font-weight: 600; color: var(--text-bright); margin: 0 0 14px; }
h2 .subtitle { font-weight: 400; color: var(--text-dim); font-size: 13px; }

/* === HERO === */
.hero { padding: 60px 48px 48px; }
.badges { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.badge { font-size: 11px; padding: 3px 10px; border-radius: 3px; font-family: var(--mono); }
.badge-gold { color: var(--gold); background: var(--gold-dim); }
.badge-neutral { color: var(--text-secondary); background: rgba(255,255,255,0.04); }
.hero h1 { font-size: 30px; font-weight: 500; color: var(--text-bright); margin: 0 0 12px; line-height: 1.3; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 14px; color: var(--text-body); line-height: 1.65; margin: 0 0 28px; max-width: 530px; }
.hero-buttons { display: flex; gap: 10px; }
.btn-primary { background: var(--gold); color: var(--bg-deeper); padding: 9px 24px; border-radius: 4px; font-size: 13px; font-weight: 600; text-decoration: none; display: inline-block; transition: filter 0.15s; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { border: 0.5px solid var(--text-faint); color: #b0b4cc; padding: 9px 24px; border-radius: 4px; font-size: 13px; text-decoration: none; display: inline-block; transition: background 0.15s; }
.btn-secondary:hover { background: rgba(255,255,255,0.03); }

/* === ARCHITECTURE === */
.arch-stack { border-radius: 6px; overflow: hidden; border: 0.5px solid var(--border); }
.arch-layer { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: var(--bg-card); border-bottom: 0.5px solid var(--border); }
.arch-layer:last-child { border-bottom: none; }
.arch-layer.highlight { background: var(--gold-faint); border-left: 3px solid var(--gold); }
.arch-layer-name { font-size: 13px; color: var(--text-bright); font-weight: 500; }
.arch-layer.highlight .arch-layer-name { color: var(--gold); font-weight: 600; }
.arch-layer-desc { font-size: 12px; color: var(--text-body); margin-top: 3px; }
.arch-layer-meta { font-size: 10px; color: var(--text-secondary); font-family: var(--mono); text-align: right; }
.arch-divider { padding: 6px 20px; background: #141728; display: flex; align-items: center; gap: 8px; border-bottom: 0.5px solid var(--border); }
.arch-divider span { font-size: 10px; color: var(--text-secondary); font-family: var(--mono); white-space: nowrap; }
.arch-divider-line { flex: 1; height: 0.5px; background: var(--border); }

/* === TOOL MAP ACCORDION === */
.accordion { border: 0.5px solid var(--border); border-radius: 6px; overflow: hidden; }
.acc-item { border-bottom: 0.5px solid var(--border-dim); }
.acc-item:last-child { border-bottom: none; }
.acc-header { display: flex; align-items: center; padding: 10px 16px; cursor: pointer; transition: background 0.15s; user-select: none; }
.acc-header:hover { background: rgba(255,255,255,0.02); }
.acc-chevron { width: 14px; font-size: 10px; color: var(--text-dim); font-family: var(--mono); transition: transform 0.2s; flex-shrink: 0; }
.acc-name { width: 120px; color: var(--gold); font-family: var(--mono); font-size: 12px; margin-left: 4px; flex-shrink: 0; }
.acc-count { width: 30px; color: var(--text-dim); text-align: right; font-size: 12px; flex-shrink: 0; }
.acc-desc { color: var(--text-body); margin-left: 16px; font-size: 13px; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: var(--bg-deepest); }
.acc-body-inner { padding: 8px 16px 12px 34px; }
.acc-action { display: flex; padding: 4px 0; font-size: 12px; }
.acc-action-name { width: 220px; color: var(--text-secondary); font-family: var(--mono); flex-shrink: 0; }
.acc-action-desc { color: var(--text-dim); }

/* === INSTALLATION === */
.install-steps { font-size: 13px; color: var(--text-body); line-height: 2; }
.install-steps .num { color: var(--text-dim); font-family: var(--mono); font-size: 12px; }
.install-steps code { color: var(--text-mid); font-family: var(--mono); font-size: 12px; }
.code-block { background: var(--bg-deepest); border: 0.5px solid var(--border); border-radius: 5px; padding: 14px 18px; margin-top: 10px; font-family: var(--mono); font-size: 12px; line-height: 1.7; }
.code-comment { color: var(--text-faint); }
.code-key { color: var(--text-body); }
.code-value { color: var(--gold); }
.video-cards { display: flex; gap: 12px; margin-top: 16px; }
.video-card { background: rgba(255,255,255,0.03); border: 0.5px solid var(--border); border-radius: 5px; padding: 14px 18px; flex: 1; }
.video-card-title { font-size: 12px; color: var(--text-mid); font-weight: 500; margin-bottom: 3px; }
.video-card-sub { font-size: 12px; color: var(--text-secondary); }
.video-card-link { font-size: 12px; color: var(--gold); margin-top: 8px; text-decoration: none; display: block; }
.video-card-link:hover { text-decoration: underline; }

/* === COMING SOON MODAL === */
.sl-modal-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(14, 16, 32, 0.85); display: flex; align-items: center; justify-content: center; }
.sl-modal-card { background: var(--bg-primary); border: 0.5px solid var(--border); border-radius: 8px; max-width: 420px; width: 90%; text-align: left; overflow: hidden; box-shadow: 0 0 60px rgba(212,176,68,0.06); }
.sl-modal-body { padding: 28px 32px; }
.sl-modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.sl-modal-header-left { display: flex; align-items: center; gap: 12px; }
.sl-modal-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--gold-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sl-modal-title { font-size: 15px; font-weight: 600; color: var(--text-bright); letter-spacing: 1px; text-transform: uppercase; }
.sl-modal-close { background: transparent; border: none; cursor: pointer; color: var(--text-dim); font-size: 22px; line-height: 1; padding: 0 4px; }
.sl-modal-close:hover { color: var(--text-mid); }
.sl-modal-message { font-size: 13.5px; line-height: 1.75; color: var(--text-body); margin-bottom: 24px; }
.sl-modal-actions { margin-bottom: 16px; }
.sl-modal-btn { background: var(--gold); color: var(--bg-primary); border: none; border-radius: 5px; padding: 9px 20px; font-size: 13px; font-weight: 600; font-family: var(--sans); cursor: pointer; letter-spacing: 0.5px; }
.sl-modal-btn:hover { opacity: 0.9; }
.sl-modal-footer { border-top: 0.5px solid var(--border); padding-top: 12px; }
.sl-modal-yt { font-size: 12px; color: var(--gold); text-decoration: none; }
.sl-modal-yt:hover { text-decoration: underline; }
button.video-card-link { background: none; border: none; cursor: pointer; text-align: left; padding: 0; font-family: var(--sans); }

/* === PRICING (hidden by default) === */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 0.5px solid var(--border); border-radius: 6px; overflow: hidden; }
.pricing-card { padding: 20px; text-align: center; border-right: 0.5px solid rgba(255,255,255,0.06); }
.pricing-card:last-child { border-right: none; }
.pricing-card.highlight { background: var(--gold-faint); }
.pricing-name { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.pricing-card.highlight .pricing-name { color: var(--gold); }
.pricing-amount { font-size: 18px; font-weight: 500; color: var(--text-bright); }
.pricing-amount .period { font-size: 12px; color: var(--text-dim); }

/* === FOOTER === */
.footer { border-top: 0.5px solid var(--border); background: var(--bg-deeper); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; max-width: 1120px; margin: 0 auto; padding: 28px 48px; }
.footer-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.footer-brand img { height: 18px; }
.footer-brand .wordmark { color: var(--text-mid); font-size: 14px; font-weight: 600; letter-spacing: 0.8px; }
.footer-legal { font-size: 11px; line-height: 1.8; }
.footer-legal .copyright { color: var(--text-secondary); margin-bottom: 4px; }
.footer-legal .disclaimer { color: var(--text-faint); }
.footer-legal .trademarks { color: var(--text-ghost); }
.footer-links { display: flex; gap: 28px; font-size: 11px; flex-shrink: 0; margin-left: 40px; }
.footer-links-col { display: flex; flex-direction: column; gap: 6px; }
.footer-links-col .heading { color: var(--text-body); font-weight: 500; }
.footer-links-col a { color: #6a6e88; text-decoration: none; }
.footer-links-col a:hover { color: var(--text-body); }

/* === RESPONSIVE === */
/* CTA links for feedback section */
.cta-link {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid var(--gold);
    border-radius: 6px;
    color: var(--gold);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
}
.cta-link:hover {
    background: var(--gold);
    color: var(--bg-primary);
}

/* === BLINKING CURSOR === */
.blink-cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* === HOW TO — PROMPT CARDS === */
.prompt-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.prompt-group { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 6px; padding: 18px 20px; }
.prompt-group-title { font-size: 12px; font-weight: 600; color: var(--gold); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.prompt-card { display: flex; justify-content: space-between; align-items: center; background: var(--bg-deepest); border: 0.5px solid var(--border-dim); border-radius: 4px; padding: 9px 14px; margin-bottom: 6px; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.prompt-card:last-child { margin-bottom: 0; }
.prompt-card:hover { background: rgba(255,255,255,0.03); border-color: var(--text-faint); }
.prompt-text { font-size: 12.5px; color: var(--text-body); line-height: 1.5; }
.prompt-copy { flex-shrink: 0; margin-left: 12px; color: var(--text-faint); transition: color 0.15s; }
.prompt-copy svg { width: 15px; height: 15px; display: block; }
.prompt-card:hover .prompt-copy { color: var(--text-secondary); }
.prompt-card.copied { border-color: rgba(212,176,68,0.4); }
.prompt-card.copied .prompt-copy { color: var(--gold); }

/* === FEEDBACK PAGE === */
.feedback-wrap { max-width: 720px; margin: 0 auto; }
.feedback-heading { font-size: 14px; font-weight: 600; color: var(--text-bright); margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 0.5px solid var(--border); }
.fb-loading { color: var(--text-dim); font-size: 13px; font-style: italic; padding: 12px 0; }
.fb-empty { color: var(--text-dim); font-size: 13px; font-style: italic; padding: 8px 0; }
.fb-release-card { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 6px; padding: 14px 18px; margin-bottom: 10px; }
.fb-release-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.fb-release-tag { font-weight: 600; color: var(--gold); font-size: 14px; }
.fb-release-date { font-size: 12px; color: var(--text-dim); }
.fb-release-body { font-size: 13px; color: var(--text-body); line-height: 1.5; white-space: pre-wrap; }
.fb-pre { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 8px; background: rgba(212,176,68,0.12); color: var(--gold); margin-left: 8px; }
.fb-star-card { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 6px; padding: 18px 20px; }
.fb-star-icon { font-size: 32px; }
.fb-star-content { flex: 1; }
.fb-star-content p { margin-bottom: 6px; font-size: 13px; color: var(--text-body); }
.fb-star-desc { font-size: 13px; color: var(--text-body); }
.fb-testimonial { background: var(--bg-card); border: 0.5px solid var(--border); border-left: 3px solid var(--gold); border-radius: 4px; padding: 14px 18px; margin-bottom: 10px; }
.fb-testimonial-quote { font-size: 13px; font-style: italic; line-height: 1.5; color: var(--text-body); margin-bottom: 8px; }
.fb-testimonial-author { font-size: 12px; color: var(--text-dim); }
.fb-form-card { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 6px; padding: 18px 20px; margin-top: 16px; }
.fb-form-row { margin-bottom: 10px; }
.fb-form-row label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; font-family: var(--sans); }
.fb-req { color: #e05050; }
.fb-form-row input, .fb-form-row textarea, .fb-form-row select { width: 100%; background: var(--bg-deepest); border: 0.5px solid var(--border); border-radius: 4px; padding: 8px 10px; font-size: 13px; color: var(--text-bright); font-family: var(--sans); outline: none; transition: border-color 0.15s; resize: vertical; }
.fb-form-row input:focus, .fb-form-row textarea:focus, .fb-form-row select:focus { border-color: var(--gold); }
.fb-form-row select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6' fill='%237a7e98'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.fb-form-row select option { background: var(--bg-deepest); color: var(--text-bright); }
.fb-form-row textarea { resize: vertical; min-height: 80px; }
.fb-identity { font-size: 13px; color: var(--text-body); padding: 8px 0 4px; }
.fb-privacy { font-size: 11px; color: var(--text-dim); padding: 4px 0 8px; }
.fb-msg-success { padding: 8px 12px; border-radius: 4px; font-size: 13px; margin-bottom: 10px; background: var(--gold-faint); color: var(--gold); border: 0.5px solid rgba(212,176,68,0.3); }
.fb-msg-error { padding: 8px 12px; border-radius: 4px; font-size: 13px; margin-bottom: 10px; background: rgba(220,60,60,0.1); color: #e87070; border: 0.5px solid rgba(220,60,60,0.3); }

/* === BACK LINK (legal, contact) === */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); text-decoration: none; font-size: 12px; font-family: var(--sans); margin-bottom: 20px; transition: opacity 0.15s; }
.back-link:hover { opacity: 0.8; }
.back-link svg { width: 14px; height: 14px; }

/* === SECTION PAGE HEADING === */
#legal h2, #contact h2 { text-align: center; margin-bottom: 24px; }
.contact-intro { font-size: 13px; color: var(--text-body); line-height: 1.7; max-width: 560px; margin: 0 auto 24px; }
.contact-intro a { color: var(--gold); text-decoration: none; }
.contact-intro a:hover { text-decoration: underline; }

/* === CONTACT FORM === */
.contact-form-wrap { max-width: 560px; margin: 0 auto; }
.contact-form label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 5px; font-family: var(--sans); }
.contact-form label .required { color: #e05050; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%; background: var(--bg-deepest); border: 0.5px solid var(--border);
    border-radius: 4px; padding: 10px 12px; font-size: 13px; color: var(--text-bright);
    font-family: var(--sans); transition: border-color 0.15s; outline: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--gold); }
.contact-form select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6' fill='%237a7e98'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.contact-form select option { background: var(--bg-deepest); color: var(--text-bright); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.form-group { margin-bottom: 16px; }
.contact-form .btn-primary { cursor: pointer; border: none; font-family: var(--sans); display: block; margin: 0 auto; }
.contact-success { background: var(--gold-faint); border: 0.5px solid rgba(212,176,68,0.3); border-radius: 4px; padding: 14px 18px; font-size: 13px; color: var(--gold); max-width: 560px; margin: 0 auto; }
.contact-errors { background: rgba(220,60,60,0.1); border: 0.5px solid rgba(220,60,60,0.3); border-radius: 4px; padding: 10px 14px; font-size: 12px; color: #e87070; margin-bottom: 16px; }
.contact-errors div { margin: 2px 0; }

/* === LEGAL PAGES === */
.legal-content { font-size: 13.5px; line-height: 1.75; color: var(--text-body); max-width: 720px; margin: 0 auto; }
.legal-content h3 { font-size: 14px; font-weight: 600; color: var(--text-bright); margin: 28px 0 10px; }
.legal-content p { margin: 0 0 14px; }
.legal-content ul { margin: 0 0 14px; padding-left: 20px; }
.legal-content li { margin: 0 0 6px; }
.legal-content a { color: var(--gold); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--text-mid); font-weight: 500; }

@media (max-width: 768px) {
    .nav { padding: 14px 20px; }
    .nav-links { display: none; position: fixed; top: 52px; left: 0; right: 0; bottom: 0;
        background: var(--bg-deeper); flex-direction: column; padding: 24px 20px; gap: 16px; z-index: 99; }
    .nav-links.open { display: flex; }
    .nav-hamburger { display: block; }
    .hero { padding: 40px 20px 32px; }
    .hero h1 { font-size: 22px; }
    .section { padding: 0 20px; }
    .arch-layer { flex-direction: column; align-items: flex-start; gap: 6px; }
    .arch-layer-meta { text-align: left; }
    .acc-desc { display: none; }
    .acc-name { width: auto; }
    .acc-action { flex-direction: column; gap: 2px; }
    .acc-action-name { width: auto; }
    .video-cards { flex-direction: column; }
    .prompt-groups { grid-template-columns: 1fr; }
    .footer { flex-direction: column; gap: 24px; padding: 24px 20px; }
    .footer-links { margin-left: 0; }
    .form-row { flex-direction: column; gap: 0; }
    .pricing-grid { grid-template-columns: 1fr 1fr; }
}
