@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poly:ital@0;1&display=swap");

:root {
    --primary-text-color: #000;
    --bg-color: #ffffff;

    --btn-color: #fdfdfd;
    --btn-bg: #000;

    --header-link-hover: #000000;
    --header-link-hover-bg: #bababa36;

    --input-hover-bd-color: #232323;
    --faq-h-text: #0e0e0e;
    --faq-content-text: #1e1e1e;
    --hr-color: #e5e7eb;
    --footer-link: #282828;
    --footer-link-hover: #000;
    --header-bg: #efefefcf;
    --hero-gradient: #fcfcfc;
    --hero-bg-img: url("../assets/images/background/dots-dark.svg");

    --surface-primary: #f6f7fb;
    --surface-secondary: #eef2f6;
    --surface-border: #d7dde5;
    --accent: #0f766e;
    --accent-soft: rgba(15, 118, 110, 0.12);
    --accent-glow: rgba(56, 189, 248, 0.55);
    --chip-bg: rgba(255, 255, 255, 0.65);
}

.tw-dark {
    --primary-text-color: #fff;
    --bg-color: #000000;

    --btn-color: #000000;
    --btn-bg: #ffffff;

    --header-link-hover: #ffffff;
    --header-link-hover-bg: #8a8a8a5e;

    --input-hover-bd-color: #f8f8f8;
    --faq-h-text: #efefef;
    --faq-content-text: #d4d4d4;
    --hr-color: #e1e1e195;
    --footer-link: #cfcfcf;
    --footer-link-hover: #ffffff;
    --header-bg: #111418cf;
    --hero-gradient: #000;
    --hero-bg-img: url("../assets/images/background/dots.svg");

    --surface-primary: #14171b;
    --surface-secondary: #0e1114;
    --surface-border: #22272d;
    --accent: #67e8f9;
    --accent-soft: rgba(103, 232, 249, 0.08);
    --accent-glow: rgba(34, 211, 238, 0.48);
    --chip-bg: rgba(15, 23, 42, 0.6);
}

html {
    scroll-behavior: smooth;
    font-family: "Ubuntu", sans-serif;
}

body.modal-open {
    overflow: hidden;
}

header > .collapsible-header {
    display: flex;
    gap: 1rem;
    width: 100%;
    background-color: inherit;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    transition: width 0.3s ease, height 0.3s ease;
}

.brand-lockup {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.55rem;
    min-width: fit-content;
    margin-right: 0.75rem;
}

.brand-lockup-compact {
    margin-right: 0;
}

.brand-mark {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.brand-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1;
}

.brand-name {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-badge {
    padding: 3px 5px;
    border-radius: 6px;
    background: #111111;
    color: #ffffff;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: lowercase;
}

.tw-dark .brand-badge {
    background: #ffffff;
    color: #111111;
}

.header-actions {
    flex-shrink: 0;
}

hr {
    border-color: var(--hr-color);
    border-style: solid;
}

.animated-collapse {
    transition: width 0.3s ease;
}

.header-links {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: fit-content;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.5s, color 0.3s;
}

.header-links::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-color: var(--header-link-hover-bg);
    transform: scale(40%);
    opacity: 0;
    transition: all 300ms;
}

.header-links:hover {
    color: var(--header-link-hover);
}

.header-links:hover::after {
    transform: scale(100%);
    opacity: 1;
}

.lang-switch {
    display: inline-flex;
    gap: 0.15rem;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
}

.lang-btn {
    min-width: 36px;
    height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #4b5563;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.25s, color 0.25s, transform 0.25s;
}

.tw-dark .lang-switch {
    background: rgba(15, 23, 42, 0.54);
}

.tw-dark .lang-btn {
    color: #cbd5e1;
}

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

.lang-btn.is-active {
    background: var(--btn-bg);
    color: var(--btn-color);
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.05);
}

.hero-section {
    background-image: var(--hero-bg-img);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-copy {
    width: 100%;
    max-width: 1120px;
}

.hero-title {
    font-size: clamp(3.8rem, 8vw, 6.1rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.hero-dashboard-shell {
    margin-top: -18px;
}

.hero-bg-gradient {
    background: linear-gradient(180deg, var(--hero-gradient) 23%, rgba(0, 0, 0, 0) 87%, var(--hero-gradient) 97%);
}

.purple-bg-grad {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.45) 8%, rgba(15, 118, 110, 0.42) 40%, rgba(56, 189, 248, 0.38) 89%);
    filter: blur(52px);
    opacity: 0.7;
}

#dashboard {
    transform: perspective(1200px) translateX(0px) translateY(8px) scale(0.9) rotate(0deg) rotateX(58deg);
}

.btn {
    display: flex;
    width: max-content;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 10px;
    background-color: var(--btn-bg);
    color: var(--btn-color);
    cursor: pointer;
}

.btn:disabled {
    cursor: default;
}

.eyebrow-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 14px;
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    background: var(--chip-bg);
    color: var(--primary-text-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.blueprint-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.44);
    transition: transform 0.25s, border-color 0.25s;
}

.tw-dark .blueprint-sidebar-item {
    background: rgba(255, 255, 255, 0.03);
}

.blueprint-sidebar-item:hover {
    border-color: var(--surface-border);
    transform: translateX(4px);
}

.blueprint-note {
    padding: 16px;
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.54);
    color: #4b5563;
    line-height: 1.6;
}

.tw-dark .blueprint-note {
    background: rgba(255, 255, 255, 0.03);
    color: #d1d5db;
}

.blueprint-step {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px;
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 247, 251, 0.96) 100%);
}

.tw-dark .blueprint-step {
    background: linear-gradient(180deg, rgba(20, 23, 27, 0.92) 0%, rgba(12, 14, 18, 0.96) 100%);
}

.service-card,
.service-card-wide,
.use-case-card,
.about-card,
.approach-card {
    border: 1px solid var(--surface-border);
    background: var(--surface-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover,
.service-card-wide:hover,
.use-case-card:hover,
.about-card:hover,
.approach-card:hover {
    border-color: rgba(103, 232, 249, 0.45);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    transform: translateY(-4px);
}

.tw-dark .service-card:hover,
.tw-dark .service-card-wide:hover,
.tw-dark .use-case-card:hover,
.tw-dark .about-card:hover,
.tw-dark .approach-card:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.service-card {
    background: var(--surface-primary);
}

.service-card-wide {
    border: 1px solid var(--surface-border);
    background: linear-gradient(135deg, var(--surface-primary) 0%, rgba(15, 118, 110, 0.06) 100%);
}

.service-visual-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.95) 0%, rgba(226, 232, 240, 0.55) 100%);
}

.tw-dark .service-visual-frame {
    background: linear-gradient(180deg, rgba(16, 21, 27, 0.92) 0%, rgba(12, 16, 21, 0.75) 100%);
}

.service-visual-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.service-workflow-visual {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    height: 100%;
    min-height: 250px;
    align-items: stretch;
}

.workflow-node {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
}

.tw-dark .workflow-node {
    border-color: rgba(71, 85, 105, 0.46);
    background: rgba(15, 23, 42, 0.52);
}

.workflow-node::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -8px;
    width: 16px;
    height: 2px;
    background: rgba(100, 116, 139, 0.45);
    transform: translateY(-50%);
}

.workflow-node:last-child::after {
    display: none;
}

.workflow-node-index {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.workflow-node-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.workflow-node-line {
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
}

.workflow-node-line.short {
    width: 58%;
}

.workflow-node-line.mid {
    width: 76%;
}

.workflow-node-line.full {
    width: 100%;
}

.approach-card {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    padding: 32px;
    border-radius: 24px;
}

.use-case-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    height: 100%;
    padding: 1rem;
    border-radius: 18px;
}

.about-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 24px;
    border-radius: 18px;
}

.contact-stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    text-align: center;
}

.contact-stat-label {
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.contact-stat-value {
    color: inherit;
    font-size: 1.05rem;
    font-weight: 600;
}

.sector-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 180px;
    padding: 10px 18px;
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    background: var(--surface-primary);
    color: var(--primary-text-color);
    text-align: center;
    white-space: nowrap;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    max-width: 1100px;
    white-space: nowrap;
}

.carousel {
    display: inline-flex;
    animation: scroll 18s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animated-border {
    position: relative;
    overflow: visible;
}

.animated-border::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    z-index: -2;
    width: 30%;
    height: 100%;
    border-radius: inherit;
    background-color: var(--accent-glow);
    box-shadow: inset 0 0 20px 5px var(--accent-glow);
    filter: blur(1.5rem);
    opacity: 0.8;
    pointer-events: none;
    animation: slide 10s ease-in-out infinite;
}

.animated-border::before {
    filter: blur(1.5rem);
    opacity: 0.3;
    will-change: transform;
}

@keyframes slide {
    0% {
        left: -100%;
        right: 100%;
    }

    100% {
        left: 100%;
        right: -100%;
    }
}

.footer-link {
    width: fit-content;
    color: var(--footer-link);
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--footer-link-hover);
}

.faq-accordion {
    width: 100%;
    padding: 15px 18px;
    border: none;
    outline: none;
    background-color: inherit;
    color: var(--faq-h-text);
    text-align: left;
    cursor: pointer;
    transition: height 0.4s;
}

.faq .content {
    height: max-content;
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    background-color: transparent;
    color: var(--faq-content-text);
    text-align: justify;
    transition: max-height 0.4s, padding 0.4s;
}

@media not all and (min-width: 1024px) {
    header .collapsible-header {
        position: fixed;
        top: 60px;
        left: 0;
        flex-direction: column;
        justify-content: space-between;
        width: 100vw;
        height: 0vh;
        min-height: 0vh;
        padding: 5px;
        padding-top: 5%;
        padding-bottom: 5%;
        overflow-y: auto;
        text-align: center;
        opacity: 0;
        background-color: var(--header-bg);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 3px 2px rgba(159, 159, 159, 0.49);
        place-items: center;
    }

    .brand-lockup {
        margin-right: 0;
    }

    .hero-title {
        font-size: clamp(3rem, 10vw, 4.4rem);
        line-height: 1;
        letter-spacing: -0.04em;
    }

    .hero-dashboard-shell {
        margin-top: 0;
    }

    .service-workflow-visual {
        grid-template-columns: 1fr;
    }

    .workflow-node::after {
        top: auto;
        right: 50%;
        bottom: -8px;
        width: 2px;
        height: 16px;
        transform: translateX(50%);
    }

    .approach-card {
        flex-direction: column;
        padding: 24px;
    }

    .sector-pill {
        min-width: 150px;
    }
}
