/* =============================================================================
   ## Design Tokens — Black & Gold
============================================================================= */

:root {
    --bg-0: #050505;
    --bg-1: #090909;
    --bg-2: #101010;
    --bg-3: #171717;
    --bg-4: #1d1d1d;

    --gold-1: #f2d47a;
    --gold-2: #d4af37;
    --gold-3: #b8922f;
    --gold-4: #80661f;

    --ivory-1: #fffaf0;
    --ivory-2: #eee7d7;
    --muted-1: #b7ad98;
    --muted-2: #817866;

    --line: rgba(212, 175, 55, 0.18);
    --line-strong: rgba(212, 175, 55, 0.38);

    --green: #74c69d;
    --red: #e07a7a;

    --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.42);
    --shadow-gold: 0 14px 40px rgba(212, 175, 55, 0.12);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
}


/* =============================================================================
   ## Global & Base Styles
============================================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 0%, rgba(212, 175, 55, 0.10), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(212, 175, 55, 0.05), transparent 24%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
    color: var(--ivory-2);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}


/* =============================================================================
   ## Research App — Main Container
============================================================================= */

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 48px auto 80px;
}


/* =============================================================================
   ## Research App — Typography
============================================================================= */

h1 {
    margin: 0 0 8px;
    font-size: clamp(2.35rem, 5vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 780;
    color: var(--ivory-1);
}

h2,
h3,
h4,
h5 {
    color: var(--ivory-1);
}

.subtitle {
    margin: 0 0 34px;
    color: var(--muted-1);
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}


/* =============================================================================
   ## Research App — Search Box
============================================================================= */

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 15, 15, 0.88);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(14px);
}

.search-box label {
    display: none;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 11px;
    outline: none;
    background: rgba(255, 255, 255, 0.025);
    color: var(--ivory-1);
    font-size: 1rem;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.search-box input::placeholder {
    color: var(--muted-2);
}

.search-box input:focus {
    border-color: rgba(212, 175, 55, 0.70);
    background: rgba(212, 175, 55, 0.035);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.10);
}

.search-box button {
    min-height: 48px;
    padding: 13px 22px;
    border: 1px solid rgba(242, 212, 122, 0.42);
    border-radius: 11px;
    background: linear-gradient(135deg, #b88a25 0%, #f0cf72 48%, #b78a28 100%);
    color: #0a0a0a;
    font-size: 0.96rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.search-box button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 14px 34px rgba(212, 175, 55, 0.23);
}


/* =============================================================================
   ## Research App — Message & Company Card
============================================================================= */

.message,
.company-card {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.94), rgba(13, 13, 13, 0.96));
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
}

.error-message {
    color: #ffb0b0;
    border-color: rgba(224, 122, 122, 0.45);
}

.company-card h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--ivory-1);
}

.company-card p {
    color: var(--muted-1);
    line-height: 1.6;
}

.company-card strong {
    color: var(--ivory-1);
}


/* =============================================================================
   ## Company Match Results
============================================================================= */

.company-match-section > p {
    margin-bottom: 18px;
}

.company-match-list {
    display: grid;
    gap: 10px;
}

.company-match-form {
    margin: 0;
}

.company-match-button {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 16px;
    padding: 15px 16px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--ivory-2);
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.company-match-button:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.34);
    background: rgba(212, 175, 55, 0.045);
}

.company-match-name {
    color: var(--ivory-1);
    font-weight: 750;
}

.company-match-details,
.company-match-score {
    color: var(--muted-1);
    font-size: 0.88rem;
}

.company-match-score {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
    color: var(--gold-1);
}


/* =============================================================================
   ## Financial Tables
============================================================================= */

.revenue-table {
    width: 100%;
    margin-top: 16px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 12px;
    background: rgba(8, 8, 8, 0.72);
}

.revenue-table th,
.revenue-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

.revenue-table th {
    background: rgba(212, 175, 55, 0.045);
    color: #b9aa83;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.revenue-table td {
    color: #ddd6c8;
}

.revenue-table tbody tr:last-child td {
    border-bottom: none;
}

.revenue-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.035);
}


/* =============================================================================
   ## Statement Tabs
============================================================================= */

.statement-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 24px;
}

.statement-tab {
    padding: 12px 18px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
    color: #c5bcaa;
    cursor: pointer;
    font-weight: 720;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.statement-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.28);
    background: rgba(212, 175, 55, 0.05);
    color: var(--ivory-1);
}

.statement-tab.active {
    border-color: rgba(242, 212, 122, 0.48);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.07));
    color: var(--gold-1);
    box-shadow: inset 0 0 0 1px rgba(242, 212, 122, 0.03), 0 6px 18px rgba(212, 175, 55, 0.06);
}

.statement-panel {
    display: none;
}

.statement-panel.active {
    display: block;
}


/* =============================================================================
   ## Metric Tabs
============================================================================= */

.metric-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 22px;
}

.metric-tab {
    padding: 10px 16px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.018);
    color: #bfb5a4;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.metric-tab:hover {
    border-color: rgba(212, 175, 55, 0.25);
    background: rgba(212, 175, 55, 0.04);
    color: var(--ivory-1);
}

.metric-tab.active {
    border-color: rgba(212, 175, 55, 0.30);
    background: rgba(212, 175, 55, 0.10);
    color: var(--gold-1);
}

.metric-panel {
    display: none;
}

.metric-panel.active {
    display: block;
}


/* =============================================================================
   ## KPI Summary Cards
============================================================================= */

.metric-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}

.summary-card {
    padding: 18px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.055), rgba(255, 255, 255, 0.012));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.summary-card strong {
    display: block;
    margin-top: 9px;
    color: var(--ivory-1);
    font-size: 1.32rem;
    letter-spacing: -0.02em;
}

.summary-label {
    color: #9f916f;
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =============================================================================
   ## Growth Colors
============================================================================= */

.positive {
    color: var(--green);
    font-weight: 750;
}

.negative {
    color: var(--red);
    font-weight: 750;
}

.neutral {
    color: var(--muted-1);
    font-weight: 700;
}


/* =============================================================================
   ## Charts
============================================================================= */

.chart-section {
    margin-top: 20px;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 300px;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: 14px;
    background: rgba(7, 7, 7, 0.48);
}

body .chart-period-toggle {
    display: inline-flex;
    gap: 0;
    padding: 3px;
    margin: 12px 0 16px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.03);
}

body .chart-period-button {
    padding: 7px 14px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--muted-1);
    font-size: 0.88rem;
    font-weight: 720;
    cursor: pointer;
    transition: all 0.18s ease;
}

body .chart-period-button:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.07);
    color: var(--ivory-1);
}

body .chart-period-button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

body .annual-button.active-period,
body .quarterly-button.active-period {
    background: linear-gradient(135deg, #a9791e, #e6c45f);
    color: #090909;
}


/* =============================================================================
   ## Research Workspace
============================================================================= */

body .research-section {
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.11);
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.92), rgba(12, 12, 12, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.016);
}

body .research-section-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 19px;
    border: none;
    background: rgba(212, 175, 55, 0.018);
    color: var(--ivory-2);
    font-size: 0.98rem;
    font-weight: 740;
    letter-spacing: -0.01em;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

body .research-section-header:hover {
    background: rgba(212, 175, 55, 0.045);
    color: var(--gold-1);
}

body .research-section-icon {
    flex: 0 0 auto;
    color: var(--gold-2);
    font-size: 1.2rem;
}

body .research-section-content {
    padding: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
    background: rgba(6, 6, 6, 0.28);
}

body .research-section-content.collapsed {
    display: none;
}


/* =============================================================================
   ## Research Placeholder Cards
============================================================================= */

.research-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.research-placeholder-card {
    padding: 18px;
    border: 1px solid rgba(212, 175, 55, 0.10);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.016);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.research-placeholder-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.24);
    background: rgba(212, 175, 55, 0.028);
}

.research-placeholder-card h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--ivory-1);
}

.research-placeholder-card p {
    margin-bottom: 0;
    color: var(--muted-1);
    line-height: 1.5;
}


/* =============================================================================
   ## Filing / Source Links
============================================================================= */

.filings-section {
    margin-top: 20px;
}

.filing-item {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    color: var(--muted-1);
}

.filing-item:last-child {
    border-bottom: none;
}

.filing-item a {
    color: var(--gold-1);
    font-weight: 720;
}

.filing-item a:hover {
    color: #fff0a7;
}


/* =============================================================================
   ## Market Data Section
============================================================================= */

.market-overview-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.market-primary-card,
.market-stat-card {
    min-height: 112px;
    padding: 18px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.045), rgba(255, 255, 255, 0.012));
}

.market-eyebrow,
.market-stat-label,
.market-data-note-label {
    display: block;
    color: #9f916f;
    font-size: 0.74rem;
    font-weight: 760;
    letter-spacing: 0.085em;
    text-transform: uppercase;
}

.market-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 10px;
}

.market-price {
    color: var(--ivory-1);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    letter-spacing: -0.045em;
}

.market-change {
    font-size: 0.95rem;
}

.market-status {
    margin: 7px 0 0;
    color: var(--muted-2) !important;
    font-size: 0.86rem;
}

.market-stat-value {
    display: block;
    margin-top: 14px;
    color: var(--ivory-1);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.market-chart-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 10px 0 16px;
}

.market-range-toggle,
.market-chart-type-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.market-range-button,
.market-chart-type-button {
    padding: 7px 11px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 8px;
    background: transparent;
    color: var(--muted-1);
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.market-range-button:hover,
.market-chart-type-button:hover {
    border-color: rgba(212, 175, 55, 0.26);
    background: rgba(212, 175, 55, 0.04);
    color: var(--ivory-1);
}

.market-range-button.active,
.market-chart-type-button.active {
    border-color: rgba(212, 175, 55, 0.40);
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-1);
}

.market-chart-shell {
    min-height: 300px;
    display: grid;
    place-items: center;
    padding: 22px;
    border: 1px solid rgba(212, 175, 55, 0.10);
    border-radius: 14px;
    background:
        radial-gradient(circle at center, rgba(212, 175, 55, 0.035), transparent 60%),
        rgba(6, 6, 6, 0.48);
}

.market-chart-placeholder {
    max-width: 520px;
    text-align: center;
}

.market-placeholder-icon {
    color: var(--gold-2);
    font-size: 2.2rem;
}

.market-chart-placeholder h4 {
    margin: 8px 0;
}

.market-chart-placeholder p {
    color: var(--muted-1);
}

.market-data-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-left: 2px solid var(--gold-3);
    background: rgba(212, 175, 55, 0.025);
}

.market-data-note p {
    margin: 6px 0 0 !important;
    color: var(--muted-1) !important;
}


/* =============================================================================
   ## Landing Page — Base
============================================================================= */

body.landing-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 0% 24%, rgba(212, 175, 55, 0.10), transparent 22%),
        radial-gradient(circle at 100% 54%, rgba(212, 175, 55, 0.07), transparent 26%),
        linear-gradient(180deg, #060606 0%, #030303 100%);
    color: var(--ivory-2);
}


/* =============================================================================
   ## Landing Page — Navigation
============================================================================= */

.landing-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(14px);
}

.landing-nav-shell {
    width: min(1440px, calc(100% - 64px));
    min-height: 96px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.landing-logo-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    position: relative;
    color: var(--gold-1);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.06em;
    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: 50%;
    background:
        radial-gradient(circle at 36% 30%, rgba(242, 212, 122, 0.18), transparent 34%),
        #0b0b0b;
    box-shadow: inset 0 0 22px rgba(212, 175, 55, 0.06), 0 0 22px rgba(212, 175, 55, 0.06);
}

.landing-logo-mark::before,
.landing-logo-mark::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 1px;
    background: var(--gold-2);
}

.landing-logo-mark::before {
    left: -9px;
    top: 20px;
    transform: rotate(-34deg);
}

.landing-logo-mark::after {
    right: -9px;
    bottom: 20px;
    transform: rotate(-34deg);
}

.landing-brand-copy {
    display: grid;
    gap: 4px;
}

.landing-brand-copy strong {
    color: var(--gold-1);
    font-size: 0.98rem;
    font-weight: 760;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.landing-brand-copy span {
    color: var(--muted-2);
    font-size: 0.70rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.landing-nav-link,
.landing-login-button,
.landing-signup-button {
    font-size: 0.86rem;
    font-weight: 720;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.landing-nav-link {
    color: #d8d0c0;
    transition: color 0.18s ease;
}

.landing-nav-link:hover {
    color: var(--gold-1);
}

.landing-login-button {
    padding: 11px 18px;
    border: 1px solid rgba(212, 175, 55, 0.54);
    border-radius: 8px;
    color: var(--gold-1);
    transition: background 0.18s ease, color 0.18s ease;
}

.landing-login-button:hover {
    background: rgba(212, 175, 55, 0.06);
}

.landing-signup-button {
    padding: 12px 19px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ae7f20, #edca67);
    color: #080808;
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.18);
    transition: transform 0.18s ease, filter 0.18s ease;
}

.landing-signup-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}


/* =============================================================================
   ## Landing Page — Hero
============================================================================= */

.landing-hero-blackgold {
    min-height: 690px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    padding: 96px 24px 76px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.10);
}

.landing-hero-blackgold::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, transparent, black 30%, black 72%, transparent);
}

.landing-hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.22;
    pointer-events: none;
}

.landing-hero-glow-left {
    left: -300px;
    top: 100px;
    background: rgba(212, 175, 55, 0.34);
}

.landing-hero-glow-right {
    right: -330px;
    bottom: -90px;
    background: rgba(212, 175, 55, 0.22);
}

.landing-hero-content {
    width: min(920px, 100%);
    position: relative;
    z-index: 2;
    text-align: center;
}

.landing-hero-badge {
    display: inline-flex;
    margin-bottom: 26px;
    padding: 9px 18px;
    border: 1px solid rgba(212, 175, 55, 0.26);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.025);
    color: var(--gold-2);
    font-size: 0.76rem;
    font-weight: 760;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.landing-hero-title {
    margin: 0;
    color: var(--ivory-1);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.25rem, 7vw, 6.2rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.landing-hero-title span {
    background: linear-gradient(100deg, #9f7218, #f4d775 48%, #b88423);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-hero-subtitle {
    width: min(680px, 100%);
    margin: 28px auto 0;
    color: #aaa092;
    font-size: 1.05rem;
    line-height: 1.75;
}

.landing-search-shell {
    width: min(760px, 100%);
    min-height: 82px;
    margin: 46px auto 0;
    padding: 10px 10px 10px 20px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(212, 175, 55, 0.50);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.92), rgba(8, 8, 8, 0.94));
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.landing-search-icon {
    color: var(--gold-2);
    font-size: 1.8rem;
}

.landing-search-shell input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--ivory-1);
    font-size: 1rem;
}

.landing-search-shell input::placeholder {
    color: #756e63;
}

.landing-search-shell button {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 24px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #ab7b1e, #f2d16b);
    color: #080808;
    font-size: 0.88rem;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 9px 24px rgba(212, 175, 55, 0.17);
    transition: transform 0.18s ease, filter 0.18s ease;
}

.landing-search-shell button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}


/* =============================================================================
   ## Landing Page — Value Cards
============================================================================= */

.landing-value-section {
    padding: 72px 32px 84px;
}

.landing-value-grid {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.landing-value-card {
    min-height: 255px;
    padding: 28px 24px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.78), rgba(8, 8, 8, 0.92));
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
    transition: transform 0.20s ease, border-color 0.20s ease, box-shadow 0.20s ease;
}

.landing-value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 212, 122, 0.40);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.landing-value-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: 0 auto 26px;
    color: var(--gold-1);
    font-size: 2rem;
}

.landing-value-card h2 {
    margin: 0 0 14px;
    color: var(--ivory-1);
    font-size: 1.06rem;
    font-weight: 650;
}

.landing-value-card p {
    margin: 0;
    color: #91887b;
    font-size: 0.92rem;
    line-height: 1.72;
}


/* =============================================================================
   ## Landing Page — Footer
============================================================================= */

.landing-footer {
    padding: 56px 32px 28px;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    background: #050505;
}

.landing-footer-grid {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 0.7fr 0.9fr;
    gap: 42px;
}

.landing-footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.landing-footer-logo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 50%;
    color: var(--gold-1);
    font-weight: 900;
}

.landing-footer-brand > div:last-child {
    display: grid;
    gap: 4px;
}

.landing-footer-brand strong {
    color: var(--gold-1);
    font-size: 0.87rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-footer-brand span {
    color: var(--muted-2);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.landing-footer-copy p {
    margin: 0;
    color: #8f877b;
    font-size: 0.85rem;
    line-height: 1.7;
}

.landing-footer-links,
.landing-footer-contact {
    display: grid;
    align-content: start;
    gap: 10px;
}

.landing-footer-heading {
    margin-bottom: 4px;
    color: var(--gold-2);
    font-size: 0.72rem;
    font-weight: 760;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.landing-footer-links a,
.landing-footer-contact a {
    color: #d7d0c2;
    font-size: 0.82rem;
    transition: color 0.18s ease;
}

.landing-footer-links a:hover,
.landing-footer-contact a:hover {
    color: var(--gold-1);
}

.landing-footer-bottom {
    width: min(1240px, 100%);
    margin: 38px auto 0;
    padding-top: 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    color: #776f64;
    font-size: 0.75rem;
}

.landing-footer-bottom span:first-child {
    color: var(--gold-2);
}



/* =============================================================================
   ## Auth Pages — Sign Up & Log In
============================================================================= */

body.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 10%, rgba(212, 175, 55, 0.08), transparent 26%),
        radial-gradient(circle at 88% 72%, rgba(212, 175, 55, 0.05), transparent 24%),
        linear-gradient(180deg, #060606 0%, #030303 100%);
}

.auth-shell {
    width: min(100% - 32px, 760px);
    margin: 0 auto;
    padding: 72px 0 88px;
}

.auth-card {
    padding: 38px;
    border: 1px solid rgba(212, 175, 55, 0.20);
    border-radius: 18px;
    background:
        linear-gradient(
            180deg,
            rgba(20, 20, 20, 0.94),
            rgba(9, 9, 9, 0.97)
        );
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.auth-card-header {
    margin-bottom: 28px;
}

.auth-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--gold-2);
    font-size: 0.74rem;
    font-weight: 760;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.auth-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--ivory-1);
}

.auth-subtitle {
    margin: 16px 0 0;
    max-width: 620px;
    color: var(--muted-1);
    font-size: 0.96rem;
    line-height: 1.7;
}

.auth-error {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid rgba(224, 122, 122, 0.35);
    border-radius: 10px;
    background: rgba(224, 122, 122, 0.06);
    color: #ffb0b0;
    font-size: 0.90rem;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-name-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    color: #d7cfbf;
    font-size: 0.82rem;
    font-weight: 700;
}

.auth-field input {
    width: 100%;
    min-height: 50px;
    padding: 13px 14px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 10px;
    outline: none;
    background: rgba(255, 255, 255, 0.024);
    color: var(--ivory-1);
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-field input::placeholder {
    color: #756e63;
}

.auth-field input:focus {
    border-color: rgba(212, 175, 55, 0.68);
    background: rgba(212, 175, 55, 0.032);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.09);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 72px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    padding: 5px 7px;
    border: none;
    background: transparent;
    color: var(--gold-2);
    font-size: 0.76rem;
    font-weight: 760;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--gold-1);
}

.auth-password-rules {
    padding: 14px 16px;
    border: 1px solid rgba(212, 175, 55, 0.10);
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.025);
    color: var(--muted-1);
    font-size: 0.82rem;
}

.auth-password-rules > span {
    color: #cdbf9e;
    font-weight: 700;
}

.auth-password-rules ul {
    margin: 9px 0 0;
    padding-left: 20px;
    line-height: 1.65;
}

.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted-1);
    font-size: 0.84rem;
    line-height: 1.55;
    cursor: pointer;
}

.auth-terms input {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    accent-color: var(--gold-2);
    flex: 0 0 auto;
}

.auth-terms a {
    color: var(--gold-1);
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.38);
    text-underline-offset: 3px;
}

.auth-terms a:hover {
    color: #fff0a7;
}

.auth-primary-button {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(242, 212, 122, 0.42);
    border-radius: 10px;
    background: linear-gradient(135deg, #a9781f, #edca67);
    color: #080808;
    font-size: 0.90rem;
    font-weight: 850;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.16);
    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}

.auth-primary-button:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 14px 34px rgba(212, 175, 55, 0.22);
}

.auth-primary-button:disabled {
    opacity: 0.34;
    cursor: not-allowed;
    box-shadow: none;
}

.auth-verification-note {
    margin: -4px 0 0;
    color: var(--muted-2);
    font-size: 0.77rem;
    text-align: center;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-1);
    font-size: 0.83rem;
    cursor: pointer;
}

.remember-me input {
    width: 15px;
    height: 15px;
    accent-color: var(--gold-2);
}

.forgot-password {
    color: var(--gold-2);
    font-size: 0.83rem;
}

.forgot-password:hover {
    color: var(--gold-1);
}

.auth-switch {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.10);
    display: flex;
    justify-content: center;
    gap: 7px;
    color: var(--muted-1);
    font-size: 0.86rem;
}

.auth-switch a {
    color: var(--gold-1);
    font-weight: 760;
}

.auth-switch a:hover {
    color: #fff0a7;
}

.auth-back-home {
    display: block;
    width: fit-content;
    margin: 18px auto 0;
    color: var(--muted-2);
    font-size: 0.82rem;
    transition: color 0.18s ease;
}

.auth-back-home:hover {
    color: var(--gold-1);
}

/* =============================================================================
   ## Logged-In User Menu
============================================================================= */

.user-menu {
    position: relative;
}

.user-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 11px 16px;

    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 9px;

    background: rgba(212, 175, 55, 0.035);

    color: var(--gold-1);

    font-size: 0.84rem;
    font-weight: 760;
    letter-spacing: 0.02em;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.user-menu-button:hover,
.user-menu.open .user-menu-button {
    border-color: rgba(242, 212, 122, 0.46);

    background: rgba(212, 175, 55, 0.075);

    color: #fff0a7;
}

.user-dropdown {
    position: absolute;

    top: calc(100% + 8px);

    z-index: 50;

    min-width: 190px;

    padding: 8px;

    border: 1px solid rgba(212, 175, 55, 0.20);
    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            rgba(18, 18, 18, 0.98),
            rgba(7, 7, 7, 0.99)
        );

    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.44),
        inset 0 1px 0 rgba(255, 255, 255, 0.016);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-6px);

    pointer-events: none;

    transition:
        opacity 0.16s ease,
        transform 0.16s ease,
        visibility 0.16s ease;
}

.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
}

.user-dropdown a {
    display: block;

    padding: 10px 12px;

    border-radius: 8px;

    color: #d8d0c0;

    font-size: 0.83rem;
    font-weight: 650;

    transition:
        background 0.16s ease,
        color 0.16s ease;
}

.user-dropdown a:hover {
    background: rgba(212, 175, 55, 0.07);

    color: var(--gold-1);
}

.user-dropdown a:last-child {
    margin-top: 5px;

    border-top: 1px solid rgba(212, 175, 55, 0.10);

    border-radius: 0 0 8px 8px;

    color: #e7b0a8;
}

.user-dropdown a:last-child:hover {
    background: rgba(224, 122, 122, 0.07);

    color: #ffb0b0;
}

/* =============================================================================
   ## Legal Pages
============================================================================= */

.legal-page {
    padding: 70px 24px 90px;
}

.legal-container {
    width: min(900px, 100%);
    margin: 0 auto;

    padding: 42px;

    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            rgba(20,20,20,0.94),
            rgba(8,8,8,0.97)
        );

    box-shadow:
        0 24px 70px rgba(0,0,0,.45);
}

.legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 18px;
    padding: 0;

    border: none;
    outline: none;

    background: transparent;

    color: var(--gold-1);

    font-size: 0.86rem;
    font-weight: 650;

    cursor: pointer;

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.legal-tag{
    display:inline-block;

    margin-bottom:14px;

    padding:6px 12px;

    border-radius:999px;

    border:1px solid rgba(212,175,55,.25);

    color:var(--gold-2);

    font-size:.72rem;

    letter-spacing:.08em;

    text-transform:uppercase;
}

.legal-container h1{
    margin-bottom:8px;

    font-family:Georgia, serif;

    font-size:3rem;

    font-weight:500;

    color:var(--ivory-1);
}

.legal-last-updated{
    color:var(--muted-2);

    margin-bottom:28px;
}

.legal-intro{
    color:var(--muted-1);

    line-height:1.8;

    margin-bottom:28px;
}

.legal-container hr{

    border:none;

    height:1px;

    background:rgba(212,175,55,.12);

    margin:32px 0;
}

.legal-container h2{

    margin-top:36px;

    margin-bottom:14px;

    color:var(--gold-1);

    font-size:1.28rem;
}

.legal-container p{

    color:var(--muted-1);

    line-height:1.85;
}

.legal-container ul{

    padding-left:22px;

    color:var(--muted-1);

    line-height:1.9;
}

.legal-container li{

    margin-bottom:8px;
}

/* =============================================================================
   ## Responsive Layout
============================================================================= */

@media (max-width: 1080px) {
    .landing-value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .market-primary-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 920px) {
    .container {
        width: min(100% - 28px, 1180px);
        margin-top: 28px;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .search-box button {
        width: 100%;
    }

    .company-card,
    .message {
        padding: 20px;
    }

    .landing-nav-shell {
        width: min(100% - 32px, 1440px);
        min-height: 82px;
    }

    .landing-brand-copy {
        display: none;
    }

    .landing-nav-links {
        gap: 14px;
    }

    .landing-nav-link {
        display: none;
    }
}

@media (max-width: 760px) {
    .auth-shell {
        padding: 48px 0 64px;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .auth-name-grid {
        grid-template-columns: 1fr;
    }

    .metric-summary {
        grid-template-columns: 1fr;
    }

    .market-overview-grid {
        grid-template-columns: 1fr;
    }

    .market-primary-card {
        grid-column: auto;
    }

    .market-chart-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-hero-blackgold {
        min-height: 600px;
        padding: 76px 18px 56px;
    }

    .landing-search-shell {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 12px 14px;
    }

    .landing-search-shell button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .landing-value-section {
        padding: 54px 18px 64px;
    }

    .landing-value-grid {
        grid-template-columns: 1fr;
    }

    .landing-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .landing-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .auth-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-nav-shell {
        align-items: flex-start;
        padding: 14px 0;
    }

    .landing-logo-mark {
        width: 52px;
        height: 52px;
    }

    .landing-nav-links {
        gap: 8px;
    }

    .user-menu-button {
        padding: 9px 11px;
        font-size: 0.74rem;
    }

    .user-dropdown {
        min-width: 170px;
    }

    .landing-login-button,
    .landing-signup-button {
        padding: 9px 11px;
        font-size: 0.74rem;
    }

    .company-match-button {
        grid-template-columns: 1fr;
    }

    .company-match-score {
        grid-row: auto;
        grid-column: auto;
    }
}
