﻿:root {
    --bg: #f4f6f2;
    --bg-elevated: #ffffff;
    --bg-soft: #ebf1eb;
    --text: #192420;
    --text-muted: #50605a;
    --primary: #1d6b5d;
    --primary-strong: #155247;
    --primary-soft: #d8ebe4;
    --secondary: #b8862f;
    --secondary-soft: #f4e8cf;
    --border: #d7e1db;
    --border-strong: #c6d5cd;
    --shadow-sm: 0 8px 24px rgba(18, 42, 34, 0.08);
    --shadow-md: 0 14px 36px rgba(18, 42, 34, 0.13);
    --shadow-lg: 0 28px 64px rgba(15, 38, 31, 0.2);
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --container: 1180px;
    --glass: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.6);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

body {
    font-family: "Heebo", sans-serif;
    line-height: 1.7;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 2%, rgba(212, 234, 222, 0.6) 0%, transparent 34%),
        radial-gradient(circle at 92% 20%, rgba(200, 226, 214, 0.5) 0%, transparent 36%),
        radial-gradient(circle at 50% 80%, rgba(235, 225, 200, 0.3) 0%, transparent 40%),
        linear-gradient(180deg, #f7f9f6 0%, var(--bg) 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    min-width: 320px;
    box-sizing: border-box;
    position: relative;
}

main {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
    max-width: 100%;
}

section[id] {
    scroll-margin-top: 100px;
    width: 100%;
    box-sizing: border-box;
}

/* ==================== BACKGROUND ORBS ==================== */
.bg-orb {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.orb-1 {
    width: 420px;
    height: 420px;
    top: -140px;
    left: -120px;
    background: linear-gradient(135deg, #b8ddd0, #8ec5b3);
    animation: drift-a 20s ease-in-out infinite alternate;
    max-width: 100%;
    max-height: 100%;
}

.orb-2 {
    width: 380px;
    height: 380px;
    right: -100px;
    bottom: -130px;
    background: linear-gradient(135deg, #ead8b3, #d4c090);
    animation: drift-b 26s ease-in-out infinite alternate;
    max-width: 100%;
    max-height: 100%;
}

.orb-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #c4d8e5, #a8c4d8);
    animation: drift-c 22s ease-in-out infinite alternate;
    max-width: 100%;
    max-height: 100%;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    max-width: var(--container);
    margin: 0 auto;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s var(--transition-smooth);
    width: 100%;
    box-sizing: border-box;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(215, 225, 219, 0.6);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 8px 32px rgba(18, 42, 34, 0.08);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.38rem;
    font-weight: 900;
    letter-spacing: 0.3px;
    transition: transform 0.2s var(--transition-smooth);
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.03);
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--primary) 0%, #2f8374 60%, #3a9b88 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(29, 107, 93, 0.35);
    transition: box-shadow 0.3s var(--transition-smooth);
    flex-shrink: 0;
}

.logo:hover .logo-mark {
    box-shadow: 0 10px 28px rgba(29, 107, 93, 0.45);
}

/* ==================== LANGUAGE TOGGLE ==================== */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.25s var(--transition-smooth);
    flex-shrink: 0;
    margin-inline-start: auto;
}

.lang-toggle:hover {
    background: #fff;
    border-color: var(--primary);
}

.lang-flag {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--primary-strong);
    letter-spacing: 0.3px;
}

.mobile-toggle {
    display: none;
    margin-inline-start: 0.4rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.25s var(--transition-smooth);
    flex-shrink: 0;
}

.mobile-toggle:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    width: auto;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s var(--transition-smooth);
    position: relative;
    box-sizing: border-box;
}

.nav-links a:hover {
    background: rgba(29, 107, 93, 0.08);
    color: var(--primary-strong);
}

.nav-links .btn {
    margin-inline-start: 0.35rem;
}

/* ==================== SECTIONS ==================== */
.section {
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(3.5rem, 5vw, 5.5rem) 1.2rem;
    width: 100%;
    box-sizing: border-box;
}

.section-divider {
    max-width: var(--container);
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    opacity: 0.6;
    width: 100%;
    box-sizing: border-box;
}

/* ==================== HERO ==================== */
.hero {
    display: grid;
    grid-template-columns: 1.07fr 0.93fr;
    align-items: center;
    gap: clamp(1.6rem, 3.5vw, 3.2rem);
    padding-top: 3.5rem;
    width: 100%;
    box-sizing: border-box;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(216, 235, 228, 0.6) 100%);
    border: 1px solid rgba(29, 107, 93, 0.2);
    color: var(--primary-strong);
    border-radius: 999px;
    padding: 0.4rem 0.88rem;
    margin-bottom: 1.1rem;
    font-size: 0.88rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    width: fit-content;
}

.hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.8rem);
    line-height: 1.12;
    margin-bottom: 1.3rem;
    text-wrap: balance;
    font-weight: 900;
    background: linear-gradient(145deg, var(--text) 0%, #2a4a3e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 100%;
}

.hero p {
    color: var(--text-muted);
    max-width: 62ch;
    font-size: clamp(1.05rem, 1.3vw, 1.22rem);
    line-height: 1.8;
    width: 100%;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.1rem;
    width: 100%;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.78rem 1.4rem;
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.15px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s var(--transition-smooth);
}

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

.btn:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(140deg, var(--primary) 0%, #2a7d6d 50%, #35927f 100%);
    box-shadow: 0 12px 28px rgba(29, 107, 93, 0.28);
}

.btn-primary::after {
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
}

.btn-primary:hover {
    box-shadow: 0 16px 36px rgba(29, 107, 93, 0.38);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-ghost {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-ghost:hover {
    border-color: var(--primary);
    background: #ffffff;
    color: var(--primary-strong);
    box-shadow: 0 8px 24px rgba(29, 107, 93, 0.1);
}

/* Shimmer effect on primary CTA */
@keyframes shimmer {
    0% {
        background-position: 200% 50%;
    }

    100% {
        background-position: -200% 50%;
    }
}

.btn-primary.btn-large {
    position: relative;
    background-size: 200% auto;
    animation: shimmer 4s ease-in-out infinite;
    background-image: linear-gradient(-75deg,
            #ffffff 0%,
            transparent 10%,
            transparent 50%,
            #ffffff 50%,
            transparent 60%,
            transparent 100%);
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
}

/* ==================== HERO METRICS ==================== */
.hero-metrics {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    width: 100%;
    box-sizing: border-box;
}

.hero-metrics article {
    border: 1px solid rgba(215, 225, 219, 0.7);
    background: var(--glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--transition-smooth);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-metrics article:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(29, 107, 93, 0.2);
}

.hero-metrics strong {
    display: block;
    color: var(--primary-strong);
    font-size: 1.1rem;
    font-weight: 900;
    width: 100%;
}

.hero-metrics span {
    color: var(--text-muted);
    font-size: 0.86rem;
    width: 100%;
}

/* ==================== HERO VISUAL (DEVICE MOCKUP) ==================== */
.hero-visual {
    width: 100%;
    max-width: 490px;
    margin-inline: auto;
    position: relative;
    padding: 0.6rem;
    animation: float-device 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.device {
    border: 1px solid rgba(215, 225, 219, 0.6);
    border-radius: var(--radius-lg);
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    overflow: hidden;
    transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth);
    width: 100%;
    box-sizing: border-box;
}

.device:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 72px rgba(15, 38, 31, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.1rem;
    color: #ffffff;
    background: linear-gradient(120deg, var(--primary-strong) 0%, #2a7366 50%, #35917e 100%);
    font-size: 0.94rem;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
}

.device-header i {
    flex-shrink: 0;
}

.device-header span {
    flex: 1;
    min-width: 0;
}

.device-body {
    display: grid;
    gap: 0.78rem;
    padding: 1.1rem;
    width: 100%;
    box-sizing: border-box;
}

.mock-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 0.78rem;
    padding: 0.9rem;
    align-items: start;
    border: 1px solid rgba(228, 236, 231, 0.8);
    border-radius: 14px;
    background: var(--bg-elevated);
    transition: all 0.3s var(--transition-smooth);
    width: 100%;
    box-sizing: border-box;
}

.mock-item>div {
    min-width: 0;
}

.mock-item:hover {
    transform: translateX(4px);
    border-color: rgba(29, 107, 93, 0.2);
    box-shadow: 0 4px 16px rgba(18, 42, 34, 0.06);
}

.mock-item.done {
    background: linear-gradient(135deg, #f0faf6 0%, #e8f5ef 100%);
    border-color: #d0e5da;
}

.mock-item i {
    margin-top: 0.22rem;
    color: var(--primary);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.mock-item h4 {
    font-size: 1rem;
    margin-bottom: 0.14rem;
    font-weight: 700;
    width: 100%;
}

.mock-item p {
    color: var(--text-muted);
    font-size: 0.86rem;
    width: 100%;
}

.floating-note {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(215, 225, 219, 0.6);
    border-radius: 999px;
    padding: 0.52rem 0.82rem;
    box-shadow: 0 8px 24px rgba(18, 42, 34, 0.1);
    white-space: nowrap;
    font-size: 0.84rem;
    font-weight: 700;
    transition: transform 0.3s var(--transition-smooth);
    box-sizing: border-box;
}

.floating-note:hover {
    transform: scale(1.05);
}

.floating-note i {
    color: var(--secondary);
    flex-shrink: 0;
}

.note-a {
    top: 13%;
    left: -7%;
    animation: bob 5s ease-in-out infinite;
    max-width: 100%;
}

.note-b {
    bottom: 16%;
    right: -8%;
    animation: bob 5s ease-in-out infinite 2s;
    max-width: 100%;
}

/* ==================== SECTION HEADERS ==================== */
.section-head {
    max-width: 760px;
    margin-bottom: 2.4rem;
    width: 100%;
}

.section-head h2 {
    line-height: 1.22;
    font-size: clamp(1.75rem, 3.2vw, 2.65rem);
    text-wrap: balance;
    font-weight: 800;
    width: 100%;
}

.section-head .eyebrow {
    margin-bottom: 0.85rem;
    width: fit-content;
}

/* ==================== FEATURE GRID ==================== */
.feature-grid,
.workflow .steps,
.use-cases .case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Glass cards base */
.feature-card,
.step,
.case-card,
.faq-item,
.cta {
    border: 1px solid rgba(215, 225, 219, 0.6);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.feature-card,
.step,
.case-card,
.faq-item {
    background: var(--glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.feature-card,
.step,
.case-card {
    padding: 1.4rem;
    width: 100%;
}

.feature-card {
    transition: all 0.35s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #3a9b88, var(--secondary));
    opacity: 0;
    transition: opacity 0.35s var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(29, 107, 93, 0.2);
    background: rgba(255, 255, 255, 0.8);
}

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

.icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #2a7f6f 50%, #35927f 100%);
    box-shadow: 0 8px 22px rgba(29, 107, 93, 0.28);
    transition: all 0.3s var(--transition-smooth);
    flex-shrink: 0;
}

.feature-card:hover .icon-wrap {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 10px 26px rgba(29, 107, 93, 0.35);
}

.feature-card h3,
.step h3,
.case-card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.16rem;
    font-weight: 800;
    width: 100%;
}

.feature-card p,
.step p,
.case-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    width: 100%;
}

/* ==================== WORKFLOW STEPS ==================== */
.step {
    position: relative;
    overflow: hidden;
    transition: all 0.35s var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.step::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgba(29, 107, 93, 0.04), transparent 55%);
    pointer-events: none;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(29, 107, 93, 0.2);
}

.step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--secondary-soft), rgba(244, 232, 207, 0.5));
    color: var(--secondary);
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: 0.7rem;
    letter-spacing: 0.4px;
    border: 1px solid rgba(184, 134, 47, 0.15);
    flex-shrink: 0;
}

/* ==================== USE CASES ==================== */
.case-card {
    transition: all 0.35s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.case-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), #d4a84a);
    opacity: 0;
    transition: opacity 0.35s var(--transition-smooth);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(184, 134, 47, 0.2);
}

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

.case-card h3 {
    color: var(--primary-strong);
}

/* ==================== FAQ ==================== */
.faq-list {
    display: grid;
    gap: 0.85rem;
    max-width: 820px;
    width: 100%;
    box-sizing: border-box;
}

.faq-item {
    overflow: hidden;
    transition: all 0.3s var(--transition-smooth);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.faq-item:hover {
    border-color: rgba(29, 107, 93, 0.2);
}

.faq-item.open {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-md);
    border-color: rgba(29, 107, 93, 0.2);
}

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: right;
    font: inherit;
    font-weight: 700;
    font-size: 1.02rem;
    cursor: pointer;
    padding: 1.1rem 1.2rem;
    transition: background 0.2s var(--transition-smooth);
    box-sizing: border-box;
}

.faq-question:hover {
    background: rgba(29, 107, 93, 0.04);
}

.faq-question i {
    color: var(--primary);
    font-size: 0.9rem;
    transition: transform 0.35s var(--transition-smooth);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-soft);
    box-sizing: border-box;
}

.faq-item.open .faq-question i {
    transform: rotate(45deg);
    background: var(--primary);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.2rem;
    transition: max-height 0.4s var(--transition-smooth);
    box-sizing: border-box;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.8;
    width: 100%;
}

.faq-item.open .faq-answer {
    max-height: 220px;
    padding-bottom: 1.1rem;
}

/* ==================== CTA SECTION ==================== */
.cta {
    text-align: center;
    padding: 3.5rem 1.4rem;
    background: linear-gradient(130deg, var(--primary-strong) 0%, #1e6b5d 40%, #236b5e 70%, #2a7d6d 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease-in-out infinite alternate;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.cta::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    animation: cta-glow 6s ease-in-out infinite alternate;
    pointer-events: none;
}

.cta h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 900;
    position: relative;
    width: 100%;
}

.cta p {
    max-width: 60ch;
    margin: 0.8rem auto 1.6rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.8;
    position: relative;
    width: 100%;
}

.btn-large {
    background: #ffffff;
    color: var(--primary-strong);
    border-color: #ffffff;
    box-shadow: 0 12px 32px rgba(6, 24, 18, 0.28);
    font-size: 1.05rem;
    padding: 0.88rem 1.8rem;
    position: relative;
    box-sizing: border-box;
}

.btn-large:hover {
    box-shadow: 0 16px 40px rgba(6, 24, 18, 0.35);
    background: #fff;
}

/* ==================== FOOTER ==================== */
.footer {
    margin-top: 1rem;
    border-top: none;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--container), 100%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.8rem 1.2rem 2.2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    width: 100%;
    box-sizing: border-box;
}

.footer-brand {
    color: var(--text);
    font-weight: 900;
    font-size: 1.08rem;
    width: 100%;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.footer-links a {
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    font-size: 0.92rem;
    transition: all 0.25s var(--transition-smooth);
    box-sizing: border-box;
}

.footer-links a:hover {
    color: var(--primary-strong);
    background: rgba(29, 107, 93, 0.08);
}

.footer p {
    font-size: 0.88rem;
    width: 100%;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(29, 107, 93, 0.06);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.25s var(--transition-smooth);
    box-sizing: border-box;
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 107, 93, 0.2);
}

/* ==================== REVEAL ANIMATIONS ==================== */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
    width: 100%;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.12s;
}

.delay-2 {
    transition-delay: 0.24s;
}

.delay-3 {
    transition-delay: 0.36s;
}

.delay-4 {
    transition-delay: 0.48s;
}

/* ==================== FOCUS STYLES ==================== */
:where(a, button, .btn, .faq-question):focus-visible {
    outline: 3px solid rgba(29, 107, 93, 0.35);
    outline-offset: 3px;
}

/* ==================== KEYFRAME ANIMATIONS ==================== */
@keyframes drift-a {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 50px) scale(1.05);
    }
}

@keyframes drift-b {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-32px, -45px) scale(1.08);
    }
}

@keyframes drift-c {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        transform: translate(calc(-50% + 30px), calc(-50% - 30px)) scale(1.1);
    }
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-device {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

@keyframes cta-glow {
    0% {
        transform: translate(-10%, -10%) scale(1);
    }

    100% {
        transform: translate(10%, 10%) scale(1.2);
    }
}

/* ==================== RESPONSIVE: LARGE TABLETS ==================== */
@media (max-width: 1200px) {

    .feature-grid,
    .workflow .steps,
    .use-cases .case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .note-a,
    .note-b {
        position: static;
        margin-top: 0.75rem;
        width: fit-content;
    }
}

/* ==================== RESPONSIVE: TABLETS ==================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 2.4rem;
    }

    .hero-content {
        max-width: 760px;
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 4vw, 2.8rem);
    }

    .hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-visual {
        max-width: 420px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ==================== RESPONSIVE: MOBILE ==================== */
@media (max-width: 760px) {

    /* Kill all orb animations & switch to absolute to prevent scroll jitter */
    .bg-orb {
        position: absolute;
        animation: none !important;
        filter: blur(60px);
        opacity: 0.2;
    }

    .orb-1 {
        width: 200px;
        height: 200px;
        top: -40px;
        left: -40px;
    }

    .orb-2 {
        width: 180px;
        height: 180px;
        bottom: -40px;
        right: -40px;
    }

    .orb-3 {
        display: none;
    }

    /* Kill floating animations on mobile */
    .floating-note {
        animation: none !important;
        display: none;
    }

    /* Remove hover transforms on touch (prevents jank) */
    .feature-card:hover,
    .step:hover,
    .case-card:hover,
    .mock-item:hover,
    .hero-metrics article:hover {
        transform: none;
    }

    /* Reduce backdrop-filter usage for performance */
    .feature-card,
    .step,
    .case-card,
    .faq-item {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.88);
    }

    .navbar {
        align-items: center;
        flex-wrap: wrap;
        padding: 0.9rem 1rem;
        border-bottom: 1px solid rgba(199, 213, 205, 0.5);
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .lang-toggle {
        margin-inline-start: auto;
    }

    .nav-links {
        width: 100%;
        margin-inline-start: 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease,
            opacity 0.25s ease,
            margin-top 0.25s ease;
    }

    .navbar.open .nav-links {
        max-height: 400px;
        opacity: 1;
        margin-top: 0.8rem;
        padding-top: 0.4rem;
    }

    .nav-links a {
        border: 1px solid rgba(215, 225, 219, 0.6);
        background: rgba(255, 255, 255, 0.92);
        border-radius: var(--radius-sm);
        padding: 0.8rem 1rem;
        font-size: 0.96rem;
    }

    .nav-links .btn-primary {
        color: #ffffff;
        border-color: transparent;
        background: linear-gradient(140deg, var(--primary) 0%, #2a7d6d 100%);
        box-shadow: 0 12px 24px rgba(29, 107, 93, 0.28);
    }

    .nav-links .btn-primary:hover {
        background: linear-gradient(140deg, var(--primary-strong) 0%, #1f6c5d 100%);
    }

    .nav-links .btn {
        margin-inline-start: 0;
        width: 100%;
    }

    /* Hero section - ensure proper stacking on mobile */
    .hero {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

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

    .feature-grid,
    .workflow .steps,
    .use-cases .case-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        max-width: 320px;
        animation: none;
        margin: 0 auto;
    }

    .device {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.9);
    }

    .section-head {
        margin-bottom: 1.8rem;
        text-align: center;
    }

    .cta {
        padding: 2.8rem 1.2rem;
        animation: none;
        background-size: 100% 100%;
    }

    .cta::before {
        display: none;
    }

    /* Footer - ensure proper stacking on mobile */
    .footer-inner {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* RTL-specific fixes for mobile */
    html[dir="rtl"] .hero {
        direction: rtl;
    }

    html[dir="rtl"] .hero-content {
        text-align: center;
    }

    html[dir="rtl"] .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    html[dir="rtl"] .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    html[dir="rtl"] .feature-grid,
    html[dir="rtl"] .workflow .steps,
    html[dir="rtl"] .use-cases .case-grid {
        direction: rtl;
    }

    html[dir="rtl"] .section-head {
        text-align: center;
    }

    html[dir="rtl"] .footer-inner {
        direction: rtl;
    }

    html[dir="rtl"] .footer-links {
        flex-direction: column;
        align-items: center;
    }

    html[dir="rtl"] .footer-social {
        flex-direction: row;
    }

    /* FAQ section mobile fixes */
    .faq-list {
        gap: 0.75rem;
    }

    .faq-question {
        text-align: right;
    }

    html[dir="rtl"] .faq-question {
        text-align: right;
    }

    /* Ensure proper width on mobile */
    .section {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Fix navbar width on mobile */
    .navbar {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
    }

    /* Fix hero visual positioning */
    .hero-visual {
        width: 100%;
        order: 2;
    }

    .hero-content {
        order: 1;
    }

    /* Fix device mockup on mobile */
    .device {
        width: 100%;
    }

    /* Fix floating notes positioning */
    .note-a,
    .note-b {
        position: static;
        margin: 0.5rem auto;
        display: none;
    }
}

/* ==================== RESPONSIVE: SMALL PHONES ==================== */
@media (max-width: 480px) {
    .section {
        padding-inline: 0.9rem;
        width: 100%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 1.7rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.98rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn,
    .cta .btn {
        width: 100%;
        max-width: 280px;
    }

    .faq-question {
        font-size: 0.94rem;
        padding: 0.95rem 1rem;
    }

    .feature-card,
    .step,
    .case-card {
        padding: 1.2rem;
    }

    .cta h2 {
        font-size: 1.4rem;
    }

    .cta p {
        font-size: 0.96rem;
    }

    .btn-large {
        font-size: 0.98rem;
        padding: 0.8rem 1.4rem;
    }

    .hero-metrics article {
        padding: 0.8rem;
    }

    /* RTL-specific fixes for small phones */
    html[dir="rtl"] .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    html[dir="rtl"] .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    html[dir="rtl"] .faq-question {
        text-align: right;
    }

    /* Ensure proper stacking on small phones */
    .hero {
        grid-template-columns: 1fr !important;
    }

    .feature-grid,
    .workflow .steps,
    .use-cases .case-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-metrics {
        grid-template-columns: 1fr !important;
    }

    /* Fix navbar on small phones */
    .navbar {
        padding: 0.8rem 0.9rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    /* Fix footer on small phones */
    .footer-inner {
        padding: 1.5rem 0.9rem 2rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}