/* =========================================================================
   Company Website — Design System (style.css)
   -------------------------------------------------------------------------
   A reusable, framework-free (no Bootstrap/Tailwind) design system consumed
   by every page. Mobile-first. Responsive breakpoints live in responsive.css.

   Table of contents
     01. Design tokens (CSS variables)
     02. Modern reset
     03. Base / typography system
     04. Selection & scrollbar
     05. Accessibility helpers
     06. Layout: containers
     07. Layout: grid
     08. Layout: flex utilities
     09. Spacing utilities
     10. Section utilities
     11. Image utilities
     12. Transition & animation utilities
     13. Keyframe animations
     14. Hover effects
     15. Buttons
     16. Cards
     17. Forms & inputs
     18. Component: header / navbar
     19. Component: footer
     20. Component: back to top
   ========================================================================= */

/* =========================================================================
   01. DESIGN TOKENS
   ========================================================================= */
:root {
    /* --- Brand & semantic colors ---
       Bugnatics purple identity. Primary #5916A3 clears WCAG AA on white
       for text/links/buttons; lighter tints are reserved for decorative
       gradients, glows and soft fills. *-rgb tokens feed translucent rgba(). */
    --color-primary: #5916A3;
    --color-primary-dark: #4B1289;
    --color-primary-light: #6E24C8;
    --color-primary-lighter: #7B2ED6;
    --color-primary-soft: #EDE4FB;
    --color-primary-rgb: 89, 22, 163;
    --color-primary-light-rgb: 123, 46, 214;

    /* Accent stays within the purple family so the UI reads as one brand hue. */
    --color-accent: #6E24C8;
    --color-accent-dark: #4B1289;

    /* Semantic status. Success maps to the brand purple; errors stay red. */
    --color-success: #5916A3;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-danger-dark: #b91c1c;
    --color-danger-rgb: 239, 68, 68;
    --color-info: #6E24C8;

    /* --- Neutrals --- */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-dark: #111827;
    --color-bg: #ffffff;
    --color-surface: #f8fafc;
    --color-surface-alt: #f5f7fa;
    --color-text: #111827;
    --color-heading: #111827;
    --color-muted: #6B7280;
    --color-border: #e5e7eb;
    --color-border-strong: #d1d5db;

    /* --- Brand gradients (purple) --- */
    --gradient-primary: linear-gradient(135deg, #5916A3 0%, #7B2ED6 100%);
    --gradient-hero: linear-gradient(180deg, #EDE4FB 0%, #ffffff 100%);
    --gradient-cta: linear-gradient(90deg, #5916A3, #7B2ED6);

    /* --- Typography --- */
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-heading: "Poppins", var(--font-body);
    --font-mono: "SFMono-Regular", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;

    --fs-xs: 0.75rem;    /* 12px */
    --fs-sm: 0.875rem;   /* 14px */
    --fs-base: 1rem;     /* 16px */
    --fs-md: 1.125rem;   /* 18px */
    --fs-lg: 1.25rem;    /* 20px */
    --fs-xl: 1.5rem;     /* 24px */
    --fs-2xl: 1.875rem;  /* 30px */
    --fs-3xl: 2.25rem;   /* 36px */
    --fs-4xl: 3rem;      /* 48px */
    --fs-5xl: 3.75rem;   /* 60px */

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    --lh-tight: 1.2;
    --lh-snug: 1.4;
    --lh-base: 1.6;
    --lh-loose: 1.8;

    --ls-tight: -0.02em;
    --ls-normal: 0;
    --ls-wide: 0.04em;

    /* --- Spacing scale (4px base) --- */
    --space-3xs: 0.25rem;  /* 4px  */
    --space-2xs: 0.375rem; /* 6px  */
    --space-xs: 0.5rem;    /* 8px  */
    --space-sm: 0.75rem;   /* 12px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 2rem;      /* 32px */
    --space-xl: 4rem;      /* 64px */
    --space-2xl: 6rem;     /* 96px */

    /* --- Radii --- */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-pill: 999px;
    --radius-circle: 50%;

    /* --- Shadows --- */
    --shadow-xs: 0 1px 2px rgba(13, 17, 23, 0.06);
    --shadow-sm: 0 1px 3px rgba(13, 17, 23, 0.08);
    --shadow-md: 0 8px 24px rgba(13, 17, 23, 0.12);
    --shadow-lg: 0 16px 40px rgba(13, 17, 23, 0.16);
    --shadow-focus: 0 0 0 3px rgba(var(--color-primary-rgb), 0.35);

    /* --- Motion --- */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.15s;
    --duration: 0.25s;
    --duration-slow: 0.4s;
    --transition: var(--duration) var(--ease);
    --transition-fast: var(--duration-fast) var(--ease);
    --transition-slow: var(--duration-slow) var(--ease);

    /* --- Layout --- */
    --container-max: 1280px;
    --container-narrow: 820px;
    --container-wide: 1280px;
    --gutter: 1.25rem; /* 20px mobile */

    /* --- Z-index scale --- */
    --z-base: 1;
    --z-dropdown: 500;
    --z-header: 1000;
    --z-overlay: 1100;
    --z-modal: 1200;
    --z-toast: 1300;

    /* --- Backwards-compatible aliases --- */
    --radius-default: var(--radius);
}

/* =========================================================================
   02. MODERN RESET
   ========================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem; /* offset for sticky header on anchor jumps */
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

ul,
ol {
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

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

/* =========================================================================
   03. BASE / TYPOGRAPHY SYSTEM
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: var(--lh-tight);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-tight);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
    color: var(--color-text);
}

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

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

strong, b { font-weight: var(--fw-semibold); }
small { font-size: var(--fs-sm); }

blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--space-md);
    color: var(--color-muted);
    font-style: italic;
}

code, kbd, pre, samp {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

code {
    background: var(--color-surface);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
}

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin-block: var(--space-lg);
}

/* --- Typographic utility classes --- */
.text-xs   { font-size: var(--fs-xs); }
.text-sm   { font-size: var(--fs-sm); }
.text-base { font-size: var(--fs-base); }
.text-md   { font-size: var(--fs-md); }
.text-lg   { font-size: var(--fs-lg); }
.text-xl   { font-size: var(--fs-xl); }
.text-2xl  { font-size: var(--fs-2xl); }
.text-3xl  { font-size: var(--fs-3xl); }
.text-4xl  { font-size: var(--fs-4xl); }

.font-regular  { font-weight: var(--fw-regular); }
.font-medium   { font-weight: var(--fw-medium); }
.font-semibold { font-weight: var(--fw-semibold); }
.font-bold     { font-weight: var(--fw-bold); }

.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-muted   { color: var(--color-muted); }
.text-white   { color: var(--color-white); }
.text-dark    { color: var(--color-dark); }

.uppercase { text-transform: uppercase; letter-spacing: var(--ls-wide); }
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lead {
    font-size: var(--fs-md);
    color: var(--color-muted);
    line-height: var(--lh-loose);
}

/* Legal / long-form content (privacy, terms) — no visual redesign */
.prose {
    max-width: 65ch;
}

.prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-heading);
    font-size: var(--fs-lg);
}

.prose p {
    margin-bottom: 1rem;
    color: var(--color-muted);
    line-height: var(--lh-loose);
}

.prose a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* =========================================================================
   04. SELECTION & SCROLLBAR
   ========================================================================= */
::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

::-moz-selection {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-strong) transparent;
}

/* WebKit / Chromium */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border-strong);
    border-radius: var(--radius-pill);
    border: 2px solid var(--color-surface);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-muted);
}

/* =========================================================================
   05. ACCESSIBILITY HELPERS
   ========================================================================= */
.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-md);
    z-index: var(--z-overlay);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius);
    transition: top var(--transition);
}

.skip-link:focus {
    top: var(--space-md);
    color: var(--color-white);
}

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

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

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

/* =========================================================================
   06. LAYOUT: CONTAINERS
   ========================================================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: var(--container-wide); }
.container--fluid  { max-width: none; }

/* Alias used by some section shells for the same centered content band. */
.container--site {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* =========================================================================
   07. LAYOUT: GRID
   ========================================================================= */
.grid {
    display: grid;
    gap: var(--gutter);
}

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

/* Auto-fit responsive grid; --grid-min sets the minimum column width. */
.grid--auto {
    --grid-min: 260px;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--grid-min), 100%), 1fr));
}

.grid--gap-sm { gap: var(--space-sm); }
.grid--gap-lg { gap: var(--space-lg); }

.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-full { grid-column: 1 / -1; }

/* =========================================================================
   08. LAYOUT: FLEX UTILITIES
   ========================================================================= */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-none { flex: none; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-end { justify-content: flex-end; }

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* =========================================================================
   09. SPACING UTILITIES
   ========================================================================= */
.m-0 { margin: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mx-auto { margin-inline: auto; }

.p-0 { padding: 0; }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }

/* =========================================================================
   10. SECTION UTILITIES
   ========================================================================= */
.section {
    padding-block: var(--space-xl);
}

.section--sm { padding-block: var(--space-lg); }
.section--lg { padding-block: var(--space-2xl); }
.section--surface { background: var(--color-surface); }
.section--dark {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.8);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
    color: var(--color-white);
}

.section__header {
    max-width: var(--container-narrow);
    margin-inline: auto;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.section__eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.section__title {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-sm);
}

.section__subtitle {
    color: var(--color-muted);
    font-size: var(--fs-md);
}

.section__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

/* =========================================================================
   10b. PAGE HERO / BANNER + BREADCRUMB  (reusable across inner pages)
   ========================================================================= */
.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: var(--space-xl);
    text-align: center;
    background:
        radial-gradient(60% 120% at 100% 0%, var(--color-primary-soft), transparent 60%),
        radial-gradient(50% 120% at 0% 100%, var(--color-primary-soft), transparent 60%),
        var(--color-surface);
}

.page-hero__inner {
    max-width: var(--container-narrow);
    margin-inline: auto;
}

.page-hero__title {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-sm);
}

.page-hero__text {
    color: var(--color-muted);
    font-size: var(--fs-md);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    font-size: var(--fs-sm);
}

.breadcrumb__item { color: var(--color-muted); }

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

.breadcrumb__item[aria-current="page"] {
    color: var(--color-primary);
    font-weight: var(--fw-medium);
}

.breadcrumb__sep {
    color: var(--color-border-strong);
    font-size: var(--fs-xs);
}

/* =========================================================================
   11. IMAGE UTILITIES
   ========================================================================= */
.img-fluid { width: 100%; height: auto; }
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.img-contain { width: 100%; height: 100%; object-fit: contain; }
.img-rounded { border-radius: var(--radius-md); }
.img-circle { border-radius: var(--radius-circle); aspect-ratio: 1 / 1; object-fit: cover; }
.img-shadow { box-shadow: var(--shadow-md); }

.ratio {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.ratio > img,
.ratio > iframe,
.ratio > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ratio--16x9 { aspect-ratio: 16 / 9; }
.ratio--4x3 { aspect-ratio: 4 / 3; }
.ratio--1x1 { aspect-ratio: 1 / 1; }

.figure { margin: 0; }
.figure__caption {
    margin-top: var(--space-xs);
    font-size: var(--fs-sm);
    color: var(--color-muted);
}

/* =========================================================================
   12. TRANSITION & ANIMATION UTILITIES
   ========================================================================= */
.transition { transition: all var(--transition); }
.transition-fast { transition: all var(--transition-fast); }
.transition-slow { transition: all var(--transition-slow); }
.transition-colors {
    transition: color var(--transition), background-color var(--transition),
        border-color var(--transition);
}
.transition-transform { transition: transform var(--transition); }

.animate { animation-duration: var(--duration-slow); animation-fill-mode: both; }
.animate-fade-in { animation: fadeIn var(--duration-slow) var(--ease) both; }
.animate-fade-up { animation: fadeUp var(--duration-slow) var(--ease) both; }
.animate-fade-down { animation: fadeDown var(--duration-slow) var(--ease) both; }
.animate-zoom-in { animation: zoomIn var(--duration-slow) var(--ease) both; }
.animate-slide-left { animation: slideInLeft var(--duration-slow) var(--ease) both; }
.animate-slide-right { animation: slideInRight var(--duration-slow) var(--ease) both; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse 2s var(--ease-in-out) infinite; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Reveal-on-scroll pattern (toggled by JS via .is-visible). */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-slow) var(--ease),
        transform var(--duration-slow) var(--ease);
}

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

/* =========================================================================
   13. KEYFRAME ANIMATIONS
   ========================================================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-24px); }
    to { opacity: 1; transform: none; }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: none; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-32px); }
    to { opacity: 1; transform: none; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(32px); }
    to { opacity: 1; transform: none; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========================================================================
   14. HOVER EFFECTS
   ========================================================================= */
.hover-lift { transition: transform var(--transition), box-shadow var(--transition); }
.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.hover-grow { transition: transform var(--transition); }
.hover-grow:hover { transform: scale(1.04); }

.hover-shadow { transition: box-shadow var(--transition); }
.hover-shadow:hover { box-shadow: var(--shadow-md); }

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

/* Zoom the image inside a hovered container. */
.hover-zoom { overflow: hidden; }
.hover-zoom img { transition: transform var(--duration-slow) var(--ease); }
.hover-zoom:hover img { transform: scale(1.08); }

.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width var(--transition);
}

.hover-underline:hover::after { width: 100%; }

/* =========================================================================
   15. BUTTONS
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    text-align: center;
    white-space: nowrap;
    user-select: none;
    transition: background-color var(--transition), color var(--transition),
        border-color var(--transition), transform var(--transition),
        box-shadow var(--transition);
}

.btn:active { transform: translateY(0) scale(0.98); }

.btn:disabled,
.btn.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

/* Variants */
.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(var(--color-primary-rgb), 0.3);
}
.btn--primary:active {
    background: var(--color-primary-dark);
    transform: translateY(0);
}

.btn--secondary {
    background: var(--color-dark);
    color: var(--color-white);
}
.btn--secondary:hover {
    background: #000;
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn--accent {
    background: var(--color-accent);
    color: var(--color-white);
}
.btn--accent:hover {
    background: var(--color-primary-lighter);
    color: var(--color-white);
    transform: translateY(-2px);
}
.btn--accent:active {
    background: var(--color-primary-dark);
}

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

.btn--ghost {
    background: transparent;
    color: var(--color-text);
}
.btn--ghost:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.btn--light {
    background: var(--color-white);
    color: var(--color-dark);
    box-shadow: var(--shadow-sm);
    margin-top: 35px;
}
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Sizes */
.btn--sm { padding: 0.5rem 1rem; font-size: var(--fs-xs); }
.btn--lg { padding: 0.9rem 1.9rem; font-size: var(--fs-base); }
.btn--block { display: flex; width: 100%; }
.btn--pill { border-radius: var(--radius-pill); }

.btn--icon {
    padding: 0.7rem;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-circle);
}

/* =========================================================================
   16. CARDS
   ========================================================================= */
.card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition),
        border-color var(--transition);
}

.card--hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card--flat { box-shadow: none; }
.card--surface { background: var(--color-surface); }

.card__media {
    position: relative;
    overflow: hidden;
}

.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-lg);
    flex: 1 1 auto;
}

.card__title {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-3xs);
}

.card__text {
    color: var(--color-muted);
    font-size: var(--fs-sm);
}

.card__footer {
    margin-top: auto;
    padding-top: var(--space-sm);
}

/* Arrow link used in card footers (services, blog, etc.). */
.card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
}

.card__link i { transition: transform var(--transition); }
.card__link:hover i,
.card--hover:hover .card__link i { transform: translateX(4px); }

/* Optional feature list inside a card (checklist). */
.service-card__features {
    display: grid;
    gap: var(--space-xs);
    margin-block: var(--space-sm);
}

.service-card__feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    font-size: var(--fs-sm);
    color: var(--color-text);
}

.service-card__feature i {
    margin-top: 3px;
    color: var(--color-success);
    font-size: var(--fs-xs);
}

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: var(--fs-xl);
    margin-bottom: var(--space-sm);
}

/* Blog card (reusable across Home preview and Blog listing) */
.blog-card__media { display: block; background: var(--color-surface-alt); }

/* Portrait blog art is cropped into 16:9 and lightly zoomed so the subject
   fills the frame instead of sitting small with empty padding around it. */
.blog-card__media img {
    object-fit: cover;
    object-position: center;
    transform: scale(1.22);
    transform-origin: center;
}

.blog-card.card--hover:hover .blog-card__media img {
    transform: scale(1.3);
}

.blog-card__badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    z-index: var(--z-base);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
}

.blog-card__date {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    font-size: var(--fs-xs);
    color: var(--color-muted);
}

.blog-card__title a { color: var(--color-heading); }
.blog-card__title a:hover { color: var(--color-primary); }

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3xs);
    padding: 0.25rem 0.6rem;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-pill);
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

/* =========================================================================
   17. FORMS & INPUTS
   ========================================================================= */
.form { display: flex; flex-direction: column; gap: var(--space-md); }

.form-group { display: flex; flex-direction: column; gap: var(--space-2xs); }

.form-row {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
}

.label {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-heading);
}

.label .required { color: var(--color-danger); }

.input,
.textarea,
.select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: var(--fs-base);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition),
        background-color var(--transition);
    appearance: none;
}

.input::placeholder,
.textarea::placeholder {
    color: var(--color-muted);
    opacity: 0.8;
}

.input:focus,
.textarea:focus,
.select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus);
}

.input:disabled,
.textarea:disabled,
.select:disabled {
    background: var(--color-surface);
    cursor: not-allowed;
    opacity: 0.7;
}

.textarea { min-height: 8rem; resize: vertical; }

.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6472' d='M6 8 0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Checkbox / radio rows */
.check {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
    font-size: var(--fs-sm);
}

.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--color-primary); }

/* Input group with a leading icon */
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-left: 2.75rem; }
.input-group__icon {
    position: absolute;
    left: 1rem;
    color: var(--color-muted);
    pointer-events: none;
}

/* Validation states & helper text */
.form-hint { font-size: var(--fs-xs); color: var(--color-muted); }
.form-error { font-size: var(--fs-xs); color: var(--color-danger-dark); }

.input.is-invalid,
.textarea.is-invalid,
.select.is-invalid {
    border-color: var(--color-danger);
}

.input.is-valid,
.textarea.is-valid,
.select.is-valid {
    border-color: var(--color-success);
}

/* =========================================================================
   18. COMPONENT: HEADER / NAVBAR
   ========================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), background-color var(--transition);
}

/* Applied by JS once the page is scrolled. */
.site-header.is-scrolled {
    box-shadow: var(--shadow-md);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding: var(--space-sm) var(--space-md);
}

.navbar__brand {
    display: inline-flex;
    align-items: center;
}

.navbar__logo {
    display: block;
    height: 48px;
    width: auto;
    max-width: 168px;
    object-fit: contain;
    transform-origin: center;
}

.navbar__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    z-index: var(--z-overlay);
}

.navbar__toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--color-text);
    transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger -> close (X) animation when the menu is open. */
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(2) {
    opacity: 0;
}
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile: off-canvas panel that slides in from the right. */
.navbar__collapse {
    position: fixed;
    top: 0;
    right: 0;
    z-index: var(--z-header);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    width: min(80vw, 320px);
    height: 100vh;
    height: 100dvh;
    padding: calc(var(--space-xl) + var(--space-md)) var(--space-lg) var(--space-lg);
    background: var(--color-bg);
    box-shadow: var(--shadow-md);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
}

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

.navbar__menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.navbar__link {
    display: block;
    padding: var(--space-sm) 0;
    color: var(--color-text);
    font-weight: var(--fw-medium);
    border-bottom: 1px solid var(--color-border);
}

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

.navbar__actions {
    margin-top: auto;
}

.navbar__cta {
    width: 100%;
}

/* Dim backdrop shown behind the mobile menu. */
.navbar__backdrop {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-header) - 1);
    background: rgba(13, 17, 23, 0.5);
    opacity: 0;
    transition: opacity var(--transition);
}

.navbar__backdrop.is-visible {
    opacity: 1;
}

/* Prevent background scroll while the mobile menu is open. */
body.nav-open {
    overflow: hidden;
}

/* =========================================================================
   19. COMPONENT: FOOTER
   -------------------------------------------------------------------------
   Dark navy footer with visible footerbg.png circuit artwork
   (reference-style enterprise tech look).
   ========================================================================= */
.site-footer {
    --footer-art-opacity: 0.48;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.72);
    padding-top: clamp(3.5rem, 6vw, 5rem);
    background: #050314;
    border-top: 0;
}

.site-footer__atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Deep base — keeps circuit texture quiet */
.site-footer__base {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 85% 80%, rgba(var(--color-primary-rgb), 0.12), transparent 60%),
        radial-gradient(ellipse 50% 45% at 10% 90%, rgba(var(--color-primary-rgb), 0.08), transparent 55%),
        #050314;
}

/* Circuit / brand artwork — full-bleed, muted for a dark field */
.site-footer__art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: var(--footer-art-opacity);
    filter: saturate(0.65) brightness(1.55);
    user-select: none;
    -webkit-user-drag: none;
    z-index: 1;
}

/* Remove unused light-footer echo */
.site-footer__atmosphere::after {
    content: none;
}

/* Heavy dark veil — deeper overall field, art still faintly visible */
.site-footer__veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            180deg,
            rgba(5, 3, 20, 0.78) 0%,
            rgba(5, 3, 20, 0.62) 45%,
            rgba(5, 3, 20, 0.82) 100%
        ),
        linear-gradient(
            90deg,
            rgba(5, 3, 20, 0.55) 0%,
            transparent 40%,
            transparent 65%,
            rgba(5, 3, 20, 0.45) 100%
        );
}

.site-footer__glow {
    position: absolute;
    z-index: 1;
    width: min(55vw, 520px);
    height: min(55vw, 520px);
    right: -8%;
    bottom: -24%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.16), transparent 68%);
    filter: blur(12px);
}

.site-footer__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-md);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
}

.footer-brand {
    display: block;
    margin-bottom: var(--space-md);
    max-width: 36ch;
}

/* Large wordmark — prominent against dark footer */
.footer-brand__logo {
    display: block;
    width: min(100%, 240px);
    max-width: 300px;
    height: auto;
    min-height: 72px;
    padding: 0;
    margin: 0 0 0.25rem;
    background: none;
    border-radius: 0;
    object-fit: contain;
    object-position: left center;
}

.footer-col__about {
    font-size: var(--fs-sm);
    margin-bottom: var(--space-md);
    max-width: 36ch;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
}

.footer-col__title {
    font-size: var(--fs-md);
    color: var(--color-white);
    margin-bottom: var(--space-md);
    font-weight: var(--fw-bold);
}

.footer-nav__item + .footer-nav__item {
    margin-top: var(--space-xs);
}

.footer-nav__link {
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--fs-sm);
    transition: color var(--transition), padding-left var(--transition);
}

.footer-nav__link:hover {
    color: var(--color-white);
    padding-left: 4px;
}

.footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact__item + .footer-contact__item {
    margin-top: var(--space-sm);
}

.footer-contact__item i {
    color: var(--color-primary);
    margin-top: 3px;
}

.footer-contact__item a {
    color: rgba(255, 255, 255, 0.72);
}

.footer-contact__item a:hover {
    color: var(--color-white);
}

/* Social icons — dark footer */
.social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.social-links__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition:
        background-color 0.28s ease,
        color 0.28s ease,
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.social-links__link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(var(--color-primary-rgb), 0.35);
}

.social-links__link:focus-visible {
    outline: 3px solid rgba(var(--color-primary-rgb), 0.55);
    outline-offset: 3px;
}

/* Variant for light page sections (contact sidebar). */
.social-links--solid .social-links__link {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-color: rgba(var(--color-primary-rgb), 0.16);
}

.social-links--solid .social-links__link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 10px 22px rgba(var(--color-primary-rgb), 0.28);
}

/* Copyright bar */
.site-footer__bar {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
    text-align: center;
    padding-block: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__copy {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__legal {
    display: flex;
    gap: var(--space-md);
}

.site-footer__legal a {
    color: rgba(255, 255, 255, 0.55);
    font-size: var(--fs-sm);
}

.site-footer__legal a:hover {
    color: var(--color-white);
}

@media (max-width: 767.98px) {
    .site-footer {
        --footer-art-opacity: 0.22;
    }
}

/* =========================================================================
   20. COMPONENT: BACK TO TOP
   ========================================================================= */
.back-to-top {
    position: fixed;
    right: var(--space-md);
    bottom: var(--space-md);
    z-index: var(--z-header);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-circle);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: var(--fs-base);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition),
        background-color var(--transition);
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

/* =========================================================================
   21. COMPONENT: SHARED CTA PANEL
   -------------------------------------------------------------------------
   Uses the same `.container` / --container-max band as Process, Product,
   About, and Services. 60/40 content / actions with stacked CTA buttons.
   ========================================================================= */
.cta__panel {
    display: grid;
    gap: 2.5rem;
    align-items: center;
    background: var(--gradient-cta);
    color: var(--color-white);
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow:
        0 18px 48px rgba(var(--color-primary-rgb), 0.28),
        0 4px 12px rgba(17, 17, 17, 0.08);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.cta__content,
.cta__actions {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.cta__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta__eyebrow {
    display: inline-block;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.12em;
    margin-bottom: 18px;
}

.cta__title {
    color: var(--color-white);
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta__text {
    color: rgba(255, 255, 255, 0.9);
    max-width: 56ch;
    margin: 0 auto;
    line-height: 1.65;
}

.cta__actions {
    display: grid;
    gap: 18px;
    width: 100%;
}

.cta__actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    min-width: 0;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    height: 56px;
    padding: 0 1rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: var(--fw-semibold);
    line-height: 1.25;
    text-decoration: none !important;
    white-space: nowrap;
    border: 1.5px solid transparent;
    vertical-align: middle;
    overflow: visible;
    transition:
        transform 300ms ease,
        box-shadow 300ms ease,
        background 300ms ease,
        border-color 300ms ease,
        color 300ms ease;
}

.cta-btn:hover,
.cta-btn:focus,
.cta-btn:visited,
.cta-btn:active {
    text-decoration: none !important;
}

.cta-btn__label {
    display: inline-block;
    min-width: 0;
    line-height: 1.25;
    overflow: visible;
    text-decoration: none !important;
    -webkit-font-smoothing: antialiased;
}

.cta-btn__arrow {
    flex: none;
    color: var(--color-primary);
    transition: transform 300ms ease, color 300ms ease;
}

.cta-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: none;
    color: currentColor;
}

.cta-btn__icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.cta-btn--primary {
    color: #111827;
    background: #ffffff;
    border-color: #ffffff;
    box-shadow:
        0 14px 30px rgba(17, 17, 17, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.cta-btn--primary:visited {
    color: #111827;
}

/* Phone / email — same white theme as primary CTA */
.cta-btn--glass {
    color: #111827;
    background: #ffffff;
    border-color: #ffffff;
    box-shadow:
        0 12px 28px rgba(17, 17, 17, 0.14),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.cta-btn--glass:visited {
    color: #111827;
}

.cta-btn--glass .cta-btn__icon {
    color: var(--color-primary);
}

.cta-btn--primary:hover {
    color: #111827;
    background: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow:
        0 18px 38px rgba(17, 17, 17, 0.18),
        0 20px 45px rgba(var(--color-primary-rgb), 0.3);
}

.cta-btn--glass:hover {
    color: #111827;
    background: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow:
        0 18px 38px rgba(17, 17, 17, 0.18),
        0 20px 45px rgba(var(--color-primary-rgb), 0.3);
}

.cta-btn--glass:hover .cta-btn__icon {
    color: var(--color-primary-light);
}

.cta-btn--primary:hover .cta-btn__arrow {
    transform: translateX(4px);
    color: var(--color-primary-light);
}

.cta-btn--primary:focus-visible,
.cta-btn--glass:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

/* Desktop — 60/40 split, same container band as other sections */
@media (min-width: 992px) {
    .cta__panel {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        gap: 80px;
        padding: 60px;
        text-align: left;
        align-items: center;
    }

    .cta__text {
        margin-inline: 0;
    }

    .cta__actions {
        width: 100%;
    }
}

/* Tablet — content first, actions below; phone/email stay side-by-side */
@media (min-width: 576px) and (max-width: 991.98px) {
    .cta__panel {
        padding: 48px 40px;
        text-align: center;
    }

    .cta__text {
        margin-inline: auto;
    }

    .cta__actions {
        max-width: 520px;
        margin-inline: auto;
    }
}

/* Mobile — full-width stack */
@media (max-width: 575.98px) {
    .cta__panel {
        padding: 2rem 1.25rem;
    }

    .cta__actions-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cta-btn {
        width: 100%;
        font-size: 0.8125rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta-btn,
    .cta-btn__arrow {
        transition: none;
    }

    .cta-btn:hover {
        transform: none;
    }
}

/* -------------------------------------------------------------------------
   Process Journey — connected horizontal roadmap
   ---------------------------------------------------------------------- */
.process-journey {
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
    isolation: isolate;
}

.process-journey__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.process-journey__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--color-primary-rgb), 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--color-primary-rgb), 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}

.process-journey__orb {
    position: absolute;
    border-radius: var(--radius-circle);
    filter: blur(60px);
    opacity: 0.55;
}

.process-journey__orb--a {
    width: 380px;
    height: 380px;
    top: -120px;
    left: -80px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.18), transparent 70%);
    animation: processOrbFloat 14s ease-in-out infinite;
}

.process-journey__orb--b {
    width: 320px;
    height: 320px;
    bottom: -100px;
    right: -60px;
    background: radial-gradient(circle, rgba(var(--color-primary-light-rgb), 0.16), transparent 70%);
    animation: processOrbFloat 18s ease-in-out infinite reverse;
}

@keyframes processOrbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(18px, -14px); }
}

.process-journey__inner {
    position: relative;
    z-index: 1;
}

.process-journey__header {
    max-width: 40rem;
    margin-inline: auto;
    text-align: center;
    margin-bottom: var(--space-xl);
}

.process-journey__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    padding: 0.3rem 0.75rem;
    margin-bottom: var(--space-md);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    border-radius: var(--radius-pill);
}

.process-journey__title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--space-sm);
}

.process-journey__lead {
    color: var(--color-muted);
    font-size: var(--fs-md);
    line-height: var(--lh-base);
    margin: 0;
}

/* Track + path */
.process-journey__track {
    position: relative;
    padding-top: var(--space-md);
}

.process-journey__path {
    display: none;
    position: absolute;
    top: 2.1rem;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: visible;
    z-index: 0;
}

.process-journey__path-bg {
    stroke: var(--color-border);
}

.process-journey__path-draw {
    stroke: var(--color-primary);
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-journey__track.is-drawn .process-journey__path-draw {
    stroke-dashoffset: 0;
}

.process-journey__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

/* Mobile: subtle vertical rail connecting the nodes. */
.process-journey__steps::before {
    content: "";
    position: absolute;
    top: 26px;
    bottom: 26px;
    left: 25px;
    width: 2px;
    background: linear-gradient(
        180deg,
        rgba(var(--color-primary-rgb), 0.15),
        rgba(var(--color-primary-rgb), 0.45),
        rgba(var(--color-primary-rgb), 0.15)
    );
    border-radius: var(--radius-pill);
    z-index: 0;
}

.process-journey__step {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: var(--space-md);
    align-items: start;
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.6s var(--ease-out),
        transform 0.6s var(--ease-out);
    transition-delay: calc(var(--step-i, 0) * 90ms);
}

.process-journey__track.is-drawn .process-journey__step {
    opacity: 1;
    transform: none;
}

.process-journey__node {
    position: relative;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
}

.process-journey__node-ring {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-circle);
    border: 1.5px solid rgba(var(--color-primary-rgb), 0.25);
    background: var(--color-bg);
    box-shadow: 0 0 0 6px rgba(var(--color-primary-rgb), 0.06);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.process-journey__node-core {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.process-journey__step:hover .process-journey__node-ring {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 8px rgba(var(--color-primary-rgb), 0.12);
    transform: scale(1.06);
}

.process-journey__card {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.process-journey__step:hover .process-journey__card,
.process-journey__step:focus-within .process-journey__card {
    transform: translateY(-6px);
    border-color: rgba(var(--color-primary-rgb), 0.35);
    box-shadow:
        0 18px 40px rgba(17, 17, 17, 0.08),
        0 0 0 1px rgba(var(--color-primary-rgb), 0.08);
}

.process-journey__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.process-journey__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.process-journey__step:hover .process-journey__icon {
    background: var(--color-primary);
    color: var(--color-white);
    transform: rotate(-6deg) scale(1.05);
}

.process-journey__svg {
    display: block;
}

.process-journey__index {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.process-journey__card-title {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-xs);
}

.process-journey__card-text {
    margin: 0;
    color: var(--color-muted);
    font-size: var(--fs-sm);
    line-height: var(--lh-base);
    flex: 1 1 auto;
}

.process-journey__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-xl);
    padding-block: clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid var(--color-border);
}

.process-journey__cta .btn {
    gap: var(--space-xs);
}

.process-journey__cta .btn i {
    transition: transform var(--transition);
}

.process-journey__cta .btn:hover i {
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    .process-journey__step {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .process-journey__path-draw {
        stroke-dashoffset: 0;
        transition: none;
    }

    .process-journey__orb {
        animation: none;
        opacity: 0.35;
    }
}

@media (min-width: 768px) {
    .process-journey__steps {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl) var(--space-lg);
        align-items: stretch;
    }

    .process-journey__steps::before {
        display: none;
    }

    .process-journey__step {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        display: flex;
        flex-direction: column;
        height: 100%;
        align-items: stretch;
    }

    .process-journey__node {
        margin-inline: auto;
    }
}

@media (min-width: 992px) {
    .process-journey__path {
        display: block;
        top: 1.55rem;
        height: 48px;
    }

    .process-journey__track {
        padding-top: 0;
    }

    .process-journey__steps {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-lg);
        padding-top: 0;
        align-items: stretch;
    }

    .process-journey__step {
        position: relative;
        padding-top: 5.25rem;
        height: 100%;
    }

    .process-journey__node {
        position: absolute;
        top: 1.35rem;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        z-index: 2;
    }
}

/* =========================================================================
   21. SERVICES BENTO (homepage highlight)
   ========================================================================= */
.bento-svc {
    --bento-glow: rgba(var(--color-primary-rgb), 0.15);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--color-surface);
}

.bento-svc__atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bento-svc__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 12% 0%, rgba(var(--color-primary-rgb), 0.14), transparent 55%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(var(--color-primary-light-rgb), 0.12), transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
}

.bento-svc__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    animation: bentoFloat 18s ease-in-out infinite;
}

.bento-svc__glow--a {
    width: 420px;
    height: 420px;
    top: -140px;
    right: -80px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.22), transparent 68%);
}

.bento-svc__glow--b {
    width: 340px;
    height: 340px;
    bottom: -120px;
    left: -100px;
    background: radial-gradient(circle, rgba(var(--color-primary-light-rgb), 0.18), transparent 68%);
    animation-duration: 22s;
    animation-direction: reverse;
}

.bento-svc__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--color-primary-rgb), 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--color-primary-rgb), 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 75%);
}

.bento-svc__noise {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bento-svc__shape--ring {
    position: absolute;
    top: 18%;
    left: 6%;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(var(--color-primary-rgb), 0.18);
    border-radius: 50%;
    animation: bentoSpin 40s linear infinite;
}

.bento-svc__shape--dot {
    position: absolute;
    bottom: 22%;
    right: 10%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.45);
    animation: bentoFloat 10s ease-in-out infinite;
}

@keyframes bentoFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(12px, -16px); }
}

@keyframes bentoSpin {
    to { transform: rotate(360deg); }
}

@keyframes bentoGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.bento-svc__wrap {
    position: relative;
    z-index: 1;
}

.bento-svc__intro {
    max-width: 40rem;
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.bento-svc__badge {
    display: inline-flex;
    margin-bottom: var(--space-md);
    padding: 0.3rem 0.8rem;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    border-radius: var(--radius-pill);
}

.bento-svc__title {
    font-size: clamp(1.85rem, 4vw, 2.85rem);
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--space-sm);
}

.bento-svc__subtitle {
    margin: 0;
    color: var(--color-muted);
    font-size: var(--fs-md);
}

/* --- Grid (mobile: single column; refined in responsive.css) --- */
.bento-svc__grid {
    display: grid;
    gap: 1.15rem;
    grid-template-columns: 1fr;
}

/* --- Card base --- */
.bento-card {
    --px: 50%;
    --py: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow:
        0 1px 2px rgba(17, 17, 17, 0.04),
        0 12px 32px rgba(17, 17, 17, 0.05);
    overflow: hidden;
    isolation: isolate;
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition:
        opacity 0.55s var(--ease-out),
        transform 0.55s var(--ease-out),
        box-shadow 0.3s var(--ease),
        border-color 0.3s var(--ease);
    transition-delay: var(--bento-delay, 0ms);
}

.bento-svc__grid.is-inview .bento-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bento-card__border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(var(--color-primary-rgb), 0.35),
        rgba(229, 231, 235, 0.9) 40%,
        rgba(var(--color-primary-light-rgb), 0.25)
    );
    background-size: 200% 200%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s var(--ease);
}

.bento-card:hover .bento-card__border,
.bento-card:focus-within .bento-card__border {
    opacity: 1;
    animation: bentoGradientShift 4s ease infinite;
}

.bento-card__shine {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        420px circle at var(--px) var(--py),
        var(--bento-glow),
        transparent 45%
    );
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    pointer-events: none;
    z-index: 0;
}

.bento-card:hover .bento-card__shine,
.bento-card:focus-within .bento-card__shine {
    opacity: 1;
}

.bento-card:hover,
.bento-card:focus-within {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 18px 44px rgba(17, 17, 17, 0.1),
        0 0 0 1px rgba(var(--color-primary-rgb), 0.1),
        0 0 40px var(--bento-glow);
}

.bento-svc__grid.is-inview .bento-card:hover,
.bento-svc__grid.is-inview .bento-card:focus-within {
    transform: translateY(-6px) scale(1.02);
}

.bento-card:focus-within {
    outline: none;
}

.bento-card__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.bento-card:hover .bento-card__icon {
    background: var(--color-primary);
    color: #fff;
    transform: rotate(-8deg) scale(1.06);
}

.bento-card__heading {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: var(--fs-lg);
    letter-spacing: var(--ls-tight);
    color: var(--color-heading);
}

.bento-card__copy {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--color-muted);
    font-size: var(--fs-sm);
    line-height: var(--lh-base);
    flex: 1;
}

.bento-card__link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-primary);
}

.bento-card__link svg {
    transition: transform 0.25s var(--ease);
}

.bento-card:hover .bento-card__link svg,
.bento-card__link:hover svg {
    transform: translateX(4px);
}

.bento-card__link:focus-visible,
.bento-card__cta:focus-visible,
.bento-svc__all:focus-visible {
    outline: 3px solid rgba(var(--color-primary-rgb), 0.45);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Featured */
.bento-card--featured {
    min-height: 320px;
    padding: 2rem;
    background:
        linear-gradient(145deg, rgba(var(--color-primary-rgb), 0.1) 0%, rgba(255, 255, 255, 0.92) 42%),
        #fff;
    gap: 1rem;
}

.bento-card--featured .bento-card__content {
    position: relative;
    z-index: 2;
    max-width: 28rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.bento-card__pill {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.25rem 0.65rem;
    font-size: 0.7rem;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.12);
    border-radius: var(--radius-pill);
}

.bento-card--featured .bento-card__heading {
    font-size: clamp(1.6rem, 2.8vw, 2.15rem);
}

.bento-card--featured .bento-card__copy {
    font-size: var(--fs-base);
    max-width: 36ch;
}

.bento-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0.75rem 1.2rem;
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    color: #fff;
    background: var(--gradient-primary);
    background-size: 160% 160%;
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 28px rgba(var(--color-primary-rgb), 0.3);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.bento-card__cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(var(--color-primary-rgb), 0.4);
    filter: brightness(1.05);
    animation: bentoGradientShift 3s ease infinite;
}

.bento-card__cta-arrow {
    transition: transform 0.25s var(--ease);
}

.bento-card__cta:hover .bento-card__cta-arrow {
    transform: translateX(4px);
}

.bento-card__visual {
    position: absolute;
    right: -4%;
    bottom: -6%;
    width: min(52%, 300px);
    z-index: 1;
    pointer-events: none;
    transform: translate3d(var(--art-x, 0), var(--art-y, 0), 0);
    transition: transform 0.2s var(--ease-out);
}

.bento-card__ai-art {
    width: 100%;
    height: auto;
    display: block;
}

.bento-card__float-a {
    animation: bentoFloat 7s ease-in-out infinite;
}

.bento-card__float-b {
    animation: bentoFloat 9s ease-in-out infinite reverse;
}

.bento-svc__footer {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
}

.bento-svc__all {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.45rem;
    font-weight: var(--fw-semibold);
    color: var(--color-primary);
    background: #fff;
    border: 1px solid rgba(var(--color-primary-rgb), 0.25);
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 24px rgba(var(--color-primary-rgb), 0.08);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.bento-svc__all:hover {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(var(--color-primary-rgb), 0.28);
}

.bento-svc__all svg {
    transition: transform 0.25s var(--ease);
}

.bento-svc__all:hover svg {
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    .bento-svc__glow,
    .bento-svc__shape--ring,
    .bento-svc__shape--dot,
    .bento-card__float-a,
    .bento-card__float-b,
    .bento-card__border {
        animation: none !important;
    }

    .bento-card {
        opacity: 1 !important;
        transform: none !important;
        transition: box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .bento-card:hover,
    .bento-svc__grid.is-inview .bento-card:hover {
        transform: none !important;
    }
}

/* =========================================================================
   22. PRODUCT SHOWCASE — flagship SaaS launch block
   ========================================================================= */
.product-showcase {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--color-bg);
}

.product-showcase__atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.product-showcase__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 50% at 12% 18%, rgba(var(--color-primary-rgb), 0.12), transparent 58%),
        radial-gradient(ellipse 50% 45% at 88% 78%, rgba(var(--color-primary-light-rgb), 0.1), transparent 52%),
        radial-gradient(ellipse 40% 35% at 55% 40%, rgba(var(--color-primary-rgb), 0.05), transparent 60%),
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 48%, #f8fafc 100%);
}

.product-showcase__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: productFloat 16s ease-in-out infinite;
}

.product-showcase__glow--a {
    width: 360px;
    height: 360px;
    top: -90px;
    right: 10%;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.2), transparent 70%);
}

.product-showcase__glow--b {
    width: 280px;
    height: 280px;
    bottom: -70px;
    left: 6%;
    background: radial-gradient(circle, rgba(var(--color-primary-light-rgb), 0.14), transparent 70%);
    animation-duration: 20s;
    animation-direction: reverse;
}

.product-showcase__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--color-primary-rgb), 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--color-primary-rgb), 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 58% 42%, #000 12%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 58% 42%, #000 12%, transparent 75%);
}

.product-showcase__noise {
    position: absolute;
    inset: 0;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.product-showcase__orb {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(var(--color-primary-rgb), 0.14);
}

.product-showcase__orb--a {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 44%;
    opacity: 0.7;
    animation: productSpin 52s linear infinite;
}

.product-showcase__orb--b {
    width: 10px;
    height: 10px;
    top: 30%;
    right: 20%;
    background: var(--color-primary);
    border: 0;
    opacity: 0.65;
    box-shadow: 0 0 16px rgba(var(--color-primary-rgb), 0.4);
    animation: productFloat 10s ease-in-out infinite;
}

@keyframes productFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -14px); }
}

@keyframes productSpin {
    to { transform: rotate(360deg); }
}

.product-showcase__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--space-xl);
    align-items: center;
}

.product-showcase__copy {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    text-align: center;
}

.product-showcase.is-inview .product-showcase__copy {
    opacity: 1;
    transform: none;
}

.product-showcase__badge {
    display: inline-flex;
    margin-bottom: var(--space-md);
    padding: 0.3rem 0.8rem;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    border-radius: var(--radius-pill);
}

.product-showcase__title {
    font-size: clamp(1.85rem, 4vw, 2.85rem);
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--space-md);
    color: var(--color-heading);
}

.product-showcase__lead {
    margin: 0 auto var(--space-lg);
    color: var(--color-muted);
    font-size: var(--fs-md);
    line-height: var(--lh-base);
    max-width: 48ch;
}

.product-showcase__features {
    list-style: none;
    margin: 0 auto var(--space-lg);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.product-showcase__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-heading);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-xs);
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.45s var(--ease-out),
        transform 0.45s var(--ease-out),
        border-color 0.25s var(--ease),
        box-shadow 0.25s var(--ease);
    transition-delay: calc(120ms + var(--chip-i, 0) * 60ms);
}

.product-showcase.is-inview .product-showcase__chip {
    opacity: 1;
    transform: none;
}

.product-showcase__chip:hover {
    border-color: rgba(var(--color-primary-rgb), 0.35);
    box-shadow: 0 6px 18px rgba(var(--color-primary-rgb), 0.1);
}

.product-showcase__chip-icon {
    display: inline-flex;
    color: var(--color-primary);
}

.product-showcase__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s var(--ease-out) 0.35s, transform 0.55s var(--ease-out) 0.35s;
}

.product-showcase.is-inview .product-showcase__actions {
    opacity: 1;
    transform: none;
}

.product-showcase__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    border-radius: var(--radius-pill);
    transition:
        transform 0.25s var(--ease),
        box-shadow 0.25s var(--ease),
        background 0.25s var(--ease),
        color 0.25s var(--ease),
        border-color 0.25s var(--ease);
}

.product-showcase__btn--primary {
    color: #fff;
    background: var(--gradient-primary);
    background-size: 160% 160%;
    box-shadow: 0 12px 28px rgba(var(--color-primary-rgb), 0.3);
}

.product-showcase__btn--primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(var(--color-primary-rgb), 0.4);
}

.product-showcase__btn--primary svg {
    transition: transform 0.25s var(--ease);
}

.product-showcase__btn--primary:hover svg {
    transform: translateX(4px);
}

.product-showcase__btn--ghost {
    color: var(--color-primary);
    background: #fff;
    border: 1px solid rgba(var(--color-primary-rgb), 0.28);
}

.product-showcase__btn--ghost:hover {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.product-showcase__btn:focus-visible {
    outline: 3px solid rgba(var(--color-primary-rgb), 0.45);
    outline-offset: 3px;
}

/* --- Dual device stage (desktop browser + iPhone) --- */
.product-showcase__media {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --phone-x: 0px;
    --phone-y: 0px;
    position: relative;
    opacity: 0;
    transform: translateY(32px) scale(0.96);
    transition: opacity 0.7s var(--ease-out) 0.15s, transform 0.7s var(--ease-out) 0.15s;
}

.product-showcase.is-inview .product-showcase__media {
    opacity: 1;
    transform: none;
}

.product-showcase__glow-disk {
    position: absolute;
    inset: 8% 4% 0;
    border-radius: 40%;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.32), transparent 68%);
    filter: blur(32px);
    z-index: 0;
    pointer-events: none;
}

.product-showcase__stage {
    position: relative;
    z-index: 1;
    /* Mobile: centered phone only */
    display: flex;
    justify-content: center;
    padding-bottom: 0;
}

.product-showcase__device {
    position: relative;
    z-index: 1;
    border-radius: 14px;
    background: #111;
    border: 1px solid rgba(17, 17, 17, 0.88);
    box-shadow:
        0 32px 64px rgba(17, 17, 17, 0.24),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 48px rgba(var(--color-primary-rgb), 0.18);
    overflow: hidden;
    transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(0);
    transition: box-shadow 0.35s var(--ease);
    animation: productDeviceFloat 7.5s ease-in-out infinite;
    will-change: transform;
}

.product-showcase__device:hover {
    box-shadow:
        0 36px 72px rgba(17, 17, 17, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 64px rgba(var(--color-primary-rgb), 0.28);
}

@keyframes productDeviceFloat {
    0%, 100% {
        transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(0);
    }
    50% {
        transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-10px);
    }
}

.product-showcase__chrome {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.9rem;
    background: linear-gradient(180deg, #1c1c1c, #141414);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.product-showcase__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.product-showcase__dot--r { background: #ff5f57; }
.product-showcase__dot--y { background: #febc2e; }
.product-showcase__dot--g { background: #28c840; }

.product-showcase__url {
    margin-left: 0.65rem;
    flex: 1;
    min-width: 0;
    padding: 0.28rem 0.7rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-showcase__screen {
    position: relative;
    background: #0b0b0b;
    aspect-ratio: 1535 / 1024;
}

.product-showcase__shot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.product-showcase__glass {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 36%,
        transparent 64%,
        rgba(255, 255, 255, 0.06) 100%
    );
    pointer-events: none;
    mix-blend-mode: soft-light;
}

/* --- iPhone mockup (overlaps desktop from tablet up) --- */
.product-showcase__phone {
    position: relative;
    z-index: 3;
    right: auto;
    bottom: auto;
    width: min(56%, 220px);
    transform: translate3d(var(--phone-x), var(--phone-y), 0);
    transition: transform 0.25s var(--ease-out);
    animation: productPhoneFloat 9s ease-in-out infinite;
    will-change: transform;
}

@keyframes productPhoneFloat {
    0%, 100% { transform: translate3d(var(--phone-x), calc(var(--phone-y) + 0px), 0); }
    50% { transform: translate3d(var(--phone-x), calc(var(--phone-y) - 12px), 0); }
}

.product-showcase__phone-glow {
    position: absolute;
    inset: -18% -28%;
    border-radius: 40%;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.4), transparent 70%);
    filter: blur(22px);
    z-index: 0;
    pointer-events: none;
}

.product-showcase__phone-frame {
    position: relative;
    z-index: 1;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
    filter: drop-shadow(0 22px 40px rgba(17, 17, 17, 0.32))
            drop-shadow(0 0 28px rgba(var(--color-primary-rgb), 0.28));
}

.product-showcase__phone:hover .product-showcase__phone-frame {
    transform: translateY(-4px) scale(1.02);
    filter: drop-shadow(0 28px 52px rgba(17, 17, 17, 0.38))
            drop-shadow(0 0 40px rgba(var(--color-primary-rgb), 0.4));
}

.product-showcase__phone-shot {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 337 / 706;
    object-fit: contain;
    object-position: center top;
}

/* Mobile-first: phone is the hero; desktop browser hidden until tablet+ */
.product-showcase__device--desktop {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .product-showcase__glow,
    .product-showcase__orb,
    .product-showcase__device,
    .product-showcase__phone {
        animation: none !important;
    }

    .product-showcase__copy,
    .product-showcase__chip,
    .product-showcase__actions,
    .product-showcase__media {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .product-showcase__device,
    .product-showcase__phone {
        transform: none !important;
    }
}
