:root {
    --navy: #0c2035;
    --navy-deep: #071625;
    --navy-soft: #173c5e;
    --gold: #c59b50;
    --gold-light: #f0d696;
    --ink: #14283d;
    --muted: #64758a;
    --line: #e4e9ed;
    --paper: #f7f8f6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-family: 'Inter', Arial, sans-serif; background: var(--paper); color: var(--ink); overflow-x: hidden; }
button, input { font: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.header-inner { width: min(1180px, calc(100% - 48px)); margin: auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand-mark { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--gold-light); background: var(--navy); box-shadow: 0 8px 18px rgba(12,32,53,.17); font-size: 21px; flex: none; }
.brand-name { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 27px; font-weight: 700; line-height: 1; letter-spacing: .7px; }
.brand-sub { display: block; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; margin-top: 5px; }
.header-trust { display: flex; align-items: center; gap: 8px; color: #34536d; font-size: 12px; font-weight: 700; letter-spacing: .4px; white-space: nowrap; }
.header-trust i { color: #1e9374; font-size: 16px; }

.page-shell { width: min(1180px, calc(100% - 48px)); margin: 34px auto 76px; }
.hero { min-height: 570px; padding: clamp(30px, 5vw, 74px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .88fr); align-items: center; gap: clamp(28px, 5vw, 72px); position: relative; isolation: isolate; overflow: hidden; border-radius: 30px; color: #fff; background: linear-gradient(125deg, #0a1e32 4%, #123a5b 60%, #0b263f 100%); box-shadow: 0 24px 58px rgba(14,43,67,.17); }
.hero::before { content: ''; position: absolute; width: 670px; height: 670px; right: -170px; top: -145px; border-radius: 50%; border: 1px solid rgba(240,214,150,.18); box-shadow: 0 0 0 90px rgba(240,214,150,.035), 0 0 0 180px rgba(240,214,150,.025); z-index: -1; }
.hero::after { content: ''; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(30deg, transparent 47%, rgba(240,214,150,.15) 48%, transparent 49%), linear-gradient(150deg, transparent 47%, rgba(240,214,150,.11) 48%, transparent 49%); background-size: 210px 210px; pointer-events: none; z-index: -1; }
.hero-copy { position: relative; z-index: 1; animation: riseIn .7s ease-out both; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-light); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: 2.5px; margin-bottom: 25px; }
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold-light); }
.hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(48px, 5vw, 72px); line-height: 1.08; letter-spacing: -1.5px; font-weight: 600; max-width: 620px; margin: 0; }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero-copy > p { color: #c7d7e2; font-size: 16px; line-height: 1.8; max-width: 480px; margin: 26px 0 32px; }
.hero-features { display: flex; flex-wrap: wrap; gap: 14px 24px; padding: 0; margin: 0; list-style: none; }
.hero-features li { display: flex; align-items: center; gap: 8px; color: #e6edf1; font-size: 12px; font-weight: 600; }
.hero-features i { color: var(--gold-light); }

.search-container { position: relative; overflow: hidden; padding: clamp(26px, 3.3vw, 42px); border: 1px solid rgba(240,214,150,.38); border-radius: 22px; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 25px 55px rgba(1,15,28,.25); animation: riseIn .75s .12s ease-out both; }
.search-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 25px; }
.search-icon { width: 48px; height: 48px; border-radius: 15px; background: #f7f0e3; color: #a97925; display: grid; place-items: center; font-size: 20px; }
.search-step { color: #8a7049; background: #faf4e9; padding: 8px 11px; border-radius: 999px; text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.search-container h2 { font-family: 'Playfair Display', Georgia, serif; color: var(--navy); font-size: clamp(30px, 3vw, 38px); line-height: 1.2; letter-spacing: -.7px; margin: 0 0 10px; }
.search-intro { color: var(--muted); line-height: 1.65; font-size: 14px; margin: 0 0 27px; }
.search-label { display: block; color: #35516a; font-size: 11px; text-transform: uppercase; letter-spacing: 1.6px; font-weight: 800; margin-bottom: 10px; }
.input-group { display: flex; flex-direction: column; gap: 12px; }
.input-group input { min-width: 0; width: 100%; border: 1px solid #d8e1e8; background: #f9fbfc; color: var(--navy); border-radius: 11px; padding: 17px 18px; font-size: 16px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; transition: border .2s, box-shadow .2s; }
.input-group input::placeholder { color: #9baab6; font-weight: 500; letter-spacing: 0; text-transform: none; }
.input-group input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(197,155,80,.14); }
.input-group button { border: 0; border-radius: 11px; min-height: 55px; cursor: pointer; color: #0c2035; background: linear-gradient(135deg, #f2d995, #c99e50); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; box-shadow: 0 10px 20px rgba(142,104,35,.17); transition: transform .2s, box-shadow .2s, filter .2s; }
.input-group button i { margin-right: 8px; }
.input-group button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 24px rgba(142,104,35,.23); filter: brightness(1.03); }
.input-group button:disabled { cursor: wait; opacity: .7; }
.search-footnote { display: flex; align-items: center; gap: 8px; color: #778b9b; font-size: 11px; margin: 18px 0 0; line-height: 1.5; }
.search-footnote i { color: #579584; }
.search-container.is-verifying::after { content: ''; position: absolute; left: -35%; top: 0; bottom: 0; width: 30%; background: linear-gradient(90deg, transparent, rgba(197,155,80,.15), transparent); transform: skewX(-18deg); pointer-events: none; animation: scanSweep 1.3s ease-in-out infinite; }
@keyframes scanSweep { to { left: 115%; } }

#loader, #errorMessage { display: none; margin-top: 22px; }
.spinner { border: 3px solid #e8edf0; border-left-color: var(--gold); width: 34px; height: 34px; border-radius: 50%; margin: auto; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.verification-message { margin: 11px 0 0; color: var(--navy); font-size: 13px; font-weight: 700; text-align: center; }
.verification-progress { width: min(260px, 80%); height: 4px; background: #e8edf0; border-radius: 999px; margin: 13px auto 0; overflow: hidden; }
.verification-progress::after { content: ''; display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--gold); animation: progressSweep 1.2s ease-in-out infinite alternate; }
@keyframes progressSweep { from { transform: translateX(-100%); } to { transform: translateX(270%); } }
.error-text { display: block; border: 1px solid #f2c9c5; background: #fff5f3; border-radius: 10px; color: #a23b35; padding: 12px 14px; font-size: 12px; font-weight: 700; line-height: 1.5; }
.error-text i { margin-right: 5px; }
.retry-button { border: 0; background: transparent; color: #1b587c; font-weight: 800; font-size: 12px; padding: 10px 0 0; cursor: pointer; }
.retry-button:hover { text-decoration: underline; }

.steps { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: -28px 26px 0; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 14px 35px rgba(17,43,67,.08); }
.step { display: flex; align-items: center; gap: 17px; min-width: 0; padding: 23px 26px; }
.step + .step { border-left: 1px solid var(--line); }
.step-number { color: #b58a42; font-family: 'Playfair Display', Georgia, serif; font-size: 29px; line-height: 1; }
.step strong { display: block; color: var(--navy); font-size: 12px; letter-spacing: .3px; }
.step span:last-child { display: block; color: var(--muted); margin-top: 5px; font-size: 11px; line-height: 1.4; }

.result-section { padding-top: 65px; scroll-margin-top: 22px; }
.section-kicker { color: #aa7930; font-size: 11px; font-weight: 800; letter-spacing: 2.3px; text-transform: uppercase; margin: 0 0 9px; }
.section-heading { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(29px, 3vw, 38px); font-weight: 600; color: var(--navy); margin: 0 0 24px; }
#resultCard { display: none; background: #fff; border: 1px solid #e0e7ed; border-radius: 22px; box-shadow: 0 23px 55px rgba(17,43,67,.09); overflow: hidden; opacity: 0; transform: translateY(20px); animation: riseIn .65s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }
#resultCard.is-ready .status-badge { animation: badgePop .5s cubic-bezier(.2,1.8,.4,1) both; }
#resultCard.is-ready .data-item { animation: detailReveal .45s ease-out both; }
#resultCard.is-ready .data-item:nth-child(2n) { animation-delay: .08s; }
#resultCard.is-ready .data-item:nth-child(3n) { animation-delay: .14s; }
@keyframes badgePop { from { transform: scale(.86); opacity: .3; } to { transform: scale(1); opacity: 1; } }
@keyframes detailReveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.report-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; background: var(--navy); padding: 27px 34px; color: #fff; border-bottom: 3px solid var(--gold); }
.report-header-label { color: var(--gold-light); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 7px; }
.report-header h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 26px; font-weight: 600; margin: 0; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(67,202,161,.44); background: rgba(30,147,116,.15); color: #80e9c3; border-radius: 999px; padding: 9px 14px; font-size: 11px; font-weight: 800; letter-spacing: .7px; }
.status-badge.revoked { border-color: rgba(248,113,113,.48); background: rgba(239,68,68,.14); color: #f7aaaa; }
.report-notice { display: none; padding: 15px 34px; background: #fff1ee; color: #9f3632; border-bottom: 1px solid #f4d0ca; font-size: 13px; font-weight: 700; }
.report-body { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(0, 1.6fr); gap: 28px; padding: 30px; }
.report-visual { min-width: 0; background: #f6f8fa; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.gem-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #e5e9eb; }
.image-placeholder { display: none; min-height: 225px; border: 1px dashed #b8c7d3; border-radius: 10px; color: #7e8d9c; align-items: center; justify-content: center; flex-direction: column; gap: 12px; text-align: center; font-size: 12px; }
.image-placeholder i { font-size: 30px; color: #9caeba; }
.action-buttons { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.btn-download { width: 100%; min-height: 44px; border: 1px solid #cbd9e4; border-radius: 9px; background: #fff; color: #224b68; padding: 10px 12px; cursor: pointer; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; transition: transform .2s, background .2s, box-shadow .2s; }
.btn-download i { margin-right: 7px; }
.btn-download:hover { transform: translateY(-2px); background: #f0f6fa; box-shadow: 0 6px 12px rgba(17,43,67,.08); }
.btn-pdf { color: #fff; background: var(--navy-soft); border-color: var(--navy-soft); }
.btn-pdf:hover { background: var(--navy); }
.data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.data-item { min-width: 0; background: #f8fafb; border: 1px solid #e8edf1; border-radius: 11px; padding: 13px 15px; }
.data-label { color: #74869a; font-size: 10px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; margin-bottom: 7px; }
.data-value { color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.full-width { grid-column: 1 / -1; }
#resComm { color: #795820; font-weight: 600; font-style: normal; }
.result-note { color: var(--muted); font-size: 12px; line-height: 1.6; padding: 0 30px 28px; margin: 0; }

.site-footer { background: var(--navy-deep); color: #a9b9c5; }
.footer-inner { width: min(1180px, calc(100% - 48px)); min-height: 100px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; line-height: 1.6; }
.footer-brand { color: #f2d995; font-family: 'Playfair Display', Georgia, serif; font-size: 20px; font-weight: 700; margin-bottom: 5px; }
.footer-inner p { margin: 0; }

@media (max-width: 990px) {
    .hero { grid-template-columns: 1fr; min-height: 0; gap: 34px; }
    .hero h1 { max-width: 730px; }
    .search-container { max-width: 650px; width: 100%; }
    .steps { margin-left: 18px; margin-right: 18px; }
    .step { padding: 20px 16px; gap: 11px; }
    .report-body { grid-template-columns: minmax(210px, .9fr) minmax(0, 1.1fr); }
}
@media (max-width: 690px) {
    .header-inner, .page-shell, .footer-inner { width: min(100% - 32px, 1180px); }
    .header-inner { min-height: 75px; }
    .brand-mark { width: 42px; height: 42px; }
    .brand-name { font-size: 23px; }
    .brand-sub { font-size: 8px; letter-spacing: .8px; }
    .header-trust { display: none; }
    .page-shell { margin-top: 16px; margin-bottom: 50px; }
    .hero { padding: 30px 22px 45px; border-radius: 22px; gap: 30px; }
    .hero h1 { font-size: clamp(38px, 10.5vw, 53px); }
    .hero-copy > p { font-size: 14px; line-height: 1.7; margin: 19px 0 23px; }
    .eyebrow { margin-bottom: 17px; font-size: 9px; letter-spacing: 1.6px; }
    .hero-features { gap: 10px 17px; }
    .hero-features li { font-size: 10px; }
    .search-container { padding: 23px 20px; border-radius: 17px; }
    .search-topline { margin-bottom: 17px; }
    .search-container h2 { font-size: 30px; }
    .steps { margin: -22px 12px 0; grid-template-columns: 1fr; }
    .step { padding: 15px 20px; }
    .step + .step { border-left: 0; border-top: 1px solid var(--line); }
    .step-number { font-size: 25px; }
    .result-section { padding-top: 46px; }
    .report-header { padding: 22px; }
    .report-header h3 { font-size: 24px; }
    .report-body { grid-template-columns: 1fr; padding: 17px; gap: 17px; }
    .data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-notice { padding: 13px 22px; }
    .result-note { padding: 0 20px 23px; }
    .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; padding: 22px 0; gap: 7px; }
}
@media (max-width: 440px) {
    .data-grid { grid-template-columns: 1fr; }
    .hero { padding-left: 19px; padding-right: 19px; }
    .search-container { padding: 21px 17px; }
    .status-badge { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
    #resultCard, .hero-copy, .search-container { opacity: 1; transform: none; }
}
