/* =========================================================
   RUANG.TRADERS - LANDING RESPONSIVE
   Khusus index.html
   Tidak mengubah assets/style.css
   ========================================================= */


/* =========================================================
   GLOBAL SAFETY
   ========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.landing-nav {
  padding-left: clamp(18px, 6vw, 90px);
  padding-right: clamp(18px, 6vw, 90px);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.landing-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9px;
}

.landing-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.landing-brand-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.025em;
  white-space: nowrap;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.landing-menu-btn {
  display: none;
}


/* =========================================================
   PREVENT OVERFLOW
   ========================================================= */

.hero,
.product-card,
.steps > div,
.hero-copy,
.hero-card,
.section-head > div,
.risk-banner > div {
  min-width: 0;
}

.hero p,
.product-card p,
.steps p,
.section-head p,
.risk-banner p {
  overflow-wrap: anywhere;
}

.hero img,
.hero-card img,
.product-card img,
.steps img,
.risk-banner img {
  max-width: 100%;
  height: auto;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card > a {
  margin-top: auto;
  padding-top: 20px;
  display: inline-block;
  color: var(--green-dark);
  font-weight: 750;
}


/* =========================================================
   IB BUTTON
   ========================================================= */

.tf-button {
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
}

.tf-button img {
  display: block;
  width: 80px;
  max-width: 100%;
  height: auto;
}


/* =========================================================
   FOOTER
   ========================================================= */

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px clamp(18px, 8vw, 100px);
}

.landing-footer-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.landing-footer-brand-copy strong {
  font-size: 15px;
}

.landing-footer-brand-copy small {
  font-size: 12px;
  color: #7a847f;
  font-weight: 400;
}

.landing-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  color: #7a847f;
  font-size: 12px;
}

.landing-footer-links {
  display: flex;
  gap: 20px;
}

.landing-footer-links a {
  color: #47514c;
  font-size: 13px;
}

.landing-footer-links a:hover {
  color: var(--green-dark);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .landing-nav {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .hero {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .product-card {
    padding: 22px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

  /* -------------------------------------------------------
     NAVBAR
     ------------------------------------------------------- */

  .landing-nav {
    height: 66px;
    min-height: 66px;

    position: sticky;
    top: 0;

    z-index: 1000;

    padding-left: 16px;
    padding-right: 16px;
  }

  .landing-brand {
    flex: 1;
    min-width: 0;
  }

  .landing-logo {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 8px;
  }

  .landing-brand-text {
    font-size: 17px;

    overflow: hidden;
    text-overflow: ellipsis;
  }


  /* -------------------------------------------------------
     HAMBURGER
     ------------------------------------------------------- */

  .landing-menu-btn {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    padding: 9px;

    display: flex;

    flex-direction: column;
    justify-content: center;

    gap: 5px;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: #fff;

    cursor: pointer;
  }

  .landing-menu-btn span {
    display: block;

    width: 100%;
    height: 2px;

    border-radius: 99px;

    background: var(--ink);

    transition: .2s ease;
  }

  .landing-menu-btn.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .landing-menu-btn.is-open span:nth-child(2) {
    opacity: 0;
  }

  .landing-menu-btn.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }


  /* -------------------------------------------------------
     MOBILE NAV MENU
     ------------------------------------------------------- */

  .landing-nav-menu {
    position: absolute;

    top: calc(100% + 1px);
    left: 0;
    right: 0;

    display: none !important;

    flex-direction: column;
    align-items: stretch !important;

    gap: 0 !important;

    padding: 10px 18px 16px;

    background: rgba(255, 255, 255, .98);

    border-bottom: 1px solid var(--line);

    box-shadow: 0 16px 35px rgba(16, 21, 19, .08);

    backdrop-filter: blur(14px);

    z-index: 999;
  }

  .landing-nav-menu.is-open {
    display: flex !important;
  }

  .landing-nav-menu a {
    width: 100%;

    padding: 13px 10px;

    border-radius: 9px;
  }

  .landing-nav-menu a:not(.btn):hover {
    background: var(--soft);
  }

  .landing-nav-menu .btn {
    margin-top: 6px;
    width: 100%;
  }


  /* -------------------------------------------------------
     HERO
     ------------------------------------------------------- */

  /*
     PENTING:
     HTML menggunakan .hero
     BUKAN .landing-hero
  */

  .hero {
    width: 100%;

    min-height: auto;

    padding: 55px 20px 50px;

    gap: 32px;

    /*
     Paksa hero menjadi satu kolom
     pada HP
    */
    grid-template-columns: 1fr !important;
  }

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

  .hero h1 {
    max-width: 100%;

    font-size: clamp(38px, 10.5vw, 52px);

    line-height: 1.04;

    overflow-wrap: normal;
  }

  .hero p {
    max-width: 100%;

    font-size: 16px;

    line-height: 1.6;
  }


  /* -------------------------------------------------------
     ACTION BUTTONS
     ------------------------------------------------------- */

  .actions {
    flex-direction: column;

    width: 100%;

    max-width: 100%;

    gap: 10px;
  }

  .actions .btn {
    width: 100%;

    min-height: 48px;

    max-width: 100%;
  }


  /* -------------------------------------------------------
     TRUST ROW
     ------------------------------------------------------- */

  .trust-row {
    display: grid;

    grid-template-columns: 1fr;

    gap: 8px;

    width: 100%;
  }


  /* -------------------------------------------------------
     HERO CARD
     ------------------------------------------------------- */

  .hero-card {
    width: 100%;
    max-width: 100%;

    padding: 20px;
  }

  .mini-grid {
    width: 100%;
    max-width: 100%;
  }

  .mini-grid > div {
    min-width: 0;

    padding: 17px 14px;
  }

  .mini-grid strong {
    font-size: 22px;

    overflow-wrap: anywhere;
  }


  /* -------------------------------------------------------
     SECTIONS
     ------------------------------------------------------- */

  .section {
    width: 100%;

    padding: 60px 20px;
  }

  .section-head {
    gap: 18px;

    margin-bottom: 28px;
  }

  .section h2,
  .content-section h2 {
    font-size: clamp(30px, 8.5vw, 40px);

    line-height: 1.1;

    overflow-wrap: anywhere;
  }

  .section-head p {
    margin: 0;

    font-size: 15px;

    line-height: 1.6;
  }


  /* -------------------------------------------------------
     PRODUCTS
     ------------------------------------------------------- */

  .product-grid {
    grid-template-columns: 1fr !important;

    width: 100%;
  }

  .product-card {
    width: 100%;
    max-width: 100%;

    padding: 22px;

    border-radius: 15px;
  }

  .product-card h3 {
    overflow-wrap: anywhere;
  }


  /* -------------------------------------------------------
     PRODUCT STATS
     ------------------------------------------------------- */

  .stats {
    display: grid;

    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 10px;

    width: 100%;
  }

  .stats span {
    min-width: 0;

    font-size: 10px;

    overflow-wrap: anywhere;
  }

  .stats b {
    font-size: 15px;

    overflow-wrap: anywhere;
  }


  /* -------------------------------------------------------
     WORKFLOW
     ------------------------------------------------------- */

  .steps {
    display: grid;

    grid-template-columns: 1fr !important;

    gap: 12px;

    width: 100%;
  }

  .steps > div {
    width: 100%;
    max-width: 100%;

    padding-top: 17px;
  }

  .steps b {
    display: block;

    font-size: 16px;

    line-height: 1.3;

    overflow-wrap: anywhere;
  }

  .steps p {
    font-size: 14px;

    line-height: 1.55;
  }


  /* -------------------------------------------------------
     TRADERS FAMILY BUTTON
     ------------------------------------------------------- */

  .tf-button {
    max-width: 100%;
  }


  /* -------------------------------------------------------
     RISK BANNER
     ------------------------------------------------------- */

  .risk-banner {
    width: auto;

    margin: 0 20px 50px;

    padding: 24px 20px;

    border-radius: 16px;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 20px;
  }

  .risk-banner h2 {
    font-size: clamp(28px, 7.5vw, 36px);

    line-height: 1.1;

    overflow-wrap: anywhere;
  }

  .risk-banner p {
    font-size: 14px;

    line-height: 1.6;
  }

  .risk-banner .btn {
    width: 100%;

    max-width: 100%;
  }


  /* -------------------------------------------------------
     FOOTER
     ------------------------------------------------------- */

  .landing-footer {
    width: 100%;

    flex-direction: column;

    align-items: flex-start;

    padding: 28px 20px;

    gap: 20px;
  }

  .landing-footer-brand {
    width: 100%;
  }

  .landing-footer-right {
    width: 100%;

    align-items: flex-start;

    gap: 12px;
  }

  .landing-footer-links {
    flex-wrap: wrap;

    gap: 10px 18px;
  }

}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 420px) {

  .landing-nav {
    padding-left: 12px;
    padding-right: 12px;
  }

  .landing-brand-text {
    font-size: 16px;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mini-grid > div {
    padding: 15px 11px;
  }

  .mini-grid strong {
    font-size: 20px;
  }

  .stats {
    grid-template-columns: 1fr;

    gap: 0;
  }

  .stats span {
    display: flex;

    align-items: baseline;

    justify-content: space-between;

    gap: 8px;

    padding: 7px 0;

    border-bottom: 1px solid var(--line);
  }

  .stats b {
    display: inline;
  }

  .product-card {
    padding: 20px;
  }

  .risk-banner {
    margin-left: 16px;
    margin-right: 16px;
  }

}


/* =========================================================
   VERY SMALL PHONE
   ========================================================= */

@media (max-width: 360px) {

  .landing-brand-text {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-card {
    padding: 16px;
  }

  .mini-grid {
    grid-template-columns: 1fr !important;
  }

  .mini-grid > div {
    padding: 14px;
  }

  .section h2,
  .content-section h2 {
    font-size: 29px;
  }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

}


/* =========================================================
   FIX MOBILE LANDING NAV
   Memaksa semua menu landing tetap terlihat
   ========================================================= */

@media (max-width: 760px) {

  .landing-nav-menu {
    display: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .landing-nav-menu.is-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .landing-nav-menu > a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    width: 100% !important;

    color: var(--ink) !important;

    text-decoration: none;

    padding: 13px 10px !important;

    box-sizing: border-box;
  }

  .landing-nav-menu > a:not(.btn) {
    display: block !important;

    color: var(--ink) !important;

    background: transparent;
  }

  .landing-nav-menu > a:not(.btn):hover {
    color: var(--ink) !important;
    background: var(--soft) !important;
  }

  .landing-nav-menu > a.btn {
    display: flex !important;

    align-items: center;
    justify-content: center;

    width: 100% !important;

    margin-top: 6px;
  }
}



/* =========================================================
   FIX WARNA BUTTON MOBILE
   Tombol "Mulai" selalu hijau + tulisan putih
   ========================================================= */

@media (max-width: 760px) {

  .landing-nav-menu > a.btn,
  .landing-nav-menu > a.btn.btn-small {
    background: var(--green) !important;
    color: #ffffff !important;

    -webkit-text-fill-color: #ffffff !important;

    border-color: var(--green) !important;

    text-decoration: none !important;
  }

  .landing-nav-menu > a.btn:hover,
  .landing-nav-menu > a.btn.btn-small:hover {
    background: var(--green-dark) !important;
    color: #ffffff !important;

    -webkit-text-fill-color: #ffffff !important;
  }

}


/* =========================================================
   RISK DISCLOSURE - SPACING
   ========================================================= */

.risk-banner {
  margin-top: 70px;
  margin-bottom: 70px;
}

/* Desktop */
@media (min-width: 901px) {
  .risk-banner {
    padding: 34px 52px;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .risk-banner {
    margin-top: 55px;
    margin-bottom: 55px;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .risk-banner {
    margin-top: 45px;
    margin-bottom: 45px;
    padding: 28px 20px;
  }
}



/* =========================================================
   RISK DISCLOSURE - PROFESSIONAL BUTTON
   ========================================================= */

.risk-banner .btn {
  min-width: 145px;
  min-height: 54px;
  padding: 14px 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;
  text-align: center;

  border-radius: 12px;

  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

/* Hover desktop */
@media (min-width: 761px) {
  .risk-banner .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
  }
}

/* Mobile */
@media (max-width: 760px) {
  .risk-banner .btn {
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
  }
}






/* =========================================================
   WORKFLOW IB - SPACING
   Memberi jarak antara Simple Workflow dan Workflow IB
   ========================================================= */

/* Desktop */
#how2 {
  margin-top: 80px;
}

/* Tablet */
@media (max-width: 900px) {
  #how2 {
    margin-top: 60px;
  }
}

/* Mobile */
@media (max-width: 760px) {
  #how2 {
    margin-top: 45px;
  }

  .whatsapp-contact {
  width: 100%;
  justify-content: flex-start;

  padding-left: 0;
  margin-left: 0;

  padding-top: 12px;
  border-left: none;
  border-top: 1px solid var(--line);
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}
}



/* =========================================================
   WHATSAPP CONTACT ADMIN
   ========================================================= */

.whatsapp-contact {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: #00b95c !important;
  font-size: 13px;
  font-weight: 750;

  text-decoration: none;

  padding-left: 20px;
  margin-left: 2px;

  border-left: 1px solid var(--line);

  transition:
    color .2s ease,
    transform .2s ease;
}

.whatsapp-contact:hover {
  color: var(--green-dark) !important;
  transform: translateY(-1px);
}

.whatsapp-icon {
  width: 23px;
  height: 23px;

  flex: 0 0 23px;

  fill: currentColor;
  display: block;
}