/* =========================================
   BERA SOFTWARE HERO
========================================= */

.bs-hero {
    position: relative;
    isolation: isolate;

    min-height: 100svh;
    padding: 185px 0 70px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 74% 38%,
            rgba(6, 103, 145, 0.3),
            transparent 30%
        ),
        radial-gradient(
            circle at 20% 20%,
            rgba(246, 185, 27, 0.1),
            transparent 28%
        ),
        linear-gradient(
            115deg,
            #08090b 0%,
            #090c0f 52%,
            #06141c 100%
        );
}

.bs-hero-background {
    position: absolute;
    inset: 0;
    z-index: -2;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image:
        linear-gradient(
            to bottom,
            black 0%,
            rgba(0, 0, 0, 0.7) 70%,
            transparent 100%
        );
}

.bs-hero::before {
    content: "";

    position: absolute;
    top: 20%;
    left: -130px;
    z-index: -1;

    width: 260px;
    height: 260px;

    border: 1px solid rgba(246, 185, 27, 0.09);
    border-radius: 50%;
}

.bs-hero::after {
    content: "";

    position: absolute;
    right: -180px;
    bottom: -180px;
    z-index: -1;

    width: 420px;
    height: 420px;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.bs-hero-container {
    width: min(calc(100% - 70px), 1450px);
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(0, 0.94fr)
        minmax(500px, 1.06fr);
    gap: clamp(30px, 4vw, 80px);
    align-items: center;
}


/* =========================================
   HERO CONTENT
========================================= */

.bs-hero-content {
    position: relative;
    z-index: 3;

    max-width: 690px;
}

.bs-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    color: rgba(255, 255, 255, 0.64);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.bs-eyebrow-line {
    width: 36px;
    height: 2px;

    display: block;
    flex: 0 0 auto;

    background: var(--brand-gold);

    transform-origin: left;
}

/* =========================================
   HERO INDIAN IDENTITY
========================================= */

.bs-eyebrow-text {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    white-space: nowrap;
}

.bs-eyebrow-text i {
    width: 3px;
    height: 3px;

    display: inline-block;

    border-radius: 50%;
    background: var(--brand-gold);

    box-shadow:
        0 0 8px rgba(246, 185, 27, 0.65);
}

.bs-india-flag {
    width: 30px;
    height: 20px;

    display: inline-block;
    flex: 0 0 auto;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 2px;

    filter:
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

@media (max-width: 600px) {

    .bs-hero-eyebrow {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .bs-eyebrow-line {
        width: 24px;
    }

    .bs-eyebrow-text {
        gap: 7px;
        white-space: normal;
    }

    .bs-india-flag {
        width: 27px;
    }
}

.bs-hero-title {
    margin: 30px 0 28px;

    color: #ffffff;

    font-size: clamp(65px, 6.3vw, 112px);
    font-weight: 650;
    line-height: 0.91;
    letter-spacing: -0.07em;
}

.bs-title-line {
    margin-bottom: 15px; 
    display: block;

    color: rgba(255, 255, 255, 0.32);

    transition:
        color 0.6s ease,
        transform 0.6s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.bs-title-line strong {
    color: inherit;
    font-weight: 650;

    transition:
        color 0.6s ease,
        text-shadow 0.6s ease;
}

.bs-title-line.is-active {
    color: #ffffff;

    transform: translateX(10px);
}

.bs-title-line.is-active strong {
    color: var(--brand-gold);

    text-shadow:
        0 0 35px rgba(246, 185, 27, 0.16);
}

.bs-hero-description {
    max-width: 610px;
    min-height: 58px;
    margin: 0;

    color: rgba(255, 255, 255, 0.64);

    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.bs-hero-description.is-changing {
    opacity: 0;
    transform: translateY(8px);
}


/* =========================================
   HERO BUTTONS
========================================= */

.bs-hero-actions {
    margin-top: 34px;

    display: flex;
    align-items: center;
    gap: 25px;
}

.bs-primary-button {
    position: relative;

    min-height: 57px;
    padding: 6px 6px 6px 23px;

    display: inline-flex;
    align-items: center;
    gap: 27px;

    overflow: hidden;

    border-radius: 100px;
    background: var(--brand-gold);
    color: #111214;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    box-shadow:
        0 15px 40px rgba(246, 185, 27, 0.18);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.bs-primary-button::before {
    content: "";

    position: absolute;
    top: -70%;
    left: -50%;

    width: 30%;
    height: 240%;

    background: rgba(255, 255, 255, 0.42);

    transform: rotate(22deg);
    animation: bsButtonShine 4.5s ease-in-out infinite;
}

.bs-primary-button > span,
.bs-primary-button > i {
    position: relative;
    z-index: 2;
}

.bs-primary-button i {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: #111214;

    transition: transform 0.35s ease;
}

.bs-primary-button svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: #ffffff;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bs-primary-button:hover,
.bs-primary-button:focus-visible {
    transform: translateY(-3px);

    box-shadow:
        0 20px 50px rgba(246, 185, 27, 0.3);
}

.bs-primary-button:hover i,
.bs-primary-button:focus-visible i {
    transform: rotate(45deg);
}

@keyframes bsButtonShine {
    0%,
    68% {
        left: -50%;
    }

    100% {
        left: 125%;
    }
}

.bs-secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    transition: color 0.25s ease;
}

.bs-play-icon {
    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;

    transition:
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.bs-play-icon svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linejoin: round;
}

.bs-secondary-button:hover {
    color: var(--brand-gold);
}

.bs-secondary-button:hover .bs-play-icon {
    border-color: var(--brand-gold);
    background: rgba(246, 185, 27, 0.08);
}


/* =========================================
   TRUST DETAILS
========================================= */

.bs-hero-proof {
    margin-top: 48px;
    padding-top: 23px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.bs-hero-proof div {
    display: flex;
    flex-direction: column;
}

.bs-hero-proof strong {
    color: #ffffff;

    font-size: 20px;
    font-weight: 650;
    line-height: 1.1;
}

.bs-hero-proof span {
    margin-top: 5px;

    color: rgba(255, 255, 255, 0.42);

    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}


/* =========================================
   SVG VISUAL
========================================= */

.bs-hero-visual {
    position: relative;

    width: 100%;
    max-width: 690px;
    margin-left: auto;

    transform-style: preserve-3d;
}

.bs-visual-glow {
    position: absolute;
    inset: 13%;
    z-index: -1;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(10, 130, 180, 0.26),
            rgba(246, 185, 27, 0.07) 40%,
            transparent 70%
        );

    filter: blur(25px);
}

.bs-service-svg {
    width: 100%;
    height: auto;

    display: block;

    overflow: visible;

    filter: drop-shadow(0 35px 50px rgba(0, 0, 0, 0.35));

    transition:
        transform 0.2s ease-out;
}


/* Indian pattern */

.bs-indian-pattern {
    fill: none;
    stroke: rgba(255, 255, 255, 0.075);
    stroke-width: 1;
}

.bs-pattern-diamonds {
    fill: rgba(246, 185, 27, 0.025);
    stroke: rgba(246, 185, 27, 0.15);
}

.bs-pattern-spokes {
    stroke: rgba(246, 185, 27, 0.1);
}


/* Orbit */

.bs-orbit {
    fill: none;
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 1;
    stroke-dasharray: 2 4;

    transform-origin: 320px 320px;
}

.bs-orbit-one {
    animation: bsOrbitRotate 30s linear infinite;
}

.bs-orbit-two {
    animation: bsOrbitRotateReverse 23s linear infinite;
}

.bs-orbit-dot {
    fill: var(--brand-gold);
    stroke: none;

    filter: url("#goldGlow");
}

.bs-orbit-dot.blue {
    fill: #5cd6ff;
}

@keyframes bsOrbitRotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bsOrbitRotateReverse {
    to {
        transform: rotate(-360deg);
    }
}


/* Connections */

.bs-connection {
    fill: none;
    stroke: rgba(255, 255, 255, 0.13);
    stroke-width: 1.5;

    stroke-dasharray: 8 9;

    transition:
        stroke 0.5s ease,
        stroke-width 0.5s ease;
}

.bs-connection.is-active {
    stroke: var(--brand-gold);
    stroke-width: 2;

    animation: bsConnectionFlow 1.4s linear infinite;
}

@keyframes bsConnectionFlow {
    to {
        stroke-dashoffset: -34;
    }
}


/* Central hub */

.bs-central-shadow {
    fill: rgba(246, 185, 27, 0.05);
    stroke: rgba(246, 185, 27, 0.13);
    stroke-width: 1;

    animation: bsCentralPulse 3.2s ease-in-out infinite;
}

.bs-central-circle {
    fill: url("#centralGradient");
    stroke: rgba(246, 185, 27, 0.7);
    stroke-width: 1.5;
}

.bs-central-inner {
    fill: none;
    stroke: rgba(255, 255, 255, 0.11);
    stroke-width: 1;
    stroke-dasharray: 3 5;

    transform-origin: 320px 320px;

    animation: bsOrbitRotateReverse 18s linear infinite;
}

.bs-central-small {
    fill: var(--brand-gold);

    font-family: "Poppins", Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 3px;
}

.bs-central-title {
    fill: #ffffff;

    font-family: "Poppins", Arial, sans-serif;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: 1px;
}

@keyframes bsCentralPulse {
    0%,
    100% {
        transform: scale(1);
        transform-origin: 320px 320px;
        opacity: 0.6;
    }

    50% {
        transform: scale(1.08);
        transform-origin: 320px 320px;
        opacity: 1;
    }
}


/* Service nodes */

.bs-service-node {
    cursor: pointer;
    outline: none;
}

.bs-node-circle {
    fill: rgba(11, 15, 18, 0.94);
    stroke: rgba(255, 255, 255, 0.21);
    stroke-width: 1.5;

    transition:
        fill 0.45s ease,
        stroke 0.45s ease,
        stroke-width 0.45s ease;
}

.bs-node-pulse {
    fill: none;
    stroke: transparent;
    stroke-width: 1;

    transform-box: fill-box;
    transform-origin: center;
}

.bs-node-icon {
    fill: none;
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        stroke 0.45s ease,
        transform 0.45s ease;
}

.bs-node-number {
    fill: rgba(255, 255, 255, 0.35);

    font-family: "Poppins", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}

.bs-node-label {
    fill: rgba(255, 255, 255, 0.5);

    font-family: "Poppins", Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.3px;

    transition: fill 0.45s ease;
}

.bs-service-node:hover .bs-node-circle,
.bs-service-node:focus-visible .bs-node-circle {
    stroke: rgba(246, 185, 27, 0.65);
}

.bs-service-node.is-active .bs-node-circle {
    fill: rgba(27, 25, 17, 0.96);
    stroke: var(--brand-gold);
    stroke-width: 2;
}

.bs-service-node.is-active .bs-node-icon {
    stroke: var(--brand-gold);

    transform-box: fill-box;
    transform-origin: center;
    transform: scale(1.09);
}

.bs-service-node.is-active .bs-node-number,
.bs-service-node.is-active .bs-node-label {
    fill: var(--brand-gold);
}

.bs-service-node.is-active .bs-node-pulse {
    stroke: rgba(246, 185, 27, 0.35);

    animation: bsNodePulse 2s ease-out infinite;
}

@keyframes bsNodePulse {
    0% {
        opacity: 0.8;
        transform: scale(0.78);
    }

    100% {
        opacity: 0;
        transform: scale(1.18);
    }
}


/* =========================================
   SERVICE CONTROLS
========================================= */

.bs-service-controls {
    margin-top: -10px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bs-service-control {
    min-height: 53px;
    padding: 12px 9px;

    display: flex;
    align-items: center;
    gap: 8px;

    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.42);

    font-family: "Poppins", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-align: left;

    cursor: pointer;

    transition:
        color 0.3s ease,
        background-color 0.3s ease;
}

.bs-service-control:last-child {
    border-right: 0;
}

.bs-service-control span {
    color: rgba(246, 185, 27, 0.45);

    font-size: 8px;
}

.bs-service-control:hover,
.bs-service-control.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.035);
}

.bs-service-control.is-active span {
    color: var(--brand-gold);
}


/* =========================================
   SCROLL INDICATOR
========================================= */

.bs-scroll-indicator {
    position: absolute;
    right: 25px;
    bottom: 32px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    color: rgba(255, 255, 255, 0.35);

    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    writing-mode: vertical-rl;
}

.bs-scroll-indicator i {
    width: 1px;
    height: 48px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.15);
}

.bs-scroll-indicator i::after {
    content: "";

    width: 1px;
    height: 18px;

    display: block;

    background: var(--brand-gold);

    animation: bsScrollLine 2s ease-in-out infinite;
}

@keyframes bsScrollLine {
    from {
        transform: translateY(-20px);
    }

    to {
        transform: translateY(52px);
    }
}


/* =========================================
   ENTRANCE ANIMATION
========================================= */

.bs-hero-eyebrow,
.bs-hero-title,
.bs-hero-description,
.bs-hero-actions,
.bs-hero-proof,
.bs-hero-visual {
    opacity: 0;
    transform: translateY(25px);
}

.bs-hero.is-ready .bs-hero-eyebrow {
    animation: bsHeroReveal 0.7s 0.1s forwards;
}

.bs-hero.is-ready .bs-hero-title {
    animation: bsHeroReveal 0.8s 0.22s forwards;
}

.bs-hero.is-ready .bs-hero-description {
    animation: bsHeroReveal 0.75s 0.38s forwards;
}

.bs-hero.is-ready .bs-hero-actions {
    animation: bsHeroReveal 0.75s 0.5s forwards;
}

.bs-hero.is-ready .bs-hero-proof {
    animation: bsHeroReveal 0.75s 0.62s forwards;
}

.bs-hero.is-ready .bs-hero-visual {
    animation: bsVisualReveal 1s 0.28s forwards;
}

@keyframes bsHeroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bsVisualReveal {
    from {
        opacity: 0;
        transform: translateY(35px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1180px) {
    .bs-hero {
        padding-top: 170px;
    }

    .bs-hero-container {
        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(430px, 1.1fr);

        gap: 20px;
    }

    .bs-hero-title {
        font-size: clamp(58px, 6vw, 82px);
    }
}

@media (max-width: 950px) {
    .bs-hero {
        min-height: auto;
        padding: 160px 0 75px;
    }

    .bs-hero-container {
        width: min(calc(100% - 40px), 720px);

        grid-template-columns: 1fr;
        gap: 45px;
    }

    .bs-hero-content {
        max-width: 720px;
    }

    .bs-hero-title {
        font-size: clamp(60px, 11vw, 88px);
    }

    .bs-hero-visual {
        max-width: 650px;
        margin: 0 auto;
    }

    .bs-scroll-indicator {
        display: none;
    }
}

@media (max-width: 600px) {
    .bs-hero {
        padding: 145px 0 60px;

        background:
            radial-gradient(
                circle at 50% 68%,
                rgba(6, 103, 145, 0.25),
                transparent 31%
            ),
            #090a0c;
    }

    .bs-hero-container {
        width: calc(100% - 30px);
        gap: 35px;
    }

    .bs-hero-eyebrow {
        font-size: 8px;
        letter-spacing: 0.14em;
    }

   .bs-hero-eyebrow > .bs-eyebrow-line {
    width: 24px;
    min-width: 24px;
}

    .bs-hero-title {
        margin: 25px 0;

        font-size: clamp(52px, 17vw, 74px);
        line-height: 0.93;
    }

    .bs-title-line.is-active {
        transform: translateX(5px);
    }

    .bs-hero-description {
        min-height: 84px;

        font-size: 13px;
        line-height: 1.7;
    }

    .bs-hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 19px;
    }

    .bs-primary-button {
        width: 100%;
        min-height: 59px;

        justify-content: space-between;
    }

    .bs-secondary-button {
        padding-left: 4px;
    }

    .bs-hero-proof {
        margin-top: 37px;

        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .bs-hero-proof strong {
        font-size: 17px;
    }

    .bs-hero-proof span {
        font-size: 7px;
        line-height: 1.4;
    }

    .bs-service-svg {
        margin: -15px 0;
    }

    .bs-service-controls {
        margin-top: 0;

        grid-template-columns: 1fr;
    }

    .bs-service-control {
        min-height: 45px;

        border-right: 0;
        border-bottom:
            1px solid rgba(255, 255, 255, 0.08);
    }

    .bs-service-control:last-child {
        border-bottom: 0;
    }
}

/* =========================================
   COMPACT DESKTOP HERO
========================================= */

@media (min-width: 951px) {

    .bs-hero {
        min-height: 100svh;
        padding-top: 145px;
        padding-bottom: 28px;
    }

    .bs-hero-container {
        grid-template-columns:
            minmax(0, 0.96fr)
            minmax(480px, 1.04fr);

        gap: clamp(25px, 3vw, 55px);
    }

    .bs-hero-content {
        max-width: 650px;
    }

    .bs-hero-title {
        margin-top: 22px;
        margin-bottom: 22px;

        font-size: clamp(58px, 4.8vw, 88px);
        line-height: 0.9;
    }

    .bs-hero-description {
        max-width: 580px;
        min-height: 50px;

        font-size: 14px;
        line-height: 1.65;
    }

    .bs-hero-actions {
        margin-top: 25px;
    }

    .bs-primary-button {
        min-height: 53px;
    }

    .bs-primary-button i {
        width: 41px;
        height: 41px;
    }

    .bs-hero-proof {
        margin-top: 29px;
        padding-top: 18px;
    }

    .bs-hero-visual {
        width: min(100%, 575px);
        max-width: 575px;
        margin-right: auto;
        margin-left: auto;
    }

    .bs-service-svg {
        width: 100%;
        max-height: calc(100svh - 165px);
    }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    .bs-orbit,
    .bs-central-inner,
    .bs-central-shadow,
    .bs-node-pulse,
    .bs-primary-button::before,
    .bs-scroll-indicator i::after {
        animation: none !important;
    }

    .bs-hero-eyebrow,
    .bs-hero-title,
    .bs-hero-description,
    .bs-hero-actions,
    .bs-hero-proof,
    .bs-hero-visual {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}

@media (min-width: 1500px) and (min-height: 850px) {

    .bs-hero {
        padding-top: 155px;
        padding-bottom: 35px;
    }

    .bs-hero-title {
        font-size: clamp(68px, 5vw, 94px);
    }

    .bs-hero-visual {
        width: min(100%, 610px);
        max-width: 610px;
    }
}

/* Desktop eyebrow */
.bs-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bs-eyebrow-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bs-indian-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.bs-india-flag {
  width: 30px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.4));
}

.bs-eyebrow-separator {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  background: #ffbd16;
  border-radius: 50%;
}

.bs-growing-label {
  white-space: nowrap;
}


/* Mobile eyebrow */
@media (max-width: 767px) {
  .bs-hero-eyebrow {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 30px;
  }

  .bs-eyebrow-line {
    width: 30px;
    min-width: 30px;
    margin-top: 10px;
  }

  .bs-eyebrow-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .bs-indian-group {
    gap: 9px;
  }

  .bs-eyebrow-separator {
    display: none;
  }

  .bs-growing-label {
    white-space: nowrap;
  }
}