:root {
    --bg: #071833;
    --bg-soft: #0d244a;
    --bg-deep: #041022;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-strong: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.14);
    --text: #f5f5f2;
    --muted: rgba(245, 245, 242, 0.72);
    --muted-strong: rgba(245, 245, 242, 0.92);
    --accent: #1ea85f;
    --accent-red: #cf1f2d;
    --accent-soft: rgba(30, 168, 95, 0.2);
    --accent-red-soft: rgba(207, 31, 45, 0.2);
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
    --radius: 28px;
    --shell: min(1120px, calc(100vw - 40px));
    --narrow: min(760px, calc(100vw - 40px));
    --header-height: 84px;
    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg: #eef4ff;
    --bg-soft: #f7fbff;
    --bg-deep: #dfeaf9;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --line: rgba(7, 24, 51, 0.12);
    --text: #0c1c36;
    --muted: rgba(12, 28, 54, 0.72);
    --muted-strong: rgba(12, 28, 54, 0.9);
    --shadow: 0 24px 70px rgba(18, 40, 78, 0.12);
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    background:
        radial-gradient(circle at 12% 14%, rgba(30, 168, 95, 0.18), transparent 18%),
        radial-gradient(circle at 82% 10%, rgba(207, 31, 45, 0.2), transparent 24%),
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.05), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
        linear-gradient(180deg, var(--bg-soft), var(--bg-deep) 45%, #061222 100%);
    color: var(--text);
    opacity: 0;
    transition: opacity 600ms ease;
}

:root[data-theme="light"] body {
    background:
        radial-gradient(circle at 12% 14%, rgba(30, 168, 95, 0.12), transparent 18%),
        radial-gradient(circle at 82% 10%, rgba(207, 31, 45, 0.12), transparent 24%),
        radial-gradient(circle at 50% 40%, rgba(7, 24, 51, 0.06), transparent 22%),
        linear-gradient(180deg, rgba(7, 24, 51, 0.02), transparent 18%),
        linear-gradient(180deg, var(--bg-soft), var(--bg-deep) 45%, #edf5ff 100%);
}

body.is-ready {
    opacity: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

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

input,
textarea,
button {
    font: inherit;
}

.shell {
    width: var(--shell);
    margin: 0 auto;
}

.narrow {
    width: var(--narrow);
}

.scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 90;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--accent), var(--accent-red), rgba(255, 255, 255, 0.95));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid transparent;
    background: rgba(7, 24, 51, 0.9);
    transition: background-color 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

:root[data-theme="light"] .site-header {
    background: rgba(238, 244, 255, 0.9);
}

.site-header.is-scrolled {
    background: rgba(4, 16, 34, 0.92);
    backdrop-filter: blur(18px);
    border-color: var(--line);
}

:root[data-theme="light"] .site-header.is-scrolled {
    background: rgba(247, 251, 255, 0.94);
}

.site-header .shell {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand img {
    width: 228px;
}

.site-nav,
.language-switcher {
    display: flex;
    align-items: center;
}

.site-nav {
    gap: 18px;
    font-size: 0.95rem;
    color: var(--muted);
}

.site-nav a,
.nav-inline-button,
.language-switcher button {
    transition: color 180ms ease, transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.site-nav a:hover,
.nav-inline-button:hover,
.language-switcher button:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.site-nav a.is-active {
    color: var(--text);
}

.site-nav .nav-accent {
    color: var(--text);
    border-bottom: 1px solid var(--accent-red);
}

.nav-inline-form,
.language-switcher {
    margin: 0;
}

.nav-inline-button,
.language-switcher button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.language-switcher {
    gap: 8px;
    margin-left: 4px;
    padding-left: 16px;
    border-left: 1px solid var(--line);
}

.language-switcher form {
    margin: 0;
}

.theme-toggle,
.language-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.06);
}

.theme-toggle {
    position: relative;
    margin-left: 4px;
}

.theme-toggle-sun,
.theme-toggle-moon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transition: opacity 180ms ease, transform 180ms ease;
}

.theme-toggle-sun {
    opacity: 0;
    transform: scale(0.7);
}

.theme-toggle-moon {
    opacity: 1;
    transform: scale(1);
}

:root[data-theme="light"] .theme-toggle-sun {
    opacity: 1;
    transform: scale(1);
}

:root[data-theme="light"] .theme-toggle-moon {
    opacity: 0;
    transform: scale(0.7);
}

.language-flag.is-current {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .language-flag.is-current,
:root[data-theme="light"] .theme-toggle {
    border-color: rgba(7, 24, 51, 0.15);
    background: rgba(7, 24, 51, 0.06);
}

.language-flag img {
    width: 18px;
    height: 18px;
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: calc(100svh - var(--header-height));
    display: grid;
    align-items: center;
    overflow: clip;
}

.hero-backdrop,
.hero-photo,
.hero-video,
.hero-grid {
    position: absolute;
    inset: 0;
}

.hero-photo {
    background-image: url("../img/background_florianopolis.jpg");
    background-position: center 42%;
    background-size: cover;
    transform: scale(1.06) translateY(var(--hero-shift, 0px));
    transform-origin: center;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    opacity: 0;
    transform: scale(1.06) translateY(var(--hero-shift, 0px));
    transform-origin: center;
    transition: opacity 420ms ease;
    pointer-events: none;
}

.hero-video.is-ready {
    opacity: 1;
}

.hero-backdrop {
    background:
        linear-gradient(90deg, rgba(4, 16, 34, 0.88) 0%, rgba(4, 16, 34, 0.64) 38%, rgba(4, 16, 34, 0.38) 68%, rgba(4, 16, 34, 0.72) 100%),
        linear-gradient(180deg, rgba(4, 16, 34, 0.18) 0%, rgba(4, 16, 34, 0.52) 100%),
        radial-gradient(circle at 16% 22%, rgba(30, 168, 95, 0.18), transparent 22%),
        radial-gradient(circle at 78% 18%, rgba(207, 31, 45, 0.18), transparent 20%);
}

:root[data-theme="light"] .hero-backdrop {
    background:
        linear-gradient(90deg, rgba(4, 16, 34, 0.86) 0%, rgba(4, 16, 34, 0.58) 38%, rgba(4, 16, 34, 0.34) 68%, rgba(4, 16, 34, 0.66) 100%),
        linear-gradient(180deg, rgba(4, 16, 34, 0.14) 0%, rgba(4, 16, 34, 0.48) 100%),
        radial-gradient(circle at 16% 22%, rgba(30, 168, 95, 0.14), transparent 22%),
        radial-gradient(circle at 78% 18%, rgba(207, 31, 45, 0.14), transparent 20%);
}

.hero-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.94), transparent);
    transform: translateY(var(--grid-shift, 0px));
}

:root[data-theme="light"] .hero-grid {
    background-image:
        linear-gradient(rgba(7, 24, 51, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 24, 51, 0.06) 1px, transparent 1px);
}

.hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    z-index: 1;
    padding: 72px 0 42px;
}

.hero-copy {
    max-width: 760px;
    color: #f5f5f2;
    text-shadow: 0 12px 36px rgba(4, 16, 34, 0.48);
}

.hero-copy h1,
.inner-hero h1,
.section h2,
.service-card h3,
.editorial-row h3,
.article-stack h2,
.article-stack h3,
.process-step h3,
.metrics-grid strong,
.detail-meta strong {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(3.5rem, 9.5vw, 6.8rem);
    line-height: 0.94;
}

.eyebrow,
.footer-kicker,
.row-tag,
.row-stack {
    margin: 0 0 12px;
    color: var(--muted);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.lede,
.section-copy,
.article-body p,
.editorial-row p,
.article-stack p,
.service-card p,
.process-step p,
.footer-grid p,
.footer-grid span,
.detail-meta span,
.proof-item span,
.hero-stat small {
    color: var(--muted);
    line-height: 1.7;
}

.hero-copy .lede {
    max-width: 54ch;
    margin: 22px 0 0;
    font-size: 1.06rem;
}

.hero-copy .eyebrow,
.hero-copy .lede {
    color: rgba(245, 245, 242, 0.82);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(30, 168, 95, 0.24);
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover,
button.button:hover {
    transform: translateY(-2px);
}

.button-secondary {
    background: transparent;
    border-color: var(--line);
    box-shadow: none;
}

.button-secondary:hover {
    border-color: rgba(255, 255, 255, 0.28);
}

.button-whatsapp {
    background: transparent;
    border-color: rgba(30, 168, 95, 0.4);
    color: var(--text);
    box-shadow: none;
}

.button-whatsapp:hover {
    background: rgba(30, 168, 95, 0.12);
    border-color: rgba(30, 168, 95, 0.65);
}

.hero .button-secondary,
.hero .button-whatsapp {
    color: #f5f5f2;
    border-color: rgba(245, 245, 242, 0.34);
    background: rgba(7, 24, 51, 0.18);
    backdrop-filter: blur(10px);
}

.hero .button-secondary:hover,
.hero .button-whatsapp:hover {
    border-color: rgba(245, 245, 242, 0.56);
    background: rgba(7, 24, 51, 0.3);
}

.hero-visual {
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 18px;
}

.hero-orbit {
    width: min(72vw, 380px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 55%),
        rgba(255, 255, 255, 0.02);
    animation: pulseOrbit 6s ease-in-out infinite;
}

.hero-orbit img {
    width: 64%;
}

.hero-stat,
.form-panel,
.detail-meta,
.metrics-grid article,
.service-card,
.proof-item,
.process-step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-stat {
    width: min(100%, 330px);
    padding: 24px;
}

.hero-stat span,
.metrics-grid article span,
.proof-item strong,
.detail-meta strong {
    display: block;
}

.hero-stat strong {
    display: block;
    margin: 10px 0;
    font-size: 1.52rem;
}

.proof-strip,
.service-grid,
.metrics-grid {
    display: grid;
    gap: 18px;
}

.proof-strip {
    position: relative;
    z-index: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 72px;
}

.proof-item {
    padding: 20px 22px;
}

.proof-item strong {
    margin-bottom: 8px;
    font-size: clamp(1.4rem, 4vw, 2rem);
    letter-spacing: -0.04em;
    color: var(--accent);
}

.proof-item:nth-child(2) strong,
.service-card:nth-child(2n) .row-tag {
    color: var(--accent-red);
}

.proof-item:nth-child(3) strong,
.service-card:nth-child(2n + 1) .row-tag {
    color: var(--accent);
}

.section,
.inner-hero {
    padding: 108px 0;
}

.section-contrast {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.04));
}

:root[data-theme="light"] .section-contrast {
    background: linear-gradient(180deg, rgba(7, 24, 51, 0.015), rgba(7, 24, 51, 0.045));
}

.split-layout,
.detail-layout,
.dashboard-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 36px;
}

.about-section .split-layout {
    align-items: center;
}

.about-copy {
    max-width: 620px;
}

.about-copy .section-copy {
    margin-top: 18px;
}

.about-visual {
    margin: 0;
    min-height: 520px;
    overflow: clip;
    border-radius: calc(var(--radius) + 8px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.04);
}

.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
}

.technology-section {
    position: relative;
    overflow: clip;
    padding-top: 84px;
    padding-bottom: 84px;
}

.technology-section::before,
.technology-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.technology-section::before {
    background:
        radial-gradient(circle at 10% 22%, rgba(30, 168, 95, 0.1), transparent 18%),
        radial-gradient(circle at 90% 18%, rgba(207, 31, 45, 0.1), transparent 18%);
}

.technology-intro {
    max-width: 760px;
    margin-bottom: 32px;
}

.technology-marquee {
    position: relative;
    overflow: hidden;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.technology-marquee::before,
.technology-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(120px, 14vw);
    z-index: 2;
    pointer-events: none;
}

.technology-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-soft), rgba(13, 36, 74, 0));
}

.technology-marquee::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-soft), rgba(13, 36, 74, 0));
}

:root[data-theme="light"] .technology-marquee::before {
    background: linear-gradient(90deg, var(--bg-soft), rgba(247, 251, 255, 0));
}

:root[data-theme="light"] .technology-marquee::after {
    background: linear-gradient(270deg, var(--bg-soft), rgba(247, 251, 255, 0));
}

.technology-marquee-lane {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: marqueeLeft 32s linear infinite;
}

.technology-marquee:hover .technology-marquee-lane,
.technology-marquee:focus-within .technology-marquee-lane {
    animation-play-state: paused;
}

.technology-marquee-group {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-right: 18px;
}

.technology-logo {
    flex: 0 0 clamp(118px, 11vw, 148px);
    width: clamp(118px, 11vw, 148px);
    height: 84px;
    display: grid;
    place-items: center;
    padding: 0 14px;
    border-radius: 24px;
    border: 1px solid transparent;
    background: transparent;
    transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.technology-logo img {
    width: auto;
    height: 34px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(1) saturate(0) contrast(1.08) opacity(0.76);
    transition: filter 220ms ease, transform 220ms ease;
}

.technology-logo:hover,
.technology-logo:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(30, 168, 95, 0.22);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 44px rgba(4, 16, 34, 0.12);
    outline: none;
}

.technology-logo:hover img,
.technology-logo:focus-visible img {
    filter: none;
    transform: scale(1.12);
}

.parallax-band {
    position: relative;
    height: clamp(240px, 38vw, 420px);
    overflow: clip;
}

.parallax-band-media,
.services-scene-image {
    position: absolute;
    inset: -8%;
    background-size: cover;
    background-position: center;
    transform: scale(1.08) translateY(var(--parallax-offset, 0px));
    will-change: transform;
}

.parallax-band-media {
    background-image:
        linear-gradient(180deg, rgba(4, 16, 34, 0.3), rgba(4, 16, 34, 0.62)),
        url("../img/background_sao_paulo.webp");
    background-position: center 42%;
}

.services-section {
    position: relative;
}

.services-section .section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.services-section .service-grid {
    align-items: stretch;
}

.services-section .service-card {
    height: 100%;
}

.approach-section .split-layout {
    align-items: start;
}

.approach-intro {
    position: sticky;
    top: calc(var(--header-height) + 28px);
    display: grid;
    gap: 28px;
    align-self: start;
}

.approach-intro .section-heading {
    max-width: 480px;
}

.approach-orbit {
    position: relative;
    width: min(100%, 340px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(30, 168, 95, 0.16);
    background:
        radial-gradient(circle at center, rgba(30, 168, 95, 0.12), transparent 42%),
        radial-gradient(circle at 68% 34%, rgba(207, 31, 45, 0.12), transparent 18%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    overflow: hidden;
}

.approach-orbit span {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 1px dashed rgba(7, 24, 51, 0.16);
    animation: orbitSpin 18s linear infinite;
}

.approach-orbit span:nth-child(2) {
    inset: 33%;
    animation-direction: reverse;
    animation-duration: 12s;
}

.approach-orbit span:nth-child(3) {
    inset: auto;
    width: 18px;
    height: 18px;
    top: 18%;
    left: 62%;
    border: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-red));
    box-shadow: 0 0 0 12px rgba(30, 168, 95, 0.1);
    animation: orbitPulse 3s ease-in-out infinite;
}

.service-card,
.process-step,
.form-panel,
.detail-meta,
.metrics-grid article {
    padding: 28px;
}

.service-card h3,
.process-step h3,
.editorial-row h3,
.article-stack h2,
.article-stack h3 {
    font-size: clamp(1.34rem, 3vw, 2rem);
    margin-bottom: 10px;
}

.editorial-list,
.article-stack,
.process-stack,
.contact-meta {
    display: grid;
    gap: 20px;
}

.process-stack {
    position: relative;
    gap: 24px;
    padding-left: 18px;
}

.process-stack::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 21px;
    width: 2px;
    background: linear-gradient(180deg, rgba(30, 168, 95, 0.5), rgba(207, 31, 45, 0.45), rgba(7, 24, 51, 0.16));
}

.process-step {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 18px;
    padding: 0;
    overflow: hidden;
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease, background-color 240ms ease;
}

.process-step::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 240ms ease;
}

.process-step:hover {
    transform: translateX(8px) translateY(-2px);
    border-color: rgba(30, 168, 95, 0.28);
}

.process-step:hover::before {
    opacity: 1;
}

.process-step-rail {
    position: relative;
    display: grid;
    justify-items: center;
    padding-top: 28px;
}

.process-step-dot {
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid currentColor;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08);
}

.process-step-shell {
    position: relative;
    z-index: 1;
    padding: 28px 30px 30px 0;
}

.process-step-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.process-step-index {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.process-step-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(7, 24, 51, 0.1);
    color: inherit;
    transform: rotate(-4deg);
    transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.process-step:hover .process-step-icon {
    transform: rotate(0deg) scale(1.05);
}

.process-step-icon svg {
    width: 22px;
    height: 22px;
}

.process-step h3 {
    margin-bottom: 12px;
}

.process-step-1 {
    color: #1a8f53;
}

.process-step-1::before {
    background:
        radial-gradient(circle at 88% 18%, rgba(30, 168, 95, 0.12), transparent 22%),
        linear-gradient(135deg, rgba(30, 168, 95, 0.08), transparent 44%);
}

.process-step-2 {
    color: #cf1f2d;
}

.process-step-2::before {
    background:
        radial-gradient(circle at 86% 16%, rgba(207, 31, 45, 0.12), transparent 22%),
        linear-gradient(135deg, rgba(207, 31, 45, 0.08), transparent 44%);
}

.process-step-3 {
    color: #1a4d9c;
}

.process-step-3::before {
    background:
        radial-gradient(circle at 88% 18%, rgba(26, 77, 156, 0.14), transparent 22%),
        linear-gradient(135deg, rgba(26, 77, 156, 0.08), transparent 44%);
}

.process-step-1 h3,
.process-step-2 h3,
.process-step-3 h3 {
    color: var(--text);
}

.process-step-1 p,
.process-step-2 p,
.process-step-3 p {
    color: var(--muted);
}

:root[data-theme="dark"] .approach-orbit {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at center, rgba(30, 168, 95, 0.12), transparent 42%),
        radial-gradient(circle at 68% 34%, rgba(207, 31, 45, 0.12), transparent 18%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

:root[data-theme="dark"] .approach-orbit span {
    border-color: rgba(255, 255, 255, 0.14);
}

:root[data-theme="dark"] .process-step-icon {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .process-step-dot {
    background: var(--bg);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.04);
}

.editorial-row,
.article-stack article,
.mini-list-item {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.editorial-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 180px;
    gap: 22px;
    align-items: start;
}

.text-link {
    display: inline-block;
    margin-top: 28px;
    color: var(--accent-red);
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
}

.dashboard-toolbar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.danger-link {
    color: var(--accent-red);
}

.danger-button {
    background: var(--accent-red);
    box-shadow: 0 18px 42px rgba(207, 31, 45, 0.24);
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.field label {
    color: var(--muted-strong);
    font-size: 0.92rem;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    padding: 14px 16px;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

:root[data-theme="light"] .field input,
:root[data-theme="light"] .field textarea {
    background: rgba(255, 255, 255, 0.74);
}

.rich-text-source-hidden {
    display: none;
}

.rich-text-field {
    display: grid;
    gap: 14px;
}

.editor-toolbar {
    display: grid;
    gap: 10px;
}

.editor-toolbar-group,
.editor-tabs,
.blog-editor-actions,
.blog-filters,
.blog-filter-pills,
.blog-admin-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.editor-toolbar-button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.editor-toolbar-button:hover,
.editor-tab-button:hover,
.filter-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(30, 168, 95, 0.5);
}

.editor-tab-button {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted-strong);
    cursor: pointer;
}

.editor-tab-button.is-active,
.filter-pill.is-active {
    border-color: rgba(30, 168, 95, 0.5);
    background: rgba(30, 168, 95, 0.12);
    color: var(--text);
}

.editor-panels {
    position: relative;
}

.editor-panel {
    display: none;
}

.editor-panel.is-active {
    display: block;
}

.rich-text-editor {
    min-height: 420px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    line-height: 1.7;
}

.rich-text-code,
.rich-text-preview {
    min-height: 420px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    line-height: 1.7;
}

.rich-text-code {
    width: 100%;
    resize: vertical;
    font: 0.92rem/1.65 "IBM Plex Mono", "Cascadia Code", monospace;
}

:root[data-theme="light"] .editor-toolbar-button,
:root[data-theme="light"] .editor-tab-button,
:root[data-theme="light"] .rich-text-editor,
:root[data-theme="light"] .rich-text-code,
:root[data-theme="light"] .rich-text-preview,
:root[data-theme="light"] .editor-card,
:root[data-theme="light"] .blog-admin-card,
:root[data-theme="light"] .filter-pill {
    background: rgba(255, 255, 255, 0.74);
}

.rich-text-editor:focus,
.rich-text-code:focus {
    outline: none;
    border-color: rgba(30, 168, 95, 0.62);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(30, 168, 95, 0.62);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-label input {
    width: auto;
    margin-top: 3px;
    accent-color: var(--accent);
}

.field ul.errorlist,
.errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #ffb4bb;
    font-size: 0.9rem;
}

.contact-meta span,
.footer-grid a,
.footer-grid span {
    display: block;
    padding-top: 10px;
}

.detail-meta {
    align-self: start;
    display: grid;
    gap: 22px;
}

.blog-editor-form {
    display: grid;
    gap: 24px;
}

.blog-editor-actions {
    justify-content: space-between;
    align-items: center;
}

.blog-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.editor-sidebar,
.editor-card,
.blog-admin-card-copy {
    display: grid;
    gap: 18px;
}

.editor-card,
.blog-admin-card,
.filter-pill {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.editor-card {
    padding: 22px;
    border-radius: 26px;
}

.editor-card-head {
    display: grid;
    gap: 6px;
}

.editor-card-head h2,
.blog-admin-card-copy h2 {
    margin: 0;
}

.editor-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.editor-note,
.blog-admin-card-slug {
    margin: 0;
    color: var(--muted);
}

.blog-toolbar {
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.blog-filters input,
.blog-filters select {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--muted-strong);
    text-decoration: none;
}

.filter-pill span,
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border-radius: 999px;
}

.filter-pill span {
    min-width: 28px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.08);
}

.blog-admin-list {
    display: grid;
    gap: 18px;
}

.blog-admin-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border-radius: 24px;
}

.blog-admin-card-media img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    border-radius: 18px;
}

.blog-admin-card-meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.status-badge {
    padding: 0 12px;
    font-weight: 700;
}

.status-draft {
    background: rgba(255, 185, 73, 0.18);
    color: #ffd799;
}

.status-published {
    background: rgba(30, 168, 95, 0.18);
    color: #95f2bb;
}

.article-body p {
    margin: 0 0 20px;
}

.article-body h2,
.article-body h3,
.article-body h4,
.rich-text-editor h2,
.rich-text-editor h3,
.rich-text-editor h4,
.rich-text-preview h2,
.rich-text-preview h3,
.rich-text-preview h4 {
    margin: 28px 0 14px;
    line-height: 1.15;
}

.article-body ul,
.article-body ol,
.rich-text-editor ul,
.rich-text-editor ol,
.rich-text-preview ul,
.rich-text-preview ol {
    margin: 0 0 24px;
    padding-left: 22px;
}

.article-body li,
.rich-text-editor li,
.rich-text-preview li {
    margin-bottom: 10px;
}

.article-body a,
.rich-text-editor a,
.rich-text-preview a {
    color: var(--accent-red);
    text-decoration: underline;
}

.article-body blockquote,
.rich-text-editor blockquote,
.rich-text-preview blockquote {
    margin: 26px 0;
    padding: 18px 20px;
    border-left: 3px solid var(--accent);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 18px 18px 0;
}

.article-cover,
.article-body img,
.rich-text-editor img,
.rich-text-preview img,
.article-card-media img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.article-cover {
    margin-bottom: 24px;
}

.article-body img,
.rich-text-editor img,
.rich-text-preview img {
    margin: 24px 0;
}

.article-body figure,
.rich-text-editor figure,
.rich-text-preview figure {
    margin: 28px 0;
}

.article-body figcaption,
.rich-text-editor figcaption,
.rich-text-preview figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.article-body video,
.rich-text-editor video,
.rich-text-preview video {
    width: 100%;
    border-radius: 18px;
    background: #02070f;
}

.article-body pre,
.rich-text-editor pre,
.rich-text-preview pre {
    overflow-x: auto;
    padding: 18px;
    border-radius: 18px;
    background: rgba(6, 19, 40, 0.94);
}

.article-body code,
.rich-text-editor code,
.rich-text-preview code {
    font-family: "IBM Plex Mono", "Cascadia Code", monospace;
    font-size: 0.92rem;
}

.media-embed {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
}

.media-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article-card {
    display: grid;
    gap: 14px;
}

.article-card-media {
    display: block;
}

.metrics-grid {
    width: var(--shell);
    margin: 0 auto 36px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metrics-grid strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent);
}

.mini-list-item span,
.inline-meta {
    color: var(--muted);
}

.flash-stack {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 120;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 36px));
    pointer-events: none;
}

.flash {
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 22px 48px rgba(4, 16, 34, 0.22);
    pointer-events: auto;
}

:root[data-theme="light"] .flash {
    background: rgba(255, 255, 255, 0.86);
}

.flash-success {
    border-color: rgba(30, 168, 95, 0.45);
}

.cookie-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 130;
    width: min(620px, calc(100vw - 28px));
}

.cookie-banner-panel {
    display: grid;
    gap: 8px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(7, 24, 51, 0.92);
    color: var(--text);
    backdrop-filter: blur(24px);
    box-shadow: 0 28px 70px rgba(4, 16, 34, 0.34);
}

:root[data-theme="light"] .cookie-banner-panel {
    background: rgba(247, 251, 255, 0.97);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-copy p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.cookie-banner-actions .button {
    min-height: 46px;
}

body.cookie-consent-open {
    overflow: hidden;
}

body.cookie-consent-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 125;
    background: rgba(4, 16, 34, 0.18);
}

:root[data-theme="light"] body.cookie-consent-open::before {
    background: rgba(220, 232, 247, 0.2);
}

body.cookie-consent-open .site-header,
body.cookie-consent-open main,
body.cookie-consent-open .site-footer,
body.cookie-consent-open .flash-stack,
body.cookie-consent-open .scroll-progress {
    filter: blur(8px);
    transition: filter 220ms ease;
}

body.cookie-consent-open .site-header,
body.cookie-consent-open main,
body.cookie-consent-open .site-footer {
    pointer-events: none;
    user-select: none;
}

.site-footer {
    padding: 36px 0 56px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(4, 16, 34, 0.2), rgba(4, 16, 34, 0.72));
}

:root[data-theme="light"] .site-footer {
    background: linear-gradient(180deg, rgba(220, 232, 247, 0.4), rgba(220, 232, 247, 0.9));
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulseOrbit {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

@keyframes orbitSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes orbitPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 12px rgba(30, 168, 95, 0.1);
    }
    50% {
        transform: scale(1.18);
        box-shadow: 0 0 0 18px rgba(30, 168, 95, 0.06);
    }
}

@keyframes marqueeLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 980px) {
    .hero-layout,
    .split-layout,
    .detail-layout,
    .footer-grid,
    .dashboard-links,
    .blog-editor-grid,
    .editor-two-column,
    .blog-admin-card,
    .editorial-row,
    .metrics-grid,
    .service-grid,
    .proof-strip {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        justify-items: start;
    }

    .approach-intro {
        position: static;
    }

    .approach-orbit {
        width: min(100%, 260px);
    }

    .about-visual {
        min-height: 420px;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 76px;
    }

    .site-header .shell {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        padding: 12px 0;
    }

    .brand img {
        width: 184px;
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .language-switcher {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }

    .hero,
    .section,
    .inner-hero {
        padding-top: 84px;
        padding-bottom: 84px;
    }

    .hero-photo {
        background-position: 58% center;
    }

    .hero-video {
        object-position: 58% center;
    }

    .hero-backdrop {
        background:
            linear-gradient(180deg, rgba(4, 16, 34, 0.72) 0%, rgba(4, 16, 34, 0.58) 36%, rgba(4, 16, 34, 0.8) 100%),
            linear-gradient(90deg, rgba(4, 16, 34, 0.5), rgba(4, 16, 34, 0.14));
    }

    .hero-copy h1,
    .inner-hero h1,
    .section h2 {
        max-width: none;
    }

    .about-visual {
        min-height: 360px;
    }

    .process-stack {
        padding-left: 0;
    }

    .process-stack::before {
        left: 17px;
    }

    .process-step {
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 14px;
    }

    .process-step-shell {
        padding: 24px 24px 24px 0;
    }

    .process-step-topline {
        align-items: flex-start;
    }

    .hero-actions {
        flex-direction: column;
    }

    .parallax-band {
        height: 220px;
    }

    .technology-section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .technology-logo {
        flex-basis: 124px;
        width: 124px;
        height: 76px;
    }

    .technology-logo img {
        height: 30px;
    }

    .parallax-band-media {
        inset: -4%;
        transform: scale(1.04) translateY(var(--parallax-offset, 0px));
    }

    .button,
    button.button {
        width: 100%;
    }

    .inline-actions,
    .dashboard-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-editor-actions,
    .blog-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .flash-stack {
        top: 12px;
        left: 12px;
        width: min(360px, calc(100vw - 24px));
    }

    .cookie-banner {
        top: 50%;
        width: min(620px, calc(100vw - 20px));
    }

    .cookie-banner-actions {
        flex-direction: column;
    }
}
