:root {
    --blue-900: #0d3d96;
    --blue-700: #1d5ec8;
    --blue-500: #3a7df0;
    --orange-600: #ff7a00;
    --orange-500: #ff9722;
    --ink-900: #15306b;
    --ink-700: #30508f;
    --ink-500: #5d74a5;
    --surface: #ffffff;
    --surface-soft: #f3f7ff;
    --line: rgba(33, 79, 171, 0.12);
    --shadow: 0 24px 60px rgba(24, 63, 142, 0.14);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    color: var(--ink-900);
    background:
        radial-gradient(circle at top left, rgba(88, 147, 255, 0.16), transparent 32%),
        radial-gradient(circle at bottom right, rgba(255, 142, 0, 0.1), transparent 24%),
        linear-gradient(180deg, #f6f9ff 0%, #ffffff 18%, #f8fbff 100%);
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto;
}

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

.site-header {
    background: linear-gradient(110deg, #0b469f 0%, #2d73e3 54%, #5693f3 100%);
    color: #fff;
    box-shadow: 0 18px 50px rgba(18, 52, 122, 0.2);
}

.header-top {
    display: grid;
    grid-template-columns: 260px minmax(260px, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 22px 0 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand strong,
.accent {
    color: var(--orange-600);
}

.brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.header-search {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    padding: 6px;
    border-radius: 999px;
    box-shadow: 0 14px 40px rgba(6, 33, 91, 0.18);
}

.header-search input {
    border: 0;
    background: transparent;
    outline: none;
    padding: 12px 20px;
    color: var(--ink-900);
    font-size: 1.05rem;
}

.header-search button {
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff 0%, #ecf3ff 100%);
    color: var(--blue-700);
    cursor: pointer;
}

.header-search svg,
.icon-wrap svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.95rem;
}

.icon-wrap {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.header-nav {
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink-900);
    border-bottom: 1px solid rgba(23, 68, 151, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    min-height: 70px;
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--ink-900);
    font-weight: 700;
}

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

.nav-links a {
    position: relative;
    padding: 22px 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.nav-links a.active::after,
.nav-links a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange-600), #ff9d3b);
}

.flash-stack {
    margin-top: 20px;
    display: grid;
    gap: 12px;
}

.flash-message {
    padding: 15px 18px;
    border-radius: 16px;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.flash-message.success {
    background: #ebfff1;
    color: #0b7a36;
}

.flash-message.error {
    background: #fff3f1;
    color: #b9472d;
}

.page-section {
    padding: 36px 0 22px;
}

.hero {
    padding: 42px 0 28px;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr);
    gap: 34px;
    align-items: center;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2.5rem, 7vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-copy p {
    margin: 0 0 26px;
    max-width: 620px;
    color: var(--ink-700);
    font-size: 1.25rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(27, 74, 169, 0.08);
    box-shadow: var(--shadow);
}

.metric-card span {
    display: block;
    color: var(--ink-500);
    font-size: 0.92rem;
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    font-size: 2rem;
}

.hero-visual {
    position: relative;
    min-height: 520px;
}

.hero-orb {
    position: absolute;
    inset: 26px 0 0 40px;
    border-radius: 45% 55% 52% 48% / 56% 44% 56% 44%;
    background:
        radial-gradient(circle at top, rgba(255, 168, 76, 0.22), transparent 28%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(221, 237, 255, 0.66));
    filter: blur(2px);
}

.hero-device {
    position: absolute;
    right: 28px;
    top: 32px;
    width: min(100%, 430px);
    padding: 20px;
    border-radius: 38px;
    background: linear-gradient(180deg, #0c489e 0%, #3174dd 62%, #4f90f0 100%);
    box-shadow: 0 40px 80px rgba(18, 56, 133, 0.28);
}

.hero-device::before {
    content: '';
    display: block;
    height: 12px;
    width: 86px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: rgba(6, 26, 79, 0.56);
}

.device-card {
    background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
    border-radius: 26px;
    overflow: hidden;
}

.device-awning {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    height: 58px;
}

.device-awning span:nth-child(odd) {
    background: var(--orange-600);
}

.device-awning span:nth-child(even) {
    background: #1b67d4;
}

.device-body {
    padding: 30px 24px 24px;
    text-align: center;
}

.device-body h2 {
    margin: 0 0 16px;
    font-size: 2.2rem;
    letter-spacing: -0.04em;
}

.device-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.device-products div {
    height: 112px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(53, 114, 218, 0.16), rgba(255, 167, 82, 0.14));
}

.device-pill {
    display: inline-flex;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(23, 88, 184, 0.08);
    color: var(--blue-900);
    font-weight: 700;
}

.floating-note {
    position: absolute;
    left: 0;
    bottom: 34px;
    width: 220px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.floating-note strong {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: -0.05em;
}

.section-heading p {
    margin: 0;
    max-width: 540px;
    color: var(--ink-700);
    font-size: 1.05rem;
}

.button,
.button-secondary,
.button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 18px;
    border: 0;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}

.button {
    background: linear-gradient(135deg, #ff7a00, #ffa12d);
    color: #fff;
    box-shadow: 0 18px 30px rgba(255, 122, 0, 0.28);
}

.button-secondary {
    background: linear-gradient(135deg, var(--blue-900), #2f74df);
    color: #fff;
    box-shadow: 0 18px 30px rgba(28, 84, 179, 0.26);
}

.button-ghost {
    background: rgba(18, 76, 168, 0.08);
    color: var(--blue-900);
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover {
    transform: translateY(-1px);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.store-card,
.product-card,
.category-card,
.panel-card,
.detail-card,
.auth-card,
.empty-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.store-card,
.product-card {
    overflow: hidden;
}

.store-banner,
.product-media {
    position: relative;
    min-height: 210px;
    padding: 22px;
}

.store-banner {
    background:
        radial-gradient(circle at top right, rgba(255, 174, 95, 0.45), transparent 24%),
        linear-gradient(135deg, #edf5ff 0%, #d8e7ff 100%);
}

.store-awning {
    position: absolute;
    left: 22px;
    right: 22px;
    top: 24px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    height: 26px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.store-awning span:nth-child(odd) {
    background: var(--orange-500);
}

.store-awning span:nth-child(even) {
    background: #5da4ff;
}

.store-front {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    min-height: 120px;
    padding: 20px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #eff5ff);
    display: flex;
    align-items: end;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--blue-900);
}

.product-media {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top, rgba(88, 147, 255, 0.2), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}

.product-media img {
    max-height: 180px;
    object-fit: contain;
}

.tag {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange-600), #ff9b1a);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 1.65rem;
    letter-spacing: -0.04em;
}

.card-body p {
    margin: 0;
    color: var(--ink-700);
    line-height: 1.55;
}

.meta-row,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    color: var(--ink-500);
}

.price {
    margin-top: 16px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--blue-900);
}

.price small {
    font-size: 1rem;
    color: var(--ink-500);
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.card-actions form {
    display: inline-flex;
    margin: 0;
}

.category-card {
    padding: 24px;
}

.category-card strong {
    display: block;
    font-size: 1.7rem;
    margin-bottom: 6px;
}

.category-card span {
    color: var(--ink-500);
}

.page-hero,
.detail-grid,
.panel-layout,
.auth-layout {
    display: grid;
    gap: 24px;
}

.page-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    padding: 34px 0 10px;
}

.hero-panel,
.detail-card,
.panel-card,
.empty-card,
.auth-card {
    padding: 28px;
}

.hero-panel h1,
.detail-card h1,
.auth-card h1 {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    letter-spacing: -0.05em;
}

.hero-panel p,
.auth-card p {
    margin: 0;
    color: var(--ink-700);
    line-height: 1.6;
    font-size: 1.08rem;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(24, 81, 175, 0.08);
    color: var(--blue-900);
    font-weight: 600;
}

.detail-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    padding: 30px 0 10px;
}

.detail-media {
    min-height: 420px;
}

.detail-media img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.detail-card p {
    color: var(--ink-700);
    line-height: 1.7;
}

.detail-sidebar {
    display: grid;
    gap: 18px;
}

.panel-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    padding: 34px 0 22px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.stat-tile {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef4ff 100%);
}

.stat-tile span {
    display: block;
    color: var(--ink-500);
}

.stat-tile strong {
    display: block;
    margin-top: 6px;
    font-size: 1.8rem;
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(28, 80, 173, 0.08);
    text-align: left;
}

th {
    color: var(--ink-500);
    font-weight: 600;
}

.auth-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    min-height: calc(100vh - 250px);
    padding: 34px 0;
}

.auth-art {
    position: relative;
    min-height: 520px;
    border-radius: 42px;
    background:
        radial-gradient(circle at 22% 24%, rgba(255, 169, 87, 0.32), transparent 20%),
        linear-gradient(145deg, #0f4699 0%, #2f73de 58%, #6ea5f7 100%);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.auth-art .device-card {
    width: min(390px, calc(100% - 48px));
    margin: 78px auto 0;
}

.auth-art .floating-note {
    left: 28px;
    bottom: 28px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

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

label {
    display: grid;
    gap: 8px;
    color: var(--ink-900);
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(23, 74, 167, 0.14);
    background: #fff;
    color: var(--ink-900);
    outline: none;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(37, 103, 221, 0.58);
    box-shadow: 0 0 0 4px rgba(40, 111, 236, 0.12);
}

.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(24, 81, 175, 0.05);
    border: 1px solid rgba(23, 74, 167, 0.1);
}

.checkbox input {
    width: auto;
}

.helper-text {
    color: var(--ink-500);
    font-size: 0.96rem;
}

.empty-card {
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(24, 81, 175, 0.08);
    color: var(--blue-900);
    font-weight: 700;
}

.checklist {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(24, 81, 175, 0.05);
    border: 1px solid rgba(23, 74, 167, 0.1);
}

.checklist-item.done {
    background: rgba(32, 166, 92, 0.08);
    border-color: rgba(32, 166, 92, 0.16);
}

.checklist-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(24, 81, 175, 0.1);
    color: var(--blue-900);
    font-size: 0.88rem;
    font-weight: 700;
}

.checklist-item.done .checklist-mark {
    background: rgba(32, 166, 92, 0.12);
    color: #127344;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 28px;
    padding: 48px 0 20px;
}

.site-footer {
    margin-top: 48px;
    background: linear-gradient(180deg, rgba(12, 62, 144, 0.04), rgba(12, 62, 144, 0.08));
    border-top: 1px solid rgba(12, 62, 144, 0.08);
}

.footer-brand {
    margin-bottom: 16px;
}

.site-footer h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.panel-card h1,
.panel-card h2,
.detail-card h2,
.empty-card h1,
.empty-card h3 {
    margin-top: 0;
    letter-spacing: -0.04em;
}

.site-footer p,
.site-footer a {
    display: block;
    margin: 0 0 10px;
    color: var(--ink-700);
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0 28px;
    color: var(--ink-500);
    font-size: 0.94rem;
    border-top: 1px solid rgba(12, 62, 144, 0.08);
}

@media (max-width: 1024px) {
    .header-top,
    .hero-shell,
    .page-hero,
    .detail-grid,
    .panel-layout,
    .auth-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-metrics,
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-actions {
        justify-content: end;
    }

    .hero-visual {
        min-height: 440px;
    }
}

@media (max-width: 760px) {
    .header-top {
        gap: 18px;
    }

    .brand {
        font-size: 1.7rem;
    }

    .nav-inner {
        display: block;
        padding: 14px 0;
    }

    .nav-toggle {
        display: inline-flex;
        padding: 0;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 4px;
        margin-top: 14px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
    }

    .hero-copy p,
    .section-heading p,
    .hero-panel p,
    .auth-card p {
        font-size: 1rem;
    }

    .hero-metrics,
    .card-grid,
    .stats-grid,
    .field-grid {
        grid-template-columns: 1fr;
    }

    .device-products {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
