/* ==========================================
   CUSTOM PROPERTIES — WARM EDITORIAL
   ========================================== */
:root {
    --bg:          #f5f0e8;
    --bg-white:    #ffffff;
    --card:        #ffffff;
    --primary:     #2563eb;
    --primary-hover: #1d4ed8;
    --primary-dark:  #1a1714;
    --primary-soft:  #eff6ff;
    --primary-mid:   #bfdbfe;
    --text:        #1a1714;
    --muted:       #78716c;
    --border:      #e5ddd3;
    --border-mid:  #cec4b8;
    --shadow-sm:   0 1px 4px rgba(28, 26, 23, 0.06);
    --shadow-md:   0 6px 28px rgba(28, 26, 23, 0.09);
    --radius-sm:   14px;
    --radius-md:   22px;
    --radius-lg:   32px;
    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
    line-height: 1.75;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, p { margin-top: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ==========================================
   HEADER
   ========================================== */
.site-header {
    align-items: center;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    display: flex;
    height: 64px;
    justify-content: space-between;
    padding: 0 36px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    align-items: center;
    display: inline-flex;
    text-decoration: none;
}

.logo img {
    display: block;
    height: 32px;
    width: auto;
}

.header-nav {
    align-items: center;
    display: flex;
    gap: 2px;
}

.header-nav a {
    border-radius: 999px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 14px;
    text-decoration: none;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.header-nav a:hover {
    background: var(--bg);
    color: var(--text);
}

.header-nav a.nav-cta {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    margin-left: 10px;
}

.header-nav a.nav-cta:hover {
    background: var(--primary-hover);
    color: #fff;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    height: 36px;
    justify-content: center;
    padding: 4px;
    width: 36px;
}

.hamburger span {
    background: var(--text);
    border-radius: 2px;
    display: block;
    height: 1.5px;
    transition: transform 0.22s var(--ease), opacity 0.22s;
    width: 100%;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================
   MOBILE NAV
   ========================================== */
.mobile-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    position: sticky;
    top: 64px;
    transition: max-height 0.3s var(--ease);
    z-index: 99;
}

.mobile-nav.open { max-height: 400px; }

.mobile-nav a {
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    padding: 16px 24px;
    text-decoration: none;
    transition: background 0.12s;
}

.mobile-nav a:hover { background: var(--bg); }
.mobile-nav a:last-child { color: var(--primary); font-weight: 700; }

/* ==========================================
   HERO
   ========================================== */
.hero-bg {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    background: radial-gradient(ellipse 60% 80% at 100% 30%, rgba(37, 99, 235, 0.04), transparent);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.hero {
    align-items: center;
    display: grid;
    gap: 64px;
    grid-template-columns: 1fr 1fr;
    margin: 0 auto;
    max-width: 1160px;
    min-height: calc(100vh - 64px);
    padding: 80px 36px;
    position: relative;
}

/* ==========================================
   EYEBROW
   ========================================== */
.eyebrow {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 20px;
    padding: 5px 12px;
    text-transform: uppercase;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1 {
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(26px, 3.2vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 14px;
}

h3 {
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.lead {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 420px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.button {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 14.5px;
    font-weight: 700;
    gap: 8px;
    height: 50px;
    padding: 0 26px;
    text-decoration: none;
    transition: background 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.button.primary {
    background: var(--primary);
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.24);
    color: #fff;
}

.button.primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.36);
    transform: translateY(-2px);
}

.button.ghost {
    background: transparent;
    border: 1.5px solid var(--border-mid);
    color: var(--text);
}

.button.ghost:hover {
    background: var(--bg);
    border-color: var(--text);
    transform: translateY(-1px);
}

.button.white {
    background: #fff;
    color: var(--primary-dark);
}

.button.white:hover {
    background: #f8f5f0;
    transform: translateY(-2px);
}

/* ==========================================
   SOCIAL PROOF
   ========================================== */
.social-proof {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-size: 13px;
    gap: 8px;
    margin: 0;
}

.social-proof::before {
    animation: pulse-green 2.4s infinite;
    background: #22c55e;
    border-radius: 50%;
    content: "";
    display: block;
    flex-shrink: 0;
    height: 8px;
    width: 8px;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

/* ==========================================
   HERO VISUAL
   ========================================== */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.visual-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 22px;
}

.main-card { border-radius: var(--radius-lg); }

.sub-cards {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr auto;
}

.page-card,
.attr-card {
    border-radius: var(--radius-md);
    padding: 18px;
}

.attr-card { min-width: 148px; }

.visual-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.visual-head-left { align-items: center; display: flex; gap: 10px; }

.dot-live {
    animation: pulse-green 2.4s infinite;
    background: #22c55e;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
    height: 8px;
    width: 8px;
}

.visual-head strong { font-size: 15px; font-weight: 700; }

.badge {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
}

.kpi-row {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 18px;
}

.kpi {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.kpi-label {
    color: var(--muted);
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.kpi-value {
    color: var(--text);
    display: block;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 4px;
}

.kpi-delta { display: block; font-size: 11px; font-weight: 700; }
.kpi-delta.up { color: #16a34a; }

.chart-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.bar-chart {
    align-items: flex-end;
    display: flex;
    gap: 5px;
    height: 68px;
}

.bar {
    background: var(--primary-mid);
    border-radius: 3px 3px 0 0;
    flex: 1;
    height: var(--h);
}

.bar.active { background: var(--primary); }

.sub-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Page card */
.page-list { display: flex; flex-direction: column; gap: 9px; }

.page-item {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: auto 1fr auto;
}

.page-name { font-size: 11.5px; font-weight: 600; white-space: nowrap; }

.page-bar-track {
    background: var(--bg);
    border-radius: 999px;
    height: 5px;
    overflow: hidden;
}

.page-bar {
    background: var(--primary);
    border-radius: 999px;
    height: 100%;
    width: var(--w);
}

.page-count { color: var(--muted); font-size: 11px; font-weight: 700; }

/* Attr card (gender + age) */
.attr-gender { margin-bottom: 14px; }

.attr-gender-bar {
    border-radius: 999px;
    display: flex;
    height: 8px;
    margin-bottom: 6px;
    overflow: hidden;
}

.agb-female { background: #f472b6; width: var(--w); }
.agb-male   { background: #60a5fa; flex: 1; }

.attr-gender-labels {
    display: flex;
    font-size: 10.5px;
    font-weight: 700;
    justify-content: space-between;
}

.agb-f-label { color: #db2777; }
.agb-m-label { color: #2563eb; }

.attr-ages { display: flex; flex-direction: column; gap: 7px; }

.attr-age-row {
    align-items: center;
    display: grid;
    gap: 6px;
    grid-template-columns: 28px 1fr;
}

.attr-age-name { color: var(--muted); font-size: 10px; font-weight: 700; }

.attr-age-track { background: var(--bg); border-radius: 999px; height: 5px; overflow: hidden; }

.attr-age-bar { background: var(--primary); border-radius: 999px; height: 100%; width: var(--w); }

/* ==========================================
   SECTIONS
   ========================================== */
.section {
    margin: 0 auto;
    max-width: 1160px;
    padding: 96px 36px;
}

.section-head {
    margin-bottom: 52px;
    max-width: 600px;
}

.section-head h2 { margin-bottom: 16px; }

.section-lead {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* ==========================================
   PROBLEMS  (on white bg)
   ========================================== */
.problems-bg {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.problem-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr);
}

.problem-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.22s var(--ease);
}

.problem-card:hover {
    border-color: var(--border-mid);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.problem-icon { font-size: 28px; line-height: 1; margin-bottom: 16px; }

.problem-card h3 {
    color: var(--text);
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.problem-card p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }

/* ==========================================
   FEATURES  (on cream bg)
   ========================================== */
.feature-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, 1fr);
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    border-color: var(--border-mid);
    box-shadow: var(--shadow-md);
}

.feature-icon { font-size: 26px; line-height: 1; margin-bottom: 14px; }

.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 0; }

/* ==========================================
   DATA SHOWCASE  (on white bg)
   ========================================== */
.showcase-bg {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.showcase-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr);
}

.showcase-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.showcase-card:hover { border-color: var(--border-mid); box-shadow: var(--shadow-sm); }

.showcase-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

/* Gender split */
.gs-bar-wrap { margin-bottom: 10px; }

.gs-bar {
    border-radius: 999px;
    display: flex;
    height: 10px;
    overflow: hidden;
}

.gs-female { background: #f472b6; width: var(--w); }
.gs-male   { background: #60a5fa; flex: 1; }

.gs-legend { align-items: center; display: flex; gap: 18px; }

.gs-legend span {
    align-items: center;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
}

.gs-legend strong { font-size: 15px; font-weight: 800; }

.gs-dot { border-radius: 50%; display: inline-block; height: 8px; width: 8px; }
.gs-dot.female { background: #f472b6; }
.gs-dot.male   { background: #60a5fa; }

/* Age bars */
.age-bars { display: flex; flex-direction: column; gap: 7px; }

.age-row {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 40px 1fr 30px;
}

.age-row.peak .age-lbl,
.age-row.peak .age-num { color: var(--primary); font-weight: 800; }

.age-lbl { color: var(--muted); font-size: 11px; font-weight: 600; }

.age-track { background: var(--bg-white); border-radius: 999px; height: 6px; overflow: hidden; }

.age-fill { background: var(--primary-mid); border-radius: 999px; height: 100%; width: var(--w); }
.age-fill.peak { background: var(--primary); }

.age-num { color: var(--muted); font-size: 11px; font-weight: 700; text-align: right; }

/* QR list */
.qr-list { display: flex; flex-direction: column; gap: 10px; }

.qr-item {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: auto 1fr auto;
}

.qr-name { font-size: 12px; font-weight: 600; white-space: nowrap; }

.qr-track { background: var(--bg-white); border-radius: 999px; height: 6px; overflow: hidden; }
.qr-bar   { background: var(--primary); border-radius: 999px; height: 100%; width: var(--w); }

.qr-num { color: var(--muted); font-size: 11px; font-weight: 700; text-align: right; }

/* Source list */
.src-list { display: flex; flex-direction: column; gap: 8px; }

.src-item {
    align-items: center;
    display: grid;
    gap: 6px;
    grid-template-columns: 8px auto 1fr auto;
}

.src-dot { border-radius: 50%; display: block; height: 8px; width: 8px; }
.src-dot.organic { background: var(--primary); }
.src-dot.direct  { background: var(--muted); }
.src-dot.social  { background: #e1306c; }
.src-dot.qr      { background: #0ea5e9; }

.src-name { font-size: 12px; font-weight: 600; white-space: nowrap; }

.src-track { background: var(--bg-white); border-radius: 999px; height: 5px; overflow: hidden; }
.src-bar   { background: var(--c, var(--primary)); border-radius: 999px; height: 100%; width: var(--w); }

.src-pct { color: var(--muted); font-size: 11px; font-weight: 700; text-align: right; }

/* Device vertical chart */
.dc-chart { align-items: flex-end; display: flex; gap: 14px; padding-top: 4px; }

.dc-col {
    align-items: center;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
}

.dc-bar-wrap {
    align-items: flex-end;
    display: flex;
    height: 80px;
    justify-content: center;
    width: 100%;
}

.dc-bar {
    background: var(--primary-mid);
    border-radius: 4px 4px 0 0;
    height: var(--h);
    width: 100%;
}

.dc-col:first-child .dc-bar { background: var(--primary); }

.dc-pct { color: var(--text); font-size: 13px; font-weight: 800; letter-spacing: -0.02em; }
.dc-name { color: var(--muted); font-size: 11px; font-weight: 600; }

/* Region list */
.region-list { display: flex; flex-direction: column; gap: 9px; }

.region-item { align-items: center; display: flex; gap: 10px; }

.region-rank {
    align-items: center;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--muted);
    display: inline-flex;
    font-size: 10.5px;
    font-weight: 800;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.region-item:first-child .region-rank { background: var(--primary); border-color: transparent; color: #fff; }

.region-name { flex: 1; font-size: 13px; font-weight: 600; }
.region-count { color: var(--muted); font-size: 12px; font-weight: 700; }

/* ==========================================
   REPORT DETAILS  (on cream bg)
   ========================================== */
.report-bg { background: var(--bg); border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); }

.report-list { border-top: 1px solid var(--border); }

.report-item {
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: 24px;
    grid-template-columns: 48px 1fr;
    padding: 28px 0;
}

.report-num { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; margin-top: 2px; }

.report-content strong { color: var(--text); display: block; font-size: 16px; font-weight: 700; margin-bottom: 6px; }

.report-content p { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 0; }

/* ==========================================
   FLOW  (on white bg)
   ========================================== */
.flow-bg {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.flow-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
}

.flow-grid::before {
    background: var(--border);
    content: "";
    height: 1px;
    left: 76px;
    position: absolute;
    right: 76px;
    top: 24px;
    z-index: 0;
}

.flow-step { position: relative; }

.flow-num {
    align-items: center;
    background: var(--primary);
    border: 3px solid var(--bg-white);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--border);
    color: #fff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    height: 48px;
    justify-content: center;
    margin-bottom: 22px;
    position: relative;
    width: 48px;
    z-index: 1;
}

.flow-step h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }

.flow-step p { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 0; }

/* ==========================================
   FAQ  (on cream bg)
   ========================================== */
.faq-bg { background: var(--bg); border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); }

.faq-list { border-top: 1px solid var(--border); max-width: 720px; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
    cursor: pointer;
    font-size: 15.5px;
    font-weight: 600;
    list-style: none;
    padding: 20px 40px 20px 0;
    position: relative;
    user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    color: var(--muted);
    content: "+";
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p { color: var(--muted); font-size: 14.5px; line-height: 1.75; margin: 0 0 20px; }

/* ==========================================
   CTA  (dark)
   ========================================== */
.cta-wrap { padding: 0 36px 96px; }

.cta-section {
    align-items: center;
    background: var(--primary-dark);
    border-radius: var(--radius-lg);
    color: #fff;
    display: grid;
    gap: 48px;
    grid-template-columns: 1fr auto;
    margin: 0 auto;
    max-width: 1160px;
    overflow: hidden;
    padding: 64px;
    position: relative;
}

.cta-section::before {
    background: radial-gradient(ellipse 70% 90% at 90% 50%, rgba(37, 99, 235, 0.16), transparent);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.cta-content { position: relative; z-index: 1; }

.eyebrow.light {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
}

.cta-content h2 { color: #fff; margin-bottom: 12px; }

.cta-content p { color: rgba(255, 255, 255, 0.6); font-size: 16px; margin-bottom: 28px; }

.cta-metric {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 28px 36px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.cta-metric span {
    color: rgba(255, 255, 255, 0.5);
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.cta-metric strong {
    color: #fff;
    display: block;
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 4px;
}

.cta-metric em { color: rgba(255, 255, 255, 0.4); font-size: 13px; font-style: normal; font-weight: 700; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    align-items: center;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    padding: 24px 36px;
}

.site-footer p { color: var(--muted); font-size: 13px; margin: 0; }

/* ==========================================
   TECH PAGE
   ========================================== */
.tech-page {
    background: var(--bg);
}

.tech-hero {
    align-items: center;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    margin: 0 auto;
    min-height: 560px;
    padding: 88px 36px;
}

.tech-hero > * {
    margin-inline: auto;
    max-width: 560px;
    width: 100%;
}

.tech-panel {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    color: #f8fafc;
    padding: 24px;
}

.tech-panel-head {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
}

.tech-flow-mini {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
    margin-bottom: 20px;
}

.tech-flow-mini span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #dbeafe;
    font-size: 12px;
    font-weight: 800;
    padding: 10px;
    text-align: center;
}

.tech-flow-mini i {
    background: #60a5fa;
    display: block;
    height: 1px;
    width: 18px;
}

.tech-code {
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: grid;
    gap: 8px;
    padding: 16px;
}

.tech-code span {
    color: #bfdbfe;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}

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

.tech-card,
.tech-note {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.tech-label {
    color: var(--primary);
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.tech-card p,
.tech-note p,
.process-item p {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 0;
}

.tech-bg {
    background: var(--bg-white);
    border-block: 1px solid var(--border);
}

.process-list {
    display: grid;
    gap: 14px;
}

.process-item {
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: grid;
    gap: 18px;
    grid-template-columns: auto 1fr;
    padding: 22px;
}

.process-item > span {
    align-items: center;
    background: var(--primary-soft);
    border: 1px solid var(--primary-mid);
    border-radius: 999px;
    color: var(--primary);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.process-item h3,
.tech-note h3 {
    margin-bottom: 6px;
}

/* ==========================================
   WEBSITE PAGE
   ========================================== */
.work-page {
    background: var(--bg);
}

.work-hero {
    align-items: center;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    margin: 0 auto;
    min-height: 560px;
    padding: 88px 36px;
}

.work-hero > * {
    margin-inline: auto;
    max-width: 560px;
    width: 100%;
}

.work-panel {
    display: grid;
    gap: 14px;
}

.work-panel-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.work-panel-card.active {
    background: var(--primary-dark);
    color: #fff;
}

.work-panel-card span {
    color: var(--primary);
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.work-panel-card.active span,
.work-panel-card.active p {
    color: rgba(255, 255, 255, 0.7);
}

.work-panel-card strong {
    display: block;
    font-size: 20px;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.work-panel-card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

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

.work-card,
.work-note {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.work-label {
    color: var(--primary);
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.work-card p,
.work-note p {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 0;
}

.work-bg {
    background: var(--bg-white);
    border-block: 1px solid var(--border);
}

.work-note h3 {
    margin-bottom: 6px;
}

/* ==========================================
   LIST PAGE
   ========================================== */
.list-page {
    background: #0f172a;
}

.list-main {
    margin: 0 auto;
    max-width: 980px;
    padding: 88px 24px;
    width: 100%;
}

.list-hero {
    color: #f8fafc;
    margin-bottom: 28px;
}

.list-hero p {
    color: #cbd5e1;
    margin-bottom: 0;
}

.report-links {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.report-links a {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    color: var(--text);
    display: block;
    padding: 22px;
    text-decoration: none;
    transition: transform 0.16s var(--ease), background 0.16s var(--ease);
}

.report-links a:hover {
    background: #fff;
    transform: translateY(-2px);
}

.report-links strong {
    display: block;
    font-size: 18px;
}

/* ==========================================
   SUB PAGE DESIGN
   ========================================== */
.sub-page {
    background: var(--bg);
    color: var(--text);
}

.sub-page .site-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: var(--border);
}

.sub-page .header-nav a {
    color: var(--muted);
}

.sub-page .header-nav a:hover {
    background: var(--bg);
    color: var(--text);
}

.sub-page .header-nav a.nav-cta {
    background: var(--text);
    color: #fff;
}

.sub-page .hamburger span {
    background: var(--text);
}

.sub-page .mobile-nav {
    background: var(--bg-white);
    border-bottom-color: var(--border);
}

.sub-page .mobile-nav a {
    border-bottom-color: var(--border);
    color: var(--text);
}

.sub-page .tech-page,
.sub-page .work-page {
    background: var(--bg);
}

.sub-page .tech-hero,
.sub-page .work-hero {
    background: transparent;
    border-bottom: 0;
    color: var(--text);
    display: block;
    margin: 0 auto;
    max-width: 1160px;
    min-height: 0;
    padding: 72px 36px 24px;
}

.sub-page .tech-hero h1,
.sub-page .work-hero h1 {
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.sub-page .tech-hero .lead,
.sub-page .work-hero .lead {
    font-size: 15.5px;
    margin-bottom: 24px;
}

.sub-page .tech-hero > *,
.sub-page .work-hero > * {
    margin-inline: 0;
    max-width: 720px;
    width: 100%;
}

.sub-page .tech-hero .lead,
.sub-page .work-hero .lead {
    color: var(--muted);
}

.sub-page .eyebrow {
    background: var(--bg);
    border-color: var(--border);
    color: var(--muted);
}

.sub-page .button.ghost {
    border-color: var(--border-mid);
    color: var(--text);
}

.sub-page .button.ghost:hover {
    background: var(--bg);
    border-color: var(--text);
}

.sub-page .tech-panel,
.sub-page .work-panel-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.sub-page .tech-panel {
    color: var(--text);
}

.sub-page .tech-panel-head {
    border-bottom-color: var(--border);
}

.sub-page .tech-flow-mini span {
    background: var(--primary-soft);
    border-color: var(--primary-mid);
    color: var(--primary);
}

.sub-page .tech-flow-mini i {
    background: var(--primary-mid);
}

.sub-page .tech-code {
    background: #f8fafc;
    border-color: var(--border);
}

.sub-page .tech-code span {
    color: #475569;
}

.sub-page .work-panel-card.active {
    background: var(--primary-dark);
}

.sub-page .work-panel-card strong,
.sub-page .work-panel-card p {
    color: var(--text);
}

.sub-page .work-panel-card.active strong {
    color: #fff;
}

.sub-page .work-panel-card.active p {
    color: rgba(255, 255, 255, 0.72);
}

.sub-page .section {
    background: transparent;
    color: var(--text);
}

.sub-page .tech-bg,
.sub-page .work-bg {
    background: transparent;
    border-block: 0;
}

.sub-page .tech-card,
.sub-page .tech-note,
.sub-page .work-card,
.sub-page .work-note,
.sub-page .process-item {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.sub-page .site-footer {
    background: var(--bg-white);
    border-top-color: var(--border);
}

.sub-page .site-footer p {
    color: var(--muted);
}

.sub-page .cta-section {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
}

.sub-page .cta-section p {
    color: var(--muted);
}

.sub-page .eyebrow.light {
    background: var(--bg);
    border-color: var(--border);
    color: var(--muted);
}

.sub-page .button.white {
    background: var(--text);
    color: #fff;
}

.sub-page .cta-metric {
    background: var(--bg);
    color: var(--text);
}

.sub-page .cta-metric span,
.sub-page .cta-metric em {
    color: var(--muted);
}

.sub-page .reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* ==========================================
   SCROLL REVEAL
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }

/* ==========================================
   RESPONSIVE — 1024px
   ========================================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 64px 36px 48px;
    }

    .hero-visual { display: none; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-hero { grid-template-columns: 1fr; min-height: auto; }
    .tech-grid,
    .tech-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .work-hero { grid-template-columns: 1fr; min-height: auto; }
    .work-grid,
    .work-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================
   RESPONSIVE — 900px
   ========================================== */
@media (max-width: 900px) {
    .header-nav { display: none; }
    .hamburger  { display: flex; }

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

    .flow-grid { gap: 24px; grid-template-columns: 1fr; }
    .flow-grid::before { display: none; }

    .cta-section { grid-template-columns: 1fr; padding: 48px; }
    .cta-metric  { display: none; }

    .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================
   RESPONSIVE — 680px
   ========================================== */
@media (max-width: 680px) {
    .feature-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   RESPONSIVE — 600px
   ========================================== */
@media (max-width: 600px) {
    .site-header { padding: 0 20px; }
    .hero        { padding: 40px 20px 36px; }
    .section     { padding: 64px 20px; }

    .cta-wrap    { padding: 0 20px 64px; }
    .cta-section { border-radius: var(--radius-md); padding: 36px 24px; }

    .showcase-grid { grid-template-columns: 1fr; }
    .tech-hero { padding: 56px 20px; }
    .tech-grid,
    .tech-columns { grid-template-columns: 1fr; }
    .tech-flow-mini { grid-template-columns: 1fr; }
    .tech-flow-mini i { height: 18px; justify-self: center; width: 1px; }
    .process-item { grid-template-columns: 1fr; }
    .work-hero { padding: 56px 20px; }
    .work-grid,
    .work-columns { grid-template-columns: 1fr; }
    .sub-page .tech-hero,
    .sub-page .work-hero {
        min-height: auto;
        padding-block: 72px;
    }

    .site-footer { flex-direction: column; gap: 8px; padding: 20px; text-align: center; }
}

/* ==========================================
   ACCESSIBILITY — REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .button,
    .problem-card,
    .feature-card,
    .showcase-card {
        transition: none;
    }

    .social-proof::before,
    .dot-live {
        animation: none;
    }
}
