/* Self-hosted Inter variable font â€” eliminates Google Fonts 3rd-party requests */

/* Cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Latin Extended */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ---------- CSS Custom Properties ---------- */
:root {
    --bg-page: #f8faff;
    --bg-white: #ffffff;
    --bg-soft: #f0f4ff;
    --bg-hover: #e8edf8;

    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-lighter: #a5b4fc;
    --accent-bg: #eef2ff;
    --accent-border: #c7d2fe;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --accent-glow: 0 4px 24px rgba(99, 102, 241, .25);
    --accent-glow-lg: 0 8px 40px rgba(99, 102, 241, .35);

    --text-heading: #1e1b4b;
    --text-body: #374151;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;

    --border: #e0e7ff;
    --border-hover: #c7d2fe;
    --shadow-sm: 0 1px 3px rgba(99, 102, 241, .04), 0 1px 2px rgba(0, 0, 0, .03);
    --shadow-md: 0 4px 16px rgba(99, 102, 241, .08), 0 2px 4px rgba(0, 0, 0, .03);
    --shadow-lg: 0 12px 40px rgba(99, 102, 241, .1), 0 4px 12px rgba(0, 0, 0, .03);
    --shadow-xl: 0 20px 60px rgba(99, 102, 241, .12);

    --success: #10b981;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --error: #ef4444;
    --error-bg: #fef2f2;

    --section-py: 5rem;
    --container-max: 1100px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-page);
    color: var(--text-body);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s var(--ease);
}

a:hover {
    color: var(--accent-light);
}

img {
    max-width: 100%;
    display: block;
}

.hidden {
    display: none !important;
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Section Helpers ---------- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
}

.section-eyebrow::before {
    content: '';
    width: 24px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-heading {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.25;
    margin-bottom: .75rem;
    letter-spacing: -.02em;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 600px;
    line-height: 1.7;
}

/* ---------- Reveal Animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: .75rem 0;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-heading);
}

.nav-brand .logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    font-weight: 800;
    color: #fff;
    box-shadow: var(--accent-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: .88rem;
    font-weight: 500;
    transition: color .2s var(--ease);
}

.nav-links a:hover {
    color: var(--text-heading);
}

.nav-cta {
    background: var(--accent-gradient);
    color: #fff !important;
    padding: .5rem 1.15rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .85rem;
    box-shadow: var(--accent-glow);
    transition: transform .15s var(--ease), box-shadow .15s var(--ease);
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--accent-glow-lg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-heading);
    border-radius: 2px;
    transition: .3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
    padding: 9rem 0 2.5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--accent-bg) 0%, var(--bg-page) 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-bg-orb--1 {
    width: 600px;
    height: 600px;
    top: -250px;
    right: -150px;
    background: radial-gradient(circle, rgba(79, 70, 229, .08) 0%, transparent 70%);
}

.hero-bg-orb--2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
    background: radial-gradient(circle, rgba(168, 85, 247, .07) 0%, transparent 70%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .85rem;
    background: var(--bg-white);
    border: 1px solid var(--accent-border);
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .5;
        transform: scale(1.5)
    }
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-heading);
    margin-bottom: 1rem;
    letter-spacing: -.03em;
}

.hero h1 .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.85rem;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 10px;
    box-shadow: var(--accent-glow);
    transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--accent-glow-lg);
    color: #fff;
}

.hero-cta .arrow {
    transition: transform .2s var(--ease);
}

.hero-cta:hover .arrow {
    transform: translateX(4px);
}

.hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .85rem 1.5rem;
    color: var(--text-muted);
    font-size: .93rem;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-white);
    transition: border-color .2s var(--ease), color .2s var(--ease);
}

.hero-secondary:hover {
    border-color: var(--accent-border);
    color: var(--accent);
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
}

.stat-label {
    font-size: .72rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* ---------- Features ---------- */
.features-section {
    padding: 0 0 var(--section-py) 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-border);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1rem;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: .45rem;
}

.feature-card p {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- Calculator ---------- */
.calculator-section {
    padding: 0 0 var(--section-py) 0;
}

.calc-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calc-header .section-eyebrow,
.calc-header .section-heading,
.calc-header .section-desc {
    display: block;
}

.calc-header .section-desc {
    margin: 0 auto;
}

.calc-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2.25rem;
    max-width: 700px;
    margin: 0 auto;
}

.radio-group {
    margin-bottom: 1.5rem;
}

.radio-group-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: .6rem;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: .7rem;
    cursor: pointer;
    padding: .6rem .9rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: background .15s var(--ease), border-color .15s var(--ease);
}

.radio-option:hover {
    background: var(--bg-soft);
}

.radio-option.active {
    background: var(--accent-bg);
    border-color: var(--accent-border);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color .2s var(--ease);
}

.radio-circle::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    transform: scale(0);
    transition: transform .2s var(--ease);
}

.radio-option.active .radio-circle {
    border-color: var(--accent);
}

.radio-option.active .radio-circle::after {
    transform: scale(1);
}

.radio-text {
    font-size: .93rem;
    font-weight: 500;
    color: var(--text-heading);
}

.select-group {
    margin-bottom: 1.5rem;
}

.select-group-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: .5rem;
}

.custom-select-wrapper {
    position: relative;
}

.custom-select-wrapper::after {
    content: 'â–¾';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: .95rem;
    pointer-events: none;
}

.custom-select {
    width: 100%;
    padding: .75rem 2.5rem .75rem 1rem;
    background: var(--bg-white);
    color: var(--text-heading);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: .93rem;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.custom-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .1);
}

.formula-display {
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
    padding: .8rem 1rem;
    margin-bottom: 1.5rem;
    font-family: 'Inter', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .02em;
}

.inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
    margin-bottom: 1.5rem;
}

.inputs-grid.three-cols {
    grid-template-columns: 1fr 1fr 1fr;
}

.inputs-grid.four-cols {
    grid-template-columns: 1fr 1fr;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
}

.input-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.input-field {
    width: 100%;
    padding: .7rem .9rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-heading);
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 500;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    min-width: 0;
}

.input-field::placeholder {
    color: var(--text-light);
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .1);
}

.k-input-group {
    margin-bottom: 1.5rem;
}

.equiv-section {
    margin-bottom: 1.5rem;
}

.equiv-section.hidden {
    display: none;
}

.equiv-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
}

.equiv-row.equiv-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.equiv-row.equiv-row-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.equiv-separator {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    padding: .6rem 0;
}

.btn-row {
    display: flex;
    gap: .6rem;
    margin-bottom: 1.25rem;
}

.btn-calculate {
    flex: 1;
    padding: .85rem 1.25rem;
    background: var(--accent-gradient);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--accent-glow);
    transition: transform .12s var(--ease), box-shadow .15s var(--ease);
}

.btn-calculate:hover {
    transform: translateY(-1px);
    box-shadow: var(--accent-glow-lg);
}

.btn-calculate:active {
    transform: translateY(0) scale(.98);
}

.btn-reset {
    padding: .85rem 1.25rem;
    background: var(--bg-white);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: .15s var(--ease);
}

.btn-reset:hover {
    background: var(--error-bg);
    color: var(--error);
    border-color: #fecaca;
}

.error-msg {
    display: none;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    background: var(--error-bg);
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    color: var(--error);
    font-size: .88rem;
    font-weight: 500;
}

.error-msg.visible {
    display: block;
}

.result-area {
    display: none;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    animation: fadeSlideUp .35s var(--ease);
}

.result-area.visible {
    display: block;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.result-title {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .6rem;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: .8rem;
}

.result-steps {
    border-top: 1px solid var(--success-border);
    padding-top: .8rem;
}

.result-steps h4 {
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .5rem;
}

.result-steps ol {
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.result-steps li {
    font-size: .88rem;
    color: var(--text-body);
    line-height: 1.6;
}

.result-steps li strong {
    color: var(--text-heading);
}

/* ---------- How It Works ---------- */
.hiw-section {
    padding: 0 0 var(--section-py) 0;
    background: var(--bg-white);
}

.steps-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 2.5rem;
    margin-bottom: 3rem;
}

.step-card {
    flex: 1;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--accent-glow);
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: .4rem;
}

.step-card p {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-connector {
    width: 40px;
    flex-shrink: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-border), var(--accent));
    margin-top: 3.5rem;
    opacity: .6;
}

.gcf-box {
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 1rem;
    text-align: center;
}

.gcf-box-label {
    font-size: .85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1.5rem;
}

.gcf-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.gcf-bubble {
    background: var(--bg-white);
    border: 2px solid var(--accent-border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    min-width: 110px;
    text-align: center;
}

.gcf-bubble-label {
    font-size: .7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .25rem;
}

.gcf-bubble-value {
    font-size: .95rem;
    font-weight: 800;
    color: var(--text-heading);
}

.gcf-result {
    border-color: var(--success);
    background: var(--success-bg);
}

.gcf-result-value {
    color: var(--success);
    font-size: 1.2rem;
}

.gcf-arrow {
    font-size: 1.4rem;
    color: var(--accent-lighter);
    font-weight: 700;
}

/* ---------- Content Section ---------- */
.content-section {
    padding: 0 0 var(--section-py) 0;
}

.toc-box {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.toc-box h2 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .75rem;
}

.toc-box ul {
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.toc-box li {
    font-size: .9rem;
}

.toc-box a {
    color: var(--accent);
    font-weight: 500;
}

.toc-box a:hover {
    text-decoration: underline;
}

.content-blocks {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.content-block {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}

.content-block:last-child {
    border-bottom: none;
}

.content-block h2 {
    font-size: clamp(1.3rem, 2.8vw, 1.75rem);
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1rem;
    letter-spacing: -.02em;
}

.content-block p {
    color: var(--text-body);
    margin-bottom: .9rem;
    line-height: 1.8;
}

.content-block p:last-child {
    margin-bottom: 0;
}

.content-block ul,
.content-block ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.content-block li {
    font-size: .97rem;
    color: var(--text-body);
    line-height: 1.7;
}

.content-block strong {
    color: var(--text-heading);
}

.highlight-box {
    background: var(--accent-bg);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: .85rem 1rem;
    margin: 1rem 0;
    font-size: .95rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* --- Visual: Bar comparison --- */
.visual-bar-wrap {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.visual-bar-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem;
}

.vb-track {
    flex: 1;
    height: 12px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden;
}

.vb-fill {
    height: 100%;
    border-radius: 100px;
}

/* --- Visual: Coprime grid --- */
.coprime-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.coprime-item {
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    border: 2px solid;
}

.coprime--yes {
    border-color: var(--success);
    background: var(--success-bg);
}

.coprime--no {
    border-color: #fca5a5;
    background: var(--error-bg);
}

/* --- Visual: Use cases grid --- */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.use-case-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.use-case-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-border);
}

/* --- Visual: Factor diagram --- */
.factor-diagram {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.factor-chip {
    padding: .2rem .5rem;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 600;
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.factor-chip--common {
    background: var(--accent-bg);
    border-color: var(--accent-border);
    color: var(--accent);
}

/* --- Visual: Conversion steps --- */
.conversion-steps {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.cs-step {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .6rem .9rem;
}

.cs-step--result {
    border-color: var(--accent-border);
    background: var(--accent-bg);
}

.cs-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Visual: 3-number bar chart --- */
.tnd-interactive {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    justify-content: center;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.tnd-bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
}

.tnd-bar {
    width: 32px;
    border-radius: 4px 4px 0 0;
}

.tnd-bar-wrap span {
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-heading);
}

.tnd-row {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    justify-content: center;
}

.tnd-divider {
    text-align: center;
    font-size: .9rem;
    font-weight: 700;
    color: var(--accent);
    padding: .4rem 0;
}

.tnd-explainer {
    text-align: center;
}

.tnd-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: .3rem;
}

.tnd-desc {
    font-size: .85rem;
    color: var(--text-muted);
}

.tnd-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
}

/* ---------- FAQ ---------- */
.faq-section {
    padding: 0 0 var(--section-py) 0;
    background: var(--bg-white);
}

.faq-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.faq-item {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .2s var(--ease);
}

.faq-item.open,
.faq-item:hover {
    border-color: var(--accent-border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: .97rem;
    font-weight: 600;
    color: var(--text-heading);
    text-align: left;
}

.faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .25s var(--ease);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer-inner {
    padding: .1rem 1.25rem 1.1rem;
    font-size: .93rem;
    color: var(--text-body);
    line-height: 1.75;
}

/* ---------- Footer ---------- */
.footer {
    padding: 2.5rem 0;
    background: var(--text-heading);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.footer-brand .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    font-weight: 800;
    color: #fff;
}

.footer-brand-text {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: .88rem;
    transition: color .2s var(--ease);
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    color: #64748b;
    font-size: .8rem;
}

/* ---------- Responsive ---------- */
@media(max-width:900px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:768px) {
    :root {
        --section-py: 3.5rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: .5rem 0;
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: .75rem 1.5rem;
        font-size: .95rem;
    }

    .nav-cta {
        border-radius: 0;
        box-shadow: none;
        background: var(--accent-bg);
        color: var(--accent) !important;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 7rem 0 3.5rem;
    }

    .hero-stats {
        gap: 1rem;
        padding: .75rem 1.25rem;
    }

    .stat-divider {
        display: none;
    }

    .steps-row {
        flex-direction: column;
        align-items: stretch;
    }

    .step-connector {
        width: 2px;
        height: 24px;
        margin: 0 auto;
    }

    .gcf-diagram {
        flex-direction: column;
    }

    .gcf-arrow {
        transform: rotate(90deg);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .coprime-grid {
        grid-template-columns: 1fr 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr 1fr;
    }

    .factor-diagram {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .equiv-row.equiv-row-3 {
        grid-template-columns: 1fr 1fr;
    }

    .equiv-row.equiv-row-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .coprime-grid {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr 1fr;
    }

    .calc-wrapper {
        padding: 1.5rem;
    }

    .inputs-grid.three-cols {
        grid-template-columns: 1fr 1fr;
    }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SUBâ€‘PAGES â€” Shared Styles for About, Blog, Contact, Terms, Privacy, Sitemap
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.page-content {
    padding: 6rem 0 4rem;
    min-height: 60vh;
}

/* â”€â”€â”€ Page Hero â”€â”€â”€ */
.page-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.page-badge {
    display: inline-block;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: .78rem;
    font-weight: 700;
    padding: .35rem 1rem;
    border-radius: 999px;
    letter-spacing: .04em;
    margin-bottom: 1rem;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--text-heading);
    line-height: 1.15;
    margin-bottom: .8rem;
}

.text-accent {
    color: var(--accent);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* â”€â”€â”€ Content Cards â”€â”€â”€ */
.content-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 2.2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease;
}

.content-card:hover {
    box-shadow: var(--shadow-md);
}

.content-card h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1rem;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.content-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 1.2rem 0 .5rem;
}

.content-card p {
    font-size: .95rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: .8rem;
}

.content-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.content-card a:hover {
    text-decoration: underline;
}

/* â”€â”€â”€ Feature Grid (About) â”€â”€â”€ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-item {
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: .8rem;
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: .4rem;
}

.feature-item p {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* â”€â”€â”€ Styled List â”€â”€â”€ */
.styled-list {
    list-style: none;
    padding: 0;
    margin: .5rem 0;
}

.styled-list li {
    position: relative;
    padding: .55rem 0 .55rem 1.5rem;
    font-size: .93rem;
    color: var(--text-body);
    line-height: 1.6;
}

.styled-list li::before {
    content: 'â†’';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.styled-list.compact li {
    padding: .35rem 0 .35rem 1.5rem;
}

.styled-list a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.styled-list a:hover {
    text-decoration: underline;
}

/* â”€â”€â”€ CTA Card â”€â”€â”€ */
.cta-card {
    text-align: center;
    background: var(--bg-white);
    border-color: var(--border);
}

.page-cta {
    display: inline-block;
    background: var(--accent-gradient);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    padding: .85rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: var(--accent-glow);
    transition: transform .2s ease, box-shadow .2s ease;
    margin-top: .5rem;
}

.page-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--accent-glow-lg);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   BLOG PAGE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.blog-category {
    background: var(--accent-bg);
    color: var(--accent);
    font-size: .72rem;
    font-weight: 700;
    padding: .3rem .85rem;
    border-radius: 999px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.blog-date {
    font-size: .78rem;
    color: var(--text-light);
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.35;
    margin-bottom: .7rem;
}

.blog-excerpt {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.blog-read-time {
    font-size: .78rem;
    color: var(--text-light);
    font-weight: 500;
}

.blog-link {
    font-size: .88rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    transition: color .2s ease;
}

.blog-link:hover {
    color: var(--accent-light);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CONTACT PAGE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.form-group label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: .9rem;
    font-family: inherit;
    background: var(--bg-soft);
    color: var(--text-body);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: .5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.contact-info-item svg {
    margin-top: .15rem;
    flex-shrink: 0;
}

.blog-category {
    background: var(--accent-bg);
    color: var(--accent);
    font-size: .72rem;
    font-weight: 700;
    padding: .3rem .85rem;
    border-radius: 999px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.blog-date {
    font-size: .78rem;
    color: var(--text-light);
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.35;
    margin-bottom: .7rem;
}

.blog-excerpt {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.blog-read-time {
    font-size: .78rem;
    color: var(--text-light);
    font-weight: 500;
}

.blog-link {
    font-size: .88rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    transition: color .2s ease;
}

.blog-link:hover {
    color: var(--accent-light);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CONTACT PAGE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.form-group label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: .9rem;
    font-family: inherit;
    background: var(--bg-soft);
    color: var(--text-body);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: .5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.contact-info-item svg {
    margin-top: .15rem;
    flex-shrink: 0;
}

.contact-info-item strong {
    display: block;
    font-size: .85rem;
    color: var(--text-heading);
    margin-bottom: .1rem;
}

.contact-info-item a {
    font-size: .85rem;
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LEGAL PAGES (Terms, Privacy)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SITEMAP PAGE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.sitemap-list {
    display: grid;
    gap: .5rem;
    margin-top: 1rem;
}

.sitemap-item {
    display: flex;
    flex-direction: column;
    padding: .9rem 1.2rem;
    border-radius: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

.sitemap-item:hover {
    background: var(--accent-bg);
    border-color: var(--accent-border);
    transform: translateX(4px);
}

.sitemap-title {
    font-size: .93rem;
    font-weight: 700;
    color: var(--accent);
}

.sitemap-desc {
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: .2rem;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SUBâ€‘PAGES â€” Responsive
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 768px) {
    .page-content {
        padding: 5rem 0 3rem;
    }

    .content-card {
        padding: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SUB-PAGES â€” Dark Theme (hm-sub-page)
   Matches the homepage and tool-page dark design
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.hm-sub-page {
    --bg-page: #f8faff;
    --bg-white: rgba(255, 255, 255, 0.85);
    --bg-soft: rgba(238, 242, 255, 0.7);
    --bg-hover: rgba(224, 231, 255, 0.8);

    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-lighter: #06b6d4;
    --accent-bg: rgba(238, 242, 255, 0.8);
    --accent-border: rgba(99, 102, 241, 0.2);
    --accent-gradient: linear-gradient(130deg, #6366f1, #06b6d4);
    --accent-glow: 0 10px 34px rgba(99, 102, 241, 0.18);
    --accent-glow-lg: 0 14px 46px rgba(6, 182, 212, 0.16);

    --text-heading: #1e1b4b;
    --text-body: #374151;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    --border: rgba(99, 102, 241, 0.15);
    --border-hover: rgba(99, 102, 241, 0.3);
    --shadow-sm: 0 4px 20px rgba(99, 102, 241, 0.06);
    --shadow-md: 0 12px 30px rgba(99, 102, 241, 0.08);
    --shadow-lg: 0 18px 55px rgba(99, 102, 241, 0.1);

    color: var(--text-body);
    background: radial-gradient(circle at 14% -5%, #ede9fe, transparent 42%),
        radial-gradient(circle at 85% 0%, #cffafe, transparent 35%), var(--bg-page);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* â”€â”€â”€ Accent text highlight â”€â”€â”€ */
.hm-accent-text {
    background: linear-gradient(130deg, #6366f1, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* â”€â”€â”€ Content Cards (dark) â”€â”€â”€ */
.hm-content-card {
    padding: 1.8rem 2rem;
    margin-bottom: 1.2rem;
}

.hm-content-card h2 {
    margin: 0 0 .9rem;
    color: #1e1b4b;
    font-family: 'Sora', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hm-content-card h3 {
    margin: 1.2rem 0 .5rem;
    color: #312e81;
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.hm-content-card p {
    margin: 0 0 .8rem;
    color: #4b5563;
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    line-height: 1.75;
}

.hm-content-card p:last-child {
    margin-bottom: 0;
}

.hm-content-card a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: color 180ms ease;
}

.hm-content-card a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* â”€â”€â”€ Styled list (dark) â”€â”€â”€ */
.hm-styled-list {
    list-style: none;
    padding: 0;
    margin: .5rem 0;
}

.hm-styled-list li {
    position: relative;
    padding: .5rem 0 .5rem 1.6rem;
    font-family: 'DM Sans', sans-serif;
    font-size: .93rem;
    color: #4b5563;
    line-height: 1.65;
}

.hm-styled-list li::before {
    content: 'â†’';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: 700;
}

.hm-styled-list-compact li {
    padding: .3rem 0 .3rem 1.6rem;
}

.hm-styled-list a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.hm-styled-list a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* â”€â”€â”€ About page feature grid â”€â”€â”€ */
.hm-about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: .8rem;
}

.hm-about-item {
    background: rgba(238, 242, 255, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 14px;
    padding: 1.3rem;
    transition: transform .2s ease, border-color .2s ease;
}

.hm-about-item:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.35);
}

.hm-about-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: linear-gradient(125deg, #6366f1, #06b6d4);
    color: #ffffff;
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: .6rem;
    font-family: 'IBM Plex Mono', monospace;
}

.hm-about-item h3 {
    margin: 0 0 .35rem;
    color: #1e1b4b;
    font-family: 'Sora', sans-serif;
    font-size: .95rem;
}

.hm-about-item p {
    margin: 0;
    color: #6b7280;
    font-family: 'DM Sans', sans-serif;
    font-size: .88rem;
    line-height: 1.55;
}

/* â”€â”€â”€ CTA Card â”€â”€â”€ */
.hm-cta-card {
    text-align: center;
    border-color: rgba(99, 102, 241, 0.2);
}

.hm-page-cta {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: .92rem;
    font-weight: 700;
    background: linear-gradient(130deg, #6366f1, #06b6d4);
    border-radius: 999px;
    padding: .72rem 1.6rem;
    margin-top: .8rem;
    transition: transform 180ms ease, filter 180ms ease;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.25);
}

.hm-page-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    color: #ffffff;
}

/* â”€â”€â”€ Contact page layout â”€â”€â”€ */
.hm-contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.hm-contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hm-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-top: .5rem;
}

.hm-contact-info-item svg {
    margin-top: .15rem;
    flex-shrink: 0;
}

.hm-contact-info-item strong {
    display: block;
    font-size: .88rem;
    color: #1e1b4b;
    margin-bottom: .15rem;
    font-family: 'DM Sans', sans-serif;
}

.hm-contact-info-item a {
    font-size: .88rem;
    color: #6366f1;
    text-decoration: none;
    word-break: break-all;
}

.hm-contact-info-item a:hover {
    text-decoration: underline;
    color: #4f46e5;
}

/* â”€â”€â”€ Legal pages â”€â”€â”€ */
.hm-legal-content {
    max-width: 800px;
    margin: 0 auto;
}

/* â”€â”€â”€ Sitemap list (dark) â”€â”€â”€ */
.hm-sitemap-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .8rem;
}

.hm-sitemap-item {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .85rem 1.1rem;
    background: rgba(238, 242, 255, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 12px;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.hm-sitemap-item:hover {
    transform: translateX(4px);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(238, 242, 255, 0.8);
}

.hm-sitemap-title {
    font-family: 'Sora', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: #6366f1;
}

.hm-sitemap-item:hover .hm-sitemap-title {
    color: #4f46e5;
}

.hm-sitemap-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: .85rem;
    color: #6b7280;
    line-height: 1.5;
}

/* â”€â”€â”€ Responsive (sub-pages) â”€â”€â”€ */
@media (max-width: 768px) {
    .hm-content-card {
        padding: 1.3rem 1.2rem;
    }

    .hm-about-grid {
        grid-template-columns: 1fr;
    }

    .hm-contact-layout {
        grid-template-columns: 1fr;
    }
}

/* Shared hm page shell used by about/contact/privacy/terms/sitemap */
.hm-page {
    position: relative;
    min-height: 100vh;
    color: var(--text-body);
    overflow: hidden;
}

.hm-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.3;
    pointer-events: none;
}

.hm-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.4;
    pointer-events: none;
}

.hm-orb-a {
    width: 320px;
    height: 320px;
    background: #a78bfa;
    top: -120px;
    right: -90px;
}

.hm-orb-b {
    width: 260px;
    height: 260px;
    background: #22d3ee;
    left: -80px;
    bottom: 25%;
}

.hm-orb-c {
    width: 280px;
    height: 280px;
    background: #fb7185;
    right: 18%;
    bottom: -120px;
    opacity: 0.2;
}

.hm-wrap {
    width: min(1140px, calc(100% - 2.25rem));
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.hm-main {
    position: relative;
    z-index: 1;
    padding-bottom: 2.6rem;
}

.hm-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 250, 255, 0.6);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    transition: background-color 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.hm-nav .hm-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}

.hm-nav.is-scrolled {
    backdrop-filter: blur(12px);
    background: rgba(248, 250, 255, 0.95);
    border-bottom-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.08);
}

.hm-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-heading);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
}

.hm-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(130deg, #6366f1, #06b6d4);
    color: #ffffff;
    font-size: 0.74rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.hm-nav-links {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hm-nav-links a {
    color: #6b7280;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 180ms ease;
}

.hm-nav-links a:hover {
    color: #1e1b4b;
}

.hm-nav-cta {
    text-decoration: none;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    background: linear-gradient(130deg, #6366f1, #06b6d4);
    border-radius: 999px;
    padding: 0.58rem 1rem;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.hm-section {
    padding: 3rem 0;
}

.hm-headline {
    text-align: center;
    margin-bottom: 1.3rem;
}

.hm-eyebrow {
    margin: 0;
    color: #6366f1;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
}

.hm-headline h1,
.hm-headline h2 {
    margin: 0.5rem 0;
    color: #1e1b4b;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.55rem, 3.4vw, 2.35rem);
    letter-spacing: -0.015em;
}

.hm-headline p {
    margin: 0 auto;
    max-width: 760px;
    color: #6b7280;
    font-family: 'Inter', sans-serif;
    font-size: 0.99rem;
    line-height: 1.6;
}

.hm-card {
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.06);
}

.hm-footer {
    border-top: 1px solid rgba(99, 102, 241, 0.12);
    padding: 1rem 0 1.4rem;
    background: rgba(248, 250, 255, 0.95);
    position: relative;
    z-index: 1;
}

.hm-footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hm-footer p {
    margin: 0;
    color: #6b7280;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

.hm-footer-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hm-footer-links a {
    color: #6366f1;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
}

.hm-footer-links a:hover {
    color: #4f46e5;
}

@media (max-width: 940px) {
    .hm-nav-links {
        display: none;
    }
}

@media (max-width: 720px) {
    .hm-wrap {
        width: min(1140px, calc(100% - 1.3rem));
    }

    .hm-nav-cta {
        display: none;
    }
}

/* ------------ HomeMockup Component Styles ------------ */
  @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=IBM+Plex+Mono:wght@500;700&family=Sora:wght@600;700;800&display=swap');

  .hm-page {
    --hm-bg: #f8faff;
    --hm-surface: rgba(255, 255, 255, 0.85);
    --hm-surface-strong: rgba(255, 255, 255, 0.95);
    --hm-border: rgba(99, 102, 241, 0.18);
    --hm-text: #1e1b4b;
    --hm-muted: #6b7280;
    --hm-accent-a: #6366f1;
    --hm-accent-b: #06b6d4;
    --hm-accent-c: #f43f5e;
    --hm-shadow: 0 18px 55px rgba(99, 102, 241, 0.12);
    color: var(--hm-text);
    background: radial-gradient(circle at 14% -5%, #ede9fe, transparent 42%),
      radial-gradient(circle at 85% 0%, #cffafe, transparent 35%), var(--hm-bg);
    position: relative;
    overflow: hidden;
  }

  .hm-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.3;
    pointer-events: none;
  }

  .hm-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.25;
    pointer-events: none;
  }

  .hm-orb-a {
    width: 320px;
    height: 320px;
    background: #a78bfa;
    top: -120px;
    right: -90px;
  }

  .hm-orb-b {
    width: 260px;
    height: 260px;
    background: #22d3ee;
    left: -80px;
    bottom: 25%;
  }

  .hm-orb-c {
    width: 280px;
    height: 280px;
    background: #fb7185;
    right: 18%;
    bottom: -120px;
    opacity: 0.2;
  }

  .hm-wrap {
    width: min(1140px, calc(100% - 2.25rem));
    margin-inline: auto;
    position: relative;
    z-index: 1;
  }

  .hm-main {
    position: relative;
    z-index: 1;
    padding-bottom: 3rem;
  }

  .hm-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background-color 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
  }

  .hm-nav .hm-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
  }

  .hm-nav.is-scrolled {
    backdrop-filter: blur(12px);
    background: rgba(248, 250, 255, 0.95);
    border-bottom-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.08);
  }

  .hm-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--hm-text);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
  }

  .hm-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(130deg, #6366f1, #06b6d4);
    color: #ffffff;
    font-size: 0.74rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  }

  .hm-nav-links {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .hm-nav-links a {
    color: var(--hm-muted);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 180ms ease;
    white-space: nowrap;
  }

  .hm-nav-links a:hover {
    color: var(--hm-text);
  }

  .hm-nav-cta {
    text-decoration: none;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    background: linear-gradient(130deg, #6366f1, #06b6d4);
    border-radius: 999px;
    padding: 0.58rem 1rem;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  }

  .hm-hero {
    padding: 5.5rem 0 2.5rem;
    text-align: center;
  }

  .hm-kicker {
    display: inline-flex;
    padding: 0.35rem 0.78rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.25);
    background: rgba(238, 242, 255, 0.9);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .hm-hero h1 {
    margin: 0 0 0.85rem;
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4.9vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #1e1b4b;
  }

  .hm-hero p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--hm-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 1.06rem;
    line-height: 1.65;
  }

  .hm-hero-actions {
    margin-top: 1.4rem;
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
  }

  .hm-btn {
    text-decoration: none;
    padding: 0.74rem 1.15rem;
    border-radius: 11px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform 180ms ease, filter 180ms ease, border-color 180ms ease;
  }

  .hm-btn:hover {
    transform: translateY(-1px);
  }

  .hm-btn-primary {
    color: #fff;
    background: linear-gradient(120deg, #6366f1, #818cf8 58%, #06b6d4);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  }

  .hm-btn-secondary {
    color: #4b5563;
    border: 1px solid rgba(99, 102, 241, 0.25);
    background: rgba(255, 255, 255, 0.8);
  }

  .hm-stat-row {
    margin: 1.45rem auto 0;
    width: min(760px, 100%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .hm-stat-row div {
    border: 1px solid var(--hm-border);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    padding: 0.9rem 0.7rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.06);
  }

  .hm-stat-row strong {
    display: block;
    color: #1e1b4b;
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
  }

  .hm-stat-row span {
    color: #6b7280;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
  }

  .hm-section {
    padding: 3rem 0;
  }

  .hm-headline {
    text-align: center;
    margin-bottom: 1.3rem;
  }

  .hm-eyebrow {
    margin: 0;
    color: #6366f1;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
  }

  .hm-headline h1,
  .hm-headline h2 {
    margin: 0.5rem 0;
    color: #1e1b4b;
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.55rem, 3.4vw, 2.35rem);
    letter-spacing: -0.015em;
  }

  .hm-headline p {
    margin: 0 auto;
    max-width: 640px;
    color: var(--hm-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.99rem;
  }

  .hm-card {
    border: 1px solid var(--hm-border);
    border-radius: 18px;
    background: var(--hm-surface);
    backdrop-filter: blur(8px);
    box-shadow: var(--hm-shadow);
  }

  .hm-converter {
    margin: 0 auto;
    max-width: 980px;
    padding: 1.5rem;
  }

  .hm-division-section {
    padding-top: 1.2rem;
  }

  .hm-division-card {
    margin: 0 auto;
    max-width: 720px;
    padding: 1rem;
    background: rgba(11, 18, 43, 0.72);
  }

  .hm-division-card img {
    display: block;
    width: min(560px, 100%);
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    border: 1px solid rgba(125, 149, 219, 0.35);
    background: #d9d9d9;
  }

  .hm-toggle {
    display: inline-flex;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(238, 242, 255, 0.7);
    padding: 0.22rem;
    border-radius: 999px;
    margin: 0 auto 1rem;
  }

  .hm-toggle-btn {
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #6b7280;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.5rem 0.88rem;
  }

  .hm-toggle-btn.is-active {
    color: #ffffff;
    background: linear-gradient(125deg, #6366f1, #06b6d4);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  }

  .hm-input-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
  }

  .hm-field {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
  }

  .hm-field span {
    color: #4b5563;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
  }

  .hm-field input,
  .hm-field select {
    width: 100%;
    padding: 0.82rem 0.88rem;
    border-radius: 11px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: #1e1b4b;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.05rem;
  }

  .hm-result {
    margin-top: 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.15);
    padding-top: 1rem;
    text-align: center;
  }

  .hm-result-label {
    margin: 0;
    color: #6b7280;
    font-size: 0.74rem;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .hm-result-value {
    margin: 0.2rem 0;
    color: #1e1b4b;
    font-size: clamp(2rem, 5vw, 3.3rem);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .hm-formula {
    margin: 0;
    color: #6366f1;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.86rem;
  }

  .hm-copy-btn {
    margin-top: 0.72rem;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.8);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
  }

  .hm-copy-btn.is-copied {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(125deg, #06b6d4, #6366f1);
  }

  /* Ã¢â€â‚¬Ã¢â€â‚¬ SVG Interactive Diagram Ã¢â€â‚¬Ã¢â€â‚¬ */
  .hm-svg-diagram {
    margin-top: 1.25rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.06);
    overflow: hidden;
    position: relative;
  }

  .hm-svg-diagram::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
      circle at 20% 50%,
      rgba(99, 102, 241, 0.05),
      transparent 60%
    );
    pointer-events: none;
  }

  .hm-svg-diagram-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
  }

  .hm-svg-diagram-title {
    margin: 0;
    color: #1e1b4b;
    font-family: 'Sora', sans-serif;
    font-size: 0.93rem;
    letter-spacing: 0.01em;
  }

  .hm-svg-diagram-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    background: linear-gradient(130deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #6366f1;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 700;
  }

  .hm-svg-diagram-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.25rem;
    align-items: center;
    position: relative;
    z-index: 1;
  }

  .hm-svg-clock-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 16px rgba(107, 130, 255, 0.28));
  }

  .hm-svg-clock {
    width: 100%;
    max-width: 260px;
    height: auto;
    transition: transform 220ms ease;
  }

  .hm-svg-diagram:hover .hm-svg-clock {
    transform: scale(1.04);
  }

  .hm-svg-stats {
    display: flex;
    flex-direction: column;
    gap: 0.68rem;
  }

  .hm-svg-stat-card {
    background: rgba(238, 242, 255, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    padding: 0.62rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    transition: border-color 220ms ease;
  }

  .hm-svg-stat-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
  }

  .hm-svg-stat-formula {
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.06);
  }

  .hm-svg-stat-result {
    border-color: rgba(6, 182, 212, 0.25);
    background: rgba(6, 182, 212, 0.06);
  }

  .hm-svg-stat-label {
    color: #6b7280;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 700;
  }

  .hm-svg-stat-val {
    color: #1e1b4b;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.96rem;
    line-height: 1.4;
    word-break: break-all;
  }

  .hm-svg-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.15rem;
  }

  .hm-svg-progress-label {
    color: #6b7280;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap;
  }

  .hm-svg-progress-track {
    flex: 1;
    height: 9px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.12);
  }

  .hm-svg-progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    border-radius: inherit;
    transition: width 350ms cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
  }

  .hm-svg-progress-pct {
    color: #06b6d4;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    min-width: 3.2rem;
    text-align: right;
  }

  @media (max-width: 620px) {
    .hm-svg-diagram-body {
      grid-template-columns: 1fr;
    }
    .hm-svg-clock-wrap {
      max-width: 230px;
      margin: 0 auto;
    }
  }

  .hm-filter-row {
    display: flex;
    justify-content: center;
    gap: 0.62rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }

  .hm-filter-btn {
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: #6b7280;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 0.8rem;
    cursor: pointer;
  }

  .hm-filter-btn.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(130deg, #6366f1, #06b6d4);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  }

  .hm-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.7rem;
  }

  .hm-chart-item {
    border-radius: 12px;
    min-height: 92px;
    padding: 0.8rem 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }

  .hm-chart-item:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.1);
  }

  .hm-chart-item:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
  }

  .hm-chart-item.is-copied {
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.4), 0 10px 28px rgba(6, 182, 212, 0.12);
  }

  .hm-chart-item.is-common {
    border-color: rgba(6, 182, 212, 0.35);
    background: rgba(236, 254, 255, 0.6);
  }

  .hm-chart-item.is-hidden {
    display: none;
  }

  .hm-minutes {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .hm-decimal {
    color: #1e1b4b;
    font-size: 1.35rem;
    font-family: 'IBM Plex Mono', monospace;
  }

  .hm-use-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .hm-use-card {
    min-height: 156px;
    padding: 1.45rem;
    background: var(--hm-surface-strong);
    transition: transform 180ms ease, border-color 180ms ease;
  }

  .hm-use-card:hover {
    transform: translateY(-4px);
    border-color: rgba(155, 180, 249, 0.42);
  }

  .hm-use-metric {
    margin: 0;
    color: #6366f1;
    font-size: 0.78rem;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .hm-use-card h3 {
    margin: 0.52rem 0 0.45rem;
    color: #1e1b4b;
    font-family: 'Sora', sans-serif;
    font-size: 1.12rem;
  }

  .hm-use-card p {
    margin: 0;
    color: var(--hm-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .hm-faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .hm-faq-item {
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
    overflow: hidden;
  }

  .hm-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.1rem;
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    color: #1e1b4b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .hm-faq-item summary::-webkit-details-marker {
    display: none;
  }

  .hm-faq-item summary::after {
    content: '+';
    color: #6366f1;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
  }

  .hm-faq-item[open] summary::after {
    content: '-';
  }

  .hm-faq-item p {
    margin: 0;
    padding: 0 1.1rem 1rem;
    color: #4b5563;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    line-height: 1.65;
  }

  /* Ã¢â€â‚¬Ã¢â€â‚¬ Learn Section Ã¢â€â‚¬Ã¢â€â‚¬ */
  .hm-learn-section {
    padding: 3.5rem 0;
  }

  .hm-learn-toc {
    max-width: 860px;
    margin: 0 auto 2rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    padding: 1.2rem 1.4rem;
    backdrop-filter: blur(6px);
  }

  .hm-learn-toc-label {
    margin: 0 0 0.7rem;
    color: #6366f1;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
  }

  .hm-learn-toc ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem 1.5rem;
  }

  .hm-learn-toc a {
    color: #6b7280;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.86rem;
    line-height: 1.6;
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    transition: color 180ms ease;
  }

  .hm-learn-toc a::before {
    content: 'â†’';
    color: rgba(99, 102, 241, 0.4);
    font-size: 0.78rem;
    flex-shrink: 0;
  }

  .hm-learn-toc a:hover {
    color: #1e1b4b;
  }

  .hm-learn-toc a:hover::before {
    color: #6366f1;
  }

  .hm-learn-articles {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .hm-learn-block {
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.6);
    padding: 1.5rem 1.6rem;
    transition: border-color 200ms ease;
  }

  .hm-learn-block:hover {
    border-color: rgba(99, 102, 241, 0.25);
  }

  .hm-learn-block:target {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.06);
  }

  .hm-learn-block h3 {
    margin: 0 0 0.75rem;
    color: #1e1b4b;
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
  }

  .hm-learn-block p {
    margin: 0 0 0.7rem;
    color: #4b5563;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .hm-learn-block p:last-child {
    margin-bottom: 0;
  }

  .hm-learn-block strong {
    color: #1e1b4b;
  }

  .hm-learn-block a {
    color: #6366f1;
    text-decoration: underline;
    text-decoration-color: rgba(99, 102, 241, 0.3);
    text-underline-offset: 2px;
    transition: color 180ms ease;
  }

  .hm-learn-block a:hover {
    color: #4f46e5;
  }

  .hm-learn-block ul,
  .hm-learn-block ol {
    margin: 0 0 0.7rem;
    padding-left: 1.4rem;
    color: #4b5563;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .hm-learn-block li {
    margin-bottom: 0.3rem;
  }

  .hm-learn-block li strong {
    color: #1e1b4b;
  }

  .hm-learn-formula-box {
    margin: 0.8rem 0;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(94, 125, 253, 0.3);
    background: rgba(94, 125, 253, 0.08);
    text-align: center;
  }

  .hm-learn-formula-box code {
    color: #c5d8ff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  .hm-learn-mini-table {
    margin: 0.8rem 0;
    border-radius: 12px;
    border: 1px solid rgba(138, 160, 231, 0.22);
    overflow: hidden;
    background: rgba(8, 15, 38, 0.65);
  }

  .hm-learn-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .hm-learn-row span {
    padding: 0.5rem 0.8rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.84rem;
    color: #c8d6f4;
    border-bottom: 1px solid rgba(138, 160, 231, 0.12);
    text-align: center;
  }

  .hm-learn-row-head span {
    color: #8fa5d4;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: rgba(14, 26, 60, 0.6);
  }

  .hm-learn-row:last-child span {
    border-bottom: none;
  }

  @media (max-width: 620px) {
    .hm-learn-toc ul {
      grid-template-columns: 1fr;
    }

    .hm-learn-block {
      padding: 1.1rem 1rem;
    }
  }

  .hm-footer {
    border-top: 1px solid rgba(99, 102, 241, 0.12);
    padding: 1rem 0 1.4rem;
    background: rgba(248, 250, 255, 0.95);
    position: relative;
    z-index: 1;
  }

  .hm-footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .hm-footer p {
    margin: 0;
    color: #6b7280;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
  }

  .hm-footer-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .hm-footer-links a {
    color: #6366f1;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
  }

  .hm-footer-links a:hover {
    color: #4f46e5;
  }

  @media (max-width: 940px) {
    .hm-nav-links {
      display: none;
    }

    .hm-input-grid {
      grid-template-columns: 1fr;
    }

    .hm-live-diagram-flow {
      grid-template-columns: 1fr;
      gap: 0.5rem;
    }

    .hm-live-arrow {
      transform: rotate(90deg);
      margin: -0.15rem auto;
    }
  }

  @media (max-width: 720px) {
    .hm-hero {
      padding-top: 4rem;
    }

    .hm-stat-row {
      grid-template-columns: 1fr;
    }

    .hm-use-grid {
      grid-template-columns: 1fr;
    }

    .hm-division-card {
      padding: 0.7rem;
    }

    .hm-wrap {
      width: min(1140px, calc(100% - 1.3rem));
    }

    .hm-nav-cta {
      display: none;
    }
  }

  /* â”€â”€ Article content sections â”€â”€ */
  .hm-article-card {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.75rem 1.9rem;
    background: rgba(12, 20, 48, 0.55);
  }

  .hm-article-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 400px);
    gap: 1.9rem;
    align-items: start;
  }

  .hm-article-text p {
    margin: 0 0 0.7rem;
    color: #b8c8ee;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .hm-article-text p:last-child {
    margin-bottom: 0;
  }

  .hm-article-text strong {
    color: #dce8ff;
  }

  .hm-article-text a {
    color: #8bb8ff;
    text-decoration: underline;
    text-decoration-color: rgba(139, 184, 255, 0.35);
    text-underline-offset: 2px;
    transition: color 180ms ease;
  }

  .hm-article-text a:hover {
    color: #c0d8ff;
  }

  .hm-article-text h3 {
    margin: 1.3rem 0 0.65rem;
    color: #f0f6ff;
    font-family: 'Sora', sans-serif;
    font-size: 1.08rem;
    letter-spacing: -0.01em;
  }

  .hm-article-text ul,
  .hm-article-text ol {
    margin: 0 0 0.7rem;
    padding-left: 1.4rem;
    color: #b8c8ee;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .hm-article-text li {
    margin-bottom: 0.4rem;
  }

  .hm-article-text li strong {
    color: #dce8ff;
  }

  .hm-article-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(124, 147, 255, 0.24);
    background: linear-gradient(180deg, rgba(10, 18, 44, 0.8), rgba(8, 15, 38, 0.65));
    box-shadow: inset 0 0 0 1px rgba(105, 136, 220, 0.06);
    position: relative;
    overflow: hidden;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 200ms ease;
  }

  .hm-article-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(94, 125, 253, 0.1), transparent 45%);
    pointer-events: none;
  }

  .hm-article-visual svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 14px 28px rgba(4, 10, 28, 0.24));
    position: relative;
    z-index: 1;
    pointer-events: none;
    transition: transform 200ms ease;
  }

  .hm-article-card:hover .hm-article-visual {
    border-color: rgba(130, 164, 255, 0.48);
    transform: translateY(-2px);
  }

  .hm-article-card:hover .hm-article-visual svg {
    transform: scale(1.03);
  }

  .hm-article-formula-box {
    margin: 0.8rem 0;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(94, 125, 253, 0.3);
    background: rgba(94, 125, 253, 0.08);
    text-align: center;
  }

  .hm-article-formula-box code {
    color: #c5d8ff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  .hm-article-mini-table {
    margin: 0.8rem 0;
    border-radius: 12px;
    border: 1px solid rgba(138, 160, 231, 0.22);
    overflow: hidden;
    background: rgba(8, 15, 38, 0.65);
  }

  .hm-article-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .hm-article-row span {
    padding: 0.5rem 0.8rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.84rem;
    color: #c8d6f4;
    border-bottom: 1px solid rgba(138, 160, 231, 0.12);
    text-align: center;
  }

  .hm-article-row-head span {
    color: #8fa5d4;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: rgba(14, 26, 60, 0.6);
  }

  .hm-article-row:last-child span {
    border-bottom: none;
  }

  @media (max-width: 760px) {
    .hm-article-split {
      grid-template-columns: 1fr;
    }

    .hm-article-visual {
      max-width: 520px;
      min-height: 220px;
      margin: 0 auto;
    }
  }

  @media (max-width: 620px) {
    .hm-article-card {
      padding: 1.1rem 1rem;
    }

    .hm-article-visual {
      min-height: 200px;
      padding: 0.65rem;
    }
  }


/* ------------ Tool Page Styles ------------ */


/* ------------ Footer Styles ------------ */
  .footer {
    position: relative;
    background:
      radial-gradient(circle at 8% 8%, rgba(99, 102, 241, 0.06), transparent 30%),
      radial-gradient(circle at 96% 90%, rgba(6, 182, 212, 0.05), transparent 24%),
      linear-gradient(180deg, #f8faff 0%, #f0f4ff 62%, #eef2ff 100%);
    color: #4b5563;
    border-top: 1px solid rgba(99, 102, 241, 0.12);
    padding: 4rem 0 1.4rem;
    overflow: hidden;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 1.35fr 1.1fr;
    gap: 2.35rem;
    position: relative;
    z-index: 1;
  }

  .footer-grid.no-lang {
    grid-template-columns: 1.4fr 1fr 1.35fr;
  }

  .footer-col-title {
    margin: 0 0 1.05rem;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1e1b4b;
    font-weight: 700;
  }

  .footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .footer-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.04em;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
  }

  .footer-brand-name {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    color: #1e1b4b;
    font-size: 1.82rem;
    font-weight: 700;
    line-height: 1.22;
  }

  .footer-brand-name .accent {
    color: #6366f1;
  }

  .footer-tagline {
    margin: 0 0 1.45rem;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 22rem;
  }

  .footer-social {
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }

  .social-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.18);
    background: rgba(99, 102, 241, 0.06);
    color: #6366f1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
  }

  .social-btn:hover {
    transform: translateY(-2px);
    color: #4f46e5;
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.12);
  }

  .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }

  .footer-nav a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.98rem;
    line-height: 1.65;
    transition: color 160ms ease;
  }

  .footer-nav a:hover {
    color: #6366f1;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.72rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .contact-item svg {
    margin-top: 0.22rem;
    color: #6366f1;
    flex-shrink: 0;
  }

  .contact-item:hover {
    color: #6366f1;
  }

  .contact-text {
    cursor: default;
  }

  .lang-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.15rem;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    background: rgba(99, 102, 241, 0.05);
    color: #374151;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
  }

  .lang-btn:hover {
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.1);
  }

  .lang-btn.active {
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    border-color: rgba(99, 102, 241, 0.5);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
  }

  .footer-divider {
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    height: 1px;
    background: rgba(99, 102, 241, 0.12);
  }

  .footer-rights {
    margin: 0;
    color: #9ca3af;
    text-align: center;
    font-size: 0.8rem;
  }

  .scroll-top {
    position: fixed;
    right: 1.6rem;
    bottom: 1.5rem;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
    z-index: 80;
  }

  .scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  @media (max-width: 1080px) {
    .footer-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 2.25rem 1.75rem;
    }
  }

  @media (max-width: 720px) {
    .footer {
      padding-top: 3rem;
    }

    .footer-grid {
      grid-template-columns: 1fr;
      gap: 1.75rem;
    }

    .footer-brand-name {
      font-size: 1.5rem;
    }

    .footer-social {
      flex-wrap: wrap;
    }

    .lang-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .scroll-top {
      right: 1rem;
      bottom: 1rem;
      width: 42px;
      height: 42px;
    }
  }

/* ------------ Tools Grid Styles ------------ */
  .tools-grid-section {
    padding: 3rem 0 2rem;
    background: var(--bg-page);
  }

  .tools-card-grid {
    margin: 1.8rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 1rem;
  }

  .tools-card-grid li {
    margin: 0;
    display: flex;
  }

  /* â”€â”€â”€ Card â”€â”€â”€ */
  .tool-card {
    flex: 1;
    min-height: 168px;
    border-radius: 16px;
    background: #0c1a36;
    border: 1px solid rgba(35, 60, 110, 0.6);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1.6rem 0.9rem 1.3rem;
    text-align: center;
    transition:
      transform 0.22s cubic-bezier(.4,0,.2,1),
      box-shadow 0.22s cubic-bezier(.4,0,.2,1),
      border-color 0.22s ease,
      background 0.22s ease;
    position: relative;
    overflow: hidden;
  }

  .tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0.02) 0%,
      transparent 50%
    );
    pointer-events: none;
  }

  .tool-card:hover {
    transform: translateY(-4px);
    background: #101f40;
    border-color: rgba(60, 100, 170, 0.7);
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.35),
      0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .tool-card:focus-visible {
    outline: 2px solid #66d9ff;
    outline-offset: 3px;
  }

  /* â”€â”€â”€ Colorful Icon Badge â”€â”€â”€ */
  .tool-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
  }

  .tool-card:hover .tool-card-icon {
    transform: scale(1.08);
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .tool-card-icon-svg {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .tool-card-icon-svg :global(svg) {
    width: 30px;
    height: 30px;
  }

  /* â”€â”€â”€ Label â”€â”€â”€ */
  .tool-card-label {
    display: block;
    max-width: 100%;
    color: #c8d6ef;
    font-size: 0.82rem;
    line-height: 1.32;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    transition: color 0.2s ease;
  }

  .tool-card:hover .tool-card-label {
    color: #e8f0ff;
  }

  /* â”€â”€â”€ Responsive â”€â”€â”€ */
  @media (max-width: 1160px) {
    .tools-card-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  @media (max-width: 880px) {
    .tools-card-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 560px) {
    .tools-card-grid {
      grid-template-columns: 1fr;
    }
  }

/* ================================================================
   TOOL PAGE â€” Light-mode design system
   Migrated from [tool].astro <style is:global>
   ================================================================ */

.hm-tool-page {
  --bg-page: #f8faff;
  --bg-white: rgba(255, 255, 255, 0.85);
  --bg-soft: rgba(238, 242, 255, 0.7);
  --bg-hover: rgba(224, 231, 255, 0.8);
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-lighter: #06b6d4;
  --accent-bg: rgba(238, 242, 255, 0.8);
  --accent-border: rgba(99, 102, 241, 0.2);
  --accent-gradient: linear-gradient(130deg, #6366f1, #06b6d4);
  --accent-glow: 0 10px 34px rgba(99, 102, 241, 0.18);
  --accent-glow-lg: 0 14px 46px rgba(6, 182, 212, 0.16);
  --text-heading: #1e1b4b;
  --text-body: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: rgba(99, 102, 241, 0.15);
  --border-hover: rgba(99, 102, 241, 0.3);
  --shadow-sm: 0 4px 20px rgba(99, 102, 241, 0.06);
  --shadow-md: 0 12px 30px rgba(99, 102, 241, 0.08);
  --shadow-lg: 0 18px 55px rgba(99, 102, 241, 0.1);
  --shadow-xl: 0 30px 70px rgba(99, 102, 241, 0.12);
  color: var(--text-body);
  background: radial-gradient(circle at 14% -5%, #ede9fe, transparent 42%),
    radial-gradient(circle at 85% 0%, #cffafe, transparent 35%), var(--bg-page);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.hm-tool-page .hm-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.3;
  pointer-events: none;
}

.hm-tool-page .hm-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.25;
  pointer-events: none;
}

.hm-tool-page .hm-orb-a {
  width: 320px; height: 320px;
  background: #a78bfa;
  top: -120px; right: -90px;
}

.hm-tool-page .hm-orb-b {
  width: 260px; height: 260px;
  background: #22d3ee;
  left: -80px; bottom: 25%;
}

.hm-tool-page .hm-orb-c {
  width: 280px; height: 280px;
  background: #fb7185;
  right: 18%; bottom: -120px;
  opacity: 0.2;
}

.hm-tool-page .hm-wrap {
  width: min(1140px, calc(100% - 2.25rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.hm-tool-page .hm-main {
  position: relative;
  z-index: 1;
  padding-bottom: 2.6rem;
}

.hm-tool-page .hm-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.hm-tool-page .hm-nav .hm-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.hm-tool-page .hm-nav.is-scrolled {
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 255, 0.95);
  border-bottom-color: rgba(99, 102, 241, 0.15);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.08);
}

.hm-tool-page .hm-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-heading);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.hm-tool-page .hm-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(130deg, #6366f1, #06b6d4);
  color: #ffffff;
  font-size: 0.74rem;
  font-family: monospace;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.hm-tool-page .hm-nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  padding: 0; margin: 0;
}

.hm-tool-page .hm-nav-links a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 180ms ease;
  white-space: nowrap;
}

.hm-tool-page .hm-nav-links a:hover { color: #1e1b4b; }

.hm-tool-page .hm-nav-cta {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  background: linear-gradient(130deg, #6366f1, #06b6d4);
  border-radius: 999px;
  padding: 0.58rem 1rem;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.hm-tool-page .hm-section { padding: 3rem 0; }

.hm-tool-page .hm-headline { text-align: center; margin-bottom: 1.3rem; }

.hm-tool-page .hm-headline h1,
.hm-tool-page .hm-headline h2 {
  margin: 0.5rem 0;
  color: #1e1b4b;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.hm-tool-page .hm-headline p {
  margin: 0 auto;
  max-width: 760px;
  color: #6b7280;
  font-size: 0.99rem;
  line-height: 1.6;
}

.hm-tool-page .hm-faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hm-tool-page .hm-faq-item {
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.hm-tool-page .hm-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e1b4b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hm-tool-page .hm-faq-item summary::-webkit-details-marker { display: none; }

.hm-tool-page .hm-faq-item summary::after {
  content: '+';
  color: #6366f1;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.hm-tool-page .hm-faq-item[open] summary::after { content: 'âˆ’'; }

.hm-tool-page .hm-faq-item p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.65;
}

.hm-tool-page .hm-footer {
  border-top: 1px solid rgba(99, 102, 241, 0.12);
  padding: 1rem 0 1.4rem;
  background: rgba(248, 250, 255, 0.95);
  position: relative;
  z-index: 1;
}

@media (max-width: 940px) {
  .hm-tool-page .hm-nav-links { display: none; }
}

@media (max-width: 720px) {
  .hm-tool-page .hm-wrap { width: min(1140px, calc(100% - 1.3rem)); }
  .hm-tool-page .hm-nav-cta { display: none; }
}

/* ================================================================
   KEYWORD CALCULATOR â€” Tool page calculator card styles
   Migrated from UniqueToolCalculator.astro <style>
   ================================================================ */

.keyword-calculator { padding: 0.6rem 0 2.6rem; }

.keyword-calc-card {
  margin: 0 auto;
  max-width: 860px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 55px rgba(99, 102, 241, 0.08);
  padding: 1.25rem;
  position: relative;
  z-index: 1;
}

.keyword-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: center;
  gap: 0.8rem;
}

.keyword-calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.keyword-calc-field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.keyword-calc-field input,
.keyword-calc-field select {
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 11px;
  padding: 0.72rem 0.78rem;
  font-size: 1rem;
  color: #1e1b4b;
  background: rgba(248, 250, 255, 0.9);
  font-family: 'Inter', monospace;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.keyword-calc-field input:focus,
.keyword-calc-field select:focus {
  outline: 2px solid rgba(99, 102, 241, 0.25);
  outline-offset: 1px;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.keyword-calc-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(99, 102, 241, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.keyword-calc-actions button {
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0.6rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(120deg, #6366f1, #818cf8 58%, #06b6d4);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.keyword-calc-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(99, 102, 241, 0.28);
  filter: brightness(1.04);
}

.keyword-calc-actions button.secondary {
  background: rgba(248, 250, 255, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #374151;
  box-shadow: none;
}

.keyword-calc-actions button.secondary:hover {
  box-shadow: none;
  border-color: rgba(99, 102, 241, 0.4);
}

.keyword-calc-error {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  color: #ef4444;
  font-size: 0.88rem;
  font-weight: 600;
}

.keyword-calc-result {
  margin-top: 1rem;
  padding-top: 1rem;
  text-align: center;
  border-top: 1px solid rgba(99, 102, 241, 0.12);
  position: relative;
  z-index: 1;
}

.keyword-calc-result-label {
  margin: 0;
  color: #6b7280;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.keyword-calc-result-value {
  margin: 0.2rem 0;
  color: #1e1b4b;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  word-break: break-word;
  font-family: 'Inter', monospace;
}

.keyword-calc-result-detail {
  margin: 0;
  color: #6366f1;
  font-size: 0.86rem;
  line-height: 1.5;
  font-family: 'Inter', monospace;
}

/* â”€â”€ SVG Live Diagram â”€â”€ */
.kc-svg-diagram {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  background: rgba(238, 242, 255, 0.6);
  padding: 0.9rem;
  margin-top: 1rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.05), 0 8px 32px rgba(99, 102, 241, 0.06);
}

.kc-svg-diagram::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.06), transparent 60%);
  pointer-events: none;
}

.kc-svg-diagram-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.kc-svg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: linear-gradient(130deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.1));
  color: #6366f1;
  padding: 0.24rem 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.kc-svg-caption {
  color: #06b6d4;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.kc-svg-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: center;
}

.kc-svg-clock-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 16px rgba(99, 102, 241, 0.15));
}

.kc-svg-clock {
  width: 100%;
  max-width: 180px;
  height: auto;
}

.kc-svg-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kc-svg-stat {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  transition: border-color 220ms ease;
}

.kc-svg-stat:hover { border-color: rgba(99, 102, 241, 0.28); }

.kc-svg-stat--formula {
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.05);
}

.kc-svg-stat--result {
  border-color: rgba(6, 182, 212, 0.2);
  background: rgba(6, 182, 212, 0.04);
}

.kc-svg-stat-lbl {
  color: #6b7280;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
}

.kc-svg-stat-val {
  color: #1e1b4b;
  font-size: 0.84rem;
  font-family: 'Inter', monospace;
  line-height: 1.3;
  word-break: break-all;
}

.kc-svg-progress-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.kc-svg-progress-lbl {
  color: #6b7280;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

.kc-svg-progress-track {
  flex: 1;
  height: 7px;
  background: rgba(238, 242, 255, 0.85);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.12);
}

.kc-svg-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  border-radius: inherit;
  transition: width 350ms cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.25);
}

.kc-svg-progress-pct {
  color: #06b6d4;
  font-size: 0.72rem;
  font-family: 'Inter', monospace;
  font-weight: 700;
  min-width: 2.8rem;
  text-align: right;
}

.kc-svg-note {
  margin: 0.45rem 0 0;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .keyword-calc-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media (max-width: 560px) {
  .keyword-calc-grid { grid-template-columns: 1fr; }
  .kc-svg-body { grid-template-columns: 1fr; }
  .kc-svg-clock-wrap { max-width: 160px; margin: 0 auto; }
}

/* â”€â”€ Tool page conversion chart overrides â”€â”€ */
.hm-tool-page .cc-section { padding: 2rem 0; }

.hm-tool-page .cc-table {
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
}

.hm-tool-page .cc-table th {
  background: rgba(238, 242, 255, 0.8);
  color: #1e1b4b;
}

.hm-tool-page .cc-table td {
  color: #374151;
  border-color: rgba(99, 102, 241, 0.08);
}

/* â”€â”€ Tool page tools-grid overrides â”€â”€ */
.hm-tool-page .tools-grid-section {
  background: rgba(248, 250, 255, 0.7);
}

.hm-tool-page .tool-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(99, 102, 241, 0.12);
  color: #374151;
}

.hm-tool-page .tool-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.hm-tool-page .tool-card-label { color: #1e1b4b; }

.hm-tool-page .section-heading { color: #1e1b4b; }
.hm-tool-page .section-desc { color: #6b7280; }

/* ══════════════════════════════════════════════════
   SUB-PAGES — Design System (hm-sub-page & static pages)
   Matches the homepage and tool-page light design system
   ══════════════════════════════════════════════════ */

.hm-sub-page {
    --bg-page: #f8faff;
    --bg-white: rgba(255, 255, 255, 0.85);
    --bg-soft: rgba(238, 242, 255, 0.7);
    --bg-hover: rgba(224, 231, 255, 0.8);

    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-lighter: #06b6d4;
    --accent-bg: rgba(238, 242, 255, 0.8);
    --accent-border: rgba(99, 102, 241, 0.2);
    --accent-gradient: linear-gradient(130deg, #6366f1, #06b6d4);
    --accent-glow: 0 10px 34px rgba(99, 102, 241, 0.18);
    --accent-glow-lg: 0 14px 46px rgba(6, 182, 212, 0.16);

    --text-heading: #1e1b4b;
    --text-body: #374151;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    --border: rgba(99, 102, 241, 0.15);
    --border-hover: rgba(99, 102, 241, 0.3);
    --shadow-sm: 0 4px 20px rgba(99, 102, 241, 0.06);
    --shadow-md: 0 12px 30px rgba(99, 102, 241, 0.08);
    --shadow-lg: 0 18px 55px rgba(99, 102, 241, 0.1);

    color: var(--text-body);
    background: radial-gradient(circle at 14% -5%, #ede9fe, transparent 42%),
        radial-gradient(circle at 85% 0%, #cffafe, transparent 35%), var(--bg-page);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* ─── Accent text highlight ─── */
.hm-accent-text {
    background: linear-gradient(130deg, #6366f1, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Content Cards ─── */
.hm-content-card {
    padding: 1.8rem 2rem;
    margin-bottom: 1.2rem;
}

.hm-content-card h2 {
    margin: 0 0 .9rem;
    color: #1e1b4b;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hm-content-card h3 {
    margin: 1.2rem 0 .5rem;
    color: #312e81;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.hm-content-card p {
    margin: 0 0 .8rem;
    color: #4b5563;
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    line-height: 1.75;
}

.hm-content-card p:last-child {
    margin-bottom: 0;
}

.hm-content-card a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: color 180ms ease;
}

.hm-content-card a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* ─── Styled list ─── */
.hm-styled-list {
    list-style: none;
    padding: 0;
    margin: .5rem 0;
}

.hm-styled-list li {
    position: relative;
    padding: .5rem 0 .5rem 1.6rem;
    font-family: 'DM Sans', sans-serif;
    font-size: .93rem;
    color: #4b5563;
    line-height: 1.65;
}

.hm-styled-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: 700;
}

.hm-styled-list-compact li {
    padding: .3rem 0 .3rem 1.6rem;
}

.hm-styled-list a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.hm-styled-list a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* ─── About page feature grid ─── */
.hm-about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: .8rem;
}

.hm-about-item {
    background: rgba(238, 242, 255, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 14px;
    padding: 1.3rem;
    transition: transform .2s ease, border-color .2s ease;
}

.hm-about-item:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.35);
}

.hm-about-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: linear-gradient(125deg, #6366f1, #06b6d4);
    color: #ffffff;
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: .6rem;
    font-family: 'IBM Plex Mono', monospace;
}

.hm-about-item h3 {
    margin: 0 0 .35rem;
    color: #1e1b4b;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: .95rem;
}

.hm-about-item p {
    margin: 0;
    color: #6b7280;
    font-family: 'DM Sans', sans-serif;
    font-size: .88rem;
    line-height: 1.55;
}

/* ─── CTA Card ─── */
.hm-cta-card {
    text-align: center;
    border-color: rgba(99, 102, 241, 0.2);
}

.hm-page-cta {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: .92rem;
    font-weight: 700;
    background: linear-gradient(130deg, #6366f1, #06b6d4);
    border-radius: 999px;
    padding: .72rem 1.6rem;
    margin-top: .8rem;
    transition: transform 180ms ease, filter 180ms ease;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.25);
}

.hm-page-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    color: #ffffff;
}

/* ─── Contact page layout ─── */
.hm-contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.hm-contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hm-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-top: .5rem;
}

.hm-contact-info-item svg {
    margin-top: .15rem;
    flex-shrink: 0;
}

.hm-contact-info-item strong {
    display: block;
    font-size: .88rem;
    color: #1e1b4b;
    margin-bottom: .15rem;
    font-family: 'DM Sans', sans-serif;
}

.hm-contact-info-item a {
    font-size: .88rem;
    color: #6366f1;
    text-decoration: none;
    word-break: break-all;
}

.hm-contact-info-item a:hover {
    text-decoration: underline;
    color: #4f46e5;
}

/* ─── Legal pages ─── */
.hm-legal-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ─── Sitemap list ─── */
.hm-sitemap-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .8rem;
}

.hm-sitemap-item {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .85rem 1.1rem;
    background: rgba(238, 242, 255, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 12px;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.hm-sitemap-item:hover {
    transform: translateX(4px);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(238, 242, 255, 0.8);
}

.hm-sitemap-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: #6366f1;
}

.hm-sitemap-item:hover .hm-sitemap-title {
    color: #4f46e5;
}

.hm-sitemap-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: .85rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ─── Responsive (sub-pages) ─── */
@media (max-width: 768px) {
    .hm-content-card {
        padding: 1.3rem 1.2rem;
    }

    .hm-about-grid {
        grid-template-columns: 1fr;
    }

    .hm-contact-layout {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════
   CONVERSION CHARTS — Tool Pages & Homepage Grid
   ══════════════════════════════════════════════════ */

/* ── Tool Page Tables (ConversionChart component) ── */
.cc-section {
  padding: 2.5rem 0 3.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #f4f7fc 6%, #f4f7fc 94%, rgba(255,255,255,0) 100%);
  position: relative;
  z-index: 1;
}

.cc-section .hm-headline {
  margin-bottom: 1.8rem;
}

.cc-section .hm-headline h2 {
  color: #1a2240 !important;
}

.cc-section .hm-headline h3 {
  margin: 0.5rem 0;
  color: #1a2240;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  letter-spacing: -0.01em;
}

.cc-section .hm-headline p {
  color: #5a6785 !important;
}

.cc-section .hm-eyebrow {
  color: #4361c2 !important;
}

.cc-secondary {
  margin-top: 3rem;
}

/* ── Table wrapper ── */
.cc-table-wrapper {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid #dde3f0;
  background: #ffffff;
  overflow-x: auto;
  box-shadow: 0 2px 12px rgba(30, 45, 90, 0.07), 0 8px 28px rgba(30, 45, 90, 0.04);
}

.cc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
}

.cc-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.cc-table th {
  background: #f0f3fa;
  color: #4361c2;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 2px solid #dde3f0;
  white-space: nowrap;
}

.cc-table td {
  padding: 0.6rem 1.1rem;
  color: #2d3654;
  border-bottom: 1px solid #edf0f7;
  transition: background-color 150ms ease;
}

.cc-table tbody tr:hover td {
  background: #f0f4ff;
}

.cc-table tbody tr:last-child td {
  border-bottom: none;
}

.cc-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  color: #2b5dd6;
  letter-spacing: 0.02em;
}

.cc-example {
  color: #0e8f72;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
}

.cc-table tbody tr:nth-child(even) td {
  background: #f8f9fd;
}

.cc-table tbody tr:nth-child(even):hover td {
  background: #edf1ff;
}

.cc-table tbody tr:nth-child(5n) td {
  border-bottom-color: #d5dced;
}

.cc-geo-table td:first-child {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.84rem;
  color: #2d3654;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .cc-table-wrapper {
    border-radius: 12px;
  }
  .cc-table th {
    padding: 0.7rem 0.75rem;
    font-size: 0.65rem;
  }
  .cc-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
  }
  .cc-mono {
    font-size: 0.82rem;
  }
  .cc-example {
    font-size: 0.74rem;
  }
}

/* ── Homepage Interactive Chart Grid ── */
.hm-filter-row {
  display: flex;
  justify-content: center;
  gap: 0.62rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hm-filter-btn {
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #6b7280;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.hm-filter-btn.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(130deg, #6366f1, #06b6d4);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.hm-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.7rem;
}

.hm-chart-item {
  border-radius: 12px;
  min-height: 92px;
  padding: 0.8rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.15);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hm-chart-item:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 10px 22px rgba(99, 102, 241, 0.1);
}

.hm-chart-item:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.hm-chart-item.is-copied {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.4), 0 10px 28px rgba(6, 182, 212, 0.12);
}

.hm-chart-item.is-common {
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(236, 254, 255, 0.6);
}

.hm-chart-item.is-hidden {
  display: none;
}

.hm-minutes {
  display: block;
  color: #6b7280;
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hm-decimal {
  color: #1e1b4b;
  font-size: 1.35rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
}

/* ────────────────────────────────────────────
 * Theme Footer & Language Switcher Styles
 * ──────────────────────────────────────────── */
.footer {
  position: relative;
  background:
    radial-gradient(circle at 8% 8%, rgba(99, 102, 241, 0.06), transparent 30%),
    radial-gradient(circle at 96% 90%, rgba(6, 182, 212, 0.05), transparent 24%),
    linear-gradient(180deg, #f8faff 0%, #f0f4ff 62%, #eef2ff 100%);
  color: #4b5563;
  border-top: 1px solid rgba(99, 102, 241, 0.12);
  padding: 4rem 0 1.4rem;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.35fr 1.1fr;
  gap: 2.35rem;
  position: relative;
  z-index: 1;
}

.footer-grid.no-lang {
  grid-template-columns: 1.4fr 1fr 1.35fr;
}

.footer-col-title {
  margin: 0 0 1.05rem;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1e1b4b;
  font-weight: 700;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
  flex-shrink: 0;
}

.footer-brand-name {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  color: #1e1b4b;
  font-size: 1.82rem;
  font-weight: 700;
  line-height: 1.22;
}

.footer-brand-name .accent {
  color: #6366f1;
}

.footer-tagline {
  margin: 0 0 1.45rem;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 22rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.social-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: rgba(99, 102, 241, 0.06);
  color: #6366f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.12);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-nav a {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.98rem;
  line-height: 1.65;
  transition: color 160ms ease;
}

.footer-nav a:hover {
  color: #6366f1;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  color: #4b5563;
  text-decoration: none;
  font-size: 0.98rem;
  line-height: 1.6;
}

.contact-item svg {
  margin-top: 0.22rem;
  color: #6366f1;
  flex-shrink: 0;
}

.contact-item:hover {
  color: #6366f1;
}

.contact-text {
  cursor: default;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  background: rgba(99, 102, 241, 0.05);
  color: #374151;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-sizing: border-box;
  padding: 0 0.25rem;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.lang-btn:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.1);
}

.lang-btn.active {
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  border-color: rgba(99, 102, 241, 0.5);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.footer-divider {
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  height: 1px;
  background: rgba(99, 102, 241, 0.12);
}

.footer-rights {
  margin: 0;
  color: #9ca3af;
  text-align: center;
  font-size: 0.8rem;
}

.scroll-top {
  position: fixed;
  right: 1.6rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease, filter 180ms ease;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
  z-index: 40;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  filter: brightness(1.1);
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
  }

  .footer-grid.no-lang {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 3rem 0 1.2rem;
  }

  .footer-grid,
  .footer-grid.no-lang {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand-name {
    font-size: 1.55rem;
  }

  .lang-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .scroll-top {
    right: 1rem;
    bottom: 1rem;
  }
}

/* ────────────────────────────────────────────
 * Conversion Chart Styles (.cc-*) for Tool Pages
 * ──────────────────────────────────────────── */
.cc-section {
  padding: 3.5rem 0;
  position: relative;
}

.cc-secondary {
  margin-top: 3rem;
}

.cc-table-wrapper {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid #dde3f0;
  background: #ffffff;
  overflow-x: auto;
  box-shadow: 0 2px 12px rgba(30, 45, 90, 0.07), 0 8px 28px rgba(30, 45, 90, 0.04);
}

.cc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
}

.cc-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.cc-table th {
  background: #f0f3fa;
  color: #4361c2;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 2px solid #dde3f0;
  white-space: nowrap;
}

.cc-table td {
  padding: 0.6rem 1.1rem;
  color: #2d3654;
  border-bottom: 1px solid #edf0f7;
  transition: background-color 150ms ease;
}

.cc-table tbody tr:hover td {
  background: #f0f4ff;
}

.cc-table tbody tr:last-child td {
  border-bottom: none;
}

.cc-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  color: #2b5dd6;
  letter-spacing: 0.02em;
}

.cc-example {
  color: #0e8f72;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
}

.cc-table tbody tr:nth-child(even) td {
  background: #f8f9fd;
}

.cc-table tbody tr:nth-child(even):hover td {
  background: #edf1ff;
}

.cc-table tbody tr:nth-child(5n) td {
  border-bottom-color: #d5dced;
}

.cc-geo-table td:first-child {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.84rem;
  color: #2d3654;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .cc-table-wrapper {
    border-radius: 12px;
  }

  .cc-table th {
    padding: 0.7rem 0.75rem;
    font-size: 0.65rem;
  }

  .cc-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
  }

  .cc-mono {
    font-size: 0.82rem;
  }

  .cc-example {
    font-size: 0.74rem;
  }
}


