/* ==========================================================================
   PulsearSpec theme (2026-11 redesign)
   Clean, light, Apple-inspired look. Loaded LAST on every page, so it
   overrides general.css / header.css / phaseLockPage.css / contactForm.css.
   To roll back the look, remove the <link> to this file (and the hero
   markup on index pages), or check out branch backup/before-redesign.
   ========================================================================== */

:root {
    --ink: #1d1d1f;
    --ink-2: #424245;
    --sub: #6e6e73;
    --bg: #ffffff;
    --alt: #f5f5f7;
    --line: #d2d2d7;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --radius: 18px;
    --radius-lg: 28px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Inter, Arial,
            "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    margin-top: 52px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); }
a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff !important;
    border-radius: 980px;
    padding: 11px 22px;
    font-size: 17px;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background .2s;
    cursor: pointer;
}
.btn:hover { background: var(--accent-hover); }
.btn-small { padding: 7px 15px; font-size: 14px; }
.link-arrow { font-size: 17px; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Navigation ---------- */
.header {
    color: var(--ink);
    font-size: 14px;
    height: 52px;
    background: rgba(255, 255, 255, .8);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.navbar { max-width: 1080px; padding: 0 22px; height: 52px; }
.left-section { align-items: center; margin: 0; gap: 8px; }
.logo-pic { height: 28px; }
.gradient-text {
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: var(--ink);
    letter-spacing: -.01em;
}
.menu-links { gap: 34px; margin-right: 0; }
.menu-links a { color: var(--ink-2); }
.menu-links a:hover { color: var(--ink); text-decoration: none; }
.right-section ul li { padding: 16px 0; }
.right-section ul li ul {
    top: 32px;
    margin-top: 18px;
    width: 220px;
    padding: 8px;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}
.right-section ul li ul li {
    background: none;
    border: none;
    border-radius: 8px;
    padding: 9px 12px;
}
.right-section ul li ul li:hover { background: var(--alt); }
.right-section ul li ul li a { display: block; color: var(--ink); }
.right-section #hamburger-btn,
.right-section #close-menu-btn { color: var(--ink); }
.material-symbols-outlined { font-size: 18px; vertical-align: middle; }

/* ---------- Pulsar hero ---------- */
.hero {
    background: var(--alt);
    text-align: center;
    padding: 80px 22px 0;
    overflow: hidden;
}
.hero-eyebrow {
    color: #b64400;
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 4px;
}
.hero-title {
    font-size: 96px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
}
.hero-tagline {
    font-size: 28px;
    font-weight: 500;
    color: var(--ink);
    margin-top: 10px;
}
.hero-actions {
    display: flex;
    gap: 28px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 26px 0 8px;
}
.hero-pic {
    display: block;
    width: min(860px, 94%);
    margin: 24px auto 0;
}

.stats {
    max-width: 1080px;
    margin: 0 auto;
    padding: 72px 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}
.stats > div { padding: 0 14px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats b {
    display: block;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--sub); }

/* ---------- Tabs (Pulsar page) ---------- */
.tab-container {
    max-width: none;
    background: var(--bg);
    border-radius: 0;
    margin-bottom: 0;
    padding-bottom: 96px;
    border-top: 1px solid var(--line);
}
.tab-box {
    max-width: 680px;
    justify-content: center;
    gap: 8px;
    border-bottom: none;
    padding: 18px 0 8px;
}
.tab-box, .tab-btn {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--sub);
}
.tab-btn {
    padding: 9px 18px;
    border-radius: 980px;
    transition: background .2s, color .2s;
}
.tab-btn:hover { color: var(--ink); }
.tab-box .tab-btn.active { color: #fff; background: var(--ink); }
.line { display: none; }
.content-box { width: 100%; padding: 0 22px; }

/* Section headings + body copy */
.overview-main,
.overview-sub,
.content-box .content h1 {
    color: var(--ink);
    font-size: 48px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.01em;
    text-align: center;
}
.overview-main { margin: 56px 0 24px; padding: 0; }
.overview-sub { margin: 112px 0 20px; padding: 0; }
.overview-main-p,
.overview-tab,
.phase-lock-intro p {
    background: none;
    box-shadow: none;
    border-radius: 0;
    color: var(--ink-2);
    font-size: 19px;
    line-height: 1.6;
    text-align: left;
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
}
.overview-tab { background: none; padding: 0; }
.overview-tab p { color: var(--ink-2); line-height: 1.6; margin-bottom: 12px; }
.overview-tab h4 { color: var(--ink); font-size: 21px; margin: 32px 0 8px; }
.overview-tab table { border-spacing: 0; }
.overview-tab table td {
    background: none;
    box-shadow: none;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 8px;
    font-size: 17px;
}
.overview-tab table tr:hover td { background: none; }
.overview-tab table td:first-child { text-align: left; font-weight: 600; color: var(--ink); width: 45%; }

.pulsar-oem-pic, .dimension-pic { display: block; margin: 40px auto 0; border-radius: var(--radius); }

/* Specs tables (Pulsar + product pages) */
#specs, .pahse-lock-spec { max-width: 900px; }
#specs table, .pahse-lock-spec table { width: 100%; border-collapse: collapse; font-size: 16px; }
#specs th, .pahse-lock-spec th {
    background: none;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    padding: 14px 10px;
    border-bottom: 2px solid var(--ink);
}
#specs td, .pahse-lock-spec td {
    border-top: none;
    border-bottom: 1px solid var(--line);
    padding: 14px 10px;
    color: var(--ink-2);
    vertical-align: top;
}
#specs tr td:first-child, .pahse-lock-spec tr td:first-child { color: var(--ink); font-weight: 600; }
#specs tr:nth-child(even), .pahse-lock-spec tr:nth-child(even),
#specs tr:hover, .pahse-lock-spec tr:hover { background: none; }
#specs ul { padding-left: 18px; }

/* Downloads */
.download-row {
    background: var(--alt);
    border-radius: var(--radius-lg);
    max-width: 900px;
    margin: 48px auto 0;
    padding: 36px 24px;
    gap: 20px;
}
.download-row .product-sheet-box {
    background: #fff;
    border-radius: var(--radius);
    width: 190px;
    padding: 24px 16px;
    transition: transform .2s, box-shadow .2s;
}
.download-row .product-sheet-box:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, .08); }
.download-row .product-sheet-box a { color: var(--ink); text-decoration: none; }
.download-row .product-sheet-box p {
    background: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    color: var(--ink);
}
.product-sheet-img { width: 72px; }
.youtube-video { max-width: 720px; }
.youtube-video iframe { border-radius: var(--radius); aspect-ratio: 16 / 9; height: auto; }

/* ---------- Product pages (Phase Lock, Spectrometer, Software) ---------- */
.title-bar {
    max-width: 1080px;
    padding: 18px 22px 6px;
    font-size: 14px;
    font-weight: 400;
    color: var(--sub);
}
.title-bar a { color: var(--sub); }
.PhaseLock-area {
    max-width: 1080px;
    padding: 8px 22px 64px;
    gap: 48px;
    align-items: center;
    border-radius: 0;
    background: none;
}
.phase-lock-left, .software-pic-box {
    border: none;
    background: var(--alt);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.PhaseLock-pic { height: 380px; border-radius: 12px; mix-blend-mode: multiply; }
.phase-lock-left ul, .software-pic-box ul { margin: 16px 0 0; justify-content: center; gap: 10px; }
.phase-lock-left ul li, .software-pic-box ul li {
    width: 76px;
    height: 60px;
    background: #fff;
    border-radius: 10px;
}
.phase-lock-left ul img, .software-pic-box ul img { width: 64px; max-height: 48px; }
.phase-lock-left li:hover img, .software-pic-box li:hover img { transform: scale(1.08); }
.phase-lock-right { padding-left: 0; }
.phase-lock-right h3 {
    font-size: 40px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 14px;
}
.phase-lock-right p { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 0 0 18px; }
.phase-lock-right ul { margin: 0 0 28px 0; padding: 0; list-style: none; }
.phase-lock-right li {
    position: relative;
    padding: 10px 0 10px 28px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
}
.phase-lock-right li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 19px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.phase-lock-intro {
    max-width: none;
    background: var(--alt);
    border-radius: 0;
    margin-bottom: 0;
    padding: 24px 22px 112px;
}
.phase-lock-intro > div { width: 100%; max-width: 1080px; }
.phase-lock-intro h1 {
    color: var(--ink);
    font-size: 48px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 88px 0 24px;
    padding: 0;
}
.phase-lock-intro p { max-width: 820px; }
.phase-lock-application-pic, .phase-lock-diagram-pic, .phase-lock-dimension-pic {
    margin-top: 40px;
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
}
.phase-lock-dimension-pic { margin-top: 0; }
.application-pic-title { color: var(--sub); font-size: 14px; margin: 12px 0 24px; }
.pahse-lock-spec { background: #fff; border-radius: var(--radius-lg); padding: 16px 28px 28px; }
.software-pic, .software-pic-format { height: 460px; border-radius: 12px; }

/* ---------- Footer ---------- */
footer {
    background: var(--alt);
    border-top: 1px solid var(--line);
    padding: 40px 22px 48px;
    font-size: 12px;
    line-height: 1.5;
}
footer p { color: var(--sub); margin: 4px 0; }
footer a { color: var(--ink-2); }
footer a[href="#top"], footer a[href="#"] { font-weight: 400; }

/* ---------- Contact modal ---------- */
.modal { background: rgba(0, 0, 0, .35); }
.modal::before { background: rgba(0, 0, 0, .15); }
.form-container {
    background: #fff;
    border-radius: var(--radius-lg);
    width: calc(100% - 32px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .25);
}
.form-container form { box-shadow: none; padding: 32px; gap: 0 4%; }
.form-container form h1 { color: var(--ink); font-weight: 700; font-size: 32px; margin: 0 0 20px; }
.form-container form input,
.form-container form textarea {
    width: 48%;
    height: 46px;
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    background: var(--alt);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0 14px;
    margin: 0 0 12px;
}
.form-container form input:focus,
.form-container form textarea:focus { border-color: var(--accent); background: #fff; }
.form-container form input::placeholder,
.form-container form textarea::placeholder { color: #86868b; }
.form-container form #lastName, .form-container form #mobile { margin-left: 0; }
.form-container form h4 { color: var(--ink); font-weight: 600; width: 100%; margin: 8px 0 8px; }
.form-container form textarea { width: 100%; min-height: 110px; max-height: 220px; padding: 12px 14px; font-weight: 400; }
.form-container form .button-group { height: auto; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.form-container form #sendButton,
.close {
    width: auto;
    height: auto;
    margin: 0;
    padding: 11px 26px;
    border-radius: 980px;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font);
}
.form-container form #sendButton { background: var(--accent); color: #fff; }
.close { background: var(--alt); color: var(--ink); }
.form-container form #sendButton:hover, .close:hover { opacity: .85; }

/* ---------- Mobile ---------- */
@media screen and (max-width: 650px) {
    body { font-size: 16px; }
    .navbar .menu-links {
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 0 40px rgba(0, 0, 0, .15);
    }
    .navbar .menu-links li a { color: var(--ink); font-size: 1.1rem; }
    .navbar .menu-links a:hover { color: var(--accent); }
    .right-section ul li ul { box-shadow: none; border: none; background: none; padding: 0; margin-top: 8px; top: 0; }
    .right-section #close-menu-btn { color: var(--ink); }

    .hero { padding-top: 56px; }
    .hero-eyebrow { font-size: 15px; }
    .hero-title { font-size: 60px; }
    .hero-tagline { font-size: 21px; }
    .stats { grid-template-columns: 1fr 1fr; row-gap: 36px; padding: 48px 16px; }
    .stats > div:nth-child(3) { border-left: 0; }
    .stats b { font-size: 26px; white-space: normal; }

    .tab-box { gap: 2px; }
    .tab-btn { padding: 8px 12px; font-size: 14px; }
    .content-box { padding: 0 16px; }
    .overview-main, .overview-sub, .content-box .content h1, .phase-lock-intro h1 { font-size: 32px; }
    .overview-sub { margin-top: 72px; }
    .phase-lock-intro h1 { margin-top: 64px; }
    .overview-main-p, .overview-tab, .phase-lock-intro p { font-size: 17px; }

    .PhaseLock-area { padding: 8px 16px 48px; gap: 28px; }
    .phase-lock-left, .software-pic-box { padding: 16px; }
    .PhaseLock-pic, .software-pic, .software-pic-format { height: 260px; }
    .phase-lock-right h3 { font-size: 30px; }
    .phase-lock-intro { padding: 8px 16px 72px; }
    .pahse-lock-spec { padding: 8px 14px 18px; overflow-x: auto; }
    #specs, .pahse-lock-spec { overflow-x: auto; }

    .form-container form { padding: 24px 20px; }
    .form-container form input { width: 100%; }
}

#product-tabs { scroll-margin-top: 52px; }
.form-container form { justify-content: space-between; }
.form-container form h1 { text-align: center; }
@media screen and (max-width: 650px) {
    .download-row { padding: 20px 12px; gap: 12px; }
    .download-row .product-sheet-box { width: calc(50% - 6px); padding: 18px 10px; }
}
