@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;/* button color*/
    --btn-bg: #000;/* button bg color*/

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

    --input-hover-bd-color: #232323;
    
    --dropdown-bg: #f3f4f6;
    --dropdown-hover-bg: #dddddd84;

    --faq-h-text: #0e0e0e;
    --faq-content-text: #1e1e1e;

    --hr-color: #e5e7eb;

    --footer-link: #282828;
    --footer-link-hover: #000;

    --header-bg: #edececa5;
    /* color: #312f2f; */
    --hero-gradient: #fcfcfc;
    --hero-bg-img: url("../assets/images/background/dots-dark.svg");

}

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

    --btn-color: #000000;/* button color*/
    --btn-bg: #ffffff;/* button bg color*/

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

    --input-hover-bd-color: #f8f8f8;

    --dropdown-bg: #171717;
    --dropdown-hover-bg: #2d2d2ddb;

    --faq-h-text: #efefef;
    --faq-content-text: #d4d4d4;

    --hr-color: #e1e1e195;

    --footer-link: #cfcfcf;
    --footer-link-hover: #ffffff;

    --header-bg: #232323a5;

    --hero-gradient: #000;
    --hero-bg-img: url("../assets/images/background/dots.svg");

  }


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;
    place-content: center;
    overflow: hidden;
    transition: width 0.3s ease, height 0.3s ease;
}

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

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


.header-links {
    position: relative;
    display: flex;
    align-items: center;
    min-width: fit-content;
    padding: 8px 15px;
    z-index: 2; 
    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%;
    /* color: var(--header-link-hover); */
    background-color: var(--header-link-hover-bg);
    transform: scale(40%);
    opacity: 0;
    border-radius: 8px;
    transition: all 300ms;
}

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

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

.hero-section{
    background-image: var(--hero-bg-img);
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover;
}

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


.gradient-text{
    background: rgb(215,215,215);
    background: linear-gradient(90deg, rgba(215,215,215,1) 18%, rgba(136,136,136,1) 71%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.purple-bg-grad{
    background: rgb(126,34,206);
    background: linear-gradient(90deg, #7e22ce91 8%, #625aafae 31%, #7badbbbc 76%, #54d2d0ca 89%);
    filter: blur(50px);
    opacity: 0.5;
}

#dashboard {
    /* transform-origin: bottom center; */
    transform: perspective(1200px) translateX(0px) translateY(12px) scale(0.8)
        rotate(0deg) rotateX(70deg);
    transition: transform 0.5;
}

.opacity-0{
    opacity: 0 !important;
}

.opacity-100{
    opacity: 100 !important;
}

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

.btn:hover{

}

.btn:disabled{
    cursor: default;
}

.input{
    padding: 10px;
    background-color: transparent;
    border-radius: 5px;
    outline: none;
    min-width: 100px;
    border: 1px solid #979797;
    transition: border 0.3s;
}

.input:active, .input:focus, .input:focus-within{
    border: 1px solid var(--input-hover-bd-color) !important;
}

/* ------------------- scrollbar ------------- */
.scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 20px;
}

.scrollbar::-webkit-scrollbar-track {
    border-radius: 25px;
/* background: #f7f4ed; */
}

.scrollbar::-webkit-scrollbar-thumb {
    background: #d7d7d7;
    border-radius: 25px;
}


/* ---------------- dropdown --------------------- */
.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    outline: none;
    /* background-color: #000; */
    /* border: 1px solid #ccc; */
}

.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1;
    background-color: var(--dropdown-bg);
    /* border: 1px solid #c9c9c9; */
    list-style-type: none;
    padding: 0;
    width: 100%;
    left: 0px;
    /* top: 105%; */
    border-radius: 10px;
    overflow: hidden;
}

.dropdown-menu li {
    padding: 8px 12px;
    cursor: pointer;
}

.dropdown-menu li:hover {
    background-color: var(--dropdown-hover-bg);
}

/* -------------- carousel ------------------*/
.carousel-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    max-width: 800px;
}
  
.carousel {
    display: inline-block;
    animation: scroll 10s linear infinite;
}
  
.carousel-img {
    display: inline-block;
    margin: 0 20px;
}
  
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* ------ animated border ------- */

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


.animated-border::after{
    content: '';
    position: absolute;
    top: 0px; 
    left: -100%; 
    width: 30%;
    height: 100%;
    border-radius: inherit; 
    /* background: linear-gradient(#6366f1 23%, rgba(124,190,255,0) 87%); */
    background-color: #6366f1;
    background-repeat: no-repeat;
    /* background-size: 200% 200%; */
    background-position: 0% 0%;
    filter: blur(1.5rem);
    opacity: 0.8;
    box-shadow: inset 0px 0px 20px 5px #6366f1;
    /* transform: rotate(90deg); */
    z-index: -2;
    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%; /* Start completely outside the left edge */
        right: 100%; /* End completely outside the right edge */
    }
   
    100% {
        left: 100%; /* Move completely outside the right edge */
        right: -100%; /* End completely outside the left edge */
    }
}

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

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


/* Style for the collapsible content such as faq commonly known as: accordion */

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

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


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

    /* .header-links{
        color: var(--he);
    } */
    
}
/* ---------- site header additions (brand + language switch) ---------- */
.site-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 4px;
}
.site-brand span {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: inherit;
}
.lang-switch {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1;
}
.lang-switch button {
    padding: 5px 9px;
    line-height: 1;
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
    background: #000;
    color: #fff;
}
.lang-switch button[disabled] {
    color: #b4b4bb;
    cursor: not-allowed;
}
.tw-dark .lang-switch {
    border-color: #4b5563;
}
.tw-dark .lang-switch button {
    color: #9ca3af;
}
.tw-dark .lang-switch button[aria-pressed="true"] {
    background: #fff;
    color: #000;
}
.tw-dark .lang-switch button[disabled] {
    color: #5b5b64;
}
@media (max-width: 1024px) {
    .site-brand span { font-size: 14px; }
}

/* ---------- engineering-context chips (benefits section, wide card) ---------- */

/* keeps the three feature-card bodies starting on the same line even when
   one title wraps to two lines and the others do not */
.card-title {
    min-height: 1.4em;
    /* one line inside the 270px card body: 27px wrapped "Project comprehension", 24px fits */
    font-size: 24px;
}

.ctx-panel {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #e6e7ee;
    background-color: #ffffff;
}

.tw-dark .ctx-panel {
    border-color: #2b2c33;
    background-color: #0c0c0e;
}

.ctx-caption {
    flex-basis: 100%;
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 2px;
}

.ctx-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    color: #3f4250;
    background-color: #f3f4f8;
}

.tw-dark .ctx-chip {
    color: #d8dae2;
    background-color: #1a1b20;
}

.ctx-chip i {
    font-size: 14px;
    color: #6366f1;
}

.tw-dark .ctx-chip i {
    color: #a5b4fc;
}

@media (max-width: 768px) {
    .ctx-panel { padding: 14px; gap: 8px; }
    .ctx-chip { font-size: 12px; padding: 7px 10px; }
}

/* ---------- capability word wall (hero demo panel) ---------- */

.ww {
    --ww-fg: #191b20;
    --ww-a: #6366f1;
    --ww-b: #a855f7;
    --ww-c: #06b6d4;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #fdfdff;
    color: var(--ww-fg);
    isolation: isolate;
}

.tw-dark .ww {
    --ww-fg: #eceef2;
    background-color: #08080a;
}

.ww-wash,
.ww-halo {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.ww-wash {
    background:
        radial-gradient(680px 420px at 10% -12%, rgba(99, 102, 241, 0.17), transparent 62%),
        radial-gradient(560px 380px at 94% 110%, rgba(6, 182, 212, 0.14), transparent 60%),
        radial-gradient(420px 300px at 76% 4%, rgba(168, 85, 247, 0.10), transparent 65%);
}

.tw-dark .ww-wash {
    background:
        radial-gradient(680px 420px at 10% -12%, rgba(99, 102, 241, 0.24), transparent 62%),
        radial-gradient(560px 380px at 94% 110%, rgba(6, 182, 212, 0.17), transparent 60%),
        radial-gradient(420px 300px at 76% 4%, rgba(168, 85, 247, 0.15), transparent 65%);
}

.ww-halo {
    background:
        radial-gradient(280px circle at var(--mx, 50%) var(--my, 42%), rgba(99, 102, 241, 0.16), transparent 70%);
}

.tw-dark .ww-halo {
    background:
        radial-gradient(300px circle at var(--mx, 50%) var(--my, 42%), rgba(129, 140, 248, 0.20), transparent 72%);
}

.ww-top {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    padding: 16px 20px 0;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.ww-eyebrow,
.ww-hint {
    opacity: 0.55;
}

.ww-hint {
    font-weight: 400;
    letter-spacing: 0.12em;
}

.ww-star {
    font-size: 0.62em;
    line-height: 0;
    vertical-align: super;
    margin-left: 0.08em;
    color: #6366f1;
    -webkit-text-fill-color: currentColor;
    opacity: 0.9;
}

.tw-dark .ww-star {
    color: #a5b4fc;
}

.ww-legend {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding: 0 20px 14px;
    font-size: 10px;
    letter-spacing: 0.05em;
    opacity: 0.48;
}

.ww-legend-star {
    font-size: 12px;
    line-height: 1;
}

.ww-fields {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--ww-gap, 13px);
    padding: 8px 16px 10px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.ww-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--ww-col-gap, 22px);
    width: 100%;
    white-space: nowrap;
    animation: wwDrift var(--dur, 10s) ease-in-out var(--delay, 0s) infinite alternate;
}

.ww-word {
    display: inline-block;
    flex: 0 0 auto;
    font-size: var(--fs, 14px);
    font-weight: var(--fw, 400);
    letter-spacing: -0.012em;
    line-height: 1.12;
    opacity: var(--o, 0.7);
    white-space: nowrap;
    transform-origin: center;
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ww-word > .ww-w {
    display: inline-block;
    animation:
        wwIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) var(--in-delay, 0s) both,
        wwFloat var(--fdur, 8s) ease-in-out var(--fdelay, 0s) infinite alternate;
}

.ww-fields .ww-word:hover {
    opacity: 1;
    color: #4338ca;
    transform: scale(1.06);
}

.tw-dark .ww-fields .ww-word:hover {
    color: #c7d2fe;
}

.ww-word--accent {
    background-image: linear-gradient(100deg, var(--ww-a), var(--ww-b) 52%, var(--ww-c));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

.tw-dark .ww-word--accent {
    background-image: linear-gradient(100deg, #a5b4fc, #d8b4fe 52%, #67e8f9);
}

@keyframes wwIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes wwFloat {
    from { transform: translateY(0); }
    to { transform: translateY(var(--float, -4px)); }
}

@keyframes wwDrift {
    from { transform: translateX(var(--x, 0px)) translateY(0); }
    to { transform: translateX(calc(var(--x, 0px) + var(--dx, 0px))) translateY(var(--drift, -3px)); }
}

@media (max-width: 1024px) {
    .ww-top { padding: 12px 14px 0; font-size: 9.5px; letter-spacing: 0.12em; }
    .ww-fields { padding: 6px 10px 8px; }
    .ww-legend { padding: 0 12px 10px; font-size: 9px; }
    .ww-row { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .ww-row,
    .ww-word > .ww-w {
        animation: none !important;
    }
    .ww-word > .ww-w { opacity: 1; }
}

/* ---------- home: capability status pills ---------- */

.home-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f6f7fb;
    color: #6b7280;
    font-size: 10px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
}
.home-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.home-pill--ok { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.home-pill--partial { color: #b45309; border-color: #fde68a; background: #fffbeb; }
.home-pill--proto { color: #475569; border-color: #e2e8f0; background: #f8fafc; }
.home-pill--plan { color: #6b7280; border-color: #e5e7eb; background: #f6f7fb; }

.tw-dark .home-pill { color: #a1a1aa; border-color: #26272c; background: #141417; }
.tw-dark .home-pill--ok { color: #4ade80; border-color: #14532d; background: #0b1a11; }
.tw-dark .home-pill--partial { color: #fbbf24; border-color: #4a3410; background: #1a1408; }
.tw-dark .home-pill--proto { color: #94a3b8; border-color: #2b2e36; background: #101216; }
.tw-dark .home-pill--plan { color: #a1a1aa; border-color: #26272c; background: #141417; }
