:root {
    --ink: #192239;
    --muted: #5d6878;
    --paper: #fbfcfb;
    --line: #dce3e2;
    --brand: #087f78;
    --brand-dark: #075e5c;
    --coral: #eb6858;
    --gold: #f1b641;
    --leaf: #5d9655;
    --sky: #3978d4;
    --panel: #fff;
}

html { scroll-behavior: smooth; }
body { color: var(--ink); background: var(--paper); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.wrap { width: min(1160px, calc(100% - 40px)); }
.site-header { background: rgba(251,252,251,.96); border-color: var(--line); }
.header-inner { min-height: 76px; gap: 28px; }
.brand { flex: 0 0 auto; gap: 10px; font-size: 1.15rem; color: var(--ink); }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.primary-nav { margin-left: auto; }
.nav-list { gap: 24px; }
.nav-list a { color: var(--ink); font-size: .95rem; font-weight: 700; }
.nav-list a:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; }
.header-actions { gap: 8px; }
.theme-toggle { display: inline-grid; place-items: center; width: 42px; min-width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.theme-toggle:hover { border-color: var(--brand); background: #edf6f3; color: var(--brand-dark); }
.login-link { min-height: 42px; padding: 9px 18px; border-radius: 5px; background: var(--ink); color: #fff; font-weight: 750; }
.login-link:hover { background: var(--brand); color: #fff; }
.menu-toggle { display: none; }

.hero-new { min-height: 630px; padding-top: 64px; padding-bottom: 52px; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 40px; overflow: visible; }
.hero-copy { position: relative; z-index: 1; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 8px 13px; border: 1px solid #cfe4df; border-radius: 99px; background: #eef8f5; color: var(--brand-dark); font-size: .9rem; font-weight: 750; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(93,150,85,.13); }
.hero-new h1 { max-width: 620px; margin: 0 0 20px; font-size: 4.65rem; line-height: 1.02; }
.hero-new h1 em, .section-heading h2 em, .closing-section h2 em { color: var(--brand); font-style: normal; }
.hero-text { max-width: 535px; margin: 0 0 26px; color: var(--muted); font-size: 1.12rem; line-height: 1.7; }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-buttons .button { min-height: 48px; padding: 12px 19px; }
.hero-buttons .login-link { min-height: 48px; background: #fff; border-color: var(--line); color: var(--ink); }
.hero-buttons .login-link:hover { border-color: var(--brand); color: var(--brand-dark); }
.trust-row { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.trust-row p { margin: 0; color: var(--muted); font-size: .93rem; }
.trust-star { color: var(--coral); font-size: 1.35rem; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 390px; }
.hero-visual img { width: 100%; max-width: 590px; border: 1px solid #e5e9e7; border-radius: 8px; background: #fff; box-shadow: 0 22px 54px rgba(25,34,57,.12); }
.orbit-label { position: absolute; display: inline-flex; align-items: center; gap: 6px; max-width: 190px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 5px; background: #fff; box-shadow: 0 8px 22px rgba(25,34,57,.1); color: var(--muted); font-size: .84rem; }
.orbit-label b { color: var(--ink); }
.label-one { top: 9%; left: -2%; }
.label-two { right: -2%; top: 43%; }
.label-three { bottom: 5%; left: 11%; }

.ticker { overflow: hidden; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f2f7f5; }
.ticker-track { display: flex; justify-content: space-around; align-items: center; gap: 34px; width: max-content; min-width: 100%; animation: dek-ticker 28s linear infinite; color: var(--brand-dark); font-size: .77rem; font-weight: 850; letter-spacing: 0; white-space: nowrap; }
.ticker-track i { color: var(--coral); font-size: 1.1rem; font-style: normal; }
@keyframes dek-ticker { to { transform: translateX(-25%); } }

.section { padding-top: 78px; padding-bottom: 78px; }
.section-heading { max-width: 710px; margin-bottom: 30px; }
.section-heading .eyebrow { margin-bottom: 12px; color: var(--brand-dark); }
.section-heading h2, .closing-section h2 { margin-bottom: 13px; font-size: 3.15rem; line-height: 1.08; }
.section-heading p { max-width: 590px; margin: 0; color: var(--muted); font-size: 1.04rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.feature-card { display: flex; flex-direction: column; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); box-shadow: 0 8px 22px rgba(25,34,57,.045); transition: transform .18s ease, box-shadow .18s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(25,34,57,.1); text-decoration: none; }
.feature-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 16px; border-radius: 4px; background: #f1f7f5; }
.feature-card .eyebrow { margin: 0 0 7px; font-size: .75rem; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.42rem; }
.feature-card p { margin: 0 0 18px; color: var(--muted); }
.card-link { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; color: var(--brand-dark); font-weight: 800; }

.tools-section { background: #f1f6f4; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tool-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.filter-button { min-height: 38px; padding: 8px 14px; border: 1px solid #cbd7d4; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 750; cursor: pointer; }
.filter-button:hover, .filter-button.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.tool-grid { gap: 16px; }
.tool-card { padding: 14px; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 5px 18px rgba(25,34,57,.05); }
.tool-card:before { display: none; }
.tool-card img { aspect-ratio: 16 / 10; margin-bottom: 12px; border: 0; border-radius: 4px; background: #f5f8f7; object-fit: cover; }
.tool-category { align-self: flex-start; margin: 0 0 8px; padding: 4px 8px; border-radius: 3px; background: #edf5f2; color: var(--brand-dark); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.tool-card h3 { font-size: 1.2rem; }
.tool-card p { font-size: .94rem; }
.tool-card .button { min-height: 40px; padding: 9px 13px; border-radius: 4px; }
.tool-card[hidden] { display: none; }

.closing-section { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 74px; margin-bottom: 74px; padding: 42px; border-radius: 6px; background: var(--ink); color: #fff; }
.closing-section .eyebrow { color: #b8e2d8; }
.closing-section h2 { margin: 0; color: #fff; }
.closing-section h2 em { color: #78d4bd; }
.button-light { flex: 0 0 auto; min-height: 48px; background: #fff; color: var(--ink); }
.button-light:hover { background: #def3eb; color: var(--ink); }

.page-hero { background: #f1f6f4; }
.tool-hero-grid img { border-radius: 6px; }
.tool-layout { gap: 20px; }
.tool-panel, .side-panel, .auth-gate, .content-panel { border-radius: 6px; box-shadow: 0 8px 24px rgba(25,34,57,.055); }
.showcase-result { border-radius: 5px; font-size: 1.8rem; }
.footer { padding: 34px 0; background: #182239; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand img { width: 36px; height: 36px; }
.footer-brand p { margin: 8px 0 0; color: #c7d0dc; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 20px; }
.footer-links a { color: #fff; font-size: .91rem; }
.footer-grid small { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); color: #c7d0dc; }

.dark-theme { --ink: #edf3f2; --muted: #b9c4ce; --paper: #141d2b; --line: #354253; --brand: #54c8ac; --brand-dark: #8fdfcd; --panel: #202c3b; }
.dark-theme body { color: #edf3f2; background: #141d2b; }
.dark-theme .site-header { background: rgba(20,29,43,.97); border-color: #354253; }
.dark-theme .nav-list a, .dark-theme .brand { color: #edf3f2; }
.dark-theme .theme-toggle, .dark-theme .hero-buttons .login-link { border-color: #405060; background: #202c3b; color: #edf3f2; }
.dark-theme .primary-nav { background: #1a2634; }
.dark-theme .nav-list li { border-color: #354253; }
.dark-theme .status-pill { border-color: #31574f; background: #203a37; color: #c8f1e5; }
.dark-theme .eyebrow { color: #a7e4d6; }
.dark-theme .hero-text, .dark-theme .trust-row p, .dark-theme .section-heading p, .dark-theme .feature-card p, .dark-theme .tool-card p { color: #b9c4ce; }
.dark-theme .orbit-label, .dark-theme .feature-card, .dark-theme .tool-card, .dark-theme .filter-button { border-color: #354253; background: #202c3b; color: #edf3f2; }
.dark-theme .orbit-label b, .dark-theme .feature-card h3, .dark-theme .tool-card h3 { color: #edf3f2; }
.dark-theme .ticker { border-color: #354253; background: #1d2a38; }
.dark-theme .tools-section { border-color: #354253; background: #182432; }
.dark-theme .tool-category { background: #293f3e; color: #c8f1e5; }
.dark-theme .filter-button:hover, .dark-theme .filter-button.is-active { border-color: #edf3f2; background: #edf3f2; color: #192239; }
.dark-theme .page-hero { border-color: #354253; background: #1b2937; }
.dark-theme .tool-panel, .dark-theme .side-panel, .dark-theme .auth-gate, .dark-theme .content-panel, .dark-theme .cv-preview { border-color: #354253; background: #202c3b; color: #edf3f2; }
.dark-theme .tool-panel input, .dark-theme .tool-panel select, .dark-theme .tool-panel textarea, .dark-theme .content-panel input, .dark-theme .content-panel textarea { border-color: #465566; background: #172332; color: #edf3f2; }
.dark-theme .result-box { border-color: #49635c; background: #1d3433; color: #edf3f2; }
.dark-theme .button.secondary { border-color: #465566; background: #202c3b; color: #edf3f2; }

.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-one { transition-delay: .1s; }
.delay-two { transition-delay: .18s; }

@media (max-width: 920px) {
    .header-inner { flex-direction: row; align-items: center; padding: 0; }
    .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 42px; min-width: 42px; height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
    .menu-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); }
    .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 12px 20px 18px; border-bottom: 1px solid var(--line); background: #fff; }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list li { border-bottom: 1px solid #edf0ef; }
    .nav-list a { display: block; padding: 11px 2px; }
    .hero-new { grid-template-columns: 1fr 1fr; gap: 22px; min-height: 560px; }
    .hero-new h1 { font-size: 3.6rem; }
    .hero-visual { min-height: 330px; }
    .section-heading h2, .closing-section h2 { font-size: 2.65rem; }
    .feature-grid { gap: 12px; }
    .closing-section { padding: 32px; }
}
@media (max-width: 640px) {
    .wrap { width: min(100% - 28px, 1160px); }
    .header-inner { min-height: 66px; gap: 10px; }
    .brand { font-size: 1rem; gap: 7px; }
    .brand img { width: 34px; height: 34px; }
    .header-actions .login-link { min-height: 38px; padding: 8px 11px; font-size: .85rem; }
    .theme-toggle { width: 38px; min-width: 38px; height: 38px; }
    .hero-new { display: grid; grid-template-columns: 1fr; min-height: 0; padding-top: 48px; padding-bottom: 34px; gap: 22px; }
    .hero-new h1 { font-size: 3rem; }
    .hero-text { font-size: 1rem; }
    .hero-visual { min-height: 250px; padding: 4px 8px 16px; }
    .hero-visual img { max-width: 500px; }
    .orbit-label { max-width: 150px; padding: 7px 9px; font-size: .72rem; }
    .label-one { left: 0; top: 0; }
    .label-two { right: 0; top: 44%; }
    .label-three { left: 7%; bottom: 0; }
    .ticker-track { gap: 20px; font-size: .7rem; }
    .section { padding-top: 52px; padding-bottom: 52px; }
    .section-heading h2, .closing-section h2 { font-size: 2.2rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { display: grid; grid-template-columns: 100px 1fr; column-gap: 14px; align-items: center; }
    .feature-card img { grid-row: 1 / span 4; width: 100px; height: 100px; margin: 0; aspect-ratio: 1; }
    .feature-card .eyebrow, .feature-card h3, .feature-card p, .feature-card .card-link { grid-column: 2; }
    .feature-card .eyebrow { align-self: end; margin: 2px 0 0; }
    .feature-card h3 { margin: 0 0 3px; font-size: 1.15rem; }
    .feature-card p { margin: 0 0 5px; font-size: .87rem; line-height: 1.35; }
    .card-link { font-size: .84rem; }
    .tool-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
    .tool-card { padding: 10px; }
    .tool-card img { aspect-ratio: 1; }
    .tool-card h3 { font-size: 1rem; }
    .tool-card p { font-size: .86rem; line-height: 1.4; }
    .tool-card .button { width: 100%; padding: 8px; font-size: .85rem; }
    .filter-button { min-height: 36px; padding: 7px 10px; font-size: .84rem; }
    .closing-section { display: grid; gap: 20px; margin-top: 48px; margin-bottom: 48px; padding: 24px; }
    .button-light { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-links { justify-content: flex-start; }
    .footer-grid small { grid-column: auto; }
}
@media (max-width: 380px) {
    .header-actions .login-link { padding: 7px 8px; font-size: .78rem; }
    .menu-toggle { width: 38px; min-width: 38px; height: 38px; }
    .tool-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
