/* PiyasaCore — Prelend */

:root {
  --bg: #0a0a0c;
  --bg-2: #121316;
  --card-bg: #10131a;
  --card-border: #16273a;
  --red: #4598e1;
  --red-dark: #160a5c;
  --red-glow: rgba(0, 106, 228, 0.45);
  --white: #ffffff;
  --text-dim: #abacb7;
  --text-dimmer: #7d828a;
  --radius: 16px;
  --container: 1180px;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 40px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #24a7ff, var(--red) 55%, var(--red-dark));
  color: var(--white);
  box-shadow: 0 10px 30px var(--red-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 38px var(--red-glow);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.badge svg {
  width: 14px;
  height: 14px;
  fill: #ffb020;
}

/* ---------- Background texture ---------- */
.glow-bg {
  position: relative;
  background: radial-gradient(
      circle at 15% 20%,
      rgba(0, 141, 228, 0.35),
      transparent 45%
    ),
    radial-gradient(circle at 85% 0%, rgba(0, 91, 228, 0.18), transparent 40%),
    var(--bg);
  overflow: hidden;
}
.glow-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px
  );
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse at 30% 10%, black, transparent 65%);
  pointer-events: none;
}

/* ---------- Header ---------- */
.topbar {
  position: relative;
  z-index: 2;
  padding: 28px 0 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  margin-bottom: 30px;
}
.logo svg {
  width: 26px;
  height: 22px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  padding: 40px 0 70px;
  text-align: center;
  background: url("../img/hero-bg.jpg") no-repeat center center;
  background-size: cover;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.15;
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto 16px;
}
.hero > .container > p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 40px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.feature-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.5)
  );
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}
.icon-badge {
  width: 60px;
  height: 60px;
  padding: 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--red), var(--red-dark));
  box-shadow: 0 8px 18px var(--red-glow);
  margin-bottom: 14px;
}
.icon-badge img {
  stroke: #fff;
  fill: none;
}
.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: #ede3e3;
  line-height: 1.45;
  text-align: center;
}

/* ---------- Benefits ---------- */
.benefits {
  position: relative;
  z-index: 2;
  padding: 70px 0;
  text-align: center;
}
.benefits h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  max-width: 760px;
  margin: 0 auto 46px;
}
.benefit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}
.benefit-card {
  background: var(--card-border);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.benefit-icon {
  width: 100%;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  margin-bottom: 22px;
}
.benefit-icon img {
  width: 100px;

  stroke: #fff;
  fill: none;
}
.benefit-card h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
}
.benefit-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}

.disclaimer-sm {
  max-width: 900px;
  margin: 0 auto 12px;
  font-size: 0.78rem;
  color: var(--text-dimmer);
  line-height: 1.6;
}

/* ---------- Calculator ---------- */
.calculator {
  position: relative;
  z-index: 2;
  padding: 60px 0 90px;
}
.calc-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 44px clamp(20px, 5vw, 56px);
}
.calc-card h2 {
  text-align: center;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  margin: 0 0 40px;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: center;
}
.calc-field {
  margin-bottom: 34px;
}
.calc-field:last-child {
  margin-bottom: 0;
}
.calc-field-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.calc-field-top label {
  font-size: 0.95rem;
  color: var(--text-dim);
}
.calc-field-top .val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--red) var(--pct, 20%),
    rgba(255, 255, 255, 0.14) var(--pct, 20%)
  );
  outline: none;
  margin: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--red);
  box-shadow: 0 0 0 6px rgba(228, 0, 27, 0.18);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--red);
  cursor: pointer;
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dimmer);
  margin-top: 8px;
}

.calc-results {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 28px;
}
.result-row {
  margin-bottom: 22px;
}
.result-row:last-of-type {
  margin-bottom: 6px;
}
.result-row label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.result-pill {
  background: var(--white);
  color: #170303;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 14px 18px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.15s ease;
}
.result-duration {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding-top: 4px;
}

/* ---------- Footer ---------- */
footer {
  position: relative;
  z-index: 2;
  padding: 60px 0 50px;
  background: #050202;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dimmer);
  margin-bottom: 26px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}
.footer-links a {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.footer-links a:hover {
  color: var(--white);
}
.disclaimer-block {
  margin-bottom: 26px;
  max-width: 900px;
}
.disclaimer-block h4 {
  font-size: 0.85rem;
  margin: 0 0 8px;
  color: #d8caca;
}
.disclaimer-block p {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-dimmer);
  margin: 0 0 6px;
}
.reg-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--text-dimmer);
}
.reg-list li {
  margin-bottom: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature-row,
  .benefit-row {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .calc-card {
    padding: 32px 20px;
  }
  .hero {
    padding: 30px 0 50px;
  }
  .benefits,
  .calculator {
    padding: 48px 0;
  }
  .btn {
    padding: 16px 28px;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 15px;
  }
  .footer-links {
    gap: 8px 18px;
  }
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  color: #fff;
}
