/* ==============================
   1. DESIGN TOKENS
   ============================== */
:root {
    --black: #050505;
    --panel: rgba(8,8,8,.94);
    --gold: #d1d1d1;
    --gold-light: #d0cfcd;
    --silver: #dedede;
    --text: #f5f2ea;
    --muted: #99958d;
    --line: rgba(216,173,77,.3);
    --soft-line: rgba(255,255,255,.1);
    --success: #57d989;
    --danger: #df7878
}

/* ==============================
   2. GLOBAL / RESET
   ============================== */
* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: #050505;
    color: var(--text);
    font-family: "DM Sans",sans-serif;
    min-height: 100vh
}

a {
    color: inherit
}

button, input {
    font: inherit
}

.hidden {
    display: none!important
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0
}

/* ==============================
   3. HEADER / NAVIGATION
   ============================== */
.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(to bottom,rgba(0,0,0,.94),rgba(0,0,0,.58));
    backdrop-filter: blur(10px)
}

.header-inner {
    width: min(1240px,calc(100% - 40px));
    min-height: 92px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.brand-logo {
    width: 350px;
    height: 172px;
    object-fit: contain;
    object-position: left center;
    mix-blend-mode: screen
}

.top-nav {
    display: flex;
    gap: 34px
}

.top-nav a {
    text-decoration: none;
    color: #d0cdc7;
    font-size: 13px;
    padding: 35px 0 29px;
    border-bottom: 2px solid transparent
}

.top-nav a:hover, .top-nav a.active {
    color: var(--gold-light);
    border-color: var(--gold)
}

/* ==============================
   4. HERO
   ============================== */
.hero {
    min-height: 740px;
    position: relative;
    display: flex;
    align-items: center;
    background: url('bg-gold-silver.png') center/cover no-repeat;
    isolation: isolate
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(90deg,rgba(0,0,0,.96),rgba(0,0,0,.85) 35%,rgba(0,0,0,.48) 64%,rgba(0,0,0,.2))
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom,rgba(0,0,0,.12),rgba(0,0,0,.12) 72%,#050505 100%)
}

.hero-inner {
    width: min(1240px,calc(100% - 40px));
    margin: auto;
    padding-top: 110px
}

.hero-content {
    max-width: 750px;
    padding: 70px 0 112px
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .28em
}

.hero h1 {
    margin: 0;
    font-family: "Playfair Display",serif;
    font-size: clamp(58px,7vw,94px);
    line-height: .95;
    letter-spacing: -.045em;
    font-weight: 600;
    color: var(--gold-light);
    text-shadow: 0 4px 28px rgba(0,0,0,.45)
}

.hero h1 span {
    display: block;
    color: #f0f0f0
}

.hero-copy {
    max-width: 620px;
    margin: 28px 0 0;
    color: #c9c6bf;
    line-height: 1.7;
    font-size: 16px
}

.verify-form {
    margin-top: 34px
}

.search-bar {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    max-width: 790px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0,0,0,.35)
}

.input-shell {
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    background: rgba(10,10,10,.92);
    border: 1px solid rgba(216,173,77,.52);
    border-right: 0
}

.input-shell svg {
    width: 21px;
    fill: var(--gold-light);
    flex: 0 0 auto
}

.input-shell input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 14px
}

.input-shell input::placeholder {
    color: #79766f
}

#checkButton {
    min-height: 62px;
    border: 0;
    padding: 0 25px;
    background: linear-gradient(135deg,var(--gold-light),#b77f28);
    color: #090909;
    font-weight: 800;
    letter-spacing: .045em;
    cursor: pointer
}

#checkButton:disabled {
    opacity: .7;
    cursor: wait
}

/* ==============================
   5. VERIFICATION RESULT
   ============================== */
.content-wrap {
    width: min(1180px,calc(100% - 40px));
    margin: -92px auto 0;
    position: relative;
    z-index: 5;
    padding-bottom: 72px
}

.result-panel {
    border: 1px solid rgba(216,173,77,.55);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(7,7,7,.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 80px rgba(0,0,0,.48),0 0 38px rgba(190,137,35,.08)
}

.result-body {
    display: grid;
    grid-template-columns: 285px minmax(0,1fr) 220px;
    min-height: 330px
}

.product-visual {
    padding: 22px;
    border-right: 1px solid var(--soft-line)
}

.product-image-shell {
    height: 100%;
    min-height: 286px;
    border-radius: 13px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%,#28200f,#0b0b0b 58%,#050505);
    border: 1px solid rgba(255,255,255,.08);
    display: grid;
    place-items: center
}

.product-image-shell>img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.product-image-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 34px
}

.product-image-fallback img {
    width: min(180px,80%);
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen
}

.certificate-main {
    padding: 28px 32px
}

.result-status {
    display: flex;
    align-items: center;
    gap: 13px
}

.status-icon {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(87,217,137,.58);
    color: var(--success);
    background: rgba(87,217,137,.07);
    font-weight: 800
}

.result-status p {
    margin: 0 0 4px;
    color: var(--success);
    letter-spacing: .18em;
    font-size: 9px
}

.result-status h2 {
    margin: 0;
    font-family: "Playfair Display",serif;
    font-size: 23px
}

.result-status.not-found .status-icon {
    color: var(--danger);
    border-color: rgba(223,120,120,.5)
}

.result-status.not-found p {
    color: var(--danger)
}

.product-heading {
    padding: 25px 0 15px;
    border-bottom: 1px solid var(--soft-line)
}

.product-label {
    margin: 0 0 7px;
    color: #817d75;
    font-size: 9px;
    letter-spacing: .22em
}

.product-heading h3 {
    margin: 0;
    font-family: "Playfair Display",serif;
    font-size: 31px;
    color: #eee
}

.certificate-details {
    padding-top: 7px
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.075)
}

.detail-row:last-child {
    border: 0
}

.detail-row span {
    color: #8d8981;
    font-size: 12px
}

.detail-row strong {
    font-size: 13px;
    text-align: right
}

.status-pill {
    border: 1px solid rgba(87,217,137,.45);
    color: var(--success);
    padding: 5px 10px;
    border-radius: 999px;
    letter-spacing: .1em;
    font-size: 10px!important
}

.status-pill.status-warning {
    color: var(--danger);
    border-color: rgba(223,120,120,.4)
}

.verification-side {
    border-left: 1px solid var(--soft-line);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px
}

.qr-card {
    text-align: center
}

.qr-card p {
    margin: 0 0 15px;
    color: var(--gold-light);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em
}

.qr-code {
    width: 154px;
    height: 154px;
    margin: 0 auto 14px;
    padding: 11px;
    border-radius: 10px;
    background: #fff;
    display: grid;
    place-items: center
}

.qr-code img, .qr-code canvas {
    max-width: 132px!important;
    max-height: 132px!important
}

.qr-card small {
    display: block;
    color: #77736c;
    line-height: 1.5;
    font-size: 10px
}

.copy-link-btn {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(216,173,77,.4);
    background: transparent;
    color: #d8bd76;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    cursor: pointer
}

.copy-link-btn:hover {
    background: rgba(216,173,77,.08)
}

.verified-/* ==============================
   7. FOOTER
   ============================== */
footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-top: 1px solid var(--soft-line);
    color: #8b877f;
    font-size: 11px
}

.mini-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(216,173,77,.55);
    color: var(--gold-light);
    font-size: 11px
}

.message-view {
    text-align: center;
    padding: 55px 30px
}

.message-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(223,120,120,.48);
    color: var(--danger);
    font-weight: 700
}

.message-view>p:first-of-type {
    margin: 0 0 7px;
    color: var(--danger);
    letter-spacing: .17em;
    font-size: 10px
}

.message-view h2 {
    margin: 0;
    font-family: "Playfair Display",serif;
    font-size: 30px
}

.message-view #messageCopy {
    max-width: 600px;
    margin: 15px auto 0;
    color: #8c8880;
    line-height: 1.7;
    font-size: 13px
}

/* ==============================
   6. TRUST FEATURES
   ============================== */
.trust-grid {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    border-top: 1px solid var(--soft-line);
    border-bottom: 1px solid var(--soft-line)
}

.trust-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;
    padding: 26px 24px;
    border-right: 1px solid var(--soft-line)
}

.trust-item:first-child {
    padding-left: 0
}

.trust-item:last-child {
    border-right: 0
}

.trust-icon {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(216,173,77,.52);
    color: var(--gold-light);
    border-radius: 50%;
    display: grid;
    place-items: center
}

.trust-item h3 {
    margin: 1px 0 6px;
    font-family: "Playfair Display",serif;
    font-size: 18px;
    color: #e5c773
}

.trust-item p {
    margin: 0;
    color: #7f7c76;
    font-size: 12px;
    line-height: 1.6
}

footer {
    border-top: 1px solid rgba(255,255,255,.08)
}

.footer-inner {
    width: min(1120px,calc(100% - 40px));
    min-height: 120px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px
}

.footer-logo {
    width: 132px;
    height: 60px;
    object-fit: contain;
    mix-blend-mode: screen
}

.footer-inner p {
    margin: 0;
    color: #68655f;
    font-size: 12px;
    text-align: right
}

/* ==============================
   8. RESPONSIVE - TABLET
   ============================== */
@media (max-width: 980px) {
    .result-body {
        grid-template-columns: 230px minmax(0,1fr)
    }
    .verification-side {
        grid-column: 1/-1;
        border-left: 0;
        border-top: 1px solid var(--soft-line);
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center
    }
    .qr-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 15px
    }
    .qr-card p {
        display: none
    }
    .qr-code {
        margin: 0;
        width: 92px;
        height: 92px;
        padding: 8px
    }
    .qr-code img, .qr-code canvas {
        max-width: 76px!important;
        max-height: 76px!important
    }
    .qr-card small {
        max-width: 220px
    }
    .copy-link-btn {
        width: auto;
        padding: 0 18px
    }
}

/* ==============================
   9. RESPONSIVE - MOBILE
   ============================== */
@media (max-width: 760px) {
    .header-inner {
        width: min(100% - 26px,1240px);
        min-height: 76px
    }
    .brand-logo {
        width: 128px;
        height: 55px
    }
    .top-nav {
        gap: 16px
    }
    .top-nav a {
        font-size: 11px;
        padding: 28px 0 23px
    }
    .hero {
        min-height: 700px;
        background-position: 61% center
    }
    .hero:before {
        background: linear-gradient(90deg,rgba(0,0,0,.96),rgba(0,0,0,.78) 70%,rgba(0,0,0,.47))
    }
    .hero-inner {
        width: min(100% - 28px,1240px);
        padding-top: 82px
    }
    .hero-content {
        padding: 74px 0 120px
    }
    .eyebrow {
        font-size: 10px;
        letter-spacing: .2em
    }
    .hero h1 {
        font-size: clamp(47px,14vw,66px)
    }
    .hero-copy {
        font-size: 14px;
        max-width: 94%
    }
    .search-bar {
        grid-template-columns: 1fr;
        overflow: visible;
        gap: 10px
    }
    .input-shell {
        border-right: 1px solid rgba(216,173,77,.52);
        border-radius: 10px;
        min-height: 58px
    }
    #checkButton {
        width: 100%;
        min-height: 56px;
        border-radius: 10px
    }
    .content-wrap {
        width: min(100% - 28px,1180px);
        margin-top: -72px
    }
    .result-body {
        grid-template-columns: 1fr
    }
    .product-visual {
        border-right: 0;
        border-bottom: 1px solid var(--soft-line);
        padding: 14px
    }
    .product-image-shell {
        min-height: 230px;
        max-height: 320px
    }
    .certificate-main {
        padding: 23px 20px
    }
    .product-heading h3 {
        font-size: 27px
    }
    .verification-side {
        grid-column: auto;
        display: block;
        border-top: 1px solid var(--soft-line);
        padding: 24px 20px
    }
    .qr-card {
        display: block;
        text-align: center
    }
    .qr-card p {
        display: block
    }
    .qr-code {
        width: 142px;
        height: 142px;
        margin: 0 auto 13px;
        padding: 10px
    }
    .qr-code img, .qr-code canvas {
        max-width: 122px!important;
        max-height: 122px!important
    }
    .qr-card small {
        max-width: none
    }
    .copy-link-btn {
        width: 100%;
        margin-top: 14px
    }
    .trust-grid {
        grid-template-columns: 1fr
    }
    .trust-item, .trust-item:first-child {
        padding: 22px 0;
        border-right: 0;
        border-bottom: 1px solid var(--soft-line)
    }
    .trust-item:last-child {
        border-bottom: 0
    }
    .footer-inner {
        width: min(100% - 28px,1120px);
        min-height: 150px;
        flex-direction: column;
        justify-content: center
    }
    .footer-inner p {
        text-align: center
    }
}

/* ==============================
   10. RESPONSIVE - SMALL MOBILE
   ============================== */
@media (max-width: 430px) {
    .top-nav a:last-child {
        display: none
    }
    .brand-logo {
        width: 116px
    }
    .hero {
        min-height: 680px
    }
    .hero h1 {
        font-size: 46px
    }
    .detail-row {
        align-items: flex-start
    }
    .detail-row span, .detail-row strong {
        font-size: 11px
    }
}
