* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    color: #12213a;
    background: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e7ecf3;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    font-size: 14px;
    font-weight: 700;
}

.hero {
    padding: 12px 0 60px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 72px;
}

.hero-copy {
    max-width: 660px;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #1264d8;
}

.hero h1 {
    margin: 0;
    font-size: clamp(52px, 7vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero-description {
    max-width: 650px;
    margin: 26px 0 0;
    font-size: 20px;
    color: #53627a;
}

.hero-actions {
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 10px;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.button-primary {
    color: #ffffff;
    background: #1264d8;
    box-shadow: 0 12px 30px rgba(18, 100, 216, 0.22);
}

.scanner-preview {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: min(340px, 84vw);
    padding: 12px;
    border-radius: 38px;
    background: #0c1220;
    box-shadow: 0 26px 70px rgba(12, 18, 32, 0.22);
}

.phone-screen {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
}

.camera-area {
    position: relative;
    min-height: 310px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #edf1f5, #cbd3dc);
}

.scan-line {
    position: absolute;
    left: 12%;
    right: 12%;
    top: 50%;
    height: 2px;
    background: #ef4444;
}

.barcode-box {
    width: 180px;
    height: 104px;
    padding: 16px;
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: stretch;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.barcode-box span {
    width: 5px;
    background: #111827;
}

.barcode-box span:nth-child(2n) {
    width: 2px;
}

.history-preview {
    padding: 18px;
    font-size: 13px;
}

.history-preview strong {
    display: block;
    margin-bottom: 10px;
}

.history-preview div {
    padding: 8px 0;
    border-top: 1px solid #edf0f4;
    color: #49566b;
}

.section {
    padding: 92px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 44px;
}

.section-heading h2,
.developer-section h2,
.final-cta h2 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 50px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.section-heading p,
.developer-section p,
.final-cta p {
    color: #617087;
    font-size: 18px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    min-height: 200px;
    padding: 24px;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    background: #ffffff;
}

.feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #eef5ff;
    color: #1264d8;
    font-size: 13px;
    font-weight: 900;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
}

.feature-card p {
    margin: 0;
    color: #69768a;
    font-size: 14px;
}

.workflow-section {
    background: #f7f9fc;
}

.workflow-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.workflow-item {
    flex: 1;
    padding: 22px;
    text-align: center;
    border: 1px solid #e3e9f1;
    border-radius: 14px;
    background: #ffffff;
    font-weight: 800;
}

.workflow-arrow {
    color: #8794a7;
    font-size: 24px;
}

.developer-section {
    border-top: 1px solid #e6ebf2;
    border-bottom: 1px solid #e6ebf2;
}

.developer-inner {
    max-width: 760px;
}

.text-link {
    display: inline-block;
    margin-top: 14px;
    color: #1264d8;
    font-weight: 800;
}

.final-cta {
    text-align: center;
}

.final-cta p {
    margin-bottom: 28px;
}

.site-footer {
    padding: 30px 0;
    color: #d8e3f1;
    background: #12213a;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    font-size: 14px;
}

@media (max-width: 980px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .nav {
        gap: 14px;
    }

    .nav a {
        font-size: 13px;
    }

    .hero {
        padding: 66px 0 70px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-description {
        font-size: 18px;
    }

    .section {
        padding: 66px 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .workflow-row {
        flex-direction: column;
    }

    .workflow-item {
        width: 100%;
    }

    .workflow-arrow {
        transform: rotate(90deg);
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
    }
}


.feature-link {
    display: inline-block;
    margin-top: 18px;
    color: #1264d8;
    font-size: 14px;
    font-weight: 800;
}

.page-hero {
    padding: 12px 0 60px;
    border-bottom: 1px solid #e7ecf3;
}

.page-hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(40px, 5.5vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.page-hero p {
    margin: 20px 0 0;
    color: #5f6e84;
    font-size: 18px;
}

.page-hero-actions {
    margin-top: 28px;
}

/* Subpage Visual Preview Cards */
.subpage-visual {
    display: flex;
    justify-content: center;
}

.subpage-card {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(12, 18, 32, 0.08);
}

.subpage-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 800;
    font-size: 14px;
    color: #1e293b;
}

.subpage-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-item {
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    font-size: 13px;
    color: #334155;
}

.code-snippet {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    background: #0f172a;
    color: #38bdf8;
    padding: 18px;
    border-radius: 12px;
    overflow-x: auto;
    line-height: 1.5;
}

.content-section {
    padding: 84px 0;
}

.content-narrow {
    width: 100%;
}

.content-section h2 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.content-section p {
    color: #5f6e84;
    font-size: 18px;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.use-case-card {
    padding: 24px;
    border: 1px solid #e5ebf2;
    border-radius: 16px;
    background: #ffffff;
}

.use-case-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
}

.use-case-card p {
    margin: 0;
    font-size: 15px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.related-links a {
    padding: 12px 16px;
    border: 1px solid #dfe6ef;
    border-radius: 10px;
    font-weight: 750;
}

.back-home {
    display: inline-block;
    margin-bottom: 18px;
    color: #1264d8;
    font-weight: 800;
}

@media (max-width: 760px) {
    .page-hero {
        padding: 62px 0 56px;
    }

    .content-section {
        padding: 64px 0;
    }

    .use-case-grid {
        grid-template-columns: 1fr;
    }
}


.code-block {
    margin: 28px 0 0;
    padding: 22px;
    overflow-x: auto;
    border: 1px solid #dfe6ef;
    border-radius: 14px;
    background: #0f172a;
    color: #e5edf7;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        Menlo,
        monospace;
    font-size: 14px;
    line-height: 1.7;
}

.code-block code {
    white-space: pre;
}

.notice {
    margin-top: 24px;
    padding: 18px 20px;
    border-left: 4px solid #1264d8;
    border-radius: 10px;
    background: #eef5ff;
    color: #35445a;
}

.developer-flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
    margin-top: 34px;
}

.developer-flow .workflow-item {
    min-height: 82px;
    display: grid;
    place-items: center;
}

.developer-flow .workflow-arrow {
    text-align: center;
}

@media (max-width: 760px) {
    .developer-flow {
        grid-template-columns: 1fr;
    }

    .developer-flow .workflow-arrow {
        transform: rotate(90deg);
    }
}


/* Step 7: final integrated navigation and footer */
.menu-toggle {
    display: none;
    border: 1px solid #dfe6ef;
    border-radius: 9px;
    padding: 8px 11px;
    background: #ffffff;
    color: #12213a;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.site-nav a {
    white-space: nowrap;
}

.site-nav a:hover,
.footer-nav a:hover {
    color: #1264d8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    display: block;
    margin-bottom: 5px;
    font-size: 20px;
}

.footer-grid p {
    margin: 0;
    color: #aebbd0;
    font-size: 14px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 22px;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-flex;
    }

    .header-inner {
        position: relative;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 58px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 10px;
        border: 1px solid #e3e9f1;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 18px 40px rgba(12, 18, 32, 0.12);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 11px 12px;
        border-radius: 8px;
    }

    .site-nav a:hover {
        background: #f5f8fc;
    }
}

@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }
}

/* Language Switcher UI */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid #dce4ef;
    border-radius: 20px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.lang-switcher:hover {
    border-color: #1264d8;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(18, 100, 216, 0.08);
}

.globe-icon {
    font-size: 14px;
    line-height: 1;
}

.lang-select {
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: #12213a;
    cursor: pointer;
    outline: none;
    padding-right: 4px;
}

.lang-select option {
    background: #ffffff;
    color: #12213a;
    font-weight: 500;
}

@media (max-width: 800px) {
    .page-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

