/* =============================================
   Kiralık Bahis Siteleri — Main Stylesheet
   ============================================= */

:root {
    --color-bg: #0b1120;
    --color-bg-alt: #111827;
    --color-surface: #1e293b;
    --color-surface-hover: #273548;
    --color-border: #334155;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-primary: #dc2626;
    --color-primary-dark: #b91c1c;
    --color-primary-glow: rgba(220, 38, 38, 0.18);
    --color-primary-light: #f87171;
    --color-whatsapp: #25d366;
    --color-whatsapp-dark: #1da851;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --header-height: 72px;
    --container-max: 1140px;
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--color-primary-light); }

h1, h2, h3, h4 {
    line-height: 1.25;
    font-weight: 700;
    margin-top: 0;
}

h1 { font-size: clamp(1.875rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.125rem; }

p { margin-top: 0; }

strong { color: #f1f5f9; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
}

.skip-link:focus { top: 1rem; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--color-primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: #fff;
    border-color: var(--color-whatsapp);
}

.btn-whatsapp:hover {
    background: var(--color-whatsapp-dark);
    border-color: var(--color-whatsapp-dark);
    color: #fff;
}

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 17, 32, 0.96);
    border-bottom: 1px solid var(--color-border);
    isolation: isolate;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
    z-index: -1;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.0625rem;
}

.logo:hover { color: var(--color-text); }

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.875rem;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-text);
    background: var(--color-surface);
}

.nav-link.is-active { color: var(--color-primary); }

.nav-cta { margin-left: 0.75rem; }

/* ---- Hero ---- */
.hero {
    padding: 4rem 0 3rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, var(--color-primary-glow), transparent),
        var(--color-bg);
}

.hero-inner {
    display: grid;
    gap: 3rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* ---- Sections ---- */
.section { padding: 4rem 0; }

.section-alt { background: var(--color-bg-alt); }

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
}

.page-hero {
    padding: 3rem 0 2rem;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.page-lead {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    max-width: 680px;
}

/* ---- Feature Grid ---- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color var(--transition);
}

.feature-card:hover { border-color: var(--color-primary); }

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ---- Steps ---- */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.5rem;
    max-width: 640px;
    margin-inline: auto;
}

.step-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
}

.step-item p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ---- Pricing ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.pricing-card.is-featured {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary), var(--shadow);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-desc {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.pricing-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* ---- Modules ---- */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.module-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.module-item p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 260px));
    gap: 1.25rem;
    justify-content: start;
}

.gallery-item {
    margin: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery-link {
    display: block;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--color-border);
    transition: opacity var(--transition);
}

.gallery-thumb {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    cursor: zoom-in;
    transition: opacity var(--transition);
}

.gallery-link:hover,
.gallery-thumb:hover {
    opacity: 0.92;
}

.gallery-thumb:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

.gallery-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.gallery-item figcaption {
    padding: 0.75rem 0.875rem 0.875rem;
}

.gallery-item figcaption h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.gallery-item figcaption p {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 0;
}

/* ---- Lightbox ---- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.lightbox-panel {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: 92vh;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition);
}

.lightbox-close:hover {
    background: var(--color-primary);
}

.lightbox-image-wrap {
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: calc(92vh - 120px);
    overflow: auto;
    overflow-x: hidden;
}

.lightbox-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(92vh - 120px);
    object-fit: contain;
    display: block;
}

.lightbox-caption {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--color-border);
}

.lightbox-caption h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.375rem;
}

.lightbox-caption p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    max-width: 560px;
    margin: 0 auto;
}

.empty-state p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.empty-state code {
    background: var(--color-bg);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.contact-single {
    max-width: 420px;
    margin: 0 auto;
}

.contact-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.contact-primary {
    border-color: var(--color-whatsapp);
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), var(--color-surface));
}

.contact-icon { margin-bottom: 1rem; }

.contact-card p {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.contact-link {
    font-weight: 600;
    font-size: 1.0625rem;
    word-break: break-all;
}

/* ---- Blog ---- */
.blog-list {
    display: grid;
    gap: 1.25rem;
}

.blog-card,
.blog-empty {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.blog-card time,
.blog-article-header time {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.blog-card h2 {
    margin-bottom: 0.6rem;
}

.blog-card h2 a {
    color: var(--color-text);
}

.blog-card h2 a:hover {
    color: var(--color-primary-light);
}

.blog-card p {
    color: var(--color-text-muted);
    margin-bottom: 0.9rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.blog-tags li {
    margin: 0;
}

.blog-tags a {
    display: inline-block;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.blog-tags a:hover {
    color: var(--color-primary-light);
    border-color: var(--color-primary);
}

.blog-keyword-link {
    color: var(--color-primary-light);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.blog-content .blog-keyword-link:hover {
    color: #fff;
}

.blog-more,
.blog-back a {
    font-weight: 600;
}

.blog-article-inner {
    max-width: 760px;
}

.blog-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.blog-crumb a {
    color: var(--color-text-muted);
}

.blog-content p {
    margin-bottom: 1.1rem;
    color: #d6dee9;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    margin: 2rem 0 0.75rem;
}

.blog-content h2 { font-size: 1.5rem; }
.blog-content h3 { font-size: 1.25rem; }
.blog-content h4 { font-size: 1.1rem; }

.blog-content ul,
.blog-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.4rem;
    color: #d6dee9;
}

.blog-content li { margin-bottom: 0.35rem; }

.blog-content a { font-weight: 600; }

.blog-content strong { color: #f8fafc; }

.blog-content blockquote {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--color-primary);
    background: var(--color-surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--color-text-muted);
}

.blog-content blockquote p:last-child { margin-bottom: 0; }

.blog-content hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 2rem 0;
}

.blog-content img {
    border-radius: var(--radius);
    margin: 1rem 0 1.25rem;
    border: 1px solid var(--color-border);
}

.blog-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.1rem 0.35rem;
}

.blog-content pre {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    overflow-x: auto;
    margin: 0 0 1.25rem;
}

.blog-content pre code {
    background: none;
    border: 0;
    padding: 0;
    font-size: 0.875rem;
}

.blog-keywords {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.blog-keywords h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.blog-back {
    margin-top: 2rem;
}

/* ---- FAQ ---- */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.125rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--color-primary);
    transition: transform var(--transition);
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
    padding: 0 1.25rem 1.125rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ---- Legal ---- */
.legal-content {
    max-width: 720px;
}

.legal-content h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

/* ---- CTA ---- */
.cta-section {
    background:
        radial-gradient(ellipse 70% 80% at 50% 100%, var(--color-primary-glow), transparent),
        var(--color-bg-alt);
}

.cta-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.cta-inner p {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
    margin-bottom: 1.5rem;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-top: 1rem;
    max-width: 320px;
}

.footer-heading {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li { margin-bottom: 0.5rem; }

.footer-nav a {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.footer-nav a:hover { color: var(--color-primary); }

.footer-contact p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--color-border);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.footer-legal a { color: var(--color-text-muted); }
.footer-legal a:hover { color: var(--color-primary); }

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 200;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-whatsapp);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ---- Responsive ---- */
@media (min-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

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

@media (min-width: 640px) {
    .hero-stats-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.prose-block p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.prose-block p:last-child { margin-bottom: 0; }

.content-split {
    display: grid;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .content-split {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .content-split-reverse {
        grid-template-columns: 1fr 0.85fr;
    }
}

.highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlight-list li {
    position: relative;
    padding: 0.625rem 0 0.625rem 1.5rem;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9375rem;
}

.highlight-list li:last-child { border-bottom: none; }

.highlight-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.feature-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.info-card h3 {
    margin-bottom: 1rem;
}

.info-card .btn { margin-top: 1.25rem; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.spec-list {
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.spec-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.spec-list dt {
    color: var(--color-text-muted);
    font-weight: 500;
}

.spec-list dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.benefit-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.benefit-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.benefit-item p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.steps-list-wide {
    max-width: 760px;
}

.steps-note {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    max-width: 560px;
    margin: 2rem auto 0;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.system-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.system-card-media {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.system-card-media img {
    width: 100%;
    height: auto;
    display: block;
}

.system-card-header,
.system-desc,
.system-card .pricing-features,
.system-card-actions {
    padding-left: 2rem;
    padding-right: 2rem;
}

.system-card-header {
    padding-top: 1.5rem;
}

.system-card-actions {
    padding-bottom: 2rem;
}

.system-card-header h3 {
    font-size: 1.375rem;
    margin-bottom: 0;
}

.system-desc {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin: 1rem 0 1.25rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.system-notice {
    margin: 0 2rem 1.25rem;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-text);
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: var(--radius);
}

.page-hero .system-notice {
    margin: 1.25rem 0 0;
    max-width: 680px;
}

.system-why-inner {
    max-width: 760px;
    margin: 0 auto;
}

.section-header-left {
    text-align: left;
    margin-bottom: 1.25rem;
}

.section-header-left h2 {
    margin-bottom: 0;
}

.system-why-intro {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.system-why-list {
    margin-bottom: 2rem;
}

.system-why-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.system-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.pillar-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.pillar-item h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.pillar-item p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

.checklist-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .checklist-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.testimonial-card {
    margin: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.testimonial-card p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    font-style: italic;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.testimonial-card footer {
    font-size: 0.875rem;
    color: var(--color-text);
}

.testimonial-card cite {
    font-style: normal;
    font-weight: 600;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb [aria-current="page"] {
    color: var(--color-text);
}

.system-switch {
    text-align: center;
}

.system-switch p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.system-switch-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

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

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height));
        max-height: calc(100dvh - var(--header-height));
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
        background: var(--color-bg);
        border-top: 1px solid var(--color-border);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        z-index: 99;
    }

    body.nav-open {
        overflow: hidden;
    }

    .main-nav.is-open { transform: translateX(0); }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .gallery-item {
        width: 100%;
    }

    .gallery-item img {
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: none;
    }

    .system-grid {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .system-card {
        width: 100%;
    }

    .feature-grid,
    .feature-grid-4,
    .module-grid,
    .pillar-grid,
    .panel-grid,
    .testimonial-grid,
    .service-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .system-switch-links {
        flex-direction: column;
        align-items: stretch;
    }

    .system-switch-links .btn {
        width: 100%;
    }

    .lightbox {
        padding: 0;
        align-items: stretch;
    }

    .lightbox-panel {
        width: 100%;
        max-width: 100%;
        max-height: 100dvh;
        min-height: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .lightbox-image-wrap {
        max-height: calc(100dvh - 9rem);
    }

    .lightbox-image {
        width: 100%;
        max-width: 100%;
        max-height: calc(100dvh - 9rem);
    }

    .lightbox-caption {
        flex-shrink: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
