:root {
    --ink: #071210;
    --ink-soft: #0d1c18;
    --field: #143029;
    --cyan: #00d4c8;
    --cyan-bright: #2ef0e4;
    --cyan-dim: rgba(0, 212, 200, 0.14);
    --mist: #e6f0ec;
    --paper: #f4f8f6;
    --white: #ffffff;
    --text: #1a2e28;
    --muted: #5c726a;
    --line: rgba(20, 48, 41, 0.12);
    --radius: 4px;
    --radius-lg: 12px;
    --shadow: 0 18px 50px rgba(7, 18, 16, 0.12);
    --font-display: "Syne", sans-serif;
    --font-body: "Outfit", sans-serif;
    --header-h: 76px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--paper);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: min(1140px, calc(100% - 3rem));
    margin: 0 auto;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--mist);
}

::-webkit-scrollbar-thumb {
    background: var(--field);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

/* Header */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    background: rgba(7, 18, 16, 0.72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 212, 200, 0.12);
    transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.header.is-scrolled {
    background: rgba(7, 18, 16, 0.94);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.navbar {
    height: var(--header-h);
}

.nav-container {
    width: min(1140px, calc(100% - 3rem));
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.35s var(--ease);
}

.nav-logo:hover .nav-logo-img {
    transform: translateY(-1px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius);
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-menu a:hover {
    color: var(--cyan-bright);
}

.nav-menu .nav-cta {
    margin-left: 0.5rem;
    background: var(--cyan);
    color: var(--ink);
    font-weight: 600;
}

.nav-menu .nav-cta:hover {
    background: var(--cyan-bright);
    color: var(--ink);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: #fff;
    transition: 0.3s var(--ease);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero — full-bleed, brand first */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-h) + 4rem) 0 5.5rem;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(7, 18, 16, 0.92) 0%, rgba(7, 18, 16, 0.78) 42%, rgba(20, 48, 41, 0.55) 100%),
        linear-gradient(to top, rgba(7, 18, 16, 0.85) 0%, transparent 45%);
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 200, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 200, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 30% 70%, black 20%, transparent 70%);
    animation: gridDrift 24s linear infinite;
}

@keyframes heroZoom {
    from { transform: scale(1.04); }
    to { transform: scale(1.1); }
}

@keyframes gridDrift {
    from { background-position: 0 0; }
    to { background-position: 64px 64px; }
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1140px, calc(100% - 3rem));
    margin: 0 auto;
    max-width: 720px;
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: var(--cyan-bright);
    margin-bottom: 1.25rem;
    animation: riseIn 0.9s var(--ease) both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #fff;
    animation: riseIn 0.9s var(--ease) 0.12s both;
}

.hero-lead {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 34rem;
    margin-bottom: 2rem;
    animation: riseIn 0.9s var(--ease) 0.22s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    animation: riseIn 0.9s var(--ease) 0.32s both;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-scroll {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 24px;
    height: 38px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero-scroll span {
    width: 4px;
    height: 8px;
    background: var(--cyan);
    border-radius: 2px;
    animation: scrollPulse 1.6s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(8px); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: transform 0.3s var(--ease), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: var(--cyan);
    color: var(--ink);
}

.btn-primary:hover {
    background: var(--cyan-bright);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 212, 200, 0.28);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan-bright);
    transform: translateY(-2px);
}

/* Sections */
.section-header {
    max-width: 560px;
    margin-bottom: 3.5rem;
}

.section-header.light {
    color: #fff;
}

.section-header.light p:not(.section-label) {
    color: rgba(255, 255, 255, 0.68);
}

.section-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 0.85rem;
}

.section-header.light h2 {
    color: #fff;
}

.section-header p {
    color: var(--muted);
    font-size: 1.05rem;
}

/* Products — editorial rows, not card grids */
.products {
    padding: 6.5rem 0;
    background:
        radial-gradient(ellipse at top right, rgba(0, 212, 200, 0.08), transparent 45%),
        var(--paper);
}

.product-row {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
    padding: 3.25rem 0;
    border-top: 1px solid var(--line);
}

.product-row:last-child {
    border-bottom: 1px solid var(--line);
}

.product-row.reverse {
    direction: rtl;
}

.product-row.reverse > * {
    direction: ltr;
}

.product-media {
    position: relative;
}

.product-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.product-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.gallery-img {
    width: 72px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1.5px solid transparent;
    flex-shrink: 0;
    transition: border-color 0.25s ease, transform 0.25s ease;
    opacity: 0.85;
}

.gallery-img:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
    opacity: 1;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.product-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--field);
    background: var(--mist);
    padding: 0.3rem 0.55rem;
    border-radius: var(--radius);
}

.status-badge {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #0f5c42;
    background: #d8f3e7;
    padding: 0.3rem 0.55rem;
    border-radius: var(--radius);
}

.status-badge.adaptable {
    color: #0a5c58;
    background: #d4f5f2;
}

.product-copy h3 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.product-copy > p {
    color: var(--muted);
    margin-bottom: 1.25rem;
    font-size: 1.02rem;
}

.feature-list {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.15rem;
    color: var(--text);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 1px;
}

.product-details {
    border-top: 1px solid var(--line);
    padding-top: 0.85rem;
}

.product-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--field);
    font-size: 0.92rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.product-details summary::-webkit-details-marker {
    display: none;
}

.product-details summary::after {
    content: "+";
    font-size: 1.1rem;
    color: var(--cyan);
}

.product-details[open] summary::after {
    content: "−";
}

.product-details ul {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.55rem;
}

.product-details li {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.product-details strong {
    color: var(--text);
}

/* Client zone */
.client-zone {
    padding: 6.5rem 0;
    background:
        linear-gradient(160deg, var(--ink) 0%, var(--field) 55%, #1a4a3c 100%);
    position: relative;
    overflow: hidden;
}

.client-zone::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(0, 212, 200, 0.18), transparent 35%),
        linear-gradient(rgba(0, 212, 200, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 200, 0.04) 1px, transparent 1px);
    background-size: auto, 48px 48px, 48px 48px;
    pointer-events: none;
}

.client-zone .container {
    position: relative;
    z-index: 1;
}

.client-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.client-app {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 212, 200, 0.18);
    border-radius: var(--radius-lg);
    color: #fff;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.client-app:hover {
    background: rgba(0, 212, 200, 0.1);
    border-color: rgba(0, 212, 200, 0.45);
    transform: translateY(-4px);
}

.app-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.app-top i {
    font-size: 1.35rem;
    color: var(--cyan);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
}

.status-dot.online {
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}

.client-app h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.client-app p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
    flex: 1;
}

.app-link {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--cyan-bright);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.client-app:hover .app-link i {
    transform: translateX(3px);
}

.app-link i {
    transition: transform 0.25s ease;
    font-size: 0.75rem;
}

/* Services */
.services {
    padding: 6.5rem 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.service-item {
    padding: 1.75rem 1.5rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s ease;
}

.service-item:hover {
    background: var(--mist);
}

.service-item i {
    color: var(--cyan);
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
    display: block;
}

.service-item h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--ink);
}

.service-item p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Technologies */
.technologies {
    padding: 5.5rem 0;
    background:
        linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%);
}

.tech-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tech-strip li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color 0.3s ease, transform 0.3s var(--ease);
}

.tech-strip li:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
}

.tech-strip i {
    font-size: 1.35rem;
    color: var(--field);
    width: 1.5rem;
    text-align: center;
}

.tech-strip span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

/* Contact */
.contact {
    padding: 6.5rem 0;
    background: var(--paper);
}

.contact-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: start;
    padding: 3rem;
    background:
        linear-gradient(145deg, var(--ink-soft), var(--field));
    border-radius: 16px;
    color: #fff;
    box-shadow: var(--shadow);
}

.contact-intro .section-label {
    color: var(--cyan-bright);
}

.contact-intro h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}

.contact-intro > p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.contact-channels {
    display: grid;
    gap: 1rem;
}

.channel {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: #fff;
}

.channel i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--cyan-dim);
    color: var(--cyan-bright);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.channel strong {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    margin-bottom: 0.1rem;
}

.channel span {
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(7, 18, 16, 0.45);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--ink);
    color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 200, 0.18);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.field-error {
    color: #fca5a5;
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.contact-form .btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-logo-img {
    height: 56px;
    width: auto;
    margin-bottom: 1rem;
    object-fit: contain;
}

.footer-brand p {
    max-width: 260px;
    font-size: 0.92rem;
    line-height: 1.55;
}

.footer-section h4 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-section li {
    margin-bottom: 0.45rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
    transition: color 0.25s ease;
}

.footer-section a:hover {
    color: var(--cyan-bright);
}

.social-links {
    display: flex;
    gap: 0.6rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    color: #fff;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.social-links a:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--ink);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Modal */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(7, 18, 16, 0.92);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: min(920px, 92vw);
    max-height: 90vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.modal-img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    background: #000;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    z-index: 2001;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.25rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.25s ease;
}

.close-modal:hover {
    color: var(--cyan);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .client-apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .product-row,
    .product-row.reverse {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        direction: ltr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }

    .container,
    .nav-container,
    .hero-inner {
        width: min(1140px, calc(100% - 2rem));
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem;
        background: rgba(7, 18, 16, 0.98);
        border-bottom: 1px solid rgba(0, 212, 200, 0.15);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s var(--ease), opacity 0.35s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu a {
        padding: 0.9rem 1rem;
        border-radius: var(--radius);
    }

    .nav-menu .nav-cta {
        margin: 0.5rem 0 0;
        text-align: center;
    }

    .nav-logo-img {
        height: 40px;
    }

    .hero {
        align-items: center;
        padding: calc(var(--header-h) + 2.5rem) 0 4.5rem;
    }

    .hero-brand {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .products,
    .services,
    .client-zone,
    .contact {
        padding: 4.5rem 0;
    }

    .contact-panel {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

@media (max-width: 480px) {
    .client-apps-grid,
    .tech-strip {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

/* Legal / Privacy policy */
.legal-page .header {
    background: rgba(7, 18, 16, 0.94);
}

.legal-banner {
    position: relative;
    padding: calc(var(--header-h) + 3.5rem) 0 3.25rem;
    color: #fff;
    overflow: hidden;
}

.legal-banner-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(0, 212, 200, 0.22), transparent 42%),
        radial-gradient(ellipse at 90% 80%, rgba(61, 139, 110, 0.2), transparent 40%),
        linear-gradient(145deg, var(--ink) 0%, var(--field) 55%, #1a4a3c 100%);
}

.legal-banner-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 200, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 200, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
    opacity: 0.7;
}

.legal-banner-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: color 0.25s ease;
}

.legal-back:hover {
    color: var(--cyan-bright);
}

.legal-banner .section-label {
    color: var(--cyan-bright);
}

.legal-banner h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.legal-banner-lead {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 38rem;
    margin-bottom: 1.75rem;
    line-height: 1.55;
}

.legal-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.legal-banner-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 212, 200, 0.2);
    border-radius: var(--radius);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
}

.legal-banner-meta i {
    color: var(--cyan);
    font-size: 0.78rem;
}

.legal {
    padding: 3rem 0 5rem;
    margin-top: -1.5rem;
    position: relative;
    z-index: 2;
    background: transparent;
}

.legal-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
    padding: 1.15rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(7, 18, 16, 0.06);
}

.legal-toc-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.85rem;
    padding: 0 0.4rem;
}

.legal-toc ol {
    list-style: none;
    display: grid;
    gap: 0.15rem;
}

.legal-toc a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.84rem;
    color: var(--muted);
    padding: 0.45rem 0.5rem;
    border-radius: var(--radius);
    transition: color 0.2s ease, background 0.2s ease;
}

.legal-toc a span {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(92, 114, 106, 0.55);
    font-variant-numeric: tabular-nums;
    min-width: 1.3rem;
}

.legal-toc a:hover,
.legal-toc a.is-active {
    color: var(--ink);
    background: var(--mist);
}

.legal-toc a.is-active span {
    color: var(--cyan);
}

.legal-toc-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
    padding: 0.65rem !important;
    background: var(--ink) !important;
    color: var(--cyan-bright) !important;
    font-size: 0.8rem !important;
    font-weight: 600;
    border-radius: var(--radius);
}

.legal-toc-cta:hover {
    background: var(--field) !important;
}

.legal-content {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: clamp(1.5rem, 3.5vw, 2.75rem);
    box-shadow: 0 16px 50px rgba(7, 18, 16, 0.07);
}

.legal-content section {
    margin-bottom: 2.75rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.legal-content section:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--ink);
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.sec-num {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 0.06em;
}

.legal-content h3 {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.legal-content p,
.legal-content li {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.legal-content p + p,
.legal-content p + ul,
.legal-content ul + p,
.legal-content p + .legal-apps,
.legal-content p + .legal-data-grid,
.legal-content p + .legal-perms,
.legal-content p + .legal-checklist,
.legal-content p + .legal-rights,
.legal-content p + .legal-contact-row {
    margin-top: 0.9rem;
}

.legal-content > section > ul {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.legal-content > section > ul > li {
    position: relative;
    padding-left: 1.1rem;
}

.legal-content > section > ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    background: var(--cyan);
    border-radius: 1px;
}

.legal-content a:not(.legal-contact-card):not(.legal-org-channels a) {
    color: var(--field);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:not(.legal-contact-card):hover {
    color: var(--cyan);
}

.legal-apps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.legal-app {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.legal-app:hover {
    border-color: rgba(0, 212, 200, 0.45);
    transform: translateY(-2px);
}

.legal-app i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--cyan);
    border-radius: var(--radius);
    flex-shrink: 0;
    font-size: 0.9rem;
}

.legal-app strong {
    display: block;
    color: var(--ink);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.legal-app span {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
}

.legal-org {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(145deg, var(--ink-soft), var(--field));
    border-radius: var(--radius-lg);
    color: #fff;
    margin: 1rem 0;
}

.legal-org-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.legal-org-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.legal-org-brand strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.legal-org-brand span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.legal-org-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.legal-org-channels a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 212, 200, 0.2);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none !important;
    font-size: 0.84rem;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.legal-org-channels a:hover {
    background: rgba(0, 212, 200, 0.12);
    border-color: rgba(0, 212, 200, 0.45);
}

.legal-org-channels i {
    color: var(--cyan);
}

.legal-callout {
    margin-top: 1rem !important;
    padding: 1rem 1.1rem;
    background: var(--mist);
    border-left: 3px solid var(--cyan);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text) !important;
}

.legal-callout.success {
    background: #e7f7f0;
    border-left-color: #34d399;
}

.legal-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-top: 1.15rem;
}

.legal-data-card {
    padding: 1.15rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.legal-data-card.highlight {
    background: linear-gradient(160deg, rgba(0, 212, 200, 0.08), var(--paper));
    border-color: rgba(0, 212, 200, 0.3);
}

.legal-data-card.muted {
    background: #f7f4f2;
    border-color: rgba(120, 90, 70, 0.12);
}

.legal-data-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.legal-data-head i {
    color: var(--cyan);
    font-size: 0.95rem;
}

.legal-data-card.muted .legal-data-head i {
    color: #a07858;
}

.legal-data-card ul {
    display: grid;
    gap: 0.4rem;
}

.legal-data-card li {
    position: relative;
    padding-left: 0.95rem;
    font-size: 0.88rem !important;
    line-height: 1.45;
}

.legal-data-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    background: var(--cyan);
    border-radius: 1px;
}

.legal-perms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.15rem 0;
}

.legal-perm {
    display: flex;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.legal-perm i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: var(--mist);
    color: var(--field);
    border-radius: var(--radius);
    flex-shrink: 0;
    font-size: 0.85rem;
}

.legal-perm strong {
    display: block;
    color: var(--ink);
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
}

.legal-perm p {
    font-size: 0.84rem !important;
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.legal-perm em {
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 0.02em;
}

.legal-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9rem !important;
    color: var(--muted) !important;
    margin-top: 0.5rem !important;
}

.legal-hint i {
    color: var(--cyan);
    margin-top: 0.2rem;
}

.legal-checklist {
    display: grid !important;
    gap: 0.55rem !important;
    margin: 1rem 0 !important;
}

.legal-checklist li {
    position: relative;
    padding: 0.7rem 0.85rem 0.7rem 2.3rem !important;
    background: var(--paper);
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.legal-checklist li::before {
    content: "✓" !important;
    position: absolute;
    left: 0.75rem;
    top: 0.7rem;
    width: auto !important;
    height: auto !important;
    background: none !important;
    color: var(--cyan);
    font-weight: 700;
    font-size: 0.85rem;
}

.legal-security {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    margin: 1rem 0 1.25rem;
}

.legal-security div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    text-align: center;
    padding: 1rem 0.65rem;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-lg);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.3;
}

.legal-security i {
    color: var(--cyan);
    font-size: 1.1rem;
}

.legal-rights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.15rem;
}

.legal-rights span {
    padding: 0.45rem 0.8rem;
    background: var(--mist);
    color: var(--field);
    border-radius: var(--radius);
    font-size: 0.84rem;
    font-weight: 600;
}

.legal-contact-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.legal-contact-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.15rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-decoration: none !important;
    transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.legal-contact-card:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
}

.legal-contact-card i {
    color: var(--cyan);
    margin-bottom: 0.35rem;
}

.legal-contact-card strong {
    color: var(--ink);
    font-size: 0.82rem;
}

.legal-contact-card span {
    color: var(--muted);
    font-size: 0.88rem;
    word-break: break-all;
}

.legal-note {
    display: flex;
    gap: 1.15rem;
    margin-top: 0.5rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, var(--ink), var(--field));
    color: rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.legal-note-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: rgba(0, 212, 200, 0.14);
    color: var(--cyan-bright);
    border-radius: var(--radius);
    flex-shrink: 0;
    font-size: 1.15rem;
}

.legal-note-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.65rem;
    font-size: 1.05rem;
}

.legal-note code {
    display: block;
    margin: 0.35rem 0 0.75rem;
    padding: 0.65rem 0.85rem;
    background: rgba(0, 212, 200, 0.1);
    color: var(--cyan-bright);
    border: 1px solid rgba(0, 212, 200, 0.22);
    border-radius: var(--radius);
    font-size: 0.9rem;
    word-break: break-all;
}

.legal-note p {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.9rem !important;
}

.legal-copy-btn {
    margin-top: 1rem;
    width: auto;
}

.footer-bottom a {
    color: var(--cyan-bright);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .legal-toc {
        position: static;
    }

    .legal-toc ol {
        grid-template-columns: repeat(2, 1fr);
    }

    .legal-security {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .legal-apps,
    .legal-data-grid,
    .legal-perms,
    .legal-contact-row {
        grid-template-columns: 1fr;
    }

    .legal-banner {
        padding: calc(var(--header-h) + 2.5rem) 0 2.5rem;
    }

    .legal-note {
        flex-direction: column;
        gap: 0.85rem;
    }
}

@media (max-width: 560px) {
    .legal-toc ol {
        grid-template-columns: 1fr;
    }

    .legal-banner-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Account deletion page */
.deletion-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}

.deletion-main {
    display: grid;
    gap: 1rem;
}

.deletion-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 12px 40px rgba(7, 18, 16, 0.05);
}

.deletion-card h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.deletion-steps {
    list-style: none;
    display: grid;
    gap: 0.85rem;
    counter-reset: delstep;
    margin-bottom: 1rem;
}

.deletion-steps li {
    counter-increment: delstep;
    position: relative;
    padding: 1rem 1rem 1rem 3.4rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.deletion-steps li::before {
    content: counter(delstep, decimal-leading-zero);
    position: absolute;
    left: 0.85rem;
    top: 1rem;
    width: 1.85rem;
    height: 1.85rem;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--cyan);
    border-radius: var(--radius);
    font-size: 0.72rem;
    font-weight: 700;
}

.deletion-steps strong {
    display: block;
    color: var(--ink);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.deletion-steps span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.deletion-keep {
    display: grid;
    gap: 0.75rem;
}

.deletion-keep li {
    padding: 0.95rem 1rem;
    background: #f7f4f2;
    border: 1px solid rgba(120, 90, 70, 0.12);
    border-radius: var(--radius-lg);
}

.deletion-keep strong {
    display: block;
    color: var(--ink);
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
}

.deletion-keep span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.deletion-side {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
}

.deletion-form {
    background: linear-gradient(160deg, var(--ink-soft), var(--field));
    color: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 18px 50px rgba(7, 18, 16, 0.18);
}

.deletion-form h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.deletion-form-lead {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.deletion-form .form-group label {
    color: rgba(255, 255, 255, 0.7);
}

.deletion-form .form-group input,
.deletion-form .form-group select,
.deletion-form .form-group textarea {
    background: rgba(7, 18, 16, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: var(--radius);
    width: 100%;
    padding: 0.8rem 0.95rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.deletion-form .form-group input::placeholder,
.deletion-form .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.deletion-form .form-group select option {
    background: var(--ink);
    color: #fff;
}

.deletion-form .form-group input:focus,
.deletion-form .form-group select:focus,
.deletion-form .form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 200, 0.18);
}

.deletion-check label {
    display: flex !important;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.84rem !important;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.75) !important;
    cursor: pointer;
}

.deletion-check input[type="checkbox"] {
    width: auto !important;
    margin-top: 0.2rem;
    accent-color: var(--cyan);
}

.deletion-check a {
    color: var(--cyan-bright);
}

.deletion-form .btn {
    width: 100%;
    margin-top: 0.35rem;
}

.deletion-alt {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    line-height: 1.45;
}

.deletion-alt a {
    color: var(--cyan-bright);
}

.deletion-url-box {
    margin-top: 0;
}

@media (max-width: 980px) {
    .deletion-layout {
        grid-template-columns: 1fr;
    }

    .deletion-side {
        position: static;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
