@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root{
  --primary:#0474e8; 
  --secondary:#c05318;
  /* --secondary:#e04502; */
  --heading:#0f172a;
  --text:#64748b;
  --border:#ece7e3;
  --bg:#faf9f7;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html {
  width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  width: 100%;
  overflow-x: hidden;
}
.text-primary{
  color: var(--primary);
}
.text-secondary{
  color: var(--secondary);
}
.bg-primary{
  background-color: var(--primary);
}
.bg-secondary{
  background-color: var(--secondary);
}
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}
.btn-secondary-border{
  border: 1px solid var(--secondary);
  color: var(--secondary);
}

.site-header.is-scrolled {
  position: fixed;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.silver-bg{
    background: linear-gradient(125deg, rgb(219, 221, 222) 0%, rgb(108 111 113) 8%, rgb(116 121 131) 32%, rgb(191 199 203) 71%, rgb(17 18 20) 100%);
}
.container-custom{
  max-width:1280px;
  margin:auto;
  padding:0 20px;
}

.header{
  background:#fff;
  border-bottom:1px solid #eee;
}

.header .container-custom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  height:80px;
}

nav{
  display:flex;
  gap:30px;
}

nav a{
  text-decoration:none;
  color:#333;
}

.btn-primary{
 background-color: var(--secondary);
  color:white;
  border:none;
  padding:14px 24px;
  border-radius:12px;
  cursor:pointer;
}

.hero{
  padding:100px 0;
}

.hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:80px;
}

.hero h1{
  font-size:72px;
  line-height:1.05;
}

.hero h1 span{
  color:#d67e4b;
}

.hero p{
  margin-top:20px;
  color:var(--text);
  max-width:600px;
}

.badge{
  display:inline-block;
  margin-bottom:20px;
  padding:10px 16px;
  border-radius:50px;
  background:#fff;
}

.search-box{
  margin-top:40px;
  display:flex;
}

.search-box input{
  flex:1;
  height:60px;
  border:none;
  padding:0 20px;
  border-radius:16px 0 0 16px;
}

.search-box button{
  width:140px;
  border:none;
  color:#fff;
  background:linear-gradient(
  135deg,
  #0863d7,
  #d67e4b);
}

.stats{
  padding-bottom:80px;
}

.stats-grid{
  background:#fff;
  border-radius:28px;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  padding:40px;
  box-shadow:0 15px 40px rgba(0,0,0,.05);
}

.services{
  padding:100px 0;
}

.card-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:20px;
  margin-top:40px;
}

.card{
  background:#fff;
  padding:30px;
  border-radius:24px;
  border:1px solid var(--border);
  transition:.4s;
}

.card:hover{
  transform:translateY(-8px);
  border-color:#d67e4b;
}

.market-section{
  padding:100px 0;
}

.market-wrapper{
  background:#07111f;
  color:white;
  border-radius:32px;
  padding:60px;
  display:grid;
  grid-template-columns:250px 1fr 250px;
  gap:40px;
}

.market-right button{
  width:100%;
  margin-bottom:10px;
  height:50px;
  background:transparent;
  color:white;
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
}

.market-right .active{
  border-color:#d67e4b;
}

.graph{
  padding:100px 0;
}

.graph-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
  align-items:center;
}

footer{
  background:#fff;
  padding:60px 0;
  border-top:1px solid #eee;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr 1fr;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #ffffff;
  font-family: Inter, sans-serif;
}

.network-wrapper {
   position: relative;
  width: 100%;
  max-width: 700px;
  height: 325px;
  margin: 0 auto;
}

/* SVG Lines */
.connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.connections line {
  stroke: var(--primary);
  stroke-width: 2;
  stroke-dasharray: 5;
  opacity: 0.7;
}

/* Center Circle */
.center-node {
   position: absolute;
  left: 50%;
  top: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%)!important;
  border-radius: 50%;
  border: linear-gradient(
    135deg,
    #d77b45,
    #b85a23
  );
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 50px;
  font-weight: 700;
  box-shadow: 0 15px 35px rgba(45, 126, 201, 0.3);
}

/* Node */
.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #a1a1a1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0863d7;
  font-size: 20px;
}

.info-block {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content h4 {
  color: #0863d7;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0px;
}

.content p {
  color: #2f3640;
  font-size: 10px;
  line-height: 1.6;
}

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

/* Positions */

.property {
   top: 0;
  left: 40%;
  transform: translateX(-40%);
}
.animate-gradient-text {
  background: linear-gradient(
    90deg,
    #0863d7,
    #d67e4b,
    #ffd6b8,
    #d67e4b,
    #0863d7
  );

  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  animation: gradientText 4s linear infinite;
}

@keyframes gradientText {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 300% center;
  }
}
.mortgage {
    top: 70px;
  right: 0;
}

.risk {
  bottom: 80px;
  right: 20px;
}

.portfolio {
  bottom: 0;
  left: 40%;
  transform: translateX(-40%);
}

.market {
 bottom: 80px;
  left: 0;
}

.owner {
 top: 70px;
  left: 0;
}


/* new UI start */
.mesh-bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(214,126,75,0.18), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(134,61,34,0.14), transparent 35%),
    radial-gradient(circle at 70% 80%, rgba(214,126,75,0.12), transparent 35%),
    radial-gradient(circle at 30% 70%, rgba(134,61,34,0.12), transparent 35%);
  filter: blur(80px);
  animation: meshMove 18s ease-in-out infinite alternate;
}

.footer ul li{
    font-size: 12px;
}

.search-pill {
    font-size: 12px !important;
    font-weight: 500;
    padding: 5px 14px;
    background: white;
    border-radius: 99px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    color: #4b5563;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    border: 0.5px solid #ede8e3;
}

.typing-placeholder.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.typing-placeholder::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 1em;
    margin-left: 2px;
    background: #7f8794;
    animation: typingCursor 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes typingCursor {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes meshMove {
  0% {
    transform: translate(-5%, -5%) scale(1);
  }
  100% {
    transform: translate(5%, 5%) scale(1.15);
  }
}


@keyframes arrowSlide {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(8px);
  }
  100% {
    transform: translateX(0);
  }
}

/* button animation */
@keyframes borderFlow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 200% 50%;
  }
}
/* button animation end */


/* map animation */
@keyframes borderFlow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 200% 50%;
  }
}

.group:hover .arrow-icon {
  animation: arrowSlide 0.8s ease-in-out infinite;
}


.card-hover:hover {
  transform: translateY(-6px);
}

.screenshot .group div{
    height: 75px;
}

.text-slider {
  display: inline-flex;
  position: relative;
  height: 1.2em;
  margin-left: 0.18em;
  overflow: hidden;
  vertical-align: top;
}

.text-slider-track {
  display: flex;
  flex-direction: column;
  animation: textSliderRotate 10s ease-in-out infinite;
}

/* .text-slider-word {
  display: block;
  height: 1.2em;
  line-height: 1.2;
  white-space: nowrap;
} */

@keyframes textSliderRotate {
  0%, 18% {
    transform: translateY(0);
  }
  25%, 43% {
    transform: translateY(-1.2em);
  }
  50%, 68% {
    transform: translateY(-2.4em);
  }
  75%, 93% {
    transform: translateY(-3.6em);
  }
  100% {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce){
  .text-slider {
    height: auto;
    overflow: visible;
  }

  .text-slider-track {
    animation: none !important;
  }

  .text-slider-word:not(:first-child) {
    display: none;
  }
}

/* page scroll animaiton start */
.reveal-up{
    opacity:0;
    transform:translateY(60px);
    transition:opacity .8s cubic-bezier(.2,.65,.2,1), transform .8s cubic-bezier(.2,.65,.2,1);
    transition-delay:var(--reveal-delay, 0s);
    will-change:transform, opacity;
}

.reveal-down{
    opacity:0;
    transform:translateY(-60px);
    transition:opacity .8s cubic-bezier(.2,.65,.2,1), transform .8s cubic-bezier(.2,.65,.2,1);
    transition-delay:var(--reveal-delay, 0s);
    will-change:transform, opacity;
}

.reveal-left{
    opacity:0;
    transform:translate3d(0, 32px, 0);
    transition:opacity .85s cubic-bezier(.2,.65,.2,1), transform .85s cubic-bezier(.2,.65,.2,1);
    transition-delay:var(--reveal-delay, 0s);
    will-change:transform, opacity;
}

.reveal-right{
    opacity:0;
    transform:translate3d(0, 32px, 0);
    transition:opacity .85s cubic-bezier(.2,.65,.2,1), transform .85s cubic-bezier(.2,.65,.2,1);
    transition-delay:var(--reveal-delay, 0s);
    will-change:transform, opacity;
}

.reveal-scale{
    opacity:0;
    transform:scale(.85);
    transition:opacity .8s ease, transform .8s ease;
    transition-delay:var(--reveal-delay, 0s);
    will-change:transform, opacity;
}

.reveal-up.show,
.reveal-down.show,
.reveal-left.show,
.reveal-right.show,
.reveal-scale.show{
    opacity:1;
    transform:none;
}
.reveal-delay-1{
    --reveal-delay:.12s;
}

.reveal-delay-2{
    --reveal-delay:.24s;
}
.center-node,
.info-block{
    opacity:0;
    transform:scale(.5);
}

.connections line{
    stroke-dasharray:600;
    stroke-dashoffset:600;
}
.show-graph .center-node{
    animation:centerPop .6s forwards;
}

.show-graph .connections line{
    animation:drawLine .9s forwards;
}

.show-graph .property{
    animation:fadeScale .5s .8s forwards;
}

.show-graph .mortgage{
    animation:fadeScale .5s 1s forwards;
}

.show-graph .risk{
    animation:fadeScale .5s 1.2s forwards;
}

.show-graph .portfolio{
    animation:fadeScale .5s 1.4s forwards;
}

.show-graph .market{
    animation:fadeScale .5s 1.6s forwards;
}

.show-graph .owner{
    animation:fadeScale .5s 1.8s forwards;
}
@keyframes centerPop{
    from{
        opacity:0;
        transform:scale(.2) rotate(-180deg);
    }
    to{
        opacity:1;
        transform:scale(1) rotate(0);
    }
}

@keyframes drawLine{
    to{
        stroke-dashoffset:0;
    }
}

@keyframes fadeScale{
    from{
        opacity:0;
        transform:scale(.5);
    }
    to{
        opacity:1;
        transform:scale(1);
    }
}

/* @media (prefers-reduced-motion: reduce){
  .reveal-up,
  .reveal-down,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .center-node,
  .info-block,
  .connections line,
  .animate-gradient-text {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
} */

@media (prefers-reduced-motion: reduce) {
  .typing-placeholder::after {
    animation: none;
  }
}
