/*
 * nibbly.dev — Website-specific styles
 * Landing page, showcase page, docs page, pricing page.
 * Not part of the CMS distribution.
 *
 * Loaded conditionally by includes/header.php when css/website.css exists.
 */

/* ============================================
   BRAND OVERRIDES — nibbly.dev cyan logo palette
   ============================================ */
:root {
    /* Palette: light to dark within each hue. Names never select a UI theme. */
    /* Primary: cyan. Keep the near-identical bright/base shades unchanged. */
    --color-primary-light: #7df0ff;
    --color-primary-glow-light: #55e6ff;
    --color-primary-glow: #38ddff;
    --color-primary-bright: #2dd1f9;
    --color-primary: #2ed0f9;

    /* Secondary: blue. Dark/deep describe the shade, not dark mode. */
    --color-secondary: #1994cf;
    --color-secondary-medium: #1681b4;
    --color-secondary-dark: #126d99;
    --color-secondary-deep: #031b2a;

    /* Supporting hues: pale mist and blue-grey slate. */
    --color-white: #ffffff;
    --color-mist-light: #e8f1f2;
    --color-mist: #c9e6e8;
    --color-slate-light: #dcf7ff;
    --color-slate: #27425a;

    /* Translucent palette variants (unchanged sRGB values and opacity). */
    --color-primary-glow-soft: rgba(56, 221, 255, 0.2);
    --color-secondary-soft: rgba(25, 148, 207, 0.1);
    --color-slate-light-soft: rgba(220, 247, 255, 0.84);

    /* Gradients are recipes, not additional palette colors. */
    --gradient-primary: radial-gradient(ellipse at 50% 0%, var(--color-primary-light) 0%, var(--color-primary) 48%, var(--color-secondary) 100%);
    --gradient-primary-hover: radial-gradient(ellipse at 50% 0%, var(--color-white) 0%, var(--color-primary-glow-light) 42%, var(--color-secondary) 100%);
    --gradient-brand: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-brand-text: linear-gradient(90deg, var(--color-white) 0%, var(--color-primary-light) 45%, var(--color-primary) 100%);

    /* Nibbly Core compatibility. Do not use these legacy names in site rules.
       Core styles are upgrade-owned; aliases avoid patching those files. */
    --color-primary-dark: var(--color-secondary);
    --color-primary-dark-muted: var(--color-secondary-dark);
    --color-primary-really-dark: var(--color-secondary-deep);
    --color-primary-btn: var(--gradient-primary);
    --color-primary-btn-hover: var(--gradient-primary-hover);
    --color-background-dark: var(--color-mist-light);
    --color-background-darker: var(--color-mist);

    /* Typography */
    --font-display: 'Quicksand', system-ui, -apple-system, sans-serif;
    --font-body: 'Quicksand', system-ui, -apple-system, sans-serif;
    --font-mono: 'Geist Mono', 'SF Mono', 'Fira Code', Menlo, Consolas, monospace;
}

html {
    overflow-x: hidden;
}

/* Landing page dark header: theme toggle is light colored */
.page-landing .theme-toggle {
    color: var(--color-text-on-dark-muted);
}

.page-landing .theme-toggle:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.page-landing .header-inner {
    justify-content: flex-start;
    gap: clamp(1rem, 2vw, 2rem);
}

.page-landing .nav-main {
    flex: 1 1 auto;
    min-width: 0;
}

.page-landing .nav-list {
    margin-left: clamp(0.25rem, 1.4vw, 1.4rem);
}

.page-landing .nav-lang {
    margin-left: auto;
}

/* ============================================
   LANDING PAGE — Dark Modern Theme
   ============================================ */

/* -- Logo (theme-aware: pos = light bg, neg = dark bg) -- */
.site-logo-img {
    height: 48px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.site-header .site-logo-img {
    width: clamp(130px, 13vw, 172px);
    max-width: none;
}

.logo-dark { display: none; }
.logo-light { display: inline; }

.footer-logo .site-logo-img {
    display: none;
}

.footer-logo::before {
    content: '';
    display: block;
    width: 150px;
    aspect-ratio: 1718.81 / 623.85;
    background: url('/assets/images/nibbly-main-icon-dm.svg') center / contain no-repeat;
}

.footer-brand-name {
    display: none;
}

/* -- Containers -- */
.landing-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.landing-container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* -- Section Label (Eyebrow) -- */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: var(--gradient-brand-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.landing-hero .hero-badge,
.landing-hero .hero-footnote {
    display: none;
}

/* -- Section Headers -- */
.landing-section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.landing-section-heading {
    font-size: 2.4rem;
    font-weight: 300;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-wrap: balance;
}

.landing-section-desc {
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    text-wrap: pretty;
}

/* -- Noise grain overlay for dark landing page -- */
.page-landing::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
    mix-blend-mode: overlay;
}

body.page-landing {
    overflow-x: hidden;
}

/* Hide grain in light mode */
[data-theme="light"] .page-landing::after {
    display: none;
}

/* -- Dark section defaults -- */
.landing-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

.landing-dark .landing-section-heading {
    color: var(--color-text-on-dark);
}

.landing-dark .landing-section-desc {
    color: var(--color-text-on-dark-muted);
}

/* -- Button Variants -- */
.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 600;
}

.btn-gradient:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-on-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: border-color 800ms cubic-bezier(0.22, 1, 0.36, 1) 250ms,
                color 800ms cubic-bezier(0.22, 1, 0.36, 1) 250ms,
                transform 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-ghost::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(96, 200, 205, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1) 250ms;
    z-index: -1;
    border-radius: inherit;
}

.btn-ghost:hover {
    border-color: rgba(96, 200, 205, 0.35);
    color: white;
    transition: border-color 800ms cubic-bezier(0.22, 1, 0.36, 1),
                color 800ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-ghost:hover::after {
    opacity: 1;
    transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-ghost:active {
    transform: scale(0.98) translateY(1px);
}

.btn-ghost:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 2px;
}

/* -- Glass Card -- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-fast);
}

.glass-card:hover {
    border-color: rgba(97, 171, 205, 0.2);
    box-shadow: 0 0 40px rgba(97, 171, 205, 0.06);
    transform: translateY(-4px);
}


/* ============================================
   1. HERO
   ============================================ */
.landing-hero {
    position: relative;
    min-height: min(900px, 100dvh);
    padding: calc(var(--header-height) + var(--spacing-xl)) 0 var(--spacing-xl);
    background: #020812;
    color: var(--color-text-on-dark);
    overflow: hidden;
    isolation: isolate;
}

.landing-hero::before,
.landing-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.landing-hero::before {
    z-index: 0;
    background-image: url('/assets/images/hero-nibbly-beaver-desk-dm.webp');
    background-size: cover;
    background-position: 60% 50%;
    background-repeat: no-repeat;
    transform: scale(1.01);
}

.landing-hero::after {
    z-index: 1;
    background: linear-gradient(90deg,
        rgba(2, 8, 18, 0.94) 0%,
        rgba(2, 8, 18, 0.88) 24%,
        rgba(2, 8, 18, 0.48) 34%,
        rgba(2, 8, 18, 0.12) 43%,
        rgba(2, 8, 18, 0) 52%);
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: morphOrb 12s ease-in-out infinite alternate;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(56, 221, 255, 0.14);
    top: 18%;
    left: -12%;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(240, 143, 31, 0.11);
    bottom: -18%;
    left: 22%;
    animation-delay: -6s;
    animation-duration: 15s;
}

@keyframes morphOrb {
    0%   { transform: translate(0, 0) scale(1);     border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; }
    33%  { transform: translate(15px, -25px) scale(1.06); border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; }
    66%  { transform: translate(-10px, 15px) scale(0.97); border-radius: 45% 55% 60% 40% / 60% 45% 55% 40%; }
    100% { transform: translate(20px, -10px) scale(1.03); border-radius: 60% 40% 45% 55% / 40% 60% 40% 60%; }
}

/* -- Section Background: Radial Halo -- */
/* Interactive halo that follows mouse / cards */
.features-halo {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(97, 171, 205, 0.18) 0%, rgba(97, 171, 205, 0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    will-change: transform;
}

/* Card directional glow border */
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        600px circle at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(97, 171, 205, 0.12) 0%,
        transparent 40%
    );
    mask-image: linear-gradient(#000, #000);
    -webkit-mask-image: linear-gradient(#000, #000);
    mask-composite: exclude;
    -webkit-mask-composite: source-out;
}

/* Border glow via a separate pseudo — using outline trick */
.feature-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(
        400px circle at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(97, 171, 205, 0.4) 0%,
        transparent 40%
    );
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover::before {
    opacity: 1;
}

/* -- Section Background: Topographic Lines -- */
.section-bg-topo {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
    background-image:
        repeating-radial-gradient(ellipse 800px 600px at 20% 50%, transparent 0px, transparent 38px, rgba(97, 171, 205, 1) 39px, transparent 40px),
        repeating-radial-gradient(ellipse 600px 800px at 80% 50%, transparent 0px, transparent 42px, rgba(97, 171, 205, 1) 43px, transparent 44px);
    mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 0%, transparent 100%);
}

.landing-hero .landing-container {
    position: relative;
    z-index: 3;
    min-height: calc(min(900px, 100dvh) - var(--header-height) - (2 * var(--spacing-xl)));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 1fr);
    align-items: center;
    gap: var(--spacing-xl);
}

.hero-content {
    max-width: 720px;
    animation: heroFadeInLeft 0.8s ease-out both;
}

.hero-visual {
    flex: 1 1 50%;
    max-width: 50%;
    text-align: center;
    position: relative;
}

.hero-image-glow {
    position: absolute;
    inset: 10%;
    background: var(--gradient-brand);
    opacity: 0.2;
    filter: blur(60px);
    border-radius: 50%;
    z-index: -1;
}

.hero-visual .hero-image {
    width: 100%;
    max-height: 65vh;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    animation: heroRiseUp 2.5s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both,
               heroFloat 8s ease-in-out 3.1s infinite;
}

@keyframes heroRiseUp {
    from { opacity: 0; transform: translateY(260px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFloat {
    0%   { transform: translateY(0)    rotate(0deg); }
    25%  { transform: translateY(-8px) rotate(0.7deg); }
    50%  { transform: translateY(2px)  rotate(-0.5deg); }
    75%  { transform: translateY(-6px) rotate(-0.8deg); }
    100% { transform: translateY(0)    rotate(0deg); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 18, 31, 0.66);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(86, 229, 255, 0.3);
    color: var(--color-text-on-dark);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 0 24px rgba(56, 221, 255, 0.16);
}

.landing-hero .hero-badge,
.landing-hero .hero-badge * {
    color: rgba(220, 247, 255, 0.9);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #56e5ff;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(97, 171, 205, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(97, 171, 205, 0); }
}

.hero-title {
    font-size: clamp(3rem, 5.9vw, 5.6rem);
    font-weight: 600;
    line-height: 0.94;
    margin-bottom: var(--spacing-sm);
    padding-bottom: 3px;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #ffffff 0%, #c9f8ff 48%, #57eaff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-wrap: balance;
    text-shadow: 0 0 42px rgba(86, 229, 255, 0.14);
}

.hero-title-line {
    display: block;
}

.hero-title-line--light {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.hero-title-line--accent {
    color: var(--color-primary-glow);
    -webkit-text-fill-color: var(--color-primary-glow);
    text-shadow: 0 0 34px rgba(46, 208, 249, 0.34);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    font-weight: 500;
    line-height: 1.7;
    color: var(--color-slate-light-soft);
    margin-bottom: var(--spacing-md);
    max-width: 590px;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.landing-hero .hero-actions .btn-ghost {
    color: rgba(220, 247, 255, 0.88);
    background: rgba(2, 18, 31, 0.44);
    border-color: rgba(86, 229, 255, 0.22);
}

.landing-hero .hero-actions .btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: 0.68em;
    color: #02131f;
    background: var(--gradient-primary);
    border: 1px solid rgba(125, 240, 255, 0.76);
    box-shadow:
        0 0 0 1px rgba(46, 208, 249, 0.28) inset,
        0 0 32px rgba(46, 208, 249, 0.48),
        0 18px 38px rgba(0, 0, 0, 0.34);
}

.landing-hero .hero-actions .btn-gradient::before {
    content: '';
    width: 1.32em;
    height: 1.32em;
    flex: 0 0 auto;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .5C5.65.5.75 5.4.75 11.74c0 4.98 3.22 9.22 7.69 10.68.56.1.76-.24.76-.54v-2.05c-3.13.68-3.79-1.34-3.79-1.34-.51-1.3-1.25-1.65-1.25-1.65-1.02-.7.08-.68.08-.68 1.13.08 1.72 1.16 1.72 1.16 1 .1.56 2.63 3.16 1.88.1-.73.39-1.22.71-1.5-2.5-.28-5.13-1.25-5.13-5.56 0-1.23.44-2.23 1.16-3.02-.12-.28-.5-1.43.11-2.98 0 0 .95-.3 3.1 1.15.9-.25 1.86-.37 2.82-.38.96 0 1.92.13 2.82.38 2.15-1.45 3.1-1.15 3.1-1.15.61 1.55.23 2.7.11 2.98.72.79 1.16 1.79 1.16 3.02 0 4.32-2.64 5.27-5.15 5.55.4.35.76 1.04.76 2.1v3.12c0 .3.2.65.77.54 4.47-1.46 7.68-5.7 7.68-10.68C23.25 5.4 18.35.5 12 .5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .5C5.65.5.75 5.4.75 11.74c0 4.98 3.22 9.22 7.69 10.68.56.1.76-.24.76-.54v-2.05c-3.13.68-3.79-1.34-3.79-1.34-.51-1.3-1.25-1.65-1.25-1.65-1.02-.7.08-.68.08-.68 1.13.08 1.72 1.16 1.72 1.16 1 .1.56 2.63 3.16 1.88.1-.73.39-1.22.71-1.5-2.5-.28-5.13-1.25-5.13-5.56 0-1.23.44-2.23 1.16-3.02-.12-.28-.5-1.43.11-2.98 0 0 .95-.3 3.1 1.15.9-.25 1.86-.37 2.82-.38.96 0 1.92.13 2.82.38 2.15-1.45 3.1-1.15 3.1-1.15.61 1.55.23 2.7.11 2.98.72.79 1.16 1.79 1.16 3.02 0 4.32-2.64 5.27-5.15 5.55.4.35.76 1.04.76 2.1v3.12c0 .3.2.65.77.54 4.47-1.46 7.68-5.7 7.68-10.68C23.25 5.4 18.35.5 12 .5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.landing-hero .hero-actions .btn-gradient:hover {
    color: #020812;
}

.landing-hero .hero-actions .btn-ghost:hover {
    color: #ffffff;
    background: rgba(86, 229, 255, 0.12);
    border-color: rgba(86, 229, 255, 0.5);
}

.hero-footnote {
    font-size: 0.85rem;
    color: rgba(220, 247, 255, 0.66);
    margin: 0;
    opacity: 0.7;
}

@keyframes heroFadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes heroFadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}


/* ============================================
   2. TRUST BAR
   ============================================ */
.landing-trust-bar {
    background: var(--color-bg-dark-elevated);
    border-top: 1px solid var(--color-border-dark);
    border-bottom: 1px solid var(--color-border-dark);
    padding: var(--spacing-md) 0;
}

.trust-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: var(--spacing-md);
}

.trust-item {
    text-align: center;
}

.trust-value {
    display: block;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    background: var(--gradient-brand-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 450;
    color: var(--color-text-on-dark-muted);
    margin-top: 4px;
    letter-spacing: 0.01em;
}

.landing-small-design {
    --small-design-bg: #020a14;
    --small-design-accent: var(--color-primary-glow);
    --small-design-accent-soft: var(--color-primary-glow-soft);
    --small-design-line: rgba(56, 221, 255, 0.72);
    position: relative;
    min-height: clamp(700px, 78vw, 900px);
    padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(2.75rem, 5vw, 5rem);
    overflow: hidden;
    isolation: isolate;
    background: var(--small-design-bg);
    border: 0;
    color: var(--color-text-on-dark);
}

.landing-small-design::before,
.landing-small-design::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.landing-small-design::before {
    z-index: 0;
    background-image: url('/assets/images/small-by-design-dm.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.landing-small-design::after {
    content: none;
}

.small-design-inner {
    --small-design-panel-width: min(920px, 64vw);
    --small-design-panel-offset: clamp(5.5rem, 10vw, 9rem);
    position: relative;
    z-index: 2;
    min-height: clamp(590px, 65vw, 760px);
}

.small-design-copy {
    width: min(760px, 58vw);
    margin: 0 auto;
    text-align: center;
}

.small-design-title {
    margin: 0;
    font-size: clamp(3.2rem, 5.7vw, 6.25rem);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.035em;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

.small-design-title::before {
    content: '';
    display: block;
    width: clamp(42px, 4.4vw, 68px);
    aspect-ratio: 1;
    margin: 0 auto 0.65rem;
    background: url('/assets/images/nibbly-icon-dm.svg') center / contain no-repeat;
    filter: drop-shadow(0 0 16px rgba(56, 221, 255, 0.36));
}

.small-design-title-line {
    display: block;
}

.small-design-title-line--light {
    color: #ffffff;
}

.small-design-title-line--accent {
    color: var(--small-design-accent);
    text-shadow:
        0 0 16px rgba(56, 221, 255, 0.54),
        0 0 46px rgba(56, 221, 255, 0.24);
}

.small-design-subtitle {
    width: min(560px, 100%);
    margin: 1rem auto 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(56, 221, 255, 0.3);
    color: var(--color-slate-light-soft);
    font-size: clamp(1.2rem, 2vw, 1.62rem);
    font-weight: 440;
    line-height: 1.34;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}

.small-design-rail {
    position: absolute;
    left: clamp(1.5rem, 3.2vw, 3.5rem);
    top: clamp(1.8rem, 4vw, 4.4rem);
    bottom: clamp(2.8rem, 7vw, 6.5rem);
    width: clamp(56px, 5.4vw, 92px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    padding: 1.5rem 0;
    border: 2px solid rgba(56, 221, 255, 0.78);
    border-radius: 18px;
    background: rgba(1, 21, 34, 0.42);
    box-shadow:
        0 0 0 1px rgba(125, 240, 255, 0.18) inset,
        0 0 26px rgba(56, 221, 255, 0.28);
}

.small-design-rail-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--small-design-accent);
    font-size: clamp(1.05rem, 1.9vw, 1.9rem);
    font-weight: 660;
    letter-spacing: 0.02em;
    text-shadow: 0 0 16px rgba(56, 221, 255, 0.52);
}

.small-design-rail-dots,
.small-design-rail-mark {
    width: 24px;
    height: 60px;
    opacity: 0.9;
    background-image: radial-gradient(var(--small-design-accent) 2px, transparent 2.5px);
    background-size: 12px 12px;
    background-position: center 1px;
}

.small-design-panel {
    width: var(--small-design-panel-width);
    margin-top: clamp(3.2rem, 6vw, 5.4rem);
    margin-left: var(--small-design-panel-offset);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 2px solid rgba(56, 221, 255, 0.74);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(2, 21, 35, 0.72), rgba(2, 12, 24, 0.58));
    box-shadow:
        0 0 0 1px rgba(125, 240, 255, 0.18) inset,
        0 0 32px rgba(56, 221, 255, 0.22);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.landing-small-design .stagger-reveal > * {
    opacity: 1;
    transform: none;
}

.small-design-metric {
    min-height: clamp(138px, 10.8vw, 178px);
    padding: clamp(1rem, 1.22vw, 1.18rem) 1rem clamp(1rem, 1.22vw, 1.18rem);
    display: grid;
    grid-template-rows: auto minmax(clamp(3.75rem, 5vw, 5.1rem), 1fr) auto;
    align-items: center;
    justify-items: center;
    row-gap: clamp(0.32rem, 0.5vw, 0.52rem);
    text-align: center;
    position: relative;
}

.small-design-metric + .small-design-metric {
    border-left: 2px solid rgba(56, 221, 255, 0.62);
}

.small-design-metric-icon,
.small-design-fact-icon {
    display: grid;
    place-items: center;
    color: var(--small-design-accent);
    border: 2px solid rgba(56, 221, 255, 0.58);
    background: rgba(2, 32, 52, 0.48);
    box-shadow:
        0 0 16px rgba(56, 221, 255, 0.26),
        0 0 0 1px rgba(125, 240, 255, 0.12) inset;
}

.small-design-metric-icon {
    width: clamp(48px, 4vw, 62px);
    height: clamp(48px, 4vw, 62px);
    border-radius: 10px;
    align-self: start;
}

.small-design-metric-icon svg {
    width: 58%;
    height: 58%;
}

.small-design-metric-value {
    min-height: clamp(3.75rem, 5vw, 5.1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--small-design-accent);
    font-size: clamp(3.7rem, 5vw, 4.85rem);
    font-weight: 620;
    line-height: 0.86;
    letter-spacing: -0.045em;
    text-shadow:
        0 0 18px rgba(56, 221, 255, 0.74),
        0 0 44px rgba(56, 221, 255, 0.28);
}

.small-design-metric--1 .small-design-metric-value,
.small-design-metric--2 .small-design-metric-value {
    font-size: clamp(4rem, 5.2vw, 5.05rem);
}

.small-design-metric--3 .small-design-metric-value {
    flex-direction: column;
    font-size: clamp(3.25rem, 4.25vw, 4.1rem);
    line-height: 0.82;
}

.small-design-metric-unit {
    display: block;
    font-size: 0.58em;
    line-height: 0.85;
    letter-spacing: -0.02em;
}

.small-design-metric--4 .small-design-metric-value {
    font-size: clamp(2.45rem, 3.35vw, 3.35rem);
    line-height: 0.92;
    letter-spacing: -0.035em;
}

.small-design-metric-value .editable-field {
    color: inherit;
    -webkit-text-fill-color: currentColor;
}

.small-design-metric-label {
    display: block;
    align-self: end;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.95rem, 1.16vw, 1.15rem);
    font-weight: 560;
    line-height: 1.12;
}

.small-design-metric-label::after {
    content: '';
    display: block;
    width: 54px;
    height: 3px;
    margin: 0.45rem auto 0;
    border-radius: 999px;
    background: var(--small-design-accent);
    box-shadow: 0 0 16px rgba(56, 221, 255, 0.66);
}

.small-design-link {
    width: fit-content;
    display: block;
    margin: 1.2rem 0 0 calc(var(--small-design-panel-offset) + (var(--small-design-panel-width) / 2));
    transform: translateX(-50%);
    color: var(--small-design-accent);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 620;
    line-height: 1.15;
    text-decoration: none;
    border-bottom: 3px solid currentColor;
    text-shadow: 0 0 16px rgba(56, 221, 255, 0.45);
}

.small-design-link:hover {
    color: #ffffff;
}

.landing-ready-actions .btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: 0.68em;
    color: #02131f;
    background: var(--gradient-primary);
    border: 1px solid rgba(125, 240, 255, 0.76);
    box-shadow:
        0 0 0 1px rgba(46, 208, 249, 0.28) inset,
        0 0 32px rgba(46, 208, 249, 0.48),
        0 18px 38px rgba(0, 0, 0, 0.34);
}

.landing-ready-actions .btn-gradient::before {
    content: '';
    width: 1.32em;
    height: 1.32em;
    flex: 0 0 auto;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .5C5.65.5.75 5.4.75 11.74c0 4.98 3.22 9.22 7.69 10.68.56.1.76-.24.76-.54v-2.05c-3.13.68-3.79-1.34-3.79-1.34-.51-1.3-1.25-1.65-1.25-1.65-1.02-.7.08-.68.08-.68 1.13.08 1.72 1.16 1.72 1.16 1 .1.56 2.63 3.16 1.88.1-.73.39-1.22.71-1.5-2.5-.28-5.13-1.25-5.13-5.56 0-1.23.44-2.23 1.16-3.02-.12-.28-.5-1.43.11-2.98 0 0 .95-.3 3.1 1.15.9-.25 1.86-.37 2.82-.38.96 0 1.92.13 2.82.38 2.15-1.45 3.1-1.15 3.1-1.15.61 1.55.23 2.7.11 2.98.72.79 1.16 1.79 1.16 3.02 0 4.32-2.64 5.27-5.15 5.55.4.35.76 1.04.76 2.1v3.12c0 .3.2.65.77.54 4.47-1.46 7.68-5.7 7.68-10.68C23.25 5.4 18.35.5 12 .5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .5C5.65.5.75 5.4.75 11.74c0 4.98 3.22 9.22 7.69 10.68.56.1.76-.24.76-.54v-2.05c-3.13.68-3.79-1.34-3.79-1.34-.51-1.3-1.25-1.65-1.25-1.65-1.02-.7.08-.68.08-.68 1.13.08 1.72 1.16 1.72 1.16 1 .1.56 2.63 3.16 1.88.1-.73.39-1.22.71-1.5-2.5-.28-5.13-1.25-5.13-5.56 0-1.23.44-2.23 1.16-3.02-.12-.28-.5-1.43.11-2.98 0 0 .95-.3 3.1 1.15.9-.25 1.86-.37 2.82-.38.96 0 1.92.13 2.82.38 2.15-1.45 3.1-1.15 3.1-1.15.61 1.55.23 2.7.11 2.98.72.79 1.16 1.79 1.16 3.02 0 4.32-2.64 5.27-5.15 5.55.4.35.76 1.04.76 2.1v3.12c0 .3.2.65.77.54 4.47-1.46 7.68-5.7 7.68-10.68C23.25 5.4 18.35.5 12 .5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.landing-ready-actions .btn-gradient:hover {
    color: #020812;
}

.small-design-facts {
    width: min(900px, 62vw);
    margin-top: clamp(1.6rem, 3vw, 2.8rem);
    margin-left: clamp(3.5rem, 6.8vw, 5.2rem);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 2px solid rgba(56, 221, 255, 0.35);
    border-radius: 12px;
    background: rgba(2, 21, 35, 0.68);
    box-shadow: 0 0 22px rgba(56, 221, 255, 0.13);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.small-design-fact {
    min-height: 94px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.8rem;
    align-items: center;
    padding: 1rem 1.2rem;
}

.small-design-fact + .small-design-fact {
    border-left: 1px solid rgba(56, 221, 255, 0.34);
}

.small-design-fact-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.small-design-fact-icon svg {
    width: 58%;
    height: 58%;
}

.small-design-fact-copy {
    margin: 0;
    color: rgba(245, 252, 255, 0.82);
    font-size: clamp(0.86rem, 1vw, 1rem);
    line-height: 1.16;
}

.small-design-fact-copy strong,
.small-design-fact-copy span {
    display: block;
}

.small-design-fact-copy strong {
    color: #ffffff;
    font-weight: 700;
}

[data-theme="light"] .landing-small-design {
    --small-design-bg: #f8fcff;
    color: #071522;
    background: var(--small-design-bg);
}

[data-theme="light"] .landing-small-design::before {
    background-image: url('/assets/images/small-by-design.webp');
}

[data-theme="light"] .landing-small-design::after {
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.84) 0%,
            rgba(255, 255, 255, 0.18) 34%,
            rgba(255, 255, 255, 0) 62%,
            rgba(255, 255, 255, 0.12) 100%),
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.22) 0%,
            rgba(255, 255, 255, 0) 34%,
            rgba(255, 255, 255, 0.82) 100%);
}

[data-theme="light"] .small-design-title-line--light {
    color: #071522;
}

[data-theme="light"] .small-design-title::before {
    background-image: url('/assets/images/nibbly-icon.svg');
    filter: drop-shadow(0 8px 18px rgba(10, 76, 110, 0.16));
}

[data-theme="light"] .small-design-subtitle,
[data-theme="light"] .small-design-metric-label,
[data-theme="light"] .small-design-fact-copy {
    color: var(--color-slate);
}

[data-theme="light"] .small-design-fact-copy strong {
    color: #071522;
}

[data-theme="light"] .small-design-panel,
[data-theme="light"] .small-design-facts,
[data-theme="light"] .small-design-rail {
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(18, 109, 153, 0.42);
    box-shadow: 0 14px 34px rgba(10, 76, 110, 0.1);
}

[data-theme="light"] .small-design-metric + .small-design-metric,
[data-theme="light"] .small-design-fact + .small-design-fact {
    border-color: rgba(18, 109, 153, 0.26);
}

/* ============================================
   3. FEATURES GRID
   ============================================ */
.landing-features {
    padding: clamp(5rem, 8vw, 8rem) 0;
    background:
        radial-gradient(circle at 35% 45%, rgba(39, 191, 255, 0.12), transparent 34rem),
        radial-gradient(circle at 74% 13%, rgba(53, 153, 255, 0.16), transparent 28rem),
        linear-gradient(180deg, #020812 0%, #04101d 42%, #02070f 100%);
    color: var(--color-text-on-dark);
    position: relative;
    overflow: hidden;
}

.landing-features::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(97, 210, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(97, 210, 255, 0.04) 1px, transparent 1px);
    background-size: 6rem 6rem;
    mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 72%);
}

.landing-features .landing-container {
    position: relative;
    z-index: 1;
    max-width: 1500px;
}

.features-mascot {
    grid-column: 1 / 4;
    grid-row: 3 / 7;
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    z-index: 6;
    pointer-events: none;
}

.features-mascot-img {
    position: absolute;
    left: clamp(-2.4rem, -2vw, -1.2rem);
    bottom: calc(clamp(-4rem, -2.55vw, -1.65rem) + 2px);
    width: min(124%, 34rem);
    max-width: none;
    height: auto;
    display: block;
    filter: drop-shadow(0 1.4rem 2.4rem rgba(0, 0, 0, 0.58));
}

.features-showcase {
    --feature-cyan: var(--color-primary-glow);
    --feature-cyan-soft: var(--color-primary-glow);
    --feature-panel: rgba(4, 15, 30, 0.78);
    --feature-panel-deep: rgba(2, 10, 22, 0.9);
    --feature-line: rgba(91, 213, 255, 0.72);
    --feature-muted: rgba(225, 237, 247, 0.76);
    display: grid;
    position: relative;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(5.8rem, 7vw));
    gap: clamp(1rem, 1.6vw, 1.45rem);
    align-items: stretch;
}

.feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(16, 41, 68, 0.82), rgba(3, 12, 25, 0.9) 58%, rgba(2, 8, 17, 0.96)),
        var(--feature-panel);
    border: 2px solid var(--feature-line);
    box-shadow:
        0 0 0 1px rgba(56, 205, 255, 0.12) inset,
        0 0 26px rgba(44, 197, 255, 0.2),
        0 22px 60px rgba(0, 0, 0, 0.38);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(134, 226, 255, 0.96);
    box-shadow:
        0 0 0 2px rgba(84, 214, 255, 0.22) inset,
        0 0 42px rgba(44, 197, 255, 0.28),
        0 26px 70px rgba(0, 0, 0, 0.44);
}

.feature-card > * {
    position: relative;
    z-index: 3;
}

.features-intro {
    grid-area: intro;
    grid-column: 1 / 3;
    grid-row: 1 / 5;
    position: relative;
    min-height: 0;
    padding: 0;
}

.features-kicker {
    display: block;
    min-height: 0;
    padding: 0;
    margin-bottom: clamp(1.45rem, 2.4vw, 2.25rem);
    background: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.78rem, 1.05vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.features-kicker strong {
    color: var(--feature-cyan);
}

.features-title {
    margin: 0;
    max-width: 17.5rem;
    color: #f6f8fb;
    font-size: clamp(2.25rem, 3.55vw, 4.15rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.features-title span {
    color: var(--feature-cyan);
    text-shadow:
        0 0 14px rgba(56, 221, 255, 0.68),
        0 0 34px rgba(56, 221, 255, 0.32);
}

.features-title i {
    color: #ffb14c;
    font-style: normal;
}

.features-copy {
    margin-top: clamp(1.6rem, 2.5vw, 2.7rem);
    color: var(--feature-muted);
    font-size: clamp(1.05rem, 1.35vw, 1.45rem);
    line-height: 1.5;
}

.feature-card-copy h3,
.feature-editor-copy h3 {
    margin: 0;
    color: var(--feature-cyan);
    font-size: clamp(1.35rem, 1.65vw, 1.9rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 0 22px rgba(49, 205, 255, 0.34);
}

.feature-card-copy p,
.feature-editor-copy p {
    margin: 0.65rem 0 0;
    color: var(--feature-muted);
    font-size: clamp(0.98rem, 1.1vw, 1.2rem);
    line-height: 1.45;
}

.feature-card-editor {
    grid-area: editor;
    grid-column: 3 / 8;
    grid-row: 1 / 6;
    align-self: stretch;
    width: auto;
    margin-left: 0;
    min-height: 0;
    height: auto;
    padding: 0;
    border-radius: 22px;
    background:
        radial-gradient(circle at 68% 38%, rgba(32, 135, 196, 0.22), transparent 22rem),
        linear-gradient(150deg, rgba(11, 42, 70, 0.92), rgba(4, 14, 29, 0.95) 58%, rgba(1, 8, 18, 0.98));
    border: 2px solid rgba(91, 213, 255, 0.9);
    box-shadow:
        0 0 0 2px rgba(65, 211, 255, 0.16) inset,
        0 0 34px rgba(41, 199, 255, 0.26),
        0 24px 70px rgba(0, 0, 0, 0.48);
    overflow: visible;
}

.feature-card-editor:hover {
    transform: none;
    border-color: rgba(134, 226, 255, 0.96);
    box-shadow:
        0 0 0 2px rgba(65, 211, 255, 0.18) inset,
        0 0 42px rgba(41, 199, 255, 0.3),
        0 24px 70px rgba(0, 0, 0, 0.48);
}

.feature-card-editor::before,
.feature-card-editor::after {
    display: none;
}

.feature-window-bar {
    display: flex;
    align-items: center;
    gap: clamp(0.7rem, 1.1vw, 1rem);
    min-height: 4rem;
    padding: 0 clamp(1.2rem, 2vw, 1.8rem);
    border-bottom: 1px solid rgba(91, 213, 255, 0.34);
    color: rgba(222, 235, 249, 0.75);
    font-size: clamp(0.9rem, 1.1vw, 1.15rem);
    background: rgba(2, 10, 22, 0.2);
}

.feature-window-bar span {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #ec5a45;
}

.feature-window-bar span:nth-child(2) {
    background: #f6ad3e;
}

.feature-window-bar span:nth-child(3) {
    background: #65c56f;
    margin-right: clamp(1.2rem, 3vw, 3.4rem);
}

.feature-window-bar strong {
    color: var(--feature-cyan);
    text-shadow: 0 0 18px rgba(49, 205, 255, 0.42);
}

.feature-window-bar em {
    font-style: normal;
}

.feature-window-bar small {
    margin-left: auto;
    color: rgba(222, 235, 249, 0.82);
    font-size: inherit;
}

.feature-window-bar small::first-letter {
    color: #64cb78;
}

.feature-editor-body {
    position: relative;
    min-height: calc(100% - 4rem);
    height: calc(100% - 4rem);
    padding: clamp(5.25rem, 6.4vw, 6.2rem) clamp(1.75rem, 2.9vw, 3.25rem) clamp(1.8rem, 3vw, 3.1rem) clamp(3.8rem, 5vw, 5rem);
}

.feature-editor-copy {
    --feature-title-left: clamp(-2rem, -2.1vw, -1.25rem);
    --feature-title-width: clamp(34rem, 36vw, 42rem);
    --feature-title-center: clamp(17rem, 18vw, 21rem);
    position: relative;
    z-index: 7;
    max-width: min(84%, 48rem);
    min-width: 0;
}

.feature-format-bar {
    display: inline-flex;
    position: absolute;
    z-index: 8;
    top: 0;
    left: calc(var(--feature-title-left) + var(--feature-title-center));
    transform: translate(-50%, -80%);
    align-items: center;
    gap: 0;
    min-height: 3.25rem;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(91, 213, 255, 0.78);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(13, 49, 78, 0.92), rgba(4, 16, 32, 0.96)),
        rgba(4, 15, 30, 0.9);
    color: rgba(213, 239, 255, 0.94);
    box-shadow:
        0 0 0 1px rgba(56, 205, 255, 0.12) inset,
        0 0 24px rgba(44, 197, 255, 0.28),
        0 1rem 2rem rgba(0, 0, 0, 0.28);
    font-size: clamp(0.88rem, 1.05vw, 1.05rem);
}

.feature-format-bar button {
    appearance: none;
    display: inline-grid;
    place-items: center;
    width: clamp(2.65rem, 3.55vw, 3.25rem);
    min-height: 3.25rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(213, 239, 255, 0.94);
    font-weight: 800;
    line-height: 1;
    cursor: default;
    font: inherit;
}

.feature-format-bar button + button,
.feature-format-separator {
    border-left: 1px solid rgba(91, 213, 255, 0.22);
}

.feature-format-bar b,
.feature-format-bar i {
    font-size: 1em;
    line-height: 1;
}

.feature-format-bar button[data-action="link"]::before {
    content: '';
    width: 1.05rem;
    height: 1.05rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 8px rgba(56, 221, 255, 0.34));
}

.feature-format-bar button[data-command="removeFormat"]::before {
    content: '';
    width: 1.05rem;
    height: 1.05rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.24 3.56l4.95 4.94c.78.79.78 2.05 0 2.84L12 20.53a4.008 4.008 0 0 1-5.66 0L2.81 17c-.78-.79-.78-2.05 0-2.84l10.6-10.6c.79-.78 2.05-.78 2.83 0M4.22 15.58l3.54 3.53c.78.79 2.04.79 2.83 0l3.53-3.53-4.95-4.95-4.95 4.95z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.24 3.56l4.95 4.94c.78.79.78 2.05 0 2.84L12 20.53a4.008 4.008 0 0 1-5.66 0L2.81 17c-.78-.79-.78-2.05 0-2.84l10.6-10.6c.79-.78 2.05-.78 2.83 0M4.22 15.58l3.54 3.53c.78.79 2.04.79 2.83 0l3.53-3.53-4.95-4.95-4.95 4.95z'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 8px rgba(56, 221, 255, 0.34));
}

.feature-format-separator {
    align-self: stretch;
    width: 0;
    height: auto;
    margin: 0;
}

.feature-format-bar button[data-action="html-source"] {
    font-weight: 800;
    font-size: 0.92em;
}

.feature-editor-copy h3 {
    position: relative;
    z-index: 1;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    left: var(--feature-title-left);
    width: var(--feature-title-width);
    max-width: none;
    padding: 0.28rem 1rem 0.52rem;
    border: 1px dashed rgba(81, 218, 255, 0.9);
    color: #f7f8fb;
    font-size: clamp(3.7rem, 4.6vw, 5rem);
    line-height: 0.92;
    letter-spacing: -0.045em;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.feature-editor-copy h3 span {
    color: rgba(168, 190, 216, 0.76);
}

.feature-editor-copy h3 span::after {
    content: none;
}

.feature-editor-copy h3 span:last-of-type::after {
    content: '';
    display: inline-block;
    width: 0.12em;
    height: 0.95em;
    margin-left: 0.12em;
    border-radius: 999px;
    background: var(--feature-cyan);
    box-shadow: 0 0 18px rgba(56, 221, 255, 0.72);
    vertical-align: -0.08em;
    animation: feature-caret-blink 1s steps(1, end) infinite;
}

@keyframes feature-caret-blink {
    0%, 48% { opacity: 1; }
    49%, 100% { opacity: 0; }
}

.feature-editor-copy p {
    max-width: 25.5rem;
    margin: 0;
    font-size: clamp(1.15rem, 1.38vw, 1.43rem);
}

.feature-editor-lower {
    position: absolute;
    z-index: 7;
    left: calc(clamp(3.8rem, 5vw, 5rem) + clamp(2.2rem, 4.5vw, 4.4rem));
    bottom: clamp(1.8rem, 3vw, 3.1rem);
    max-width: 25.5rem;
}

.feature-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    align-items: center;
    margin: clamp(0.9rem, 1.25vw, 1.35rem) 0 0;
}

.feature-editor-actions a:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3.4rem;
    padding: 0 1.65rem;
    border: 1px solid rgba(75, 215, 255, 0.9);
    border-radius: 8px;
    color: var(--feature-cyan-soft);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 0 24px rgba(47, 203, 255, 0.3);
}

.feature-editor-actions a:last-child {
    color: var(--feature-cyan);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.38rem;
}

.feature-editor-image {
    position: absolute;
    z-index: 2;
    right: clamp(1.15rem, 2vw, 1.95rem);
    top: clamp(4.1rem, 5.2vw, 5.2rem);
    bottom: clamp(1.65rem, 2.8vw, 2.55rem);
    width: clamp(9.6rem, 14.4vw, 13.4rem);
    max-width: 29%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 0 26px rgba(49, 205, 255, 0.16);
}

.features-side-stack {
    grid-area: side;
    display: contents;
}

.feature-card-backup {
    grid-column: 8 / 10;
    grid-row: 1 / 4;
    display: flex;
    flex-direction: column;
}

.feature-card-media {
    grid-column: 8 / 10;
    grid-row: 4 / 7;
    display: flex;
    flex-direction: column;
}

.feature-card-backup,
.feature-card-media,
.feature-card-multilingual,
.feature-card-urls,
.feature-card-security {
    padding: clamp(1.1rem, 2vw, 1.5rem);
}

.feature-card-backup img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 11.6rem;
    object-fit: contain;
    margin: auto auto 0;
}

.feature-card-backup > strong {
    display: none;
    margin-top: 0.35rem;
    color: var(--feature-cyan);
    font-size: 1.1rem;
}

.feature-card-media img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    margin: auto 0 0;
}

.feature-card-multilingual {
    grid-area: multi;
    grid-column: 1 / 4;
    grid-row: 7 / 9;
    min-height: 0;
}

.feature-card-multilingual .feature-card-copy {
    padding-right: min(42%, 8rem);
}

.feature-card-urls {
    grid-area: urls;
    grid-column: 4 / 7;
    grid-row: 7 / 9;
    min-height: 0;
    overflow: hidden;
}

.feature-card-urls .feature-card-copy {
    max-width: 10.5rem;
}

.feature-card-security {
    grid-area: security;
    grid-column: 7 / 10;
    grid-row: 7 / 9;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(9rem, 0.9fr);
    gap: 1rem;
    align-items: center;
    min-height: 0;
}

.feature-card-multilingual > *,
.feature-card-urls > *,
.feature-card-security > * {
    z-index: 7;
}

.feature-globe {
    position: absolute;
    right: clamp(1rem, 1.6vw, 1.6rem);
    top: 1.25rem;
    width: min(27%, 7rem);
}

.feature-selectors {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: clamp(1.2rem, 1.8vw, 1.8rem);
    width: calc(100% - clamp(2.2rem, 4vw, 3rem));
    max-width: none;
    transform: translateX(-50%);
}

.feature-url-stack {
    display: grid;
    position: absolute;
    left: clamp(1.55rem, 2.1vw, 2rem);
    right: clamp(1.5rem, 2vw, 2rem);
    bottom: clamp(1.25rem, 1.9vw, 1.9rem);
    gap: 0.75rem;
    margin-top: 0;
    align-items: end;
    justify-items: start;
}

.feature-url-stack img {
    width: auto;
    height: clamp(2.55rem, 3.35vw, 3.05rem);
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: left center;
}

.feature-url-stack img:first-child {
    justify-self: end;
}

.feature-url-image--pretty {
    justify-self: end;
}

.feature-url-image--ugly {
    justify-self: start;
}

.feature-card-security img {
    width: auto;
    max-width: 100%;
    max-height: clamp(6.5rem, 7.4vw, 9rem);
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(49, 205, 255, 0.24));
}

.page-landing .landing-features .feature-theme-image--light {
    display: none;
}


/* ============================================
   VIBE CODING SECTION
   ============================================ */
.landing-vibecoding {
    --feature-cyan: var(--color-primary-glow);
    padding: clamp(4rem, 6vw, 6.5rem) 0;
    background: #01060d;
    color: var(--color-text-on-dark);
    position: relative;
    border-top: 2px solid rgba(56, 221, 255, 0.42);
    border-bottom: 2px solid rgba(56, 221, 255, 0.42);
    box-shadow: inset 0 1px 0 rgba(125, 240, 255, 0.12);
}

.landing-vibecoding .landing-container {
    max-width: 1180px;
}

.landing-vibecoding .landing-section-heading {
    margin: 0;
    color: #ffffff;
    font-size: clamp(4.2rem, 6.6vw, 7.25rem);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.055em;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    text-wrap: balance;
}

.landing-vibecoding .landing-section-heading span {
    display: inline;
}

.landing-vibecoding .landing-section-heading span + span {
    color: var(--feature-cyan);
    text-shadow:
        0 0 24px rgba(56, 221, 255, 0.62),
        0 0 54px rgba(56, 221, 255, 0.24);
}

.landing-vibecoding .landing-section-heading .editable-field span:nth-of-type(2) {
    color: var(--feature-cyan);
    text-shadow:
        0 0 24px rgba(56, 221, 255, 0.62),
        0 0 54px rgba(56, 221, 255, 0.24);
}

.landing-vibecoding .section-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.78rem, 1.05vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: none;
}

.landing-how-it-works .section-label,
.landing-structure .section-label {
    color: var(--feature-cyan);
    text-shadow: 0 0 18px rgba(56, 221, 255, 0.3);
}

.landing-vibecoding .landing-section-desc {
    max-width: 430px;
    margin-top: clamp(1.25rem, 2vw, 1.75rem);
    color: rgba(235, 248, 255, 0.86);
    font-size: clamp(1.15rem, 1.55vw, 1.5rem);
    font-weight: 500;
    line-height: 1.32;
}

.landing-section-header-left {
    text-align: left;
}

.landing-section-header-left .landing-section-desc {
    max-width: 640px;
    margin-left: 0;
    margin-right: 0;
}

.landing-vibecoding .landing-section-header-left .landing-section-desc {
    max-width: 430px;
}

.vibecoding-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    align-items: start;
}

.vibecoding-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vibecoding-image {
    max-width: 420px;
    width: 100%;
    height: auto;
    padding: var(--spacing-sm);
}

/* Accordion */
.vibecoding-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Prevent layout shift while cards transition open/closed */
    min-height: 27.125rem; /* 434px — tallest card (mobile breakpoint) */
}

.vibecoding-card {
    border-bottom: 1px solid rgba(56, 221, 255, 0.34);
    box-shadow: 0 1px 0 rgba(125, 240, 255, 0.08);
    overflow: hidden;
}

.vibecoding-card:last-child {
    border-bottom: none;
}

.vibecoding-card-trigger {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font-family: inherit;
}

.vibecoding-card-trigger:hover .vibecoding-title {
    color: var(--color-primary-light);
}

.vibecoding-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 2px solid rgba(56, 221, 255, 0.58);
    background: rgba(2, 32, 52, 0.48);
    color: var(--feature-cyan);
    box-shadow:
        0 0 16px rgba(56, 221, 255, 0.26),
        0 0 0 1px rgba(125, 240, 255, 0.12) inset;
    transition: background var(--transition-fast);
}

.vibecoding-card-active .vibecoding-icon {
    background: rgba(2, 32, 52, 0.64);
}

.vibecoding-icon svg {
    width: 58%;
    height: 58%;
}

.vibecoding-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-text-on-dark-muted);
    transition: color var(--transition-fast);
}

.vibecoding-card-active .vibecoding-title {
    color: var(--color-text-on-dark);
}

.vibecoding-card-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
    padding-left: calc(40px + var(--spacing-sm));
}

.vibecoding-card-body > * {
    overflow: hidden;
}

.vibecoding-card-active .vibecoding-card-body {
    grid-template-rows: 1fr;
}

.vibecoding-card-active .vibecoding-card-body > * {
    padding-bottom: 1rem;
}

.vibecoding-desc {
    font-size: 0.9rem;
    color: var(--color-text-on-dark-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .landing-vibecoding,
    .landing-how-it-works,
    .landing-structure {
        padding-block: clamp(3.4rem, 12vw, 4.5rem);
    }

    .landing-vibecoding .landing-section-heading,
    .landing-how-it-works .landing-section-heading,
    .landing-structure .landing-section-heading {
        font-size: clamp(2.55rem, 12vw, 4rem);
    }

    .vibecoding-layout {
        grid-template-columns: 1fr;
    }

    .vibecoding-visual {
        order: -1;
    }

    .vibecoding-image {
        max-width: 220px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .steps-connector {
        display: none;
    }

    .step-card {
        text-align: left;
    }
}


/* ============================================
   4. HOW IT WORKS
   ============================================ */
.landing-how-it-works {
    padding: clamp(4rem, 6vw, 6.5rem) 0;
    background: #01060d;
    color: var(--color-text-on-dark);
    border-top: 2px solid rgba(56, 221, 255, 0.36);
    border-bottom: 2px solid rgba(56, 221, 255, 0.36);
}

.landing-how-it-works .landing-section-heading {
    color: var(--feature-cyan);
    font-size: clamp(3rem, 5.4vw, 5.8rem);
    line-height: 0.96;
    text-shadow:
        0 0 26px rgba(56, 221, 255, 0.46),
        0 0 58px rgba(56, 221, 255, 0.16);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    position: relative;
}

.steps-connector {
    position: absolute;
    top: 32px;
    left: calc(16.67% + 30px);
    right: calc(16.67% + 30px);
    height: 2px;
    background: var(--color-border-dark);
    z-index: 0;
}

.steps-connector-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-brand);
    border-radius: 1px;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.steps-connector-fill.animate {
    width: 100%;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: clamp(1.35rem, 2vw, 1.85rem);
    border: 2px solid rgba(56, 221, 255, 0.58);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(11, 46, 76, 0.5), rgba(1, 6, 13, 0.78));
    box-shadow: 0 0 28px rgba(56, 221, 255, 0.12);
}

.step-number-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-brand);
    margin-bottom: var(--spacing-sm);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-bg-dark);
}

/* Steps entrance animation (runs once when section enters viewport) */
.steps-grid.steps-animate .step-card {
    opacity: 0;
}

.steps-grid.steps-animate .step-card .step-number-ring {
    transform: scale(0);
}

.steps-grid.steps-animate .step-card .step-title,
.steps-grid.steps-animate .step-card .step-desc {
    opacity: 0;
    transform: translateY(10px);
}

.steps-grid.steps-animate .step-card.step-visible {
    opacity: 1;
}

.steps-grid.steps-animate .step-card.step-visible .step-number-ring {
    animation: stepPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.steps-grid.steps-animate .step-card.step-visible .step-title,
.steps-grid.steps-animate .step-card.step-visible .step-desc {
    animation: stepTextIn 0.35s ease-out forwards;
}

@keyframes stepPop {
    0%   { transform: scale(0); }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes stepTextIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-on-dark);
}

.step-desc {
    font-size: 0.95rem;
    color: var(--color-text-on-dark-muted);
    line-height: 1.6;
    margin: 0;
}


/* ============================================
   5. CODE SHOWCASE
   ============================================ */
.landing-code-showcase {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

.code-showcase-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.code-showcase-text .landing-section-heading {
    text-align: left;
    color: var(--color-text-on-dark);
}

.code-showcase-text p {
    color: var(--color-text-on-dark-muted);
    line-height: 1.7;
}

.code-showcase-list {
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-sm);
}

.code-showcase-list li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: var(--color-text-on-dark-muted);
}

.code-showcase-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: 700;
}

.code-showcase-block {
    position: relative;
}

.code-window-glow {
    position: absolute;
    inset: -20px;
    background: var(--gradient-brand);
    opacity: 0.12;
    filter: blur(40px);
    border-radius: 24px;
    z-index: 0;
}

.code-window {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border-dark);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.code-window-bar {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--color-border-dark);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.code-dot-red { background: #ef4444; }
.code-dot-yellow { background: #f59e0b; }
.code-dot-green { background: var(--color-secondary); }

.code-window-title {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--color-text-on-dark-muted);
    font-family: var(--font-mono);
}

.code-content {
    background: #0d1117;
    color: #e6edf3;
    padding: var(--spacing-md);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.7;
    overflow-x: auto;
    font-family: var(--font-mono);
}

.code-content .token-key { color: #7df6fc; }
.code-content .token-string { color: #a3d9f0; }
.code-content .token-bracket { color: #737373; }
.code-content .token-value { color: #60c8cd; }
.code-content .token-bool { color: #f9a875; }


/* ============================================
   6 & 7. COMPARISON SECTIONS
   ============================================ */
.landing-comparison {
    padding: var(--spacing-xl) 0;
    padding-bottom: calc(var(--spacing-xl) + 3rem);
    position: relative;
}

.comparison-cards {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
}

.comparison-card {
    padding: 2.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: visible;
    position: relative;
    min-height: 380px;
}

.comparison-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--spacing-md);
}

.comparison-card-header h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0;
}

.comparison-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.comparison-icon-wp {
    background: #21759b;
    color: white;
}

.comparison-icon-next {
    background: #000;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.comparison-icon-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
}

.comparison-icon-nibbly {
    border-radius: 0;
}

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

.comparison-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
    border-bottom: 1px solid transparent;
}

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

.comparison-list-con li::before {
    content: '\2717';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: 700;
    font-size: 1rem;
}

.comparison-list-pro li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 1rem;
}

.comparison-card-body {
    flex: 1;
}

.comparison-card-visual {
    position: absolute;
    bottom: -3rem;
    z-index: 1;
}

.comparison-card-theirs .comparison-card-visual {
    left: -4rem;
    right: auto;
}

.comparison-card-ours .comparison-card-visual {
    right: -4rem;
}

.comparison-card-theirs {
    padding-left: min(17vw, 240px);
}

.comparison-card-ours {
    padding-right: min(17vw, 240px);
}

.comparison-illustration {
    width: min(22vw, 300px);
    height: auto;
}

.comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
}

.comparison-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Light comparison (vs WordPress) — no longer used, both sections dark */

/* Comparison card shared glass styling */

/* Dark comparison (vs Next.js) */
.landing-comparison-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

.landing-comparison-dark .landing-section-heading {
    color: var(--color-text-on-dark);
}

.landing-comparison-dark .landing-section-desc {
    color: var(--color-text-on-dark-muted);
}

.landing-comparison-dark .comparison-card-theirs,
.landing-comparison-dark .comparison-card-ours {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.landing-comparison-dark .comparison-card-theirs h3,
.landing-comparison-dark .comparison-card-ours h3 {
    color: var(--color-text-on-dark);
}

.landing-comparison-dark .comparison-card-theirs .comparison-list li,
.landing-comparison-dark .comparison-card-ours .comparison-list li {
    color: var(--color-text-on-dark-muted);
    border-bottom-color: var(--color-border-dark);
}

/* Elevated dark comparison (vs WordPress) — uses elevated bg for visual separation */
.landing-comparison-elevated {
    background: var(--color-bg-dark-elevated);
}

/* ============================================
   6. SIZE MATTERS COMPARISON
   ============================================ */
.landing-size-matters {
    --size-bg: #020812;
    --size-cyan: var(--color-primary-glow);
    --size-cyan-soft: rgba(56, 221, 255, 0.66);
    --size-amber: #ffb02e;
    --size-text: #ffffff;
    --size-muted: rgba(235, 248, 255, 0.86);
    position: relative;
    min-height: clamp(640px, 54vw, 860px);
    padding: clamp(4rem, 6vw, 6.2rem) 0 clamp(4.5rem, 6.6vw, 6.8rem);
    overflow: hidden;
    isolation: isolate;
    background: var(--size-bg);
    color: var(--size-text);
}

.landing-size-matters::after {
    content: none;
}

.landing-size-matters::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(620px 420px at 18% 62%, rgba(56, 221, 255, 0.09), transparent 70%),
        linear-gradient(90deg,
            rgba(2, 8, 18, 0.99) 0%,
            rgba(2, 8, 18, 0.96) 28%,
            rgba(2, 8, 18, 0.5) 42%,
            rgba(2, 8, 18, 0) 56%,
            rgba(2, 8, 18, 0) 100%),
        linear-gradient(180deg,
            rgba(2, 8, 18, 0.14) 0%,
            rgba(2, 8, 18, 0) 54%,
            rgba(2, 8, 18, 0.22) 100%);
}

.size-matters-inner {
    position: relative;
    z-index: 2;
    min-height: clamp(520px, 42vw, 680px);
    display: grid;
    grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
    grid-template-areas:
        "copy visual"
        "table visual";
    column-gap: clamp(1.4rem, 2.8vw, 3.8rem);
    align-items: center;
}

.size-matters-copy {
    grid-area: copy;
    align-self: end;
    position: relative;
    z-index: 3;
    width: min(440px, 100%);
}

.size-matters-table-wrap {
    grid-area: table;
    align-self: start;
    position: relative;
    z-index: 3;
    width: min(600px, calc(100% + 40px));
}

.size-matters-visual {
    grid-area: visual;
    position: relative;
    width: min(100%, 1120px);
    margin-left: auto;
    aspect-ratio: 1272 / 1002;
    align-self: center;
    isolation: isolate;
    z-index: 1;
    container-type: inline-size;
}

.size-matters-image {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.size-matters-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    transition: opacity 180ms ease;
}

.size-matters-image--light {
    display: none;
}

[data-theme="light"] .size-matters-image--dark {
    display: none;
}

[data-theme="light"] .size-matters-image--light {
    display: block;
}

[data-theme="light"] .size-matters-overlay {
    display: none;
}

.size-kicker {
    display: block;
    margin-bottom: clamp(1.45rem, 2.4vw, 2.25rem);
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.78rem, 1.05vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.size-kicker::first-letter {
    color: var(--size-cyan);
}

.size-heading {
    margin: 0;
    color: #ffffff;
    font-size: clamp(4.2rem, 6.6vw, 7.25rem);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.055em;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.size-heading span {
    color: var(--size-cyan);
    text-shadow:
        0 0 24px rgba(56, 221, 255, 0.62),
        0 0 54px rgba(56, 221, 255, 0.24);
}

.size-subtitle {
    max-width: 430px;
    margin-top: clamp(1.25rem, 2vw, 1.75rem);
    color: var(--size-muted);
    font-size: clamp(1.15rem, 1.55vw, 1.5rem);
    font-weight: 500;
    line-height: 1.32;
}

.size-subtitle span {
    color: var(--size-cyan);
}

.size-compare-table {
    width: 100%;
    margin-top: clamp(2rem, 2.6vw, 2.7rem);
    border-top: 1px solid rgba(56, 221, 255, 0.46);
    border-bottom: 1px solid rgba(56, 221, 255, 0.46);
}

.size-compare-head,
.size-compare-row {
    display: grid;
    grid-template-columns: 1.12fr 1.18fr 1.06fr 1.06fr;
}

.size-compare-head span,
.size-compare-row > span {
    min-width: 0;
    padding: 0.8rem 1.15rem;
    display: flex;
    align-items: center;
}

.size-compare-head span {
    justify-content: center;
    color: #ffffff;
    font-size: clamp(0.96rem, 1.14vw, 1.12rem);
    font-weight: 650;
}

.size-compare-row {
    border-top: 1px solid rgba(56, 221, 255, 0.28);
}

.size-compare-head span + span,
.size-compare-row > span + span {
    border-left: 1px solid rgba(56, 221, 255, 0.36);
}

.size-compare-row > span {
    color: var(--size-amber);
    justify-content: center;
    font-size: clamp(0.9rem, 1.05vw, 1.03rem);
    font-weight: 520;
    line-height: 1.22;
    text-align: center;
}

.size-compare-row > span:last-child {
    color: var(--size-cyan);
}

.size-compare-feature {
    justify-content: flex-start !important;
    gap: 0.72rem;
    padding-left: 0.75rem !important;
    padding-right: 1.45rem !important;
    color: #ffffff !important;
    text-align: left !important;
}

.size-compare-icon {
    width: clamp(25px, 2.2vw, 32px);
    height: clamp(25px, 2.2vw, 32px);
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--size-cyan);
    filter: drop-shadow(0 0 11px rgba(56, 221, 255, 0.4));
}

.size-compare-icon svg {
    width: 100%;
    height: 100%;
}

.size-compare-cta {
    margin-top: clamp(1.55rem, 2.2vw, 2.1rem);
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.85rem 1.25rem 0.85rem 1.35rem;
    color: var(--size-cyan);
    background: rgba(2, 27, 44, 0.48);
    border: 2px solid var(--size-cyan-soft);
    border-radius: 8px;
    box-shadow:
        0 0 0 1px rgba(125, 240, 255, 0.1) inset,
        0 0 22px rgba(56, 221, 255, 0.18);
    font-size: clamp(1.05rem, 1.45vw, 1.38rem);
    font-weight: 620;
    line-height: 1;
    text-decoration: none;
}

.btn.size-compare-cta {
    display: flex;
}

.size-compare-cta:hover {
    color: #ffffff;
    background: rgba(56, 221, 255, 0.13);
}

.size-notes {
    position: absolute;
    inset: 0;
    perspective: 900px;
    pointer-events: none;
    z-index: 4;
}

.size-hotspot {
    position: absolute;
    z-index: 5;
    display: block;
    border-radius: 10px;
    opacity: 0;
    pointer-events: auto;
}

.size-hotspot--wp {
    left: 14.5%;
    top: 12.2%;
    width: 23.6%;
    height: 80%;
}

.size-hotspot--next {
    left: 38.8%;
    top: 12.5%;
    width: 23%;
    height: 79.5%;
}

.size-hotspot--nibbly {
    left: 63.4%;
    top: 17.5%;
    width: 23.9%;
    height: 74.5%;
}

.size-matters-visual:has(.size-hotspot--wp:hover) .size-matters-overlay--wp,
.size-matters-visual:has(.size-hotspot--next:hover) .size-matters-overlay--next,
.size-matters-visual:has(.size-hotspot--nibbly:hover) .size-matters-overlay--nibbly {
    opacity: 1;
}

.size-note {
    --size-note-x: 0;
    --size-note-perspective: 800px;
    --size-note-rotate-x: 0deg;
    --size-note-rotate-y: 30deg;
    --size-note-rotate-z: 0deg;
    position: absolute;
    top: 76.6%;
    width: 18.6cqw;
    min-height: 10.6cqw;
    padding: 1.35cqw 1.45cqw 1.28cqw;
    border: 2px solid rgba(56, 221, 255, 0.74);
    border-radius: 8px;
    background: rgba(2, 21, 35, 0.64);
    box-shadow:
        0 0 0 1px rgba(125, 240, 255, 0.1) inset,
        0 0 18px rgba(56, 221, 255, 0.16);
    opacity: 0;
    transform: translateY(24px) perspective(var(--size-note-perspective)) rotateX(var(--size-note-rotate-x)) rotateY(var(--size-note-rotate-y)) rotateZ(var(--size-note-rotate-z));
    transform-origin: 50% 100%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition:
        opacity 520ms ease,
        transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 220ms ease,
        border-color 220ms ease,
        background 220ms ease;
    will-change: opacity, transform;
    pointer-events: auto;
}

.size-note--1 {
    left: 18.3%;
}

.size-note--2 {
    left: 38.8%;
}

.size-note--3 {
    --size-note-perspective: 760px;
    --size-note-rotate-x: 0deg;
    --size-note-rotate-y: 18deg;
    --size-note-rotate-z: 0deg;
    left: 59.3%;
}

.size-hotspot--wp:hover ~ .size-notes .size-note--1,
.size-hotspot--next:hover ~ .size-notes .size-note--2,
.size-hotspot--nibbly:hover ~ .size-notes .size-note--3 {
    transform: translateY(-0.8cqw) perspective(var(--size-note-perspective)) rotateX(var(--size-note-rotate-x)) rotateY(var(--size-note-rotate-y)) rotateZ(var(--size-note-rotate-z));
}

.landing-size-matters.size-notes-visible .size-note {
    opacity: 1;
    transform: translateY(0) perspective(var(--size-note-perspective)) rotateX(var(--size-note-rotate-x)) rotateY(var(--size-note-rotate-y)) rotateZ(var(--size-note-rotate-z));
}

.landing-size-matters.size-notes-visible .size-note--2 {
    transition-delay: 140ms;
}

.landing-size-matters.size-notes-visible .size-note--3 {
    transition-delay: 280ms;
}

.size-note strong,
.size-note span {
    display: block;
}

.size-note strong {
    color: var(--size-cyan);
    font-size: clamp(0.72rem, 1.38cqw, 0.98rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.size-note span {
    margin-top: 0.46rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.74rem, 1.28cqw, 0.96rem);
    line-height: 1.25;
}

[data-theme="light"] .landing-size-matters {
    --size-bg: #f8fcff;
    --size-text: #071522;
    --size-muted: #17314a;
    background: var(--size-bg);
    color: var(--size-text);
}

[data-theme="light"] .landing-size-matters::before {
    background:
        radial-gradient(620px 420px at 18% 62%, rgba(16, 159, 205, 0.1), transparent 70%),
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.94) 30%,
            rgba(255, 255, 255, 0.72) 40%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0) 100%);
}

[data-theme="light"] .size-kicker,
[data-theme="light"] .size-heading,
[data-theme="light"] .size-compare-head span,
[data-theme="light"] .size-compare-feature,
[data-theme="light"] .size-note span {
    color: #071522 !important;
    text-shadow: none;
}

[data-theme="light"] .size-heading span,
[data-theme="light"] .size-subtitle span,
[data-theme="light"] .size-compare-row > span:last-child,
[data-theme="light"] .size-compare-icon,
[data-theme="light"] .size-compare-cta,
[data-theme="light"] .size-note strong {
    color: #109fcd;
}

[data-theme="light"] .size-compare-table,
[data-theme="light"] .size-compare-row,
[data-theme="light"] .size-compare-head span + span,
[data-theme="light"] .size-compare-row > span + span,
[data-theme="light"] .size-compare-cta,
[data-theme="light"] .size-note {
    border-color: rgba(18, 109, 153, 0.34);
}

[data-theme="light"] .size-compare-cta,
[data-theme="light"] .size-note {
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 12px 28px rgba(10, 76, 110, 0.08);
}


/* ============================================
   8. DIRECTORY STRUCTURE
   ============================================ */
.landing-structure {
    padding: clamp(4rem, 6vw, 6.5rem) 0;
    background: #01060d;
    color: var(--color-text-on-dark);
    border-top: 2px solid rgba(56, 221, 255, 0.36);
    border-bottom: 2px solid rgba(56, 221, 255, 0.36);
}

.landing-structure .landing-section-heading {
    max-width: 820px;
    margin-inline: auto;
    color: #f6f8fb;
    font-family: var(--font-display);
    font-size: clamp(3rem, 5.2vw, 5.4rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.035em;
    text-wrap: balance;
    text-shadow:
        0 0 18px rgba(255, 255, 255, 0.12),
        0 0 38px rgba(56, 221, 255, 0.18);
}

.landing-structure .section-label {
    color: var(--color-primary-glow);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dir-tree {
    max-width: 540px;
    margin: 0 auto;
    background: var(--color-bg-dark-card);
    border: 2px solid rgba(56, 221, 255, 0.54);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(56, 221, 255, 0.12);
}

.dir-tree-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--color-border-dark);
}

.dir-tree-header .code-dot {
    width: 10px;
    height: 10px;
}

.dir-tree-title {
    font-size: 0.8rem;
    color: var(--color-text-on-dark-muted);
    font-family: var(--font-mono);
    margin-left: 8px;
}

.dir-tree-list {
    list-style: none;
    padding: var(--spacing-sm) var(--spacing-md);
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.dir-tree-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border-dark);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text-on-dark);
}

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

.dir-folder::before {
    content: '\1F4C1  ';
}

.dir-file::before {
    content: '\1F4C4  ';
}

.dir-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-on-dark-muted);
    margin-left: auto;
}


/* ============================================
   9. METRICS
   ============================================ */
.landing-metrics {
    display: none;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    background: var(--gradient-brand-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 450;
    color: var(--color-text-on-dark-muted);
    letter-spacing: 0.01em;
}


/* ============================================
   10. CTA
   ============================================ */
.landing-cta {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
    overflow: hidden;
}

.cta-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-orb-3 {
    width: 600px;
    height: 600px;
    background: rgba(97, 171, 205, 0.1);
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
}

.cta-bg-effects::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 207, 252, 0.15) 0%, transparent 70%);
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.hero-orb-4 {
    width: 400px;
    height: 400px;
    background: rgba(13, 110, 155, 0.06);
    bottom: -20%;
    left: -10%;
}

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

.cta-heading {
    font-size: 2.6rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-brand-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-wrap: balance;
}

.cta-text {
    font-size: 1.15rem;
    color: var(--color-text-on-dark-muted);
    margin-bottom: var(--spacing-md);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-mascot {
    margin-bottom: var(--spacing-md);
}

.cta-mascot-img {
    width: 180px;
    height: auto;
}

.cta-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
}

.cta-license {
    font-size: 0.85rem;
    color: var(--color-text-on-dark-muted);
    opacity: 0.6;
    margin: 0;
}


/* ============================================
   HEADER — Landing Page Dark Overrides
   ============================================ */
.page-landing .site-header {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--color-border-dark);
}

.page-landing .site-header.header-transparent {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.page-landing .site-header .nav-list a,
.page-landing .site-header .site-logo {
    color: var(--color-text-on-dark);
}

.page-landing .logo-light { display: none; }
.page-landing .logo-dark { display: inline; }

.page-landing .site-header .nav-list a:hover,
.page-landing .site-header .nav-list a.active {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.page-landing .site-header .hamburger span {
    background: var(--color-text-on-dark);
}

.page-landing .site-header .lang-link {
    color: var(--color-text-on-dark-muted);
}

.page-landing .site-header .lang-link.active {
    color: white;
}

/* Mobile nav on landing (dark) */
.page-landing .mobile-nav-overlay {
    background: var(--color-bg-dark);
}

.page-landing .mobile-nav-list a {
    color: var(--color-text-on-dark);
}

.page-landing .mobile-nav-lang a {
    color: var(--color-text-on-dark-muted);
}

.page-landing .mobile-theme-toggle {
    border-top-color: var(--color-border-dark);
}

.page-landing .theme-toggle-mobile {
    color: var(--color-text-on-dark-muted);
    border-color: var(--color-border-dark);
}

.page-landing .theme-toggle-mobile:hover,
.page-landing .theme-toggle-mobile.active {
    color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    background: rgba(97, 171, 205, 0.1);
}

/* Light theme overrides for mobile nav on landing */
[data-theme="light"] .page-landing .mobile-nav-overlay {
    background: var(--color-background);
}

[data-theme="light"] .page-landing .mobile-nav-list a {
    color: var(--color-text);
}

[data-theme="light"] .page-landing .mobile-nav-lang a {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-landing .mobile-theme-toggle {
    border-top-color: var(--color-border);
}

[data-theme="light"] .page-landing .theme-toggle-mobile {
    color: var(--color-text-secondary);
    border-color: var(--color-border);
}

[data-theme="light"] .page-landing .theme-toggle-mobile:hover,
[data-theme="light"] .page-landing .theme-toggle-mobile.active {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}


/* ============================================
   FOOTER — Landing Page Dark Overrides
   ============================================ */
.page-landing .footer {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark-muted);
}

.page-landing .footer .logo-light { display: none; }
.page-landing .footer .logo-dark { display: inline; }

.page-landing .footer-accent {
    background: linear-gradient(90deg, transparent 0%, var(--color-primary-light) 50%, transparent 100%);
    opacity: 0.15;
}

.page-landing .footer-bottom {
    border-top-color: var(--color-border-dark);
}

.page-landing .footer a {
    color: var(--color-text-on-dark-muted);
}

.page-landing .footer a:hover {
    color: white;
}

.page-landing .footer-tagline {
    color: var(--color-text-on-dark);
}

.page-landing .footer-col-heading {
    color: var(--color-text-on-dark-muted);
}

.page-landing .footer-copyright,
.page-landing .footer-credit,
.page-landing .footer-services,
.page-landing .footer-claim,
.page-landing .footer-contact-item {
    color: var(--color-text-on-dark-muted);
}

.page-landing .meta-links a {
    color: var(--color-text-on-dark-muted);
}

.page-landing .meta-links a:hover {
    color: white;
}


/* ============================================
   LANDING PAGE — Light Theme Overrides
   ============================================ */
[data-theme="light"] .page-landing .landing-features,
[data-theme="light"] .page-landing .landing-code-showcase,
[data-theme="light"] .page-landing .landing-comparison-dark,
[data-theme="light"] .page-landing .landing-cta {
    background: var(--color-background);
    color: var(--color-text);
}

[data-theme="light"] .page-landing .section-label {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--color-secondary);
}

[data-theme="light"] .page-landing .metric-value,
[data-theme="light"] .page-landing .trust-value {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--color-secondary);
}

[data-theme="light"] .page-landing .metric-label {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .page-landing .landing-trust-bar,
[data-theme="light"] .page-landing .landing-comparison-elevated,
[data-theme="light"] .page-landing .landing-vibecoding,
[data-theme="light"] .page-landing .landing-structure {
    background: var(--color-mist-light);
    color: var(--color-text);
}
[data-theme="light"] .page-landing .landing-how-it-works,
[data-theme="light"] .page-landing .landing-metrics {
    background: var(--color-mist);
    color: var(--color-text);
}


[data-theme="light"] .page-landing .landing-trust-bar {
    border-top-color: var(--color-border);
    border-bottom-color: var(--color-border);
}

/* Light: text colors */
[data-theme="light"] .page-landing .landing-section-desc,
[data-theme="light"] .page-landing .feature-desc,
[data-theme="light"] .page-landing .step-desc,
[data-theme="light"] .page-landing .code-showcase-text p,
[data-theme="light"] .page-landing .code-showcase-list li,
[data-theme="light"] .page-landing .trust-label,
[data-theme="light"] .page-landing .metric-label,
[data-theme="light"] .page-landing .cta-text,
[data-theme="light"] .page-landing .cta-license,
[data-theme="light"] .page-landing .dir-label,
[data-theme="light"] .page-landing .comparison-card-theirs .comparison-list li,
[data-theme="light"] .page-landing .comparison-card-ours .comparison-list li,
[data-theme="light"] .page-landing .vibecoding-desc {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-landing .landing-section-heading,
[data-theme="light"] .page-landing .feature-title,
[data-theme="light"] .page-landing .step-title,
[data-theme="light"] .page-landing .comparison-card-header h3,
[data-theme="light"] .page-landing .vibecoding-title,
[data-theme="light"] .page-landing .dir-tree-list li {
    color: var(--color-text);
}

[data-theme="light"] .page-landing .hero-title {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #071522;
    text-shadow: none;
}

[data-theme="light"] .page-landing .hero-title-line--light {
    color: #071522;
    -webkit-text-fill-color: #071522;
}

[data-theme="light"] .page-landing .hero-title-line--accent {
    color: var(--color-primary-glow);
    -webkit-text-fill-color: var(--color-primary-glow);
    text-shadow: 0 0 18px rgba(46, 208, 249, 0.2);
}

[data-theme="light"] .page-landing .landing-hero::before {
    background-image: url('/assets/images/hero-nibbly-beaver-desk.webp');
}

[data-theme="light"] .page-landing .landing-hero::after {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(255, 255, 255, 0.88) 24%,
        rgba(255, 255, 255, 0.48) 34%,
        rgba(255, 255, 255, 0.12) 43%,
        rgba(255, 255, 255, 0) 52%);
}

[data-theme="light"] .page-landing .footer-logo::before {
    background-image: url('/assets/images/nibbly-main-icon.svg');
}

[data-theme="light"] .page-landing .hero-subtitle {
    color: var(--color-slate);
}

[data-theme="light"] .page-landing .hero-footnote {
    color: #5d7282;
}

[data-theme="light"] .landing-hero .hero-actions .btn-gradient {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.42) inset,
        0 8px 18px rgba(10, 76, 110, 0.14);
}

[data-theme="light"] .landing-hero .hero-actions .btn-ghost {
    color: #17314a;
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(13, 82, 116, 0.16);
    box-shadow: 0 6px 14px rgba(10, 76, 110, 0.08);
}

[data-theme="light"] .landing-hero .hero-actions .btn-ghost:hover {
    color: #0d6f99;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(46, 208, 249, 0.34);
}

/* Light: vibecoding accordion */
[data-theme="light"] .page-landing .vibecoding-card {
    border-bottom-color: var(--color-border);
}

[data-theme="light"] .page-landing .vibecoding-title {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-landing .vibecoding-card-active .vibecoding-title {
    color: var(--color-text);
}

/* vibecoding illustration: no background needed (transparent) */

[data-theme="light"] .page-landing .vibecoding-icon {
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    color: var(--color-primary);
}

/* Light: hero badge */
[data-theme="light"] .page-landing .hero-badge {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--color-text);
}

/* Light: feature cards & glass cards */
[data-theme="light"] .page-landing .feature-card,
[data-theme="light"] .page-landing .glass-card {
    background: var(--color-background-card);
    border-color: var(--color-border);
    backdrop-filter: none;
}

[data-theme="light"] .page-landing .feature-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 24px rgba(97, 171, 205, 0.1);
}

/* Light: feature icons */
[data-theme="light"] .page-landing .feature-icon {
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    color: var(--color-primary);
}

/* Light: step number */
[data-theme="light"] .page-landing .step-number {
    color: #fff;
}

/* Light: steps connector */
[data-theme="light"] .page-landing .steps-connector {
    background: var(--color-border);
}

/* Light: code window */
[data-theme="light"] .page-landing .code-window {
    border-color: var(--color-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .page-landing .code-window-bar {
    background: var(--color-background-section);
    border-bottom-color: var(--color-border);
}

[data-theme="light"] .page-landing .code-window-title {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-landing .code-window-glow {
    opacity: 0.06;
}

/* Light: comparison cards */
[data-theme="light"] .page-landing .comparison-card-theirs,
[data-theme="light"] .page-landing .comparison-card-ours {
    background: var(--color-background-card);
    border-color: var(--color-border);
    backdrop-filter: none;
}

[data-theme="light"] .page-landing .comparison-card-theirs .comparison-list li,
[data-theme="light"] .page-landing .comparison-card-ours .comparison-list li {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .page-landing .landing-comparison-dark:not(.landing-comparison-elevated) .comparison-card-theirs,
[data-theme="light"] .page-landing .landing-comparison-dark:not(.landing-comparison-elevated) .comparison-card-ours {
    background: var(--color-mist-light);
}

/* comparison illustrations: no background needed (transparent) */

/* Light: directory tree */
[data-theme="light"] .page-landing .dir-tree {
    background: var(--color-background-card);
    border-color: var(--color-border);
}

[data-theme="light"] .page-landing .dir-tree-header {
    background: var(--color-background-section);
    border-bottom-color: var(--color-border);
}

[data-theme="light"] .page-landing .dir-tree-title {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-landing .dir-tree-list li {
    border-bottom-color: var(--color-border);
}

[data-theme="light"] .page-landing .landing-structure .section-label {
    color: #109fcd;
}

[data-theme="light"] .page-landing .landing-structure .landing-section-heading {
    color: #071522;
    text-shadow: none;
}

/* Light: buttons */
[data-theme="light"] .btn-ghost {
    color: var(--color-text);
    border-color: var(--color-border);
}

[data-theme="light"] .btn-ghost:hover {
    background: var(--color-background-section);
    border-color: var(--color-text-secondary);
    color: var(--color-text);
}

/* Light: CTA orbs are more subtle */
[data-theme="light"] .page-landing .hero-gradient-orb {
    opacity: 0.5;
}

/* Light: section bg effects adapt */
[data-theme="light"] .page-landing .features-halo {
    background: radial-gradient(circle, rgba(97, 171, 205, 0.2) 0%, rgba(97, 171, 205, 0.06) 40%, transparent 70%);
}

[data-theme="light"] .page-landing .feature-card::before {
    background: radial-gradient(
        400px circle at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(97, 171, 205, 0.5) 0%,
        transparent 40%
    );
}

[data-theme="light"] .page-landing .feature-card::after {
    background: radial-gradient(
        600px circle at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(97, 171, 205, 0.08) 0%,
        transparent 40%
    );
}

[data-theme="light"] .page-landing .landing-features {
    background:
        radial-gradient(circle at 24% 45%, rgba(46, 208, 249, 0.18), transparent 32rem),
        radial-gradient(circle at 82% 16%, rgba(126, 203, 255, 0.2), transparent 28rem),
        linear-gradient(180deg, #f7fcff 0%, #eef8fc 46%, #ffffff 100%);
    color: #071522;
}

[data-theme="light"] .page-landing .landing-features::before {
    opacity: 0.36;
    background-image:
        linear-gradient(rgba(18, 109, 153, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 109, 153, 0.06) 1px, transparent 1px);
    mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 76%);
}

[data-theme="light"] .page-landing .features-showcase {
    --feature-cyan: var(--color-secondary);
    --feature-cyan-soft: #087fac;
    --feature-panel: rgba(255, 255, 255, 0.78);
    --feature-panel-deep: rgba(235, 248, 254, 0.9);
    --feature-line: rgba(25, 148, 207, 0.46);
    --feature-muted: #3d5a70;
}

[data-theme="light"] .page-landing .feature-theme-image--dark {
    display: none;
}

[data-theme="light"] .page-landing .feature-theme-image--light {
    display: block;
}

[data-theme="light"] .page-landing .features-mascot-img {
    filter: drop-shadow(0 1.2rem 2rem rgba(10, 76, 110, 0.18));
}

[data-theme="light"] .page-landing .features-kicker {
    color: #334d63;
}

[data-theme="light"] .page-landing .features-title {
    color: #071522;
}

[data-theme="light"] .page-landing .features-title span {
    color: var(--color-primary);
    text-shadow:
        0 0 18px rgba(46, 208, 249, 0.22),
        0 0 34px rgba(46, 208, 249, 0.1);
}

[data-theme="light"] .page-landing .features-copy,
[data-theme="light"] .page-landing .feature-card-copy p,
[data-theme="light"] .page-landing .feature-editor-copy p {
    color: #3d5a70;
}

[data-theme="light"] .page-landing .feature-card-copy h3,
[data-theme="light"] .page-landing .feature-editor-copy h3 {
    color: var(--color-secondary);
    text-shadow: 0 0 18px rgba(46, 208, 249, 0.12);
}

[data-theme="light"] .page-landing .landing-features .feature-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 250, 255, 0.86) 58%, rgba(222, 243, 252, 0.76)),
        var(--feature-panel);
    border-color: var(--feature-line);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        0 14px 34px rgba(10, 76, 110, 0.08),
        0 28px 70px rgba(10, 76, 110, 0.11);
}

[data-theme="light"] .page-landing .landing-features .feature-card:hover {
    border-color: rgba(25, 148, 207, 0.72);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.86) inset,
        0 16px 38px rgba(10, 76, 110, 0.1),
        0 34px 84px rgba(10, 76, 110, 0.14);
}

[data-theme="light"] .page-landing .feature-card-editor {
    background:
        radial-gradient(circle at 68% 38%, rgba(46, 208, 249, 0.16), transparent 22rem),
        linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(237, 249, 255, 0.9) 58%, rgba(220, 241, 251, 0.84));
    border-color: rgba(25, 148, 207, 0.58);
}

[data-theme="light"] .page-landing .feature-window-bar {
    background: rgba(255, 255, 255, 0.42);
    border-bottom-color: rgba(25, 148, 207, 0.22);
    color: #557086;
}

[data-theme="light"] .page-landing .feature-window-bar strong {
    color: #087fac;
    text-shadow: 0 0 14px rgba(46, 208, 249, 0.16);
}

[data-theme="light"] .page-landing .feature-window-bar small {
    color: #466279;
}

[data-theme="light"] .page-landing .feature-format-bar {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(224, 244, 253, 0.94)),
        rgba(255, 255, 255, 0.9);
    border-color: rgba(25, 148, 207, 0.48);
    color: #17314a;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.78) inset,
        0 10px 24px rgba(10, 76, 110, 0.12);
}

[data-theme="light"] .page-landing .feature-format-bar button + button,
[data-theme="light"] .page-landing .feature-format-separator {
    border-left-color: rgba(25, 148, 207, 0.2);
}

[data-theme="light"] .page-landing .feature-editor-copy h3 {
    border-color: rgba(25, 148, 207, 0.58);
    color: #071522;
    text-shadow: none;
}

[data-theme="light"] .page-landing .feature-editor-copy h3 span {
    color: rgba(58, 87, 112, 0.72);
}

[data-theme="light"] .page-landing .feature-editor-actions a:first-child {
    color: #087fac;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 10px 22px rgba(10, 76, 110, 0.1);
}

[data-theme="light"] .page-landing .feature-editor-actions a:last-child {
    color: #087fac;
}

[data-theme="light"] .page-landing .feature-editor-image {
    box-shadow: 0 10px 22px rgba(10, 76, 110, 0.12);
}

[data-theme="light"] .page-landing .feature-card-security img {
    filter: drop-shadow(0 12px 22px rgba(10, 76, 110, 0.12));
}

[data-theme="light"] .page-landing .section-bg-topo {
    opacity: 0.12;
}

/* Light: hero image glow is more subtle */
[data-theme="light"] .page-landing .hero-image-glow {
    opacity: 0.1;
}

/* Light: header overrides */
[data-theme="light"] .page-landing .site-header {
    background: var(--header-bg);
    border-bottom-color: var(--color-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .page-landing .site-header.header-transparent {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}

[data-theme="light"] .page-landing .site-header.header-transparent .nav-list a,
[data-theme="light"] .page-landing .site-header.header-transparent .site-logo,
[data-theme="light"] .page-landing .site-header.header-transparent .lang-link {
    color: #152536;
}

[data-theme="light"] .page-landing .site-header.header-transparent .hamburger span {
    background: #152536;
}

[data-theme="light"] .page-landing .site-header.header-transparent .theme-toggle {
    color: #152536;
}

[data-theme="light"] .page-landing .site-header .nav-list a,
[data-theme="light"] .page-landing .site-header .site-logo {
    color: var(--color-text);
}

[data-theme="light"] .page-landing .site-header .nav-list a:hover,
[data-theme="light"] .page-landing .site-header .nav-list a.active {
    color: var(--color-secondary);
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

[data-theme="light"] .page-landing .site-header .hamburger span {
    background: var(--color-text);
}

[data-theme="light"] .page-landing .site-header .lang-link {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-landing .site-header .lang-link.active {
    color: var(--color-primary);
}

[data-theme="light"] .page-landing .logo-light { display: inline; }
[data-theme="light"] .page-landing .logo-dark { display: none; }

[data-theme="light"] .page-landing .theme-toggle {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-landing .theme-toggle:hover {
    color: var(--color-text);
    background: var(--color-background-section);
}

/* Light: footer overrides */
[data-theme="light"] .page-landing .footer {
    background: var(--color-mist-light);
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-landing .footer-accent {
    background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
    opacity: 0.2;
}

[data-theme="light"] .page-landing .footer-bottom {
    border-top-color: var(--color-border);
}

[data-theme="light"] .page-landing .footer a {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-landing .footer a:hover {
    color: var(--color-primary);
}

[data-theme="light"] .page-landing .footer .logo-light { display: inline; }
[data-theme="light"] .page-landing .footer .logo-dark { display: none; }

[data-theme="light"] .page-landing .footer-tagline {
    color: var(--color-text);
}

[data-theme="light"] .page-landing .footer-col-heading {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-landing .footer-copyright,
[data-theme="light"] .page-landing .footer-credit,
[data-theme="light"] .page-landing .footer-services,
[data-theme="light"] .page-landing .footer-claim,
[data-theme="light"] .page-landing .footer-contact-item {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-landing .meta-links a {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-landing .meta-links a:hover {
    color: var(--color-primary);
}


/* ============================================
   LANDING PAGE — Responsive
   ============================================ */
@media (max-width: 768px) {
    body.page-landing {
        max-width: 100vw;
        overflow-x: clip;
    }

    .page-landing main {
        max-width: 100vw;
        overflow: hidden;
    }

    .page-landing,
    .page-landing .site-header,
    .page-landing .header-inner,
    .page-landing .mobile-nav-overlay,
    .page-landing .mobile-nav {
        width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .page-landing {
        overflow-x: clip;
    }

    .page-landing .site-header {
        overflow: hidden;
    }

    .page-landing .header-inner {
        margin-inline: 0;
        justify-content: space-between;
        gap: 1rem;
    }

    .page-landing .site-logo {
        flex: 0 1 auto;
        min-width: 0;
    }

    .page-landing .hamburger {
        margin-left: auto;
        flex: 0 0 auto;
    }

    .page-landing .mobile-nav-list,
    .page-landing .mobile-nav-list li,
    .page-landing .mobile-nav-list a,
    .page-landing .mobile-nav-lang,
    .page-landing .mobile-theme-toggle {
        width: 100%;
        max-width: calc(100vw - (2 * var(--spacing-md)));
        box-sizing: border-box;
    }

    .hero-gradient-orb {
        max-width: 80vw;
    }

    .features-halo {
        display: none;
    }

    .code-showcase-layout,
    .code-showcase-text,
    .code-showcase-block,
    .code-window,
    .code-window-bar,
    .code-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .code-window-glow {
        inset: 4%;
        width: auto;
    }

    .landing-hero {
        min-height: 100dvh;
        padding-bottom: var(--spacing-lg);
    }

    .landing-hero::before {
        background-size: 205% auto;
        background-position: 54% var(--header-height);
    }

    @media (max-height: 700px) {
        .landing-hero::before {
            background-size: 172% auto;
            background-position: 53% 0;
        }
    }

    .landing-hero::after {
        background:
            linear-gradient(180deg,
                rgba(2, 8, 18, 0.08) 0%,
                rgba(2, 8, 18, 0.2) 36%,
                rgba(2, 8, 18, 0.86) 72%,
                rgba(2, 8, 18, 0.98) 100%),
            linear-gradient(90deg,
                rgba(2, 8, 18, 0.32) 0%,
                rgba(2, 8, 18, 0.18) 56%,
                rgba(2, 8, 18, 0.18) 100%);
    }

    [data-theme="light"] .page-landing .landing-hero::after {
        background:
            linear-gradient(180deg,
                rgba(255, 255, 255, 0.9) 0%,
                rgba(255, 255, 255, 0.68) 34%,
                rgba(255, 255, 255, 0.86) 72%,
                rgba(255, 255, 255, 0.98) 100%),
            linear-gradient(90deg,
                rgba(255, 255, 255, 0.92) 0%,
                rgba(255, 255, 255, 0.52) 56%,
                rgba(255, 255, 255, 0.36) 100%);
    }

    .landing-hero .landing-container {
        min-height: calc(100dvh - var(--header-height) - var(--spacing-xl));
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        text-align: left;
    }

    .hero-content {
        align-self: flex-start;
        width: calc(100vw - 4rem);
        max-width: 18rem;
    }

    .hero-visual {
        display: none;
    }

    .hero-visual .hero-image {
        max-width: 240px;
        max-height: none;
    }

    .hero-title {
        max-width: 100%;
        font-size: clamp(2.4rem, 12vw, 3.2rem);
        line-height: 1.02;
        letter-spacing: -0.035em;
        overflow-wrap: anywhere;
    }

    .hero-subtitle {
        width: min(100%, 17rem);
        max-width: none;
        font-size: 1rem;
        line-height: 1.65;
        text-wrap: balance;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .landing-hero .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .landing-features {
        padding: 4rem 0;
    }

    .landing-features .landing-container {
        padding-inline: 1.25rem;
    }

    .features-showcase {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-template-areas:
            "intro"
            "editor"
            "side"
            "multi"
            "urls"
            "security";
    }

    .features-intro {
        min-height: auto;
        padding: 0 0 18rem;
    }

    .features-kicker {
        min-height: 2.65rem;
        padding-inline: 1.1rem;
        font-size: 0.78rem;
    }

    .features-title {
        font-size: clamp(3rem, 16vw, 4.15rem);
    }

    .features-copy {
        font-size: 1.05rem;
    }

    .features-mascot {
        grid-column: auto;
        grid-row: auto;
        position: absolute;
        left: 50%;
        bottom: -1.6rem;
        width: min(20rem, 82vw);
        transform: translateX(-50%);
    }

    .features-mascot-img {
        position: static;
        width: 100%;
    }

    .feature-card,
    .feature-card-editor {
        border-radius: 18px;
    }

    .feature-card-editor {
        height: auto;
        min-height: 39rem;
        overflow: hidden;
    }

    .feature-window-bar {
        min-height: 3.5rem;
        gap: 0.5rem;
        overflow: hidden;
        white-space: nowrap;
    }

    .feature-window-bar em,
    .feature-window-bar small {
        display: none;
    }

    .feature-editor-body {
        min-height: 39rem;
        padding: 0;
    }

    .feature-format-bar {
        gap: 0.85rem;
        max-width: 100%;
        overflow: hidden;
    }

    .feature-editor-copy h3 {
        font-size: clamp(3rem, 14vw, 4.3rem);
        width: auto;
        max-width: 100%;
    }

    .feature-editor-copy {
        left: 1.35rem;
        right: 1.35rem;
        top: auto;
        bottom: 1.35rem;
    }

    .feature-editor-copy p {
        max-width: 100%;
    }

    .feature-editor-lower {
        position: static;
        max-width: 100%;
        margin: 1rem 1.35rem 0;
    }

    .feature-editor-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .feature-editor-actions a:first-child {
        justify-content: center;
    }

    .feature-editor-image {
        left: 50%;
        top: -1rem;
        width: 116%;
        max-height: none;
        margin: 0;
        transform: translateX(-50%);
    }

    .feature-url-stack {
        position: static;
        margin-top: 1.1rem;
    }

    .feature-url-stack img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .features-side-stack {
        display: grid;
        grid-area: side;
        grid-template-columns: 1fr;
    }

    .feature-card-backup,
    .feature-card-media,
    .feature-card-multilingual,
    .feature-card-urls,
    .feature-card-security {
        grid-column: auto;
        grid-row: auto;
        min-height: 17rem;
        padding: 1.3rem;
    }

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

    .feature-card-security img {
        width: min(100%, 17rem);
        justify-self: center;
    }

    .feature-globe {
        width: 7.2rem;
        opacity: 0.92;
    }

    .feature-selectors {
        width: calc(100% - 2.4rem);
        max-width: none;
    }

    .trust-items {
        flex-wrap: wrap;
    }

    .trust-item {
        flex: 0 0 50%;
        margin-bottom: var(--spacing-sm);
    }

    .trust-value {
        font-size: 1.5rem;
    }

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

    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .steps-connector {
        display: none;
    }

    .code-showcase-layout {
        grid-template-columns: 1fr;
    }

    .code-showcase-text .landing-section-heading {
        text-align: center;
    }

    .comparison-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .comparison-card {
        padding: 1.5rem;
        min-height: auto;
    }

    .comparison-divider {
        padding: 0.5rem 0;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .metric-value {
        font-size: 2.5rem;
    }

    .landing-section-heading {
        font-size: 1.7rem;
    }

    .cta-heading {
        font-size: 2rem;
    }
}

@media (min-width: 841px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 799px) {
    .features-showcase {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas:
            "intro"
            "editor"
            "mascot"
            "side"
            "multi"
            "urls"
            "security";
    }

    .features-intro,
    .feature-card-editor,
    .features-side-stack,
    .feature-card-multilingual,
    .feature-card-urls,
    .feature-card-security {
        grid-column: auto;
        grid-row: auto;
    }

    .features-intro {
        grid-area: intro;
        text-align: center;
        padding-bottom: 0;
    }

    .features-kicker {
        text-align: center;
    }

    .features-title {
        max-width: min(100%, 36rem);
        margin-inline: auto;
        font-size: clamp(3rem, 8.4vw, 4.35rem);
        line-height: 1.02;
    }

    .features-copy {
        max-width: min(100%, 38rem);
        margin: clamp(1.25rem, 3vw, 1.8rem) auto clamp(1.45rem, 5vw, 2.25rem);
        font-size: clamp(1.05rem, 2.45vw, 1.22rem);
        line-height: 1.45;
    }

    .features-mascot {
        grid-area: mascot;
        grid-column: auto;
        grid-row: auto;
        position: relative;
        left: auto;
        bottom: auto;
        width: min(18.5rem, 76vw);
        justify-self: center;
        margin: clamp(-5.2rem, -18vw, -3.6rem) auto clamp(-2.25rem, -7vw, -1.4rem);
        transform: none;
        z-index: 8;
    }

    .features-mascot-img {
        position: static;
        width: 100%;
        max-width: 100%;
    }

    .feature-card-editor {
        grid-area: editor;
        width: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .feature-window-bar {
        min-height: 3.35rem;
        padding-inline: 1rem;
    }

    .feature-editor-body {
        min-height: 0;
        height: auto;
        padding: clamp(4.2rem, 8vw, 5.1rem) clamp(1.15rem, 4vw, 1.7rem) clamp(1.4rem, 4vw, 1.9rem);
    }

    .feature-format-bar {
        top: 0;
        left: 50%;
        transform: translate(-50%, -80%);
        gap: 0;
        max-width: calc(100% - 1.2rem);
        overflow: hidden;
    }

    .feature-editor-copy {
        --feature-title-left: 0px;
        --feature-title-width: 100%;
        --feature-title-center: 50%;
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        max-width: 100%;
    }

    .feature-editor-copy h3 {
        left: auto;
        width: 100%;
        max-width: 100%;
        font-size: clamp(2.7rem, 9vw, 4.3rem);
        line-height: 0.94;
    }

    .feature-editor-lower {
        position: relative;
        left: auto;
        bottom: auto;
        z-index: 7;
        max-width: 100%;
        margin: clamp(1rem, 3vw, 1.4rem) 0 0;
    }

    .feature-editor-actions {
        flex-direction: row;
        align-items: center;
        gap: clamp(0.9rem, 3vw, 1.3rem);
    }

    .feature-editor-actions a:first-child {
        width: auto;
        justify-content: center;
    }

    .feature-editor-image {
        display: block;
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: min(62%, 15rem);
        max-width: 100%;
        max-height: 18rem;
        margin: clamp(1rem, 3vw, 1.4rem) auto 0;
        transform: none;
    }

    .feature-card-urls .feature-card-copy {
        max-width: none;
    }

    .feature-card-urls .feature-card-copy h3 {
        white-space: nowrap;
    }

    .features-side-stack {
        display: grid;
        grid-area: side;
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(1rem, 1.6vw, 1.45rem);
        width: 100%;
    }

    .feature-card-backup,
    .feature-card-media {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
    }

    .feature-card-backup,
    .feature-card-media,
    .feature-card-multilingual,
    .feature-card-urls,
    .feature-card-security {
        min-height: 0;
        padding: clamp(1.35rem, 4vw, 1.8rem);
    }

    .feature-card-copy h3 {
        font-size: clamp(1.65rem, 5.2vw, 2.15rem);
    }

    .feature-card-copy p {
        font-size: clamp(1.1rem, 3.45vw, 1.34rem);
    }

    .feature-selectors {
        height: min(30px, 7vw);
        max-height: 30px;
        object-fit: contain;
        object-position: center;
    }

    .feature-card-backup img {
        width: min(72%, 18rem);
        max-width: 100%;
        max-height: 15rem;
        margin: clamp(1.2rem, 4vw, 1.8rem) auto 0;
    }

    .feature-card-media img {
        width: min(86%, 21rem);
        max-height: 16rem;
        margin: clamp(1rem, 3vw, 1.4rem) auto 0;
    }

    .feature-card-security {
        grid-template-columns: minmax(0, 1fr) minmax(6rem, 0.8fr);
        min-height: clamp(13rem, 36vw, 17rem);
        align-items: center;
    }

    .feature-card-security img {
        width: auto;
        max-width: min(100%, 8rem);
        max-height: clamp(6rem, 18vw, 8rem);
        align-self: center;
        justify-self: center;
    }

    .feature-url-stack {
        position: static;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: clamp(0.6rem, 2.5vw, 0.9rem);
        margin-top: clamp(1rem, 3vw, 1.4rem);
    }

    .feature-url-stack img {
        flex: 0 1 auto;
        width: auto;
        min-width: 0;
        height: clamp(2.65rem, 6vw, 3.35rem);
        max-width: none;
        object-fit: contain;
    }

    .feature-card-multilingual {
        grid-area: multi;
    }

    .feature-card-urls {
        grid-area: urls;
    }

    .feature-card-security {
        grid-area: security;
    }
}

@media (min-width: 1025px) and (max-width: 1024px) {
    .features-showcase {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas:
            "intro editor"
            "mascot editor"
            "side side"
            "multi urls"
            "security security";
    }

    .features-intro {
        min-height: 28rem;
        padding-bottom: 14rem;
    }

    .features-mascot {
        grid-area: mascot;
        grid-column: auto;
        grid-row: auto;
        position: relative;
        left: auto;
        bottom: auto;
        width: min(18.5rem, 44vw);
        justify-self: center;
        align-self: end;
        margin: clamp(-5.2rem, -12vw, -3.8rem) auto clamp(-1.25rem, -4vw, -0.8rem);
        transform: none;
        z-index: 8;
    }

    .features-mascot-img {
        position: static;
        width: 100%;
    }

    .feature-card-editor {
        height: auto;
        min-height: 28rem;
    }

    .feature-window-bar {
        gap: 0.65rem;
        padding-inline: 1rem;
    }

    .feature-window-bar em:nth-of-type(2) {
        display: none;
    }

    .feature-editor-body {
        min-height: 28rem;
        padding: 0;
    }

    .feature-editor-copy h3 {
        width: auto;
        max-width: 100%;
    }

    .feature-editor-image {
        top: -1.4rem;
        width: 116%;
        max-height: none;
        margin: 0;
    }

    .features-side-stack {
        display: grid;
        grid-area: side;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card-backup,
    .feature-card-media,
    .feature-card-multilingual,
    .feature-card-urls,
    .feature-card-security {
        grid-column: auto;
        grid-row: auto;
    }

    .comparison-card-theirs,
    .comparison-card-ours {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
        padding-bottom: 0;
    }

    .comparison-card-visual {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        text-align: center;
        margin-top: var(--spacing-sm);
    }

    .comparison-card-theirs .comparison-card-visual,
    .comparison-card-ours .comparison-card-visual {
        left: auto;
        right: auto;
    }

    .comparison-illustration {
        width: 220px;
        margin-bottom: -2rem;
    }
}

@media (min-width: 360px) and (max-width: 785px) {
    .feature-editor-body {
        padding-bottom: clamp(1.55rem, 4vw, 2rem);
    }

    .feature-editor-copy,
    .feature-editor-lower {
        z-index: 7;
    }

    .feature-editor-image {
        position: absolute;
        z-index: 2;
        top: clamp(5.9rem, 15vw, 7.1rem);
        right: clamp(0.9rem, 3.8vw, 1.45rem);
        bottom: auto;
        left: auto;
        width: clamp(10rem, 33vw, 13.25rem);
        max-width: 34%;
        max-height: clamp(12rem, 36vw, 16rem);
        margin: 0;
    }
}

@media (max-width: 785px) {
    .feature-format-bar {
        min-height: 2.5rem;
        border-radius: 8px;
    }

    .feature-format-bar button {
        width: clamp(2.35rem, 10vw, 2.75rem);
        min-height: 2.5rem;
    }

    .feature-format-bar b,
    .feature-format-bar i {
        font-size: 0.92em;
    }

    .feature-format-bar button[data-action="link"]::before,
    .feature-format-bar button[data-command="removeFormat"]::before {
        width: 0.92rem;
        height: 0.92rem;
    }

    .feature-format-bar button[data-action="html-source"] {
        font-size: 0.8em;
    }
}

@media (min-width: 1200px) and (max-width: 1199px) {
    .landing-features .landing-container {
        max-width: 100%;
        padding-inline: clamp(1rem, 1.8vw, 1.35rem);
    }

    .features-showcase {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: none;
        grid-template-areas:
            "intro editor editor"
            "mascot editor editor"
            "side side side"
            "multi urls urls"
            "security security security";
        gap: clamp(0.75rem, 1.2vw, 1.1rem);
    }

    .features-intro {
        grid-area: intro;
        grid-column: auto;
        grid-row: auto;
        min-height: 0;
        padding: 0;
    }

    .features-kicker {
        min-height: 0;
        padding: 0;
        background: none;
    }

    .features-title {
        max-width: 18rem;
        font-size: clamp(3.1rem, 5.5vw, 4.45rem);
    }

    .features-copy {
        max-width: 20rem;
        margin-top: clamp(2rem, 3vw, 3rem);
        font-size: clamp(1.15rem, 2vw, 1.55rem);
        line-height: 1.42;
    }

    .feature-card-editor {
        grid-area: editor;
        grid-column: auto;
        grid-row: auto;
        min-height: clamp(34rem, 46vw, 40rem);
        overflow: visible;
    }

    .feature-editor-body {
        min-height: calc(100% - 4rem);
        height: calc(100% - 4rem);
        padding: clamp(5.2rem, 6.4vw, 6.1rem) clamp(1.6rem, 2.6vw, 2.3rem) clamp(1.65rem, 2.4vw, 2.2rem) clamp(3.7rem, 5.2vw, 4.9rem);
    }

    .feature-format-bar {
        top: 0;
        left: calc(var(--feature-title-left) + var(--feature-title-center));
        transform: translate(-50%, -80%);
    }

    .feature-editor-copy h3 {
        --feature-title-left: clamp(-1.6rem, -1.8vw, -1rem);
        --feature-title-width: clamp(30rem, 51vw, 42rem);
        --feature-title-center: clamp(15rem, 25.5vw, 21rem);
        left: var(--feature-title-left);
        width: var(--feature-title-width);
        font-size: clamp(3.35rem, 5.55vw, 4.85rem);
    }

    .feature-editor-image {
        right: clamp(1.1rem, 2vw, 1.8rem);
        top: clamp(7.3rem, 10vw, 8.7rem);
        bottom: clamp(5.8rem, 8vw, 7rem);
        width: clamp(10rem, 18vw, 14rem);
        max-width: 31%;
        transform: none;
    }

    .feature-editor-lower {
        position: absolute;
        left: calc(clamp(3.7rem, 5.2vw, 4.9rem) + clamp(1.2rem, 3vw, 2.2rem));
        bottom: clamp(2.4rem, 3.2vw, 3.1rem);
        max-width: min(35rem, 54%);
        margin: 0;
    }

    .feature-card-copy h3 {
        font-size: clamp(1.55rem, 2.5vw, 2rem);
    }

    .feature-card-copy p {
        font-size: clamp(1.05rem, 1.65vw, 1.25rem);
        line-height: 1.38;
    }

    .features-side-stack {
        display: grid;
        grid-area: side;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(0.75rem, 1.2vw, 1.1rem);
    }

    .feature-card-backup,
    .feature-card-media,
    .feature-card-multilingual,
    .feature-card-urls,
    .feature-card-security {
        grid-column: auto;
        grid-row: auto;
        min-height: 0;
        padding: clamp(1.3rem, 2vw, 1.75rem);
    }

    .features-mascot {
        grid-area: mascot;
        grid-column: auto;
        grid-row: auto;
        position: relative;
        left: auto;
        bottom: auto;
        width: min(18.5rem, 44vw);
        justify-self: center;
        align-self: end;
        margin: clamp(-5.2rem, -12vw, -3.8rem) auto clamp(-1.25rem, -4vw, -0.8rem);
        transform: none;
        z-index: 8;
    }

    .features-mascot-img {
        position: static;
        width: 100%;
        max-width: 100%;
    }

    .feature-card-backup {
        grid-column: auto;
        grid-row: auto;
    }

    .feature-card-backup img {
        width: 100%;
        max-width: 100%;
        max-height: none;
    }

    .feature-card-media {
        grid-column: auto;
        grid-row: auto;
    }

    .feature-card-multilingual {
        grid-area: multi;
        grid-column: auto;
        grid-row: auto;
    }

    .feature-card-urls {
        grid-area: urls;
        grid-column: auto;
        grid-row: auto;
    }

    .feature-card-security {
        grid-area: security;
        grid-column: auto;
        grid-row: auto;
    }

    .feature-card-security {
        grid-template-columns: minmax(0, 1fr) minmax(5.25rem, 0.72fr);
        gap: 0.7rem;
    }

    .feature-card-security img {
        width: auto;
        max-width: min(100%, 8rem);
        max-height: clamp(6.5rem, 11vw, 8rem);
        align-self: center;
    }

    .feature-card-urls .feature-card-copy {
        max-width: 14rem;
    }

    .feature-url-stack {
        left: clamp(12rem, 26vw, 18rem);
        right: clamp(1.4rem, 2vw, 1.9rem);
        bottom: clamp(1.3rem, 2vw, 1.8rem);
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: 0.75rem;
    }

    .feature-url-stack img {
        width: auto;
        height: clamp(3.1rem, 5.2vw, 4.5rem);
        max-width: none;
        max-height: none;
        object-fit: contain;
    }

    .feature-url-stack img:first-child {
        justify-self: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .hero-visual {
        animation: none !important;
        opacity: 1 !important;
    }

    .hero-visual .hero-image,
    .hero-gradient-orb {
        animation: none !important;
    }

    .hero-badge-dot {
        animation: none !important;
    }

    .steps-connector-fill {
        transition: none !important;
        width: 100% !important;
    }

    .steps-grid.steps-animate .step-card,
    .steps-grid.steps-animate .step-card .step-number-ring,
    .steps-grid.steps-animate .step-card .step-title,
    .steps-grid.steps-animate .step-card .step-desc {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

}


/* ============================================
   DOCUMENTATION PAGE
   ============================================ */
.page-docs .main-content {
    padding-bottom: var(--spacing-lg);
}

.docs-layout {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

/* -- Sidebar -- */
.docs-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-sm));
    padding-top: var(--spacing-sm);
}

.docs-nav-title {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    margin: 0 0 var(--spacing-xs) 0;
}

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

.docs-nav a {
    display: block;
    padding: 5px 12px;
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all var(--transition-fast);
}

.docs-nav a:hover {
    color: var(--color-text);
}

.docs-nav a.active {
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    font-weight: 500;
}

/* -- Content -- */
.docs-content {
    min-width: 0;
    padding-top: var(--spacing-sm);
}

.docs-section {
    margin-bottom: var(--spacing-xl);
}

.docs-section h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--color-text);
}

.docs-section h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    margin: 0 0 var(--spacing-sm) 0;
    padding-top: var(--spacing-sm);
    color: var(--color-text);
}

.docs-section h3 {
    font-size: 1.15rem;
    margin: var(--spacing-md) 0 var(--spacing-xs) 0;
    color: var(--color-text);
}

.docs-section p {
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin: 0 0 var(--spacing-sm) 0;
}

.docs-section ul {
    line-height: 1.75;
    color: var(--color-text-secondary);
    padding-left: 1.5em;
    margin: 0 0 var(--spacing-sm) 0;
}

.docs-section code {
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-size: 0.87em;
    background: var(--color-background-section);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--color-text);
}

/* -- Code Blocks -- */
.docs-code {
    margin: 0 0 var(--spacing-sm) 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.docs-code-header {
    background: var(--color-background-section);
    padding: 8px 16px;
    font-size: 0.8rem;
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border);
}

.docs-code pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    background: #1e293b;
    color: #e2e8f0;
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.65;
    -webkit-overflow-scrolling: touch;
}

.docs-code pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: inherit;
    font-size: inherit;
}

/* -- Tables -- */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 0.9rem;
}

.docs-table th,
.docs-table td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
}

.docs-table th {
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-background-section);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.docs-table td {
    color: var(--color-text-secondary);
}

.docs-table td code {
    font-size: 0.85em;
    white-space: nowrap;
}

/* -- Directory Tree -- */
.docs-tree {
    margin: 0 0 var(--spacing-sm) 0;
}

.docs-tree pre {
    margin: 0;
    padding: 20px;
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 8px;
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.65;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.docs-tree pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* -- Docs Responsive -- */
@media (max-width: 768px) {
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .docs-sidebar {
        position: static;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }

    .docs-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .docs-nav a {
        border-left: none;
        padding: 4px 10px;
        font-size: 0.82rem;
        border-radius: 4px;
        background: var(--color-background-section);
    }

    .docs-nav a.active {
        background: color-mix(in srgb, var(--color-primary) 12%, transparent);
        border-left: none;
    }

    .docs-section h1 {
        font-size: 1.8rem;
    }

    .docs-section h2 {
        font-size: 1.4rem;
    }

    .docs-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* -- Docs Dark Mode -- */
[data-theme="dark"] .docs-section h1,
[data-theme="dark"] .docs-section h2,
[data-theme="dark"] .docs-section h3 {
    color: #f0f0f0;
}

[data-theme="dark"] .docs-section p,
[data-theme="dark"] .docs-section ul,
[data-theme="dark"] .docs-table td {
    color: var(--color-text-on-dark-muted);
}

[data-theme="dark"] .docs-code {
    border-color: #2a2a2a;
}

[data-theme="dark"] .docs-code-header {
    background: #1a1a1a;
    color: #999;
    border-bottom-color: #2a2a2a;
}

[data-theme="dark"] .docs-table th {
    background: var(--color-bg-dark-card);
    color: #ccc;
    border-bottom-color: #2a2a2a;
}

[data-theme="dark"] .docs-table td {
    background: var(--color-bg-dark-elevated);
    border-bottom-color: #1e1e1e;
}

[data-theme="dark"] .docs-table td code {
    background: var(--color-bg-dark-card);
    color: var(--color-text-on-dark);
}

[data-theme="dark"] .docs-sidebar {
    border-right-color: #1e1e1e;
}

[data-theme="dark"] .docs-nav-title {
    color: #f0f0f0;
}

[data-theme="dark"] .docs-nav a {
    color: var(--color-text-on-dark-muted);
}

[data-theme="dark"] .docs-nav a:hover,
[data-theme="dark"] .docs-nav a.active {
    color: #f0f0f0;
}


/* ============================================
   SHOWCASE PAGE — Dark Modern Theme
   ============================================ */
.page-showcase {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

/* -- Showcase header/footer (reuse landing pattern) -- */
.page-showcase .site-header {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--color-border-dark);
}

.page-showcase .site-header.header-transparent {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.page-showcase .site-header .nav-list a,
.page-showcase .site-header .site-logo {
    color: var(--color-text-on-dark);
}

.page-showcase .logo-light { display: none; }
.page-showcase .logo-dark { display: inline; }

.page-showcase .site-header .nav-list a:hover,
.page-showcase .site-header .nav-list a.active {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.page-showcase .site-header .hamburger span {
    background: var(--color-text-on-dark);
}

.page-showcase .site-header .lang-link {
    color: var(--color-text-on-dark-muted);
}

.page-showcase .site-header .lang-link.active {
    color: white;
}

.page-showcase .mobile-nav-overlay {
    background: var(--color-bg-dark);
}

.page-showcase .mobile-nav-list a {
    color: var(--color-text-on-dark);
}

.page-showcase .mobile-nav-lang a {
    color: var(--color-text-on-dark-muted);
}

.page-showcase .mobile-theme-toggle {
    border-top-color: var(--color-border-dark);
}

.page-showcase .theme-toggle-mobile {
    color: var(--color-text-on-dark-muted);
}

.page-showcase .theme-toggle-mobile:hover,
.page-showcase .theme-toggle-mobile.active {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.page-showcase .theme-toggle {
    color: var(--color-text-on-dark-muted);
}

.page-showcase .theme-toggle:hover {
    color: white;
}

.page-showcase .footer {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark-muted);
}

.page-showcase .footer .logo-light { display: none; }
.page-showcase .footer .logo-dark { display: inline; }

.page-showcase .footer-accent {
    background: linear-gradient(90deg, transparent 0%, var(--color-primary-light) 50%, transparent 100%);
    opacity: 0.15;
}

.page-showcase .footer-bottom {
    border-top-color: var(--color-border-dark);
}

.page-showcase .footer a {
    color: var(--color-text-on-dark-muted);
}

.page-showcase .footer a:hover {
    color: white;
}

.page-showcase .footer-tagline {
    color: var(--color-text-on-dark);
}

.page-showcase .footer-col-heading {
    color: var(--color-text-on-dark-muted);
}

.page-showcase .footer-copyright,
.page-showcase .footer-credit,
.page-showcase .footer-services,
.page-showcase .footer-claim,
.page-showcase .footer-contact-item {
    color: var(--color-text-on-dark-muted);
}

.page-showcase .meta-links a {
    color: var(--color-text-on-dark-muted);
}

.page-showcase .meta-links a:hover {
    color: white;
}


/* -- Showcase container -- */
.showcase-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}


/* -- Showcase Hero Section -- */
.showcase-hero {
    padding: calc(var(--header-height) + var(--spacing-xl)) 0 var(--spacing-lg);
    background: var(--color-bg-dark);
    overflow: hidden;
}

.showcase-hero__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-lg);
}

.showcase-hero__content {
    text-align: left;
    animation: heroContentFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.showcase-hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: heroImageFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.showcase-hero__beaver {
    max-width: 640px;
    width: 100%;
    height: auto;
    display: block;
}

/* Dark mode: show dark variant, hide light */
.showcase-hero__beaver--light { display: none; }
.showcase-hero__beaver--dark  { display: block; }

[data-theme="light"] .showcase-hero__beaver--light { display: block; }
[data-theme="light"] .showcase-hero__beaver--dark  { display: none; }

@keyframes heroContentFadeIn {
    from {
        opacity: 0;
        transform: translateX(-2rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroImageFadeIn {
    from {
        opacity: 0;
        transform: translateY(1.5rem) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.showcase-label {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.showcase-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: white;
    margin: 0 0 var(--spacing-sm);
}

.showcase-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-on-dark-muted);
    max-width: 640px;
    margin: 0;
}


/* -- Showcase Events Section -- */
.showcase-events {
    padding: var(--spacing-lg) 0;
}

.showcase-section-heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: white;
    margin: 0 0 var(--spacing-md);
}


/* -- Explainer section -- */
.showcase-explainer {
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.showcase-explainer__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.showcase-explainer__heading {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: white;
    margin: 0 0 var(--spacing-sm);
}

.showcase-explainer__desc {
    color: var(--color-text-on-dark-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 var(--spacing-md);
}

.showcase-explainer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.showcase-explainer__list li {
    color: var(--color-text-on-dark-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    padding-left: 1.5rem;
    position: relative;
}

.showcase-explainer__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: 700;
}

.showcase-explainer__code {
    position: relative;
    opacity: 0;
    transform: translateX(16rem) rotate(var(--code-rotation, 8deg));
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.revealed .showcase-explainer__code {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

.showcase-explainer__code .code-window-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(97, 171, 205, 0.12) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.showcase-explainer__code .code-window {
    position: relative;
    z-index: 1;
}

.showcase-explainer__code .code-content {
    font-size: 0.8rem;
    line-height: 1.6;
}


/* -- Example wrapper -- */
.showcase-example {
    background: var(--color-bg-dark-elevated);
    border-top: 1px solid var(--color-border-dark);
}

.showcase-example:nth-child(even) {
    background: var(--color-bg-dark);
}

/* -- Example section headings -- */
.showcase-example-heading {
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.showcase-example-number {
    display: inline-block;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary-light);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.showcase-example-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: white;
    margin: 0;
    line-height: 1.2;
}


/* -- Event cards on showcase (dark) -- */
.page-showcase .event-card {
    background: var(--color-bg-dark-card);
    border-color: var(--color-border-dark);
}

.page-showcase .event-card:hover {
    border-color: rgba(97, 171, 205, 0.2);
    box-shadow:
        0 8px 32px rgba(97, 171, 205, 0.08),
        0 0 0 1px rgba(97, 171, 205, 0.1);
}

.page-showcase .event-card__title {
    color: white;
}

.page-showcase .event-card__title a:hover {
    color: var(--color-primary-light);
}

.page-showcase .event-card__date {
    color: var(--color-primary-light);
}

.page-showcase .event-card__location {
    color: var(--color-text-on-dark-muted);
}

.page-showcase .event-card__desc {
    color: var(--color-text-on-dark-muted);
}

.page-showcase .event-card__footer {
    border-top-color: var(--color-border-dark);
}

.page-showcase .event-card__admission {
    color: var(--color-text-on-dark-muted);
}

.page-showcase .event-card__link {
    color: var(--color-primary-light);
}

.page-showcase .no-events {
    color: var(--color-text-on-dark-muted);
}

.page-showcase .event-add-btn {
    color: var(--color-primary-light);
    border-color: var(--color-primary-light);
}

.page-showcase .event-add-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}


/* ============================================================
   PRICING PAGE (standalone)
   ============================================================ */

.pricing-page {
    padding-bottom: var(--spacing-lg);
}

.pricing-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.pricing-hero {
    text-align: center;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.pricing-hero__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.pricing-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-text-on-dark);
    margin: 0 0 var(--spacing-sm);
    line-height: 1.15;
}

.pricing-hero__intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-on-dark-muted);
    max-width: 640px;
    margin: 0 auto;
}

.pricing-section {
    padding-bottom: var(--spacing-xl);
}

.pricing-section .pricing-grid {
    max-width: 100%;
}

.pricing-custom {
    padding: var(--spacing-lg) 0;
}

.pricing-custom__box {
    background: var(--color-bg-dark-card);
    border: 1px solid var(--color-border-dark);
    border-radius: 16px;
    padding: var(--spacing-lg);
    text-align: center;
}

.pricing-custom__heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-on-dark);
    margin: 0 0 var(--spacing-sm);
}

.pricing-custom__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-on-dark-muted);
    max-width: 560px;
    margin: 0 auto var(--spacing-md);
}

.pricing-custom__action .btn {
    display: inline-block;
}

.pricing-faq {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.pricing-faq__heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-on-dark);
    text-align: center;
    margin: 0 0 var(--spacing-lg);
}

/* Light theme overrides */
[data-theme="light"] .pricing-hero__title {
    color: var(--color-text);
}

[data-theme="light"] .pricing-hero__intro {
    color: var(--color-text-secondary);
}

[data-theme="light"] .pricing-custom__box {
    background: var(--color-surface);
    border-color: var(--color-border-light);
}

[data-theme="light"] .pricing-custom__heading {
    color: var(--color-text);
}

[data-theme="light"] .pricing-custom__text {
    color: var(--color-text-secondary);
}

[data-theme="light"] .pricing-faq__heading {
    color: var(--color-text);
}

/* Pricing Contact Form */
.pricing-contact {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.pricing-contact__box {
    background: var(--color-bg-dark-card);
    border: 1px solid var(--color-border-dark);
    border-radius: 16px;
    padding: var(--spacing-lg);
    max-width: 720px;
    margin: 0 auto;
}

.pricing-contact__heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-on-dark);
    text-align: center;
    margin: 0 0 0.25rem;
}

.pricing-contact__subheading {
    font-size: 0.95rem;
    color: var(--color-text-on-dark-muted);
    text-align: center;
    margin: 0 0 var(--spacing-lg);
}

.pricing-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.pricing-contact-form .form-group {
    margin-bottom: var(--spacing-md);
}

.pricing-contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-on-dark-muted);
    margin-bottom: 0.35rem;
}

.pricing-contact-form input,
.pricing-contact-form select,
.pricing-contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border-dark);
    border-radius: 8px;
    color: var(--color-text-on-dark);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-contact-form input:focus,
.pricing-contact-form select:focus,
.pricing-contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.pricing-contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2399a1a8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.pricing-contact-form select option {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

.pricing-contact-form .form-actions {
    text-align: center;
    margin-top: var(--spacing-sm);
}

.pricing-contact-form .form-feedback {
    text-align: center;
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
}

.pricing-contact-form .form-feedback.success {
    color: var(--color-secondary);
}

.pricing-contact-form .form-feedback.error {
    color: #e74c3c;
}

/* Light theme */
[data-theme="light"] .pricing-contact__box {
    background: var(--color-surface);
    border-color: var(--color-border-light);
}

[data-theme="light"] .pricing-contact__heading {
    color: var(--color-text);
}

[data-theme="light"] .pricing-contact__subheading {
    color: var(--color-text-secondary);
}

[data-theme="light"] .pricing-contact-form label {
    color: var(--color-text-secondary);
}

[data-theme="light"] .pricing-contact-form input,
[data-theme="light"] .pricing-contact-form select,
[data-theme="light"] .pricing-contact-form textarea {
    background: white;
    border-color: var(--color-border-light);
    color: var(--color-text);
}

[data-theme="light"] .pricing-contact-form select option {
    background: white;
    color: var(--color-text);
}

@media (max-width: 767px) {
    .pricing-contact-form .form-row {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   SHOWCASE PAGE — Light Theme Overrides
   ============================================ */
[data-theme="light"] .page-showcase {
    background: var(--color-background);
    color: var(--color-text);
}

[data-theme="light"] .page-showcase .site-header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--color-border);
}

[data-theme="light"] .page-showcase .site-header .nav-list a,
[data-theme="light"] .page-showcase .site-header .site-logo {
    color: var(--color-text);
}

[data-theme="light"] .page-showcase .logo-light { display: inline; }
[data-theme="light"] .page-showcase .logo-dark { display: none; }

[data-theme="light"] .page-showcase .site-header .nav-list a:hover,
[data-theme="light"] .page-showcase .site-header .nav-list a.active {
    color: var(--color-primary);
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .page-showcase .site-header .hamburger span {
    background: var(--color-text);
}

[data-theme="light"] .page-showcase .site-header .lang-link {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-showcase .site-header .lang-link.active {
    color: var(--color-text);
}

[data-theme="light"] .page-showcase .mobile-nav-overlay {
    background: var(--color-background);
}

[data-theme="light"] .page-showcase .mobile-nav-list a {
    color: var(--color-text);
}

[data-theme="light"] .page-showcase .mobile-nav-lang a {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-showcase .mobile-theme-toggle {
    border-top-color: var(--color-border);
}

[data-theme="light"] .page-showcase .theme-toggle-mobile {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-showcase .theme-toggle-mobile:hover,
[data-theme="light"] .page-showcase .theme-toggle-mobile.active {
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .page-showcase .theme-toggle {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-showcase .theme-toggle:hover {
    color: var(--color-text);
}

[data-theme="light"] .page-showcase .footer {
    background: var(--color-mist-light);
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-showcase .footer-accent {
    background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
    opacity: 0.2;
}

[data-theme="light"] .page-showcase .footer-bottom {
    border-top-color: var(--color-border);
}

[data-theme="light"] .page-showcase .footer .logo-light { display: inline; }
[data-theme="light"] .page-showcase .footer .logo-dark { display: none; }

[data-theme="light"] .page-showcase .footer a {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-showcase .footer a:hover {
    color: var(--color-primary);
}

[data-theme="light"] .page-showcase .footer-tagline {
    color: var(--color-text);
}

[data-theme="light"] .page-showcase .footer-copyright,
[data-theme="light"] .page-showcase .footer-credit,
[data-theme="light"] .page-showcase .footer-services,
[data-theme="light"] .page-showcase .footer-claim,
[data-theme="light"] .page-showcase .footer-contact-item {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-showcase .meta-links a {
    color: var(--color-text-secondary);
}

[data-theme="light"] .showcase-example {
    background: var(--color-background-section);
    border-top-color: var(--color-border);
}

[data-theme="light"] .showcase-example:nth-child(even) {
    background: var(--color-background);
}

[data-theme="light"] .showcase-example-number {
    color: var(--color-primary);
}

[data-theme="light"] .showcase-example-title {
    color: var(--color-text);
}


[data-theme="light"] .showcase-explainer__heading {
    color: var(--color-text);
}

[data-theme="light"] .showcase-explainer__desc {
    color: var(--color-text-secondary);
}

[data-theme="light"] .showcase-explainer__list li {
    color: var(--color-text-secondary);
}

[data-theme="light"] .showcase-explainer__list li::before {
    color: var(--color-primary);
}

[data-theme="light"] .showcase-hero {
    background: var(--color-background);
}

[data-theme="light"] .showcase-title {
    color: var(--color-text);
}

[data-theme="light"] .showcase-intro {
    color: var(--color-text-secondary);
}


[data-theme="light"] .showcase-events--past {
    background: var(--color-background);
}

[data-theme="light"] .showcase-section-heading {
    color: var(--color-text);
}

[data-theme="light"] .page-showcase .event-card {
    background: var(--color-background-card);
    border-color: var(--color-border);
}

[data-theme="light"] .page-showcase .event-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(97, 171, 205, 0.1);
}

[data-theme="light"] .page-showcase .event-card__title {
    color: var(--color-text);
}

[data-theme="light"] .page-showcase .event-card__date {
    color: var(--color-primary);
}

[data-theme="light"] .page-showcase .event-card__location {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-showcase .event-card__desc {
    color: var(--color-text-secondary);
}

[data-theme="light"] .page-showcase .event-card__footer {
    border-top-color: var(--color-border);
}

[data-theme="light"] .page-showcase .event-card__admission {
    color: var(--color-text-secondary);
}


/* ============================================
   SHOWCASE PAGE — Responsive (page-level)
   ============================================ */
@media (max-width: 767px) {
    .showcase-hero {
        padding-top: calc(var(--header-height) + var(--spacing-lg));
    }

    .showcase-hero__layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .showcase-hero__content {
        text-align: center;
        order: 1;
    }

    .showcase-hero__image {
        order: 0;
        max-width: 280px;
        margin: 0 auto;
    }

    .showcase-intro {
        margin: 0 auto;
    }

    .showcase-title {
        font-size: 1.75rem;
    }

    .showcase-explainer__layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .showcase-explainer__heading {
        font-size: 1.4rem;
    }

    .showcase-example-title {
        font-size: 1.5rem;
    }

}

/* ============================================
   SHOWCASE JUMP NAV
   ============================================ */
.showcase-jumpnav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border-dark);
    padding: var(--spacing-xs) 0;
    overflow: hidden;
}

.showcase-jumpnav__label {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.showcase-jumpnav__track {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

@keyframes jumpnavFlyIn {
    from {
        opacity: 0;
        transform: var(--jn-from);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes jumpnavPulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.3); color: var(--jn-pulse-color, var(--color-primary-light)); }
    100% { transform: scale(1); }
}

.showcase-jumpnav__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-on-dark-muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition:
        color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation:
        jumpnavFlyIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both,
        jumpnavPulse 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) none;
}

/* Pairwise fly-in: center pair (05+06) first, outermost (01+10) last */
/* Pulse runs sequentially 01→10 after all fly-ins finish (~1.2s) */
.showcase-jumpnav__item:nth-child(1)  { --jn-from: translateX(-60vw); animation-delay: 0.33s, 1.2s; }
.showcase-jumpnav__item:nth-child(2)  { --jn-from: translateX(-50vw); animation-delay: 0.26s, 1.28s; }
.showcase-jumpnav__item:nth-child(3)  { --jn-from: translateX(-40vw); animation-delay: 0.19s, 1.36s; }
.showcase-jumpnav__item:nth-child(4)  { --jn-from: translateX(-30vw); animation-delay: 0.12s, 1.44s; }
.showcase-jumpnav__item:nth-child(5)  { --jn-from: translateX(-20vw); animation-delay: 0.05s, 1.52s; }
.showcase-jumpnav__item:nth-child(6)  { --jn-from: translateX(20vw);  animation-delay: 0.05s, 1.6s; }
.showcase-jumpnav__item:nth-child(7)  { --jn-from: translateX(30vw);  animation-delay: 0.12s, 1.68s; }
.showcase-jumpnav__item:nth-child(8)  { --jn-from: translateX(40vw);  animation-delay: 0.19s, 1.76s; }
.showcase-jumpnav__item:nth-child(9)  { --jn-from: translateX(50vw);  animation-delay: 0.26s, 1.84s; }
.showcase-jumpnav__item:nth-child(10) { --jn-from: translateX(60vw);  animation-delay: 0.33s, 1.92s; }

.showcase-jumpnav__item:hover {
    color: var(--color-primary);
    background: rgba(96, 200, 205, 0.08);
}

.showcase-jumpnav__item:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

.showcase-jumpnav__item:active {
    transform: scale(0.93);
}

.showcase-jumpnav__item.is-active {
    color: var(--color-primary);
    background: rgba(96, 200, 205, 0.12);
}

/* Tooltip on hover */
.showcase-jumpnav__item::after {
    content: attr(data-title);
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    background: var(--color-bg-dark-card);
    border: 1px solid var(--color-border-dark);
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
    pointer-events: none;
    opacity: 0;
    transition:
        opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-jumpnav__item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Scroll offset for anchors */
.showcase-example[id] {
    scroll-margin-top: 4rem;
}

/* Screenshot gallery: larger previews for real UI captures on nibbly.dev. */
.page-showcase .showcase-gallery .gallery-grid {
    gap: 1rem;
}

.page-showcase .showcase-gallery .gallery-item {
    background: var(--color-bg-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-showcase .showcase-gallery .gallery-item__img {
    height: 270px;
    object-position: top center;
}

.page-showcase .showcase-gallery .gallery-item__caption {
    font-size: 0.86rem;
    font-weight: 500;
}

/* Light theme */
[data-theme="light"] .showcase-jumpnav {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: var(--color-border-light);
}

[data-theme="light"] .showcase-jumpnav__item {
    color: var(--color-text-secondary);
    --jn-pulse-color: var(--color-primary);
}

[data-theme="light"] .showcase-jumpnav__item:hover {
    color: var(--color-secondary);
    background: rgba(96, 200, 205, 0.08);
}

[data-theme="light"] .showcase-jumpnav__item.is-active {
    color: var(--color-secondary);
    background: rgba(96, 200, 205, 0.1);
}

[data-theme="light"] .showcase-jumpnav__item::after {
    background: var(--color-text);
    border-color: transparent;
    color: white;
}

/* Mobile: smaller items */
@media (max-width: 767px) {
    .showcase-jumpnav__item {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.72rem;
        border-radius: 0.375rem;
    }

    .showcase-jumpnav__track {
        gap: 0.125rem;
    }

    .page-showcase .showcase-gallery .gallery-item__img {
        height: 190px;
    }
}

/* ============================================
   GLOBAL LIGHT MODE DEFAULTS
   Use .theme-inverted or .is-inverted on sections that intentionally keep
   the dark/neon treatment in light mode.
   ============================================ */
.header-inner {
    justify-content: flex-start;
    gap: clamp(1rem, 2vw, 2rem);
}

.nav-main {
    flex: 1 1 auto;
    min-width: 0;
}

.nav-list {
    margin-left: clamp(0.25rem, 1.4vw, 1.4rem);
}

.site-header .nav-list a {
    font-weight: 400;
}

.nav-lang {
    margin-left: auto;
}

.site-header .lang-link {
    border-radius: 8px;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.site-header .lang-separator {
    font-weight: 700;
    opacity: 0.82;
}

.site-header .lang-link:hover,
.site-header .lang-link:focus-visible {
    background: var(--color-background-section);
}

.page-landing .site-header .lang-link:hover,
.page-landing .site-header .lang-link:focus-visible {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .page-landing .site-header .lang-link:hover,
[data-theme="dark"] .page-landing .site-header .lang-link:focus-visible {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .site-header.header-transparent .nav-list a,
[data-theme="light"] .site-header.header-transparent .site-logo,
[data-theme="light"] .site-header.header-transparent .lang-link,
[data-theme="light"] .site-header.header-transparent .theme-toggle {
    color: #000000;
}

[data-theme="light"] .site-header.header-transparent .hamburger span {
    background: #000000;
}

[data-theme="light"] .site-header .nav-list a,
[data-theme="light"] .site-header .site-logo,
[data-theme="light"] .site-header .lang-link,
[data-theme="light"] .site-header .theme-toggle,
[data-theme="light"] .page-landing .site-header .nav-list a,
[data-theme="light"] .page-landing .site-header .site-logo,
[data-theme="light"] .page-landing .site-header .lang-link,
[data-theme="light"] .page-landing .site-header .theme-toggle,
[data-theme="light"] .page-landing .site-header.header-transparent .nav-list a,
[data-theme="light"] .page-landing .site-header.header-transparent .site-logo,
[data-theme="light"] .page-landing .site-header.header-transparent .lang-link,
[data-theme="light"] .page-landing .site-header.header-transparent .theme-toggle {
    color: #000000;
}

[data-theme="light"] .site-header .nav-list a:hover,
[data-theme="light"] .site-header .nav-list a.active,
[data-theme="light"] .site-header .lang-link:hover,
[data-theme="light"] .site-header .lang-link.active,
[data-theme="light"] .site-header .lang-link:focus-visible,
[data-theme="light"] .page-landing .site-header .nav-list a:hover,
[data-theme="light"] .page-landing .site-header .nav-list a.active,
[data-theme="light"] .page-landing .site-header .lang-link:hover,
[data-theme="light"] .page-landing .site-header .lang-link.active,
[data-theme="light"] .page-landing .site-header .lang-link:focus-visible {
    color: var(--color-secondary-dark);
}

[data-theme="light"] .site-header .lang-link:hover,
[data-theme="light"] .site-header .lang-link:focus-visible,
[data-theme="light"] .page-landing .site-header .lang-link:hover,
[data-theme="light"] .page-landing .site-header .lang-link:focus-visible {
    background: var(--color-background-section);
}

[data-theme="light"] .hero-title {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #071522;
    text-shadow: none;
}

[data-theme="light"] .hero-title-line--light {
    color: #071522;
    -webkit-text-fill-color: #071522;
}

[data-theme="light"] .hero-title-line--accent {
    color: var(--color-primary-glow);
    -webkit-text-fill-color: var(--color-primary-glow);
    text-shadow: 0 0 18px rgba(46, 208, 249, 0.2);
}

[data-theme="light"] .hero-subtitle {
    color: var(--color-slate);
}

[data-theme="light"] .hero-actions .btn-gradient {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.42) inset,
        0 8px 18px rgba(10, 76, 110, 0.14);
}

[data-theme="light"] .hero-actions .btn-ghost {
    color: #17314a;
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(13, 82, 116, 0.16);
    box-shadow: 0 6px 14px rgba(10, 76, 110, 0.08);
}

[data-theme="light"] .hero-actions .btn-ghost:hover {
    color: #0d6f99;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(46, 208, 249, 0.34);
}

[data-theme="light"] .theme-inverted,
[data-theme="light"] .is-inverted {
    color: var(--color-text-on-dark);
}

[data-theme="light"] .theme-inverted .hero-title,
[data-theme="light"] .is-inverted .hero-title {
    background: linear-gradient(180deg, #ffffff 0%, #c9f8ff 48%, #57eaff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #ffffff;
    text-shadow: 0 0 42px rgba(86, 229, 255, 0.14);
}

[data-theme="light"] .theme-inverted .hero-title-line--light,
[data-theme="light"] .is-inverted .hero-title-line--light {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

[data-theme="light"] .theme-inverted .hero-title-line--accent,
[data-theme="light"] .is-inverted .hero-title-line--accent {
    color: var(--color-primary-glow);
    -webkit-text-fill-color: var(--color-primary-glow);
    text-shadow: 0 0 34px rgba(46, 208, 249, 0.34);
}

[data-theme="light"] .theme-inverted .hero-subtitle,
[data-theme="light"] .is-inverted .hero-subtitle {
    color: rgba(220, 247, 255, 0.84);
}

@media (max-width: 1024px) {
    .small-design-copy {
        width: min(760px, 78vw);
    }

    .small-design-panel {
        width: min(860px, 78vw);
        margin-left: clamp(4.5rem, 9vw, 7rem);
    }

    .small-design-facts {
        width: min(820px, 76vw);
    }

    .landing-size-matters {
        min-height: auto;
        padding: 4.5rem 0 4rem;
    }

    .landing-size-matters .landing-container {
        padding-inline: clamp(0.7rem, 2.2vw, 1.1rem);
    }

    .landing-size-matters::after {
        content: none;
    }

    .landing-size-matters::before {
        background:
            linear-gradient(180deg,
                rgba(2, 8, 18, 0.96) 0%,
                rgba(2, 8, 18, 0.82) 52%,
                rgba(2, 8, 18, 0.96) 100%);
    }

    .size-matters-inner {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "visual"
            "table";
        row-gap: 1.7rem;
    }

    .size-matters-copy {
        width: 100%;
        max-width: 680px;
    }

    .size-matters-table-wrap {
        width: 100%;
        max-width: 680px;
        min-width: 0;
        overflow: hidden;
    }

    .size-matters-visual {
        width: min(100%, 680px);
        margin: 0;
        aspect-ratio: 1272 / 1002;
        border: 1px solid rgba(56, 221, 255, 0.26);
        border-radius: 10px;
        box-shadow: 0 0 24px rgba(56, 221, 255, 0.12);
        overflow: hidden;
    }

    .size-notes {
        position: absolute;
        inset: 0;
        display: block;
        max-width: none;
        margin: 0;
        perspective: none;
        padding: 0;
    }

    .size-hotspot {
        display: none;
    }

    .size-note,
    .landing-size-matters.size-notes-visible .size-note {
        position: absolute;
        width: clamp(8rem, 22cqw, 10.6rem);
        min-height: 0;
        padding: clamp(0.42rem, 1.45cqw, 0.72rem);
        font-size: clamp(0.62rem, 1.55cqw, 0.82rem);
        line-height: 1.23;
        transform: translateY(0);
    }

    .size-note--1,
    .landing-size-matters.size-notes-visible .size-note--1 {
        top: 70%;
        left: 2.6%;
    }

    .size-note--2,
    .landing-size-matters.size-notes-visible .size-note--2 {
        top: 71.5%;
        left: 34.4%;
    }

    .size-note--3,
    .landing-size-matters.size-notes-visible .size-note--3 {
        top: 72.5%;
        left: 66%;
    }

    [data-theme="light"] .landing-size-matters::before {
        background:
            linear-gradient(180deg,
                rgba(255, 255, 255, 0.96) 0%,
                rgba(255, 255, 255, 0.82) 52%,
                rgba(255, 255, 255, 0.96) 100%);
    }

}

@media (max-width: 768px) {
    .landing-small-design {
        min-height: auto;
        padding: 4rem 0 3rem;
    }

    .landing-small-design::before {
        background-size: auto 100%;
        background-position: 62% center;
    }

    .landing-small-design::after {
        background:
            linear-gradient(180deg,
                rgba(2, 10, 20, 0.92) 0%,
                rgba(2, 10, 20, 0.68) 38%,
                rgba(2, 10, 20, 0.94) 100%);
    }

    .small-design-inner {
        min-height: auto;
    }

    .small-design-rail {
        display: none;
    }

    .small-design-copy {
        width: 100%;
    }

    .small-design-title {
        font-size: clamp(2.6rem, 14vw, 4.2rem);
    }

    .small-design-subtitle {
        font-size: 1.08rem;
    }

    .small-design-panel,
    .small-design-facts {
        width: 100%;
        margin-left: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .small-design-panel {
        margin-top: 2.4rem;
    }

    .small-design-metric {
        min-height: 172px;
    }

    .small-design-metric + .small-design-metric,
    .small-design-fact + .small-design-fact {
        border-left: 0;
    }

    .small-design-metric:nth-child(2n),
    .small-design-fact:nth-child(2n) {
        border-left: 1px solid rgba(56, 221, 255, 0.34);
    }

    .small-design-metric:nth-child(n+3),
    .small-design-fact:nth-child(n+3) {
        border-top: 1px solid rgba(56, 221, 255, 0.34);
    }

    .small-design-metric-value {
        font-size: clamp(3.1rem, 15vw, 4.4rem);
    }

    .small-design-link {
        width: 100%;
        max-width: 620px;
        margin: 1.2rem auto 0;
        transform: none;
        font-size: 1.25rem;
        text-align: left;
    }

    .small-design-facts {
        margin-top: 1.7rem;
    }

    .small-design-fact {
        grid-template-columns: 36px 1fr;
        padding: 0.9rem;
    }

    .small-design-fact-icon {
        width: 34px;
        height: 34px;
    }

    [data-theme="light"] .landing-small-design::after {
        background:
            linear-gradient(180deg,
                rgba(255, 255, 255, 0.94) 0%,
                rgba(255, 255, 255, 0.72) 38%,
                rgba(255, 255, 255, 0.96) 100%);
    }

    .landing-size-matters {
        min-height: auto;
        padding: 4rem 0 3.5rem;
    }

    .landing-size-matters .landing-container {
        padding-inline: 0;
    }

    .landing-size-matters::after {
        content: none;
    }

    .landing-size-matters::before {
        background:
            linear-gradient(180deg,
                rgba(2, 8, 18, 0.96) 0%,
                rgba(2, 8, 18, 0.82) 52%,
                rgba(2, 8, 18, 0.96) 100%);
    }

    .size-matters-inner {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "visual"
            "table";
        row-gap: 1.6rem;
    }

    .size-matters-copy {
        width: 100%;
        max-width: 620px;
        padding-inline: 0.7rem;
    }

    .size-heading {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .size-subtitle {
        font-size: 1.08rem;
    }

    .size-matters-table-wrap {
        width: 100%;
        max-width: 620px;
        min-width: 0;
        overflow: hidden;
        padding-inline: 0.7rem;
    }

    .size-matters-visual {
        width: 100%;
        margin: 0;
        aspect-ratio: 1 / 0.78;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
    }

    .size-matters-image,
    .size-matters-overlay {
        width: 125%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: 50% 50%;
        transform: translateX(-10%);
    }

    .size-compare-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .size-compare-head,
    .size-compare-row {
        min-width: 560px;
    }

    .size-compare-head span,
    .size-compare-row > span {
        padding: 0.75rem 0.7rem;
    }

    .size-notes {
        position: absolute;
        inset: 0;
        display: block;
        max-width: none;
        margin: 0;
        perspective: none;
        padding: 0;
    }

    .size-hotspot {
        display: none;
    }

    .size-note,
    .landing-size-matters.size-notes-visible .size-note {
        position: absolute;
        width: clamp(6.2rem, 24cqw, 8.4rem);
        min-height: 0;
        padding: clamp(0.34rem, 1.7cqw, 0.58rem);
        font-size: clamp(0.55rem, 1.85cqw, 0.74rem);
        line-height: 1.2;
        transform: translateY(0);
    }

    .size-note--1,
    .landing-size-matters.size-notes-visible .size-note--1 {
        top: 68%;
        left: 2.2%;
    }

    .size-note--2,
    .landing-size-matters.size-notes-visible .size-note--2 {
        top: 69.2%;
        left: 34%;
    }

    .size-note--3,
    .landing-size-matters.size-notes-visible .size-note--3 {
        top: 70.4%;
        left: 65.4%;
    }

    [data-theme="light"] .landing-size-matters::before {
        background:
            linear-gradient(180deg,
                rgba(255, 255, 255, 0.96) 0%,
                rgba(255, 255, 255, 0.82) 52%,
                rgba(255, 255, 255, 0.96) 100%);
    }

}

@media (max-width: 460px) {
    .hero-content {
        align-self: center;
    }
}

@media (max-width: 520px) {
    .features-mascot {
        width: min(18.5rem, 76vw);
        z-index: 8;
        margin-top: clamp(-5.2rem, -18vw, -3.6rem);
        margin-bottom: clamp(-2.8rem, -8vw, -1.75rem);
    }

    .feature-window-bar {
        justify-content: flex-start;
    }

    .feature-window-bar span:nth-child(3) {
        margin-right: clamp(1.2rem, 8vw, 2.2rem);
    }

    .feature-window-bar strong,
    .feature-window-bar em {
        display: none;
    }

    .feature-window-bar small {
        display: block;
        margin-left: auto;
    }

    .feature-card-multilingual {
        min-height: clamp(13.5rem, 48vw, 15.5rem);
        padding-bottom: clamp(2.6rem, 10vw, 3.3rem);
    }

    .feature-card-multilingual .feature-card-copy {
        max-width: calc(100% - clamp(6.2rem, 27vw, 8.8rem));
    }

    .feature-selectors {
        bottom: clamp(1rem, 4vw, 1.25rem);
    }

    .size-matters-table-wrap {
        overflow: visible;
    }

    .size-compare-cta {
        width: min(100%, 16rem);
        min-height: 48px;
        margin-top: 1.05rem;
        margin-bottom: 1.1rem;
        gap: 0.8rem;
        justify-content: center;
        padding-inline: 1rem;
        font-size: 1rem;
    }

    .size-compare-table {
        display: grid;
        gap: 0.85rem;
        margin-top: 1.15rem;
        border: 0;
        overflow: visible;
    }

    .size-compare-head {
        display: none;
    }

    .size-compare-row {
        min-width: 0;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
        padding: 0.85rem;
        border: 2px solid rgba(56, 221, 255, 0.5);
        border-radius: 10px;
        background: linear-gradient(145deg, rgba(8, 43, 72, 0.58), rgba(1, 6, 13, 0.84));
        box-shadow: 0 0 22px rgba(56, 221, 255, 0.1);
    }

    .size-compare-feature {
        grid-column: 1 / -1;
        padding: 0 0 0.55rem !important;
        border-bottom: 1px solid rgba(56, 221, 255, 0.28);
    }

    .size-compare-row > span {
        min-width: 0;
        display: grid;
        gap: 0.25rem;
        justify-items: start;
        justify-content: stretch;
        padding: 0 !important;
        border-left: 0 !important;
        font-size: clamp(0.9rem, 4vw, 1.05rem);
        text-align: left;
    }

    .size-compare-row > span:not(.size-compare-feature)::before {
        color: rgba(220, 247, 255, 0.68);
        font-size: 0.68rem;
        font-weight: 700;
        line-height: 1;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .size-compare-row > span:nth-child(2)::before {
        content: 'WordPress';
    }

    .size-compare-row > span:nth-child(3)::before {
        content: 'Next.js';
    }

    .size-compare-row > span:nth-child(4)::before {
        content: 'nibbly';
    }

    .small-design-panel,
    .small-design-facts {
        grid-template-columns: 1fr;
    }

    .small-design-metric:nth-child(2n),
    .small-design-fact:nth-child(2n) {
        border-left: 0;
    }

    .small-design-metric + .small-design-metric,
    .small-design-fact + .small-design-fact {
        border-top: 1px solid rgba(56, 221, 255, 0.34);
    }
}

@media (max-width: 359px) {
    .size-matters-table-wrap {
        display: none;
    }
}

@media (max-width: 420px) {
    .landing-code-showcase .landing-container {
        width: 100%;
        max-width: 100%;
        padding-inline: 20px;
    }

    .code-showcase-layout,
    .code-showcase-text,
    .code-showcase-block {
        width: 100%;
        min-width: 0;
    }

    .code-window {
        max-width: 100%;
    }

    .code-content {
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    .code-content code {
        display: block;
        width: max-content;
        min-width: 100%;
    }

    .code-window-glow {
        inset: -10px;
    }
}

/* ============================================
   READY CTA + PRODUCT FOOTER
   ============================================ */
.landing-ready {
    --ready-cyan: var(--color-primary-glow);
    --ready-line: rgba(56, 221, 255, 0.62);
    position: relative;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    background: #020812;
    color: var(--color-text-on-dark);
    border-bottom: 2px solid var(--ready-line);
}

.landing-ready::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(720px 420px at 18% 30%, rgba(56, 221, 255, 0.12), transparent 68%),
        linear-gradient(90deg, rgba(2, 8, 18, 0.98) 0%, rgba(2, 8, 18, 0.98) 40%, rgba(2, 8, 18, 0) 60%, rgba(2, 8, 18, 0) 100%);
}

.landing-ready::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('/assets/images/ready-to-nibbly-dm.webp');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right center;
}

.landing-ready-inner {
    position: relative;
    z-index: 2;
    min-height: clamp(500px, 36vw, 620px);
    display: flex;
    align-items: center;
    padding-top: clamp(3.2rem, 4.6vw, 5rem);
    padding-bottom: clamp(2.8rem, 4vw, 4.2rem);
}

.landing-ready-inner::before {
    content: none;
}

.landing-ready-copy {
    width: min(720px, 46vw);
    position: relative;
    z-index: 2;
}

.landing-ready-heading {
    margin: 0 0 1.1rem;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(198, 249, 255, 0.98);
    font-size: clamp(3.3rem, 5vw, 5.65rem);
    font-weight: 520;
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow:
        0 0 14px rgba(56, 221, 255, 0.78),
        0 0 44px rgba(56, 221, 255, 0.4);
}

.landing-ready-text {
    margin: 0 0 1.85rem;
    color: #ffffff;
    font-size: clamp(1.2rem, 1.7vw, 1.62rem);
    line-height: 1.35;
    font-weight: 500;
}

.landing-ready-license {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    margin-bottom: 2.1rem;
    color: #ffffff;
}

.landing-ready-license-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--ready-cyan);
    filter: drop-shadow(0 0 15px rgba(56, 221, 255, 0.52));
}

.landing-ready-license-icon svg {
    width: 100%;
    height: 100%;
}

.landing-ready-license p {
    margin: 0;
    font-size: clamp(1rem, 1.3vw, 1.26rem);
    line-height: 1.38;
    font-weight: 500;
}

.landing-ready-actions {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    flex-wrap: wrap;
    margin-bottom: 2.1rem;
}

.landing-ready-action-divider {
    width: 1px;
    height: 48px;
    background: rgba(125, 240, 255, 0.34);
}

.landing-ready-docs {
    color: var(--ready-cyan);
    font-size: clamp(0.95rem, 1.05vw, 1.05rem);
    font-weight: 560;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    text-shadow: 0 0 16px rgba(56, 221, 255, 0.34);
}

.landing-ready-docs:hover {
    color: #ffffff;
}

.landing-ready-included {
    display: flex;
    align-items: center;
    gap: 1.55rem;
    color: #ffffff;
}

.landing-ready-included-item {
    display: grid;
    grid-template-columns: 42px auto;
    gap: 0.85rem;
    align-items: center;
    min-width: 150px;
    font-size: clamp(0.95rem, 1.18vw, 1.18rem);
    line-height: 1.05;
}

.landing-ready-included-item + .landing-ready-included-item {
    padding-left: 1.55rem;
    border-left: 1px solid rgba(125, 240, 255, 0.32);
}

.landing-ready-included-copy {
    margin: 0;
}

.landing-ready-included-copy span {
    color: var(--ready-cyan);
}

.landing-ready-included-icon {
    width: 42px;
    height: 42px;
    color: var(--ready-cyan);
    background: currentColor;
    -webkit-mask: var(--ready-icon) center / contain no-repeat;
    mask: var(--ready-icon) center / contain no-repeat;
    filter: drop-shadow(0 0 10px rgba(56, 221, 255, 0.4));
}

.landing-ready-included-icon--user {
    --ready-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle fill='none' stroke='black' stroke-width='2' cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.landing-ready-included-icon--users {
    --ready-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle fill='none' stroke='black' stroke-width='2' cx='9' cy='7' r='4'/%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.landing-ready-included-icon--building {
    --ready-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M4 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16M16 8h2a2 2 0 0 1 2 2v11M8 7h4M8 11h4M8 15h4M3 21h18'/%3E%3C/svg%3E");
}

.footer {
    padding: 0;
    background: #020812;
    border-top: 0;
}

.footer-accent,
.footer-bottom,
.footer-col,
.footer-col-heading,
.footer-brand-name {
    display: none;
}

.footer-product-bar {
    max-width: none;
    min-height: 158px;
    padding: clamp(1.8rem, 3vw, 2.6rem) clamp(2rem, 5vw, 6rem);
    display: grid;
    grid-template-columns:
        minmax(260px, 0.9fr)
        minmax(280px, 1fr)
        minmax(350px, auto);
    align-items: center;
    gap: clamp(1.5rem, 3.2vw, 4.4rem);
    border-top: 1px solid rgba(56, 221, 255, 0.64);
    color: rgba(245, 252, 255, 0.92);
}

.footer-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    min-width: 0;
}

.footer-wordmark {
    width: clamp(118px, 9.6vw, 158px);
    aspect-ratio: 1718.81 / 623.85;
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
    color: transparent;
    font-size: 0;
    background: url('/assets/images/nibbly-main-icon-dm.svg') center / contain no-repeat;
    filter: drop-shadow(0 0 16px rgba(56, 221, 255, 0.36));
}

.page-landing .footer-copyright,
.page-landing .footer-credit {
    margin: 0;
    color: rgba(236, 247, 250, 0.82);
    font-size: clamp(0.78rem, 0.82vw, 0.88rem);
    line-height: 1.45;
    opacity: 1;
}

.page-landing .footer-credit {
    color: rgba(226, 242, 247, 0.76);
}

.page-landing .footer-credit a {
    color: rgba(255, 255, 255, 0.96);
    font-weight: 600;
    text-decoration: none;
}

.footer-credit a:hover,
.footer-links a:hover,
.footer-lang a:hover {
    color: var(--color-primary-light);
}

.footer-summary {
    padding-left: clamp(1.15rem, 2vw, 1.8rem);
    border-left: 1px solid rgba(125, 240, 255, 0.26);
}

.footer-summary p {
    margin: 0;
    max-width: 520px;
    color: rgba(226, 242, 247, 0.82);
    font-size: clamp(0.95rem, 1.1vw, 1.12rem);
    line-height: 1.45;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 1.15rem;
    justify-self: end;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(1.1rem, 1.8vw, 2rem);
}

.page-landing .footer-links a,
.page-landing .footer-lang a {
    color: rgba(241, 250, 252, 0.9);
    text-decoration: none;
    font-size: clamp(0.95rem, 1.1vw, 1.13rem);
    font-weight: 500;
}

.footer-lang {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.72rem 1rem;
    border: 1px solid rgba(56, 221, 255, 0.58);
    border-radius: 8px;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(56, 221, 255, 0.14);
}

.footer-lang-globe {
    width: 20px;
    height: 20px;
    display: inline-block;
    background: var(--color-primary-light);
}

.footer-lang-globe {
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footer-lang a.active {
    color: var(--color-primary-light);
}

.footer-lang-separator {
    opacity: 0.78;
    font-weight: 700;
}

[data-theme="light"] .landing-ready {
    background: #f8fcff;
    color: #071522;
}

[data-theme="light"] .landing-ready::before {
    background:
        radial-gradient(720px 420px at 18% 30%, rgba(56, 221, 255, 0.14), transparent 68%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%);
}

[data-theme="light"] .landing-ready::after {
    background-image: url('/assets/images/ready-to-nibbly.webp');
}

[data-theme="light"] .landing-ready-heading {
    -webkit-text-stroke-color: var(--color-secondary-dark);
    text-shadow: 0 0 14px rgba(56, 221, 255, 0.18);
}

[data-theme="light"] .landing-ready-text,
[data-theme="light"] .landing-ready-license,
[data-theme="light"] .landing-ready-included,
[data-theme="light"] .footer-summary p {
    color: #071522;
}

[data-theme="light"] .footer {
    background: #f8fcff;
}

[data-theme="light"] .footer-product-bar {
    border-top-color: rgba(18, 109, 153, 0.34);
    color: #071522;
}

[data-theme="light"] .footer-wordmark {
    background-image: url('/assets/images/nibbly-main-icon.svg');
    filter: none;
}

[data-theme="light"] .footer-bytewerk,
[data-theme="light"] .footer-copyright,
[data-theme="light"] .footer-credit,
[data-theme="light"] .footer-credit a,
[data-theme="light"] .footer-links a,
[data-theme="light"] .footer-lang a {
    color: #071522;
}

[data-theme="light"] .footer-lang {
    border-color: rgba(18, 109, 153, 0.62);
    box-shadow: 0 10px 24px rgba(18, 109, 153, 0.08);
}

[data-theme="light"] .footer-lang-globe {
    background: var(--color-secondary-dark);
}

[data-theme="light"] .footer-lang-separator {
    color: #8b99a6;
    opacity: 1;
}

[data-theme="light"] .footer-credit a:hover,
[data-theme="light"] .footer-links a:hover,
[data-theme="light"] .footer-lang a:hover,
[data-theme="light"] .footer-lang a.active {
    color: var(--color-secondary-dark);
}

@media (max-width: 1024px) {
    .landing-ready-inner {
        min-height: auto;
        align-items: flex-start;
    }

    .landing-ready-inner::before {
        width: 100%;
        opacity: 0.38;
        background-size: auto 100%;
    }

    .landing-ready-copy {
        width: min(680px, 100%);
    }

    .footer-product-bar {
        grid-template-columns: minmax(250px, 0.85fr) minmax(360px, 1.15fr);
        align-items: start;
        gap: 1.1rem clamp(2rem, 4vw, 3.5rem);
    }

    .footer-brand-block {
        grid-row: 1 / span 2;
    }

    .footer-summary {
        grid-column: 2;
    }

    .footer-actions {
        grid-column: 2;
        flex-direction: row;
        align-items: flex-start;
        justify-self: stretch;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .footer-product-bar {
        grid-template-columns: 1fr;
    }

    .footer-brand-block {
        grid-row: auto;
    }

    .footer-summary,
    .footer-actions {
        grid-column: auto;
    }

    .footer-summary {
        padding-left: 0;
        border-left: 0;
    }

    .footer-actions {
        flex-direction: column;
        justify-self: start;
        justify-content: flex-start;
    }

    .landing-ready {
        background: #01060d;
    }

    .landing-ready::before {
        background:
            radial-gradient(420px 300px at 28% 20%, rgba(56, 221, 255, 0.16), transparent 70%),
            linear-gradient(180deg, rgba(1, 6, 13, 0.98) 0%, rgba(1, 6, 13, 0.88) 52%, rgba(1, 6, 13, 0.72) 100%);
    }

    .landing-ready::after {
        background-size: min(90vw, 420px) auto;
        background-position: right bottom;
        opacity: 0.68;
    }

    .landing-ready-inner {
        min-height: clamp(620px, 150vw, 820px);
        padding-top: clamp(3rem, 12vw, 4.2rem);
        padding-bottom: clamp(2.5rem, 9vw, 3.6rem);
    }

    .landing-ready-copy {
        width: min(100%, 28rem);
    }

    .landing-ready-heading {
        max-width: 8ch;
        font-size: clamp(3.3rem, 16vw, 5rem);
    }

    .landing-ready-text {
        max-width: 18rem;
        font-size: clamp(1.18rem, 5.4vw, 1.42rem);
    }

    .landing-ready-license {
        max-width: 15rem;
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .landing-ready-actions {
        max-width: 18rem;
    }

    .landing-ready-actions,
    .landing-ready-included {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .landing-ready-action-divider {
        display: none;
    }

    .landing-ready-included-item + .landing-ready-included-item {
        padding-left: 0;
        border-left: 0;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem 1.4rem;
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .steps-connector {
        display: none;
    }

    .step-card {
        text-align: left;
    }

    .step-number-ring {
        width: 56px;
        height: 56px;
    }
}

/* ============================================
   FEATURES — MEDIUM VIEWPORT COMPOSITION
   Preserve the desktop intro/editor/mascot relationship. Only the
   two compact utility cards move beneath that composition.
   ============================================ */
@media (min-width: 800px) and (max-width: 1199px) {
    .landing-features .landing-container {
        width: 100%;
        max-width: none;
        padding-inline: clamp(3rem, 6vw, 5rem);
    }

    .features-showcase {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        grid-template-rows:
            repeat(6, minmax(6.2rem, 7vw))
            auto
            minmax(15rem, auto);
        grid-template-areas: none;
        gap: clamp(1rem, 1.7vw, 1.4rem);
    }

    .features-intro {
        grid-area: auto;
        grid-column: 1 / 3;
        grid-row: 1 / 5;
        min-height: 0;
        padding: 0;
        text-align: left;
    }

    .features-kicker {
        min-height: 0;
        padding: 0;
        text-align: left;
        background: none;
    }

    .features-title {
        max-width: 17.5rem;
        margin-inline: 0;
        font-size: clamp(2.35rem, 4.7vw, 4.15rem);
        line-height: 0.98;
    }

    .features-copy {
        max-width: 20rem;
        margin: clamp(1.6rem, 2.5vw, 2.7rem) 0 0;
        font-size: clamp(1.05rem, 1.8vw, 1.34rem);
        line-height: 1.5;
    }

    .feature-card-editor {
        grid-area: auto;
        grid-column: 3 / 8;
        grid-row: 1 / 6;
        width: auto;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .feature-editor-body {
        min-height: calc(100% - 4rem);
        height: calc(100% - 4rem);
        padding: clamp(5rem, 6.2vw, 5.8rem)
            clamp(1.5rem, 2.7vw, 2.5rem)
            clamp(1.6rem, 2.8vw, 2.5rem)
            clamp(3rem, 4.6vw, 4.4rem);
    }

    .feature-editor-copy {
        --feature-title-left: clamp(-1.25rem, -1.5vw, -0.75rem);
        --feature-title-width: min(36rem, calc(100% + 3rem));
        --feature-title-center: calc(var(--feature-title-width) / 2);
        max-width: min(84%, 48rem);
    }

    .feature-editor-copy h3 {
        left: var(--feature-title-left);
        width: var(--feature-title-width);
        max-width: none;
        font-size: clamp(3.05rem, 5.2vw, 4.35rem);
        line-height: 0.92;
    }

    .feature-editor-lower {
        position: absolute;
        left: calc(clamp(3rem, 4.6vw, 4.4rem) + clamp(1rem, 2.5vw, 2rem));
        bottom: clamp(1.7rem, 2.8vw, 2.7rem);
        max-width: min(26rem, 58%);
        margin: 0;
    }

    .feature-editor-image {
        position: absolute;
        right: clamp(1rem, 2vw, 1.7rem);
        top: clamp(5.3rem, 7.5vw, 7rem);
        bottom: clamp(5.4rem, 7vw, 6.5rem);
        left: auto;
        width: clamp(9rem, 17vw, 12.5rem);
        max-width: 30%;
        max-height: none;
        margin: 0;
        transform: none;
    }

    .features-mascot {
        grid-area: auto;
        grid-column: 1 / 4;
        grid-row: 3 / 7;
        position: relative;
        left: auto;
        bottom: auto;
        width: auto;
        justify-self: stretch;
        align-self: stretch;
        margin: 0;
        transform: none;
        z-index: 8;
    }

    .features-mascot-img {
        position: absolute;
        left: clamp(-2.4rem, -2vw, -1.2rem);
        bottom: calc(clamp(-4rem, -2.55vw, -1.65rem) + 2px);
        width: min(124%, 34rem);
        max-width: none;
    }

    .features-side-stack {
        display: grid;
        grid-area: auto;
        grid-column: 1 / -1;
        grid-row: 7;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(1rem, 1.7vw, 1.4rem);
        width: 100%;
    }

    .feature-card-backup,
    .feature-card-media {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        min-height: clamp(18rem, 30vw, 22rem);
        padding: clamp(1.35rem, 2.4vw, 1.9rem);
    }

    .feature-card-backup img {
        width: min(72%, 18rem);
        max-height: 15rem;
        margin: auto auto 0;
    }

    .feature-card-media img {
        width: min(88%, 24rem);
        max-height: 17rem;
        margin: auto auto 0;
    }

    .feature-card-multilingual,
    .feature-card-urls,
    .feature-card-security {
        grid-area: auto;
        grid-row: 8;
        min-height: 15rem;
        padding: clamp(1.25rem, 2vw, 1.7rem);
    }

    .feature-card-multilingual {
        grid-column: 1 / 3;
    }

    .feature-card-urls {
        grid-column: 3 / 6;
    }

    .feature-card-security {
        grid-column: 6 / 8;
        grid-template-columns: minmax(0, 1fr);
    }

    .feature-card-security img {
        position: absolute;
        right: 1rem;
        bottom: 1rem;
        width: min(42%, 7rem);
        max-height: 7rem;
    }
}

@media (max-width: 799px) {
    .features-mascot {
        grid-area: mascot;
        grid-column: 1;
        grid-row: 3;
        margin: -1.25rem auto clamp(-2.25rem, -7vw, -1.4rem);
    }
}
