/* Andra Solutions — Institutional site styles */

:root {
    --primary: #8b2323;
    --primary-dark: #6b1a1a;
    --primary-light: #a83232;
    --primary-glow: rgba(139, 35, 35, 0.25);
    --grey-900: #1a1a1a;
    --grey-700: #4a4a4a;
    --grey-500: #6b6b6b;
    --grey-300: #b0b0b0;
    --grey-100: #f5f5f5;
    --white: #ffffff;
    --bg: #fafafa;
    --header-height: 80px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 60px rgba(139, 35, 35, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--grey-700);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: min(1200px, 92vw);
    margin-inline: auto;
}

/* ── Header ── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    border-color: rgba(139, 35, 35, 0.08);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand-logo {
    height: 44px;
    width: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--grey-900);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--grey-700);
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(139, 35, 35, 0.06);
}

.nav-link--cta {
    background: var(--primary);
    color: var(--white) !important;
}

.nav-link--cta:hover {
    background: var(--primary-dark);
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: rgba(139, 35, 35, 0.06);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* ── Hero ── */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fafafa 0%, #fff 40%, #fdf8f8 100%);
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 35, 35, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 35, 35, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.hero-orb--1 {
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    top: 10%;
    right: -5%;
}

.hero-orb--2 {
    width: 300px;
    height: 300px;
    background: rgba(139, 35, 35, 0.12);
    bottom: 20%;
    left: -5%;
    animation-delay: -4s;
}

.hero-watermark {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    opacity: 0.04;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-block: 80px 120px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(139, 35, 35, 0.08);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--grey-900);
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: 1.125rem;
    color: var(--grey-500);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-card {
    background: var(--grey-900);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Hero showcase (replaces terminal card) */

.hero-visual {
    position: relative;
}

.hero-showcase {
    position: relative;
}

.showcase-orbit {
    position: absolute;
    inset: 10% 5%;
    pointer-events: none;
}

.orbit-ring {
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(139, 35, 35, 0.18);
    border-radius: 50%;
    animation: spin 24s linear infinite;
}

.orbit-ring--2 {
    inset: 12%;
    animation-direction: reverse;
    animation-duration: 18s;
}

.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary-glow);
}

.orbit-dot--1 { top: 8%; left: 50%; }
.orbit-dot--2 { bottom: 20%; right: 10%; animation: pulse 2s ease infinite; }
.orbit-dot--3 { bottom: 30%; left: 8%; animation: pulse 2s ease infinite 0.6s; }

.showcase-card {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(139, 35, 35, 0.1);
}

.showcase-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.showcase-card-header img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
}

.showcase-card-header strong {
    display: block;
    color: var(--grey-900);
    font-size: 1rem;
}

.showcase-card-header span {
    color: var(--grey-500);
    font-size: 0.8125rem;
}

.showcase-pipeline {
    display: grid;
    gap: 10px;
}

.showcase-pipeline-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid transparent;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.showcase-pipeline-item--done {
    border-color: rgba(139, 35, 35, 0.12);
}

.showcase-pipeline-item--done .pipeline-icon {
    background: var(--primary);
    color: var(--white);
    font-size: 0.875rem;
}

.showcase-pipeline-item--done .pipeline-icon::after {
    content: none;
}

.showcase-pipeline-item--active {
    border-color: rgba(139, 35, 35, 0.25);
    box-shadow: 0 4px 20px var(--primary-glow);
    transform: scale(1.02);
    background: rgba(139, 35, 35, 0.04);
}

.showcase-pipeline-item--active .pipeline-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    animation: pulse 2s ease infinite;
}

.pipeline-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--grey-300);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
}

.showcase-pipeline-item strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--grey-900);
}

.showcase-pipeline-item span {
    font-size: 0.8125rem;
    color: var(--grey-500);
}

.showcase-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.showcase-metric {
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(139, 35, 35, 0.06) 0%, rgba(139, 35, 35, 0.02) 100%);
    border: 1px solid rgba(139, 35, 35, 0.08);
}

.showcase-metric-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.showcase-metric-label {
    font-size: 0.75rem;
    color: var(--grey-500);
    font-weight: 500;
}

.showcase-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.showcase-highlights li {
    padding: 10px 14px;
    background: rgba(139, 35, 35, 0.06);
    border: 1px solid rgba(139, 35, 35, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: center;
    line-height: 1.35;
    word-break: break-word;
}

.hero-content--load,
.hero-visual--load {
    opacity: 0;
    transform: translateY(40px);
}

.hero-content--load.is-loaded,
.hero-visual--load.is-loaded {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-visual--load.is-loaded {
    transition-delay: 0.2s;
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card-header img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.hero-card-header strong {
    display: block;
    color: var(--white);
    font-size: 0.9375rem;
}

.hero-card-header span {
    color: var(--grey-300);
    font-size: 0.8125rem;
}

.hero-terminal {
    font-family: "Consolas", "Monaco", monospace;
    font-size: 0.875rem;
}

.terminal-line {
    color: var(--grey-300);
    padding: 4px 0;
    opacity: 0;
    animation: terminalFade 0.5s ease forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.3s; }
.terminal-line:nth-child(2) { animation-delay: 0.8s; }
.terminal-line:nth-child(3) { animation-delay: 1.3s; }
.terminal-line:nth-child(4) { animation-delay: 1.8s; }
.terminal-line:nth-child(5) { animation-delay: 2.3s; }
.terminal-line:nth-child(6) { animation-delay: 2.8s; }
.terminal-line:nth-child(7) { animation-delay: 3.3s; }

.terminal-line .prompt {
    color: var(--primary-light);
    margin-right: 8px;
}

.terminal-line.success {
    color: #4ade80;
}

.cursor-line .cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--primary-light);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--grey-500);
    font-size: 0.8125rem;
    z-index: 1;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ── Stats ── */

.stats {
    background: var(--primary);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-value {
    display: block;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
}

.stat-value--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
}

.stat-value--logo img {
    display: block;
    width: auto;
    max-width: 110px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
}

.stat-label {
    font-size: 0.9375rem;
    opacity: 0.85;
}

.stat-item.is-counted .stat-value {
    animation: statPop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Clients ── */

.section-clients {
    padding-top: 80px;
    padding-bottom: 80px;
    background: var(--white);
    overflow: hidden;
}

.clients-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
    width: min(1200px, 92vw);
    margin: 48px auto 0;
    padding: 0 4px;
    overflow: hidden;
}

.clients-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.clients-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    width: max-content;
    padding: 16px 8px;
    will-change: transform;
}

/* CSS fallback — duplicate content + translateX(-50%) loop */
@keyframes clients-marquee-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

.clients-track--css {
    animation: clients-marquee-scroll 40s linear infinite;
}

.clients-track.is-waapi {
    animation: none !important;
}

.clients-carousel:hover .clients-track--css {
    animation-play-state: paused;
}

.carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 35, 35, 0.15);
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.06);
    box-shadow: var(--shadow-lg);
}

.carousel-btn:active {
    transform: scale(0.96);
}

.carousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.client-logo {
    flex-shrink: 0;
    width: 160px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.client-logo:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: var(--shadow);
    border-color: rgba(139, 35, 35, 0.15);
}

.client-logo img {
    max-width: 100%;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.85;
    transition: filter var(--transition), opacity var(--transition);
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ── Sections ── */

.section {
    padding: 100px 0;
}

.section-about {
    background: var(--bg);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(139, 35, 35, 0.08);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--grey-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--grey-500);
}

/* ── About ── */

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.about-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform var(--transition), box-shadow var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    width: 48px;
    height: 48px;
    background: rgba(139, 35, 35, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.about-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.about-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: 12px;
}

.about-card p {
    font-size: 0.9375rem;
    color: var(--grey-500);
}

.quote {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    padding: 32px;
    border-left: 4px solid var(--primary);
    background: var(--white);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow);
}

.quote p {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--grey-700);
    margin-bottom: 12px;
}

.quote cite {
    font-size: 0.875rem;
    color: var(--primary);
    font-style: normal;
    font-weight: 600;
}

/* ── Services ── */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: rgba(139, 35, 35, 0.15);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: 8px;
}

.service-tagline {
    font-size: 0.9375rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.service-points {
    margin-bottom: 16px;
    flex-grow: 1;
}

.service-points li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9375rem;
    color: var(--grey-500);
}

.service-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.service-highlight {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-dark);
    padding: 12px 16px;
    background: rgba(139, 35, 35, 0.06);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border-left: 3px solid var(--primary);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition);
}

.service-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.service-link:hover {
    gap: 8px;
}

/* ── ERP Comparison ── */

.section-erp {
    background: var(--bg);
}

.erp-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: stretch;
}

.erp-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}

.erp-card--alt {
    border-top-color: var(--grey-500);
}

.erp-card-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 35, 35, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    margin-bottom: 16px;
}

.erp-card--alt .erp-card-badge {
    background: rgba(107, 107, 107, 0.1);
    color: var(--grey-500);
}

.erp-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--grey-900);
    margin-bottom: 16px;
}

.erp-card p {
    font-size: 0.9375rem;
    color: var(--grey-500);
    margin-bottom: 20px;
}

.erp-card ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.9375rem;
    color: var(--grey-700);
}

.erp-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.erp-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.erp-divider span {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
}

/* ── OMIE ── */

.omie-partnership {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px 28px;
    margin-bottom: 48px;
    padding: 24px 32px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.omie-partnership__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--grey-900);
    font-size: 1rem;
}

.omie-partnership__brand img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

.omie-partnership__plus {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--primary);
    line-height: 1;
}

.omie-partnership__omie {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    background: #000;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.omie-partnership__omie img {
    display: block;
    width: auto;
    max-width: 140px;
    height: 36px;
    object-fit: contain;
}

.omie-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.omie-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.omie-logo-showcase {
    text-align: center;
    padding: 28px 24px;
    background: #000;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.omie-logo-showcase img {
    display: block;
    width: auto;
    max-width: 220px;
    height: auto;
    max-height: 70px;
    margin: 0 auto 12px;
    object-fit: contain;
}

.omie-logo-showcase p {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.omie-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.omie-content p {
    margin-bottom: 16px;
    color: var(--grey-500);
}

.omie-content .btn {
    margin-top: 16px;
}

.omie-features {
    display: grid;
    gap: 16px;
}

.omie-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform var(--transition), box-shadow var(--transition);
}

.omie-feature:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

.omie-feature-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.omie-feature strong {
    display: block;
    color: var(--grey-900);
    margin-bottom: 4px;
}

.omie-feature p {
    font-size: 0.875rem;
    color: var(--grey-500);
}

/* ── CTA ── */

.section-cta {
    padding: 80px 0 100px;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 64px;
    border-radius: var(--radius);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-box h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.cta-box p {
    font-size: 1.0625rem;
    opacity: 0.9;
    margin-bottom: 32px;
    position: relative;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    position: relative;
}

/* ── Footer ── */

.site-footer {
    background: var(--grey-900);
    color: var(--grey-300);
    padding: 80px 0 32px;
    position: relative;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    color: var(--white);
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-services ul li {
    font-size: 0.875rem;
}

.contact-list li {
    margin-bottom: 12px;
}

.contact-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    transition: color var(--transition);
}

.contact-list a:hover {
    color: var(--white);
}

.contact-list svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-light);
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8125rem;
}

.footer-credit a {
    color: var(--primary-light);
}

.footer-credit a:hover {
    color: var(--white);
}

/* ── WhatsApp Float ── */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

/* ── Scroll progress ── */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    z-index: 1001;
    transition: width 0.08s linear;
}

/* ── Scroll reveal (sections) ── */

.section-reveal > .container,
.section-reveal > .clients-carousel {
    opacity: 0;
    transform: translateY(56px);
    filter: blur(8px);
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-reveal.is-visible > .container,
.section-reveal.is-visible > .clients-carousel {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.section-reveal.is-visible > .clients-carousel {
    transition-delay: 0.18s;
}

.section-reveal:not(.is-visible) .section-header,
.section-reveal:not(.is-visible) .quote,
.section-reveal:not(.is-visible) .cta-box,
.section-reveal:not(.is-visible) .about-card,
.section-reveal:not(.is-visible) .service-card,
.section-reveal:not(.is-visible) .stat-item,
.section-reveal:not(.is-visible) .erp-comparison .erp-card,
.section-reveal:not(.is-visible) .erp-comparison .erp-divider,
.section-reveal:not(.is-visible) .omie-partnership,
.section-reveal:not(.is-visible) .omie-logo-showcase,
.section-reveal:not(.is-visible) .omie-content,
.section-reveal:not(.is-visible) .omie-feature,
.section-reveal:not(.is-visible) .footer-brand,
.section-reveal:not(.is-visible) .footer-links,
.section-reveal:not(.is-visible) .footer-services,
.section-reveal:not(.is-visible) .footer-contact,
.section-reveal:not(.is-visible) .footer-bottom {
    opacity: 0;
    transform: translateY(36px);
}

.section-reveal.is-visible .section-header,
.section-reveal.is-visible .quote,
.section-reveal.is-visible .cta-box,
.section-reveal.is-visible .about-card,
.section-reveal.is-visible .service-card,
.section-reveal.is-visible .stat-item,
.section-reveal.is-visible .erp-comparison .erp-card,
.section-reveal.is-visible .erp-comparison .erp-divider,
.section-reveal.is-visible .omie-partnership,
.section-reveal.is-visible .omie-logo-showcase,
.section-reveal.is-visible .omie-content,
.section-reveal.is-visible .omie-feature,
.section-reveal.is-visible .footer-brand,
.section-reveal.is-visible .footer-links,
.section-reveal.is-visible .footer-services,
.section-reveal.is-visible .footer-contact,
.section-reveal.is-visible .footer-bottom {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-reveal.is-visible .section-header { transition-delay: 0.08s; }
.section-reveal.is-visible .about-card:nth-child(1) { transition-delay: 0.14s; }
.section-reveal.is-visible .about-card:nth-child(2) { transition-delay: 0.24s; }
.section-reveal.is-visible .about-card:nth-child(3) { transition-delay: 0.34s; }
.section-reveal.is-visible .quote { transition-delay: 0.42s; }

.section-reveal.is-visible .service-card:nth-child(1) { transition-delay: 0.12s; }
.section-reveal.is-visible .service-card:nth-child(2) { transition-delay: 0.22s; }
.section-reveal.is-visible .service-card:nth-child(3) { transition-delay: 0.32s; }
.section-reveal.is-visible .service-card:nth-child(4) { transition-delay: 0.42s; }

.section-reveal.is-visible .stat-item:nth-child(1) { transition-delay: 0.06s; }
.section-reveal.is-visible .stat-item:nth-child(2) { transition-delay: 0.16s; }
.section-reveal.is-visible .stat-item:nth-child(3) { transition-delay: 0.26s; }
.section-reveal.is-visible .stat-item:nth-child(4) { transition-delay: 0.36s; }

.section-reveal.is-visible .erp-comparison .erp-card:nth-child(1) { transition-delay: 0.12s; }
.section-reveal.is-visible .erp-comparison .erp-divider { transition-delay: 0.22s; }
.section-reveal.is-visible .erp-comparison .erp-card:nth-child(3) { transition-delay: 0.32s; }

.section-reveal.is-visible .omie-partnership { transition-delay: 0.04s; }
.section-reveal.is-visible .omie-content { transition-delay: 0.12s; }
.section-reveal.is-visible .omie-logo-showcase { transition-delay: 0.18s; }
.section-reveal.is-visible .omie-feature:nth-child(1) { transition-delay: 0.28s; }
.section-reveal.is-visible .omie-feature:nth-child(2) { transition-delay: 0.36s; }
.section-reveal.is-visible .omie-feature:nth-child(3) { transition-delay: 0.44s; }
.section-reveal.is-visible .omie-feature:nth-child(4) { transition-delay: 0.52s; }

.section-reveal.is-visible .footer-brand { transition-delay: 0.08s; }
.section-reveal.is-visible .footer-links { transition-delay: 0.16s; }
.section-reveal.is-visible .footer-services { transition-delay: 0.24s; }
.section-reveal.is-visible .footer-contact { transition-delay: 0.32s; }
.section-reveal.is-visible .footer-bottom { transition-delay: 0.4s; }

.section-reveal.is-visible .section-title::after {
    width: 64px;
}

/* Legacy reveal utilities (kept for optional use) */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
    transform: translateX(-48px);
}

.reveal-right {
    transform: translateX(48px);
}

.reveal-scale {
    transform: scale(0.92);
}

.reveal.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

.section-title::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    margin: 16px auto 0;
    border-radius: 2px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.parallax-layer {
    will-change: transform;
}

/* ── Animations ── */

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes staggerFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes statPop {
    0% { transform: scale(0.8); opacity: 0.5; }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes terminalFade {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ── Responsive ── */

@media (max-width: 1024px) {
    .hero-inner,
    .omie-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        padding: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: var(--shadow);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition);
    }

    .site-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link {
        display: block;
        text-align: center;
        padding: 12px;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .erp-comparison {
        grid-template-columns: 1fr;
    }

    .erp-divider {
        padding: 8px 0;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 72px 0;
    }

    .showcase-orbit {
        display: none;
    }

    .clients-carousel {
        gap: 8px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .hero-content--load,
    .hero-visual--load,
    .section-reveal > .container,
    .section-reveal > .clients-carousel,
    .section-reveal:not(.is-visible) .section-header,
    .section-reveal:not(.is-visible) .about-card,
    .section-reveal:not(.is-visible) .service-card,
    .section-reveal:not(.is-visible) .stat-item {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .hero-orb,
    .scroll-indicator,
    .orbit-ring {
        animation: none !important;
    }

    .clients-track--css {
        animation-duration: 80s;
    }

    .stagger-children > * {
        opacity: 1;
        animation: none !important;
    }

    .section-reveal:not(.is-visible) .footer-brand,
    .section-reveal:not(.is-visible) .footer-links,
    .section-reveal:not(.is-visible) .footer-services,
    .section-reveal:not(.is-visible) .footer-contact {
        opacity: 1;
        transform: none;
    }

    .parallax-layer {
        transform: none !important;
    }
}
