:root {
    color-scheme: dark;
    --graphite: #242422;
    --graphite-2: #1b1b1a;
    --black: #070807;
    --panel: #2d2d2b;
    --panel-soft: #353532;
    --white: #f6f6f1;
    --muted: #b8b8ae;
    --muted-2: #7f8078;
    --lime: #8cff00;
    --lime-2: #b5ff36;
    --lime-dark: #4d8f00;
    --line: rgba(246, 246, 241, 0.13);
    --line-strong: rgba(140, 255, 0, 0.36);
    --success: #8cff00;
    --warning: #ffd166;
    --danger: #ff5959;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--white);
    background:
        radial-gradient(circle at 18% -6%, rgba(140, 255, 0, 0.12), transparent 28rem),
        radial-gradient(circle at 86% 18%, rgba(140, 255, 0, 0.08), transparent 24rem),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        var(--black);
    background-size: auto, auto, 64px 64px, 64px 64px, auto;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
    content: "JAPAN QUALITY";
    position: fixed;
    inset: auto -2vw 4vh auto;
    z-index: -1;
    color: rgba(255, 255, 255, 0.035);
    font-size: clamp(4.5rem, 12vw, 13rem);
    font-weight: 950;
    line-height: 0.82;
    letter-spacing: -0.08em;
    pointer-events: none;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.site-header,
.site-footer,
.home-hero,
.identity-strip,
.quality-block,
.product-section,
.box-reference,
.verification-section,
.contact-section,
.verify-screen,
.qr-check-screen {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(26, 26, 25, 0.82);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(140, 255, 0, 0.42);
    border-radius: 50%;
    background: var(--graphite);
    box-shadow: inset 0 0 0 5px rgba(140, 255, 0, 0.08), 0 0 24px rgba(140, 255, 0, 0.12);
}

.brand-mark img {
    width: 43px;
    height: 43px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand small {
    margin-top: 1px;
    color: var(--lime);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 850;
}

.site-nav a {
    padding: 12px 15px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
    color: var(--black);
    background: var(--lime);
    transform: translateY(-1px);
}

.site-nav a[href$="qr-check"] {
    color: var(--black);
    background: var(--lime);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 18px;
    align-items: stretch;
    padding: 84px 0 18px;
}

.home-hero-copy,
.home-packshot,
.identity-strip article,
.quality-grid article,
.part-card,
.box-reference,
.verification-card,
.steps article,
.contact-section,
.verify-card-result,
.verify-help,
.qr-check-copy,
.qr-form-card,
.qr-rules article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(45, 45, 43, 0.94), rgba(30, 30, 29, 0.92));
    box-shadow: var(--shadow);
}

.home-hero-copy {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 5vw, 58px);
}

.home-hero-copy::before,
.verification-card::before,
.box-reference-copy::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 74px;
    background: var(--lime);
    clip-path: polygon(0 36%, 18% 22%, 14% 8%, 31% 24%, 43% 0, 39% 26%, 55% 12%, 51% 34%, 72% 8%, 65% 37%, 100% 18%, 82% 62%, 88% 82%, 62% 66%, 48% 100%, 45% 70%, 28% 92%, 32% 66%, 11% 84%);
    filter: drop-shadow(0 0 24px rgba(140, 255, 0, 0.26));
    opacity: 0.92;
    transform: rotate(-15deg);
}

.home-hero-copy::before {
    right: -62px;
    bottom: 56px;
}

.eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 16px;
    color: var(--lime);
    font-size: 0.75rem;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow span {
    display: inline-grid;
    min-width: 40px;
    min-height: 30px;
    place-items: center;
    padding: 3px 7px;
    color: var(--black);
    background: var(--lime);
    letter-spacing: 0.06em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    position: relative;
    z-index: 1;
    max-width: 840px;
    margin-bottom: 24px;
    font-size: clamp(2.7rem, 6.4vw, 6.4rem);
    line-height: 0.88;
    letter-spacing: -0.08em;
    text-transform: uppercase;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.18rem;
    letter-spacing: -0.035em;
}

.hero-lead,
.identity-strip p,
.quality-grid p,
.section-heading p,
.part-card p,
.box-reference p,
.verification-card p,
.contact-section p,
.verify-card-result > p,
.qr-check-copy p,
.form-hint {
    color: var(--muted);
    line-height: 1.72;
}

.hero-lead {
    position: relative;
    z-index: 1;
    max-width: 700px;
    font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font: inherit;
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    border-color: transparent;
    color: var(--black);
    background: var(--lime);
    box-shadow: 0 16px 38px rgba(140, 255, 0, 0.18);
}

.button-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.055);
}

.home-packshot {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    padding: 28px;
    background:
        radial-gradient(circle at 72% 18%, rgba(140, 255, 0, 0.12), transparent 18rem),
        linear-gradient(145deg, #30302e, #191918);
}

.home-packshot::before {
    content: "IRON FOX AUTOS";
    position: absolute;
    right: -20px;
    bottom: 16px;
    color: rgba(255, 255, 255, 0.06);
    font-size: clamp(3.5rem, 9vw, 8.5rem);
    font-weight: 950;
    letter-spacing: -0.08em;
}

.lime-brush {
    position: absolute;
    right: -28px;
    top: 34%;
    width: 76%;
    height: 170px;
    background: var(--lime);
    clip-path: polygon(0 31%, 14% 16%, 11% 0, 28% 18%, 40% 5%, 36% 26%, 54% 9%, 50% 32%, 72% 0, 63% 34%, 100% 13%, 80% 56%, 88% 76%, 58% 64%, 44% 100%, 40% 70%, 20% 92%, 27% 62%, 4% 80%);
    transform: rotate(-18deg);
    filter: drop-shadow(0 0 34px rgba(140, 255, 0, 0.35));
}

.pack-card {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 500px;
    align-content: space-between;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    background: rgba(36, 36, 34, 0.72);
    backdrop-filter: blur(4px);
}

.pack-logo {
    display: grid;
    width: 146px;
    height: 146px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.24);
}

.pack-logo img {
    width: 118px;
    filter: brightness(0) invert(1);
}

.pack-type span,
.pack-quality strong {
    display: block;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.065em;
    text-transform: uppercase;
}

.pack-type strong {
    display: block;
    margin-top: 8px;
    color: var(--white);
    font-size: 1.38rem;
    font-weight: 650;
}

.pack-type em {
    display: block;
    margin-top: 4px;
    color: var(--lime);
    font-style: normal;
    font-weight: 900;
}

.pack-quality {
    justify-self: end;
    max-width: 230px;
    text-align: right;
}

.pack-quality span {
    display: block;
    color: var(--lime);
    font-size: 3.1rem;
    font-weight: 950;
    line-height: 0.9;
}

.qr-mini-card {
    position: absolute;
    right: 28px;
    top: 28px;
    z-index: 2;
    display: grid;
    gap: 4px;
    width: 184px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--black);
    background: var(--white);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.qr-mini-card span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--white);
    background: var(--black);
    font-weight: 950;
}

.qr-mini-card strong {
    font-size: 0.98rem;
}

.qr-mini-card small {
    color: #686860;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.identity-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 14px 0 76px;
}

.identity-strip article {
    min-height: 184px;
    padding: 24px;
}

.identity-strip span,
.steps strong {
    color: var(--lime);
    font-size: 1.4rem;
    font-weight: 950;
}

.identity-strip strong {
    display: block;
    margin: 22px 0 8px;
    font-size: 1.2rem;
}

.quality-block {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 18px;
    padding: 76px 0;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quality-grid article {
    min-height: 210px;
    padding: 24px;
}

.quality-grid article span {
    display: inline-grid;
    margin-bottom: 28px;
    color: var(--lime);
    font-size: 1.35rem;
    font-weight: 950;
}

.product-section,
.box-reference,
.verification-section,
.contact-section,
.verify-screen,
.qr-check-screen {
    padding: 76px 0;
}

.section-heading {
    max-width: 850px;
    margin-bottom: 28px;
}

.parts-board {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}

.part-card {
    position: relative;
    grid-column: span 3;
    min-height: 220px;
    overflow: hidden;
    padding: 22px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.part-card:nth-child(2),
.part-card:nth-child(7),
.part-card:nth-child(11) {
    grid-column: span 4;
}

.part-card:nth-child(3),
.part-card:nth-child(6) {
    grid-column: span 5;
}

.part-card::before {
    content: "";
    position: absolute;
    right: -48px;
    top: 18px;
    width: 170px;
    height: 42px;
    background: rgba(140, 255, 0, 0.9);
    clip-path: polygon(0 40%, 22% 6%, 18% 31%, 45% 0, 37% 38%, 72% 10%, 60% 50%, 100% 26%, 80% 76%, 42% 60%, 25% 100%, 30% 65%);
    transform: rotate(-18deg);
    opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease;
}

.part-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 26px 70px rgba(140, 255, 0, 0.11);
    transform: translateY(-3px);
}

.part-card:hover::before {
    opacity: 1;
    transform: rotate(-18deg) translateX(-8px);
}

.part-card span {
    display: block;
    color: rgba(140, 255, 0, 0.28);
    font-size: 2.4rem;
    font-weight: 950;
    line-height: 0.9;
}

.part-card h3 {
    margin-top: 50px;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.box-reference {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
    gap: 18px;
    align-items: stretch;
    padding: 18px;
    background: linear-gradient(145deg, rgba(45, 45, 43, 0.94), rgba(28, 28, 27, 0.94));
}

.box-reference-copy {
    position: relative;
    overflow: hidden;
    padding: 28px;
}

.box-reference-copy::before {
    left: -82px;
    bottom: 30px;
}

.box-reference-image {
    display: grid;
    min-height: 360px;
    overflow: hidden;
    place-items: center;
    border: 1px dashed rgba(140, 255, 0, 0.34);
    border-radius: 22px;
    background: #050505;
}

.box-reference-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.verification-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 18px;
    align-items: stretch;
}

.verification-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
}

.verification-card::before {
    right: -80px;
    bottom: 38px;
}

.verification-card code {
    padding: 2px 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--lime);
    background: rgba(255, 255, 255, 0.06);
}

.verification-card .button {
    margin-top: 18px;
}

.steps {
    display: grid;
    gap: 12px;
}

.steps article {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    min-height: 108px;
    padding: 20px;
}

.steps span {
    color: var(--muted);
    line-height: 1.48;
}

.contact-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 54px;
    padding: 34px;
}

.contact-section div:first-child {
    max-width: 760px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0 42px;
    color: var(--muted);
}

.site-footer div {
    display: grid;
    gap: 4px;
}

.site-footer strong {
    color: var(--white);
}

.site-footer a {
    color: var(--lime);
    font-weight: 850;
    text-decoration: none;
}

.qr-check-screen {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 18px;
    align-items: start;
    min-height: calc(100vh - 190px);
}

.qr-check-copy,
.qr-form-card {
    padding: clamp(26px, 4vw, 42px);
}

.qr-check-copy {
    background:
        radial-gradient(circle at 82% 24%, rgba(140, 255, 0, 0.14), transparent 18rem),
        linear-gradient(145deg, rgba(45, 45, 43, 0.96), rgba(25, 25, 24, 0.95));
}

.qr-form-card label {
    display: block;
    margin-bottom: 10px;
    font-weight: 950;
}

.qr-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.qr-input-row input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font: inherit;
    font-weight: 750;
    outline: none;
}

.qr-input-row input:focus {
    border-color: var(--lime);
    box-shadow: 0 0 0 4px rgba(140, 255, 0, 0.12);
}

.form-error {
    margin: 12px 0 0;
    color: var(--danger);
    font-weight: 850;
}

.form-hint {
    margin: 18px 0 0;
}

.qr-rules {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.qr-rules article {
    display: grid;
    gap: 8px;
    padding: 22px;
}

.qr-rules strong {
    font-size: 1.08rem;
}

.qr-rules span,
.verify-help ul {
    color: var(--muted);
    line-height: 1.55;
}

.verify-screen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
    min-height: calc(100vh - 190px);
}

.verify-card-result,
.verify-help {
    padding: 34px;
}

.verify-badge {
    display: inline-flex;
    margin-bottom: 22px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.verify-card-result h1 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.verify-card-result.is-success .verify-badge {
    background: rgba(140, 255, 0, 0.14);
    color: var(--success);
}

.verify-card-result.is-warning .verify-badge {
    background: rgba(255, 209, 102, 0.14);
    color: var(--warning);
}

.verify-card-result.is-danger .verify-badge,
.verify-card-result.is-muted .verify-badge {
    background: rgba(255, 89, 89, 0.14);
    color: var(--danger);
}

.verify-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 30px 0 0;
}

.verify-details div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
}

.verify-details dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.82rem;
}

.verify-details dd {
    margin: 0;
    font-weight: 950;
}

.verify-note {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(140, 255, 0, 0.24);
    border-radius: 20px;
    background: rgba(140, 255, 0, 0.08);
    color: var(--muted);
    line-height: 1.6;
}

.verify-note strong {
    color: var(--lime);
}

.verify-help {
    position: sticky;
    top: 100px;
}

.verify-help h2 {
    font-size: 1.65rem;
}

.verify-help ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
}

.verify-help .button {
    margin-top: 24px;
}

@media (max-width: 1020px) {
    .home-hero,
    .quality-block,
    .box-reference,
    .verification-section,
    .verify-screen,
    .qr-check-screen {
        grid-template-columns: 1fr;
    }

    .identity-strip,
    .qr-rules {
        grid-template-columns: 1fr;
    }

    .parts-board {
        grid-template-columns: repeat(6, 1fr);
    }

    .part-card,
    .part-card:nth-child(2),
    .part-card:nth-child(3),
    .part-card:nth-child(6),
    .part-card:nth-child(7),
    .part-card:nth-child(11) {
        grid-column: span 3;
    }

    .verify-help {
        position: static;
    }
}

@media (max-width: 760px) {
    body::before {
        display: none;
    }

    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
        border-radius: 28px;
    }

    .site-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .site-nav a {
        padding: 10px 12px;
    }

    .home-hero {
        padding-top: 38px;
    }

    .home-packshot {
        min-height: 470px;
    }

    .pack-card {
        min-height: 420px;
        padding: 24px;
    }

    .qr-mini-card {
        right: 18px;
        top: 18px;
        width: 154px;
    }

    h1 {
        font-size: clamp(2.4rem, 14vw, 4.35rem);
    }

    .quality-grid,
    .parts-board {
        grid-template-columns: 1fr;
    }

    .part-card,
    .part-card:nth-child(2),
    .part-card:nth-child(3),
    .part-card:nth-child(6),
    .part-card:nth-child(7),
    .part-card:nth-child(11) {
        grid-column: auto;
    }

    .contact-section,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .qr-input-row {
        grid-template-columns: 1fr;
    }

    .qr-input-row .button {
        width: 100%;
    }

    .verify-details {
        grid-template-columns: 1fr;
    }

    .verify-note {
        flex-direction: column;
    }
}
