:root{
  --color-primary:#FFCD28;
  --color-text-dark:#12022F;
  --color-text:#4F4F4F;
  --color-muted:rgba(79,79,79,.65);
  --color-green:#0FA958;
  --color-yellow:#F5B803;

  --bg:#fff;
  --radius:24px;
  --radius-lg:32px;

  --shadow-sm:0 10px 24px rgba(0,0,0,.08);
  --shadow-md:0 18px 34px rgba(0,0,0,.12);
  --shadow-lg:0 22px 60px rgba(0,0,0,.14);

  --container-max:1536px;

  --bp-sm:640px;
  --bp-md:768px;
  --bp-lg:1024px;
  --bp-xl:1280px;
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--color-text);
}

img{ max-width:100%; display:block; }

a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,p{ margin:0; }

.page-container{
  max-width:var(--container-max);
  margin:0 auto;
  min-height:100vh;
  overflow-x:hidden;
  display:flex;
  flex-direction:column;
}

.main-content{
  flex:1;
  position:relative;
}

/* helpers */
.hidden{ display:none !important; }
.hidden-mobile{ display:none; }
@media (min-width:1024px){
  .hidden-mobile{ display:block; }
}

/* header */
.header{
  padding:24px 0;
  max-width:100%;
}

@media (min-width:1024px){
  .header{ padding:40px 0; }
}

.header-content{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

@media (min-width:1024px){
  .header-content{ flex-wrap:nowrap; }
}

/* brand */
.brand-wrap{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand-text{
  font-weight:900;
  font-size:20px;
  letter-spacing:.02em;
  color:#111;
  line-height:1;
}

@media (min-width:768px){
  .brand-text{ font-size:22px; }
}

.brand-text span{
  color:var(--color-green);
}

.brand-logo{
  width:48px;
  height:48px;
  border-radius:9999px;
  object-fit:cover;
  box-shadow:0 12px 26px rgba(0,0,0,.10);
}

@media (min-width:768px){
  .brand-logo{ width:52px; height:52px; }
}

/* mobile controls */
.mobile-controls{
  display:inline-flex;
  align-items:center;
  gap:12px;
}

@media (min-width:1024px){
  .mobile-controls{ display:none; }
}

#hamburger-button{
  appearance:none;
  background:transparent;
  border:0;
  padding:0;
  cursor:pointer;
  color:#111;
}

.hamburger-react{
  height:44px;
  width:44px;
  position:relative;
  user-select:none;
  outline:none;
}

.hamburger-line{
  background:currentColor;
  height:3px;
  left:8px;
  width:28px;
  position:absolute;
  border-radius:999px;
  transition:transform .25s ease, opacity .25s ease;
}

.hamburger-line.top{ top:12px; }
.hamburger-line.middle{ top:20px; }
.hamburger-line.bottom{ top:28px; }

 

/* nav */
.nav-menu{
  width:100%;
  margin-top:8px;
}

@media (min-width:1024px){
  .nav-menu{
    width:auto;
    margin-top:0;
    display:block !important;
  }
}

.nav-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  text-align:center;
  padding:8px 0;
}

@media (min-width:1024px){
  .nav-list{
    flex-direction:row;
    align-items:center;
    gap:16px;
    padding:0;
  }
}

@media (min-width:1280px){
  .nav-list{ gap:24px; }
}

.nav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 10px;
  font-size:16px;
  color:var(--color-text);
  border-radius:999px;
  transition:background-color .2s ease, color .2s ease, transform .2s ease;
  position:relative;
}

@media (min-width:1024px){
  .nav-link{
    padding:6px 0;
    font-size:12px;
    border-radius:0;
  }
}

.nav-link:hover{
  color:#111;
  background:rgba(0,0,0,.04);
}

@media (min-width:1024px){
  .nav-link:hover{ background:transparent; }
}

.nav-link.active{
  color:var(--color-primary);
  font-weight:800;
}

@media (min-width:1024px){
  .nav-link::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0%;
    height:2px;
    background:var(--color-primary);
    transition:width .25s ease;
  }

  .nav-link:hover::after,
  .nav-link.active::after{
    width:100%;
  }
}

/* language switcher */
.language-switcher{
  padding:10px 18px;
  border:2px solid #f2a900;
  background:transparent;
  color:#111;
  font-weight:800;
  font-size:.85rem;
  cursor:pointer;
  border-radius:999px;
  transition:transform .2s ease, box-shadow .2s ease, background-color .25s ease, color .25s ease;
  letter-spacing:.08em;
  text-transform:uppercase;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
}

.language-switcher:hover{
  background-color:#f2a900;
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(242,169,0,.3);
}
.language-switcher:active{ transform:translateY(0); }

/* hero row (mobile-first stack) */
.hero-row{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:var(--radius);
}

@media (min-width:992px){
  .hero-row{
    flex-direction:row;
    align-items:stretch;
  }
}

.hero-section{
  flex:1;
  min-width:0;
  padding:28px 18px;
  background:#2a1b14;
  color:#fff;
}

@media (min-width:768px){
  .hero-section{ padding:46px 32px; }
}

@media (min-width:992px){
  .hero-section{ padding:70px clamp(16px, 5vw, 80px); }
}

.hero-title{
  font-size:clamp(24px, 4.2vw, 44px);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.02em;
  line-height:1.12;
  margin:0 0 12px;
}

.hero-subtitle{
  max-width:680px;
  line-height:1.7;
  font-size:16px;
  opacity:.95;
}

@media (min-width:768px){
  .hero-subtitle{ font-size:18px; }
}

.hero-cta-container{ margin-top:18px; }

.hero-side{
  flex:1;
  min-width:0;
  background:#111;
  height:260px;
}

@media (min-width:768px){
  .hero-side{ height:340px; }
}

@media (min-width:992px){
  .hero-side{ height:auto; }
}

.hero-side img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:right center;
}

/* nano loans section */
.nano-loans-section{
  max-width:var(--container-max);
  width:100%;
  margin:48px auto;
  display:grid;
  grid-template-columns:1fr;
  gap:32px;
  position:relative;
}

@media (min-width:1024px){
  .nano-loans-section{
    grid-template-columns:repeat(2,1fr);
    gap:64px;
    margin:80px auto;
  }
}

.nano-loans-text-content{ height:100%; }

.section-title-block{
  margin-bottom:22px;
  word-wrap:break-word;
}

@media (min-width:768px){
  .section-title-block{ margin-bottom:32px; }
}

.section-tag{
  font-weight:900;
  font-size:16px;
  color:var(--color-primary);
  text-transform:uppercase;
  letter-spacing:.06em;
}

@media (min-width:768px){
  .section-tag{ font-size:18px; }
}

.section-heading{
  font-weight:900;
  color:var(--color-text-dark);
  font-size:clamp(24px, 3.2vw, 44px);
  margin-top:10px;
}

.features-list{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin:16px 0 28px;
}

@media (min-width:768px){
  .features-list{ gap:18px; margin:18px 0 36px; }
}

@media (min-width:1024px){
  .features-list{ grid-template-columns:repeat(2,1fr); gap:22px; }
}

.features-list li{
  background:rgba(255,255,255,.92);
  border-radius:18px;
  padding:14px 14px;
  box-shadow:var(--shadow-sm);
  transition:transform .35s ease, box-shadow .35s ease;
}

.features-list li:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
}

.feature-title{
  color:var(--color-text-dark);
  font-size:16px;
  font-weight:900;
  margin:0 0 6px;
}

@media (min-width:768px){
  .feature-title{ font-size:18px; }
}

.feature-description{
  color:var(--color-text);
  font-size:15px;
  line-height:1.6;
}

@media (min-width:768px){
  .feature-description{ font-size:16px; }
}

/* how it works */
.how-it-works{ margin:10px 0 0; }

.steps-list{ display:flex; flex-direction:column; gap:18px; }

.steps-list li{
  position:relative;
  padding-top:4px;
}

.step-content-container{
  position:relative;
  padding-left:54px;
}

@media (min-width:768px){
  .step-content-container{ padding-left:70px; }
}

.step-number-circle{
  background-color:var(--color-yellow);
  position:absolute;
  left:0;
  top:0;
  width:44px;
  height:44px;
  border-radius:9999px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:18px;
  font-weight:900;
  z-index:2;
}

@media (min-width:768px){
  .step-number-circle{ width:56px; height:56px; font-size:22px; }
}

.step-text-content{
  padding-top:2px;
}

.step-title{
  color:var(--color-text-dark);
  font-size:16px;
  font-weight:900;
  margin:0 0 6px;
}

@media (min-width:768px){
  .step-title{ font-size:18px; }
}

.step-description{
  color:var(--color-text);
  font-size:15px;
  line-height:1.6;
}

@media (min-width:768px){
  .step-description{ font-size:16px; }
}

.step-dashed-line{
  position:absolute;
  left:21px;
  top:48px;
  width:1px;
  height:calc(100% - 48px);
  border-left:2px dashed var(--color-yellow);
  opacity:.9;
}

@media (min-width:768px){
  .step-dashed-line{
    left:28px;
    top:60px;
    height:calc(100% - 60px);
  }
}

.steps-list li:last-child .step-dashed-line{ display:none; }

.get-loan-button{
  margin-top:16px;
  padding:14px 18px;
  border-radius:18px;
  background:#F6B904;
  color:#fff;
  font-weight:900;
  border:0;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:10px;
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.get-loan-button:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(246,185,4,.28);
}

.get-loan-button .button-text{
  margin-right:0;
  white-space:nowrap;
}

/* right images */
.nano-loans-image-content{
  display:flex;
  flex-direction:column;
  gap:18px;
}

@media (min-width:1024px){
  .nano-loans-image-content{
    gap:22px;
    grid-row-start:1;
  }
}

.app-screenshot-figure{
  width:100%;
  max-width:520px;
  margin:0 auto;
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-lg);
}

.app-screenshot-image{
  width:100%;
  height:320px;
  object-fit:cover;
  border-radius:var(--radius-lg);
  transition:transform .6s ease;
}

@media (min-width:768px){
  .app-screenshot-image{ height:420px; }
}

@media (min-width:1024px){
  .app-screenshot-image{ height:520px; }
}

.app-screenshot-figure:hover .app-screenshot-image{
  transform:scale(1.03);
}

/* footer */
.site-footer{
  padding:40px 0;
  border-top:1px solid rgba(0,0,0,.08);
  margin-top:40px;
}

.footer-container{
  max-width:var(--container-max);
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr;
  gap:22px;
  padding:0 18px;
}

@media (min-width:768px){
  .footer-container{
    grid-template-columns:repeat(3,1fr);
    gap:28px;
    padding:0 32px;
  }
}

.footer-heading{
  color:#111;
  font-weight:900;
  margin:0 0 12px;
  font-size:14px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.footer-links{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.footer-links a{
  color:var(--color-text);
  transition:color .2s ease;
}

.footer-links a:hover{
  color:#111;
}

/* reveal / animations */
@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}

.page-container{
  animation:pageFade 650ms ease both;
}

@keyframes pageFade{
  from{ opacity:0; transform:translateY(8px); }
  to{ opacity:1; transform:translateY(0); }
}

/* inview helper classes (your JS can toggle these) */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity 700ms ease, transform 700ms ease;
  will-change:opacity, transform;
}
.reveal.is-visible{
  opacity:1;
  transform:translateY(0);
}
.reveal-step{
  opacity:0;
  transform:translateY(16px);
  transition:opacity 650ms ease, transform 650ms ease;
  will-change:opacity, transform;
}
.reveal-step.is-visible{
  opacity:1;
  transform:translateY(0);
}
.reveal-step:nth-child(1){ transition-delay:120ms; }
.reveal-step:nth-child(2){ transition-delay:220ms; }
.reveal-step:nth-child(3){ transition-delay:320ms; }
.reveal-step:nth-child(4){ transition-delay:420ms; }
.reveal-step:nth-child(5){ transition-delay:520ms; }
