/* ==========================================================================
   Indohost — design system
   ========================================================================== */

:root {
  --ink: #070d1b;
  --ink-2: #0d1730;
  --ink-3: #16233f;
  --line: #e4e9f2;
  --line-dark: rgba(255, 255, 255, .1);
  --muted: #5b6b85;
  --muted-dark: rgba(226, 236, 255, .68);
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-soft-2: #eef3fb;

  --brand: #2563eb;
  --brand-2: #06b6d4;
  --brand-ink: #0b3fae;
  --accent: #f59e0b;
  --green: #10b981;
  --red: #ef4444;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(7, 13, 27, .06), 0 1px 3px rgba(7, 13, 27, .08);
  --shadow: 0 10px 30px -12px rgba(7, 13, 27, .18);
  --shadow-lg: 0 30px 70px -30px rgba(7, 13, 27, .35);
  --container: 1180px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.1rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
small { font-size: .82rem; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 13, 27, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: #fff;
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.16rem; letter-spacing: -.03em; }
.brand:hover { color: #fff; }
.brand__mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 1rem; box-shadow: 0 6px 18px -6px rgba(37, 99, 235, .9);
}
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a { color: rgba(255, 255, 255, .74); padding: .5rem .72rem; border-radius: 8px; font-size: .93rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.header-actions { display: flex; gap: .5rem; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-dark); color: #fff; border-radius: 8px; padding: .4rem .6rem; font-size: 1.1rem; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.25rem; border-radius: 10px; font-weight: 650; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(135deg, var(--brand), #3b82f6); color: #fff; box-shadow: 0 10px 24px -12px rgba(37, 99, 235, .9); }
.btn--primary:hover { color: #fff; box-shadow: 0 14px 30px -12px rgba(37, 99, 235, 1); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .18); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--outline:hover { border-color: #c9d5e8; color: var(--ink); }
.btn--wa { background: #25d366; color: #06281a; }
.btn--wa:hover { color: #06281a; background: #1fbe5b; }
.btn--sm { padding: .5rem .85rem; font-size: .86rem; border-radius: 8px; }
.btn--lg { padding: 1rem 1.6rem; font-size: 1rem; border-radius: 12px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.center .btn-row { justify-content: center; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 480px at 82% -8%, rgba(6, 182, 212, .3), transparent 62%),
    radial-gradient(700px 420px at 8% 4%, rgba(37, 99, 235, .38), transparent 60%),
    linear-gradient(180deg, #070d1b 0%, #0a1226 68%, #0a1226 100%);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 .grad { background: linear-gradient(100deg, #7dd3fc, #38bdf8 40%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted-dark); font-size: 1.06rem; max-width: 54ch; }
.hero--compact { padding: clamp(2.4rem, 5vw, 3.6rem) 0; }
.hero--compact .hero__inner { grid-template-columns: 1fr; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 650;
  letter-spacing: .08em; text-transform: uppercase; color: #7dd3fc;
  background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .24);
  padding: .35rem .7rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .18); }

/* hero terminal / card */
.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg);
  padding: 1.1rem; box-shadow: var(--shadow-lg); backdrop-filter: blur(8px);
}
.hero-card__head { display: flex; align-items: center; gap: .45rem; padding: .1rem .35rem .7rem; }
.hero-card__head i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.hero-card__head span { margin-left: auto; font-size: .72rem; color: rgba(255, 255, 255, .45); font-family: var(--mono); }
.term { background: #050a14; border-radius: 14px; padding: 1rem; font-family: var(--mono); font-size: .8rem; line-height: 1.8; color: #9fb4d4; }
.term b { color: #7dd3fc; font-weight: 600; }
.term .ok { color: #4ade80; }
.term .k { color: #c4b5fd; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .9rem; }
.hero-stats div { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: .65rem .7rem; }
.hero-stats strong { display: block; font-size: 1.05rem; color: #fff; }
.hero-stats small { color: rgba(226, 236, 255, .6); font-size: .72rem; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }
.card--flat { box-shadow: none; }
.card__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .12));
  color: var(--brand); margin-bottom: .9rem;
}
.card__icon svg { width: 21px; height: 21px; }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 1.1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.plan:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.plan--popular { border-color: #b9cdf5; box-shadow: 0 18px 44px -24px rgba(37, 99, 235, .55); }
.plan--popular::before {
  content: "Paling populer"; position: absolute; top: -.7rem; left: 1.4rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px;
}
.plan__name { font-size: 1.02rem; font-weight: 700; margin: 0 0 .2rem; }
.plan__note { font-size: .82rem; color: var(--muted); min-height: 2.5em; margin: 0 0 .9rem; }
.plan__price { display: flex; align-items: baseline; gap: .3rem; margin-bottom: .15rem; }
.plan__price b { font-size: 1.85rem; letter-spacing: -.03em; }
.plan__price span { font-size: .82rem; color: var(--muted); }
.plan__year { font-size: .78rem; color: var(--green); font-weight: 600; margin-bottom: 1rem; }
.plan__specs { list-style: none; padding: 0; margin: 0 0 1.2rem; border-top: 1px solid var(--line); }
.plan__specs li { display: flex; justify-content: space-between; gap: .5rem; padding: .48rem 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.plan__specs li span:first-child { color: var(--muted); }
.plan__specs li span:last-child { font-weight: 600; text-align: right; }
.plan .btn { margin-top: auto; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { background: var(--bg-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfe; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- features / lists ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; font-size: .94rem; }
.checks li::before {
  content: "✓"; flex: 0 0 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(16, 185, 129, .12); color: #059669; font-size: .7rem; font-weight: 800; margin-top: .18rem;
}

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-left: 3.2rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  box-shadow: 0 10px 22px -12px rgba(37, 99, 235, .9);
}
.step h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- faq ---------- */
.faq { display: grid; gap: .7rem; max-width: 820px; margin-inline: auto; }
details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .95rem 1.1rem; box-shadow: var(--shadow-sm);
}
details[open] { border-color: #c9d9f7; }
summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-weight: 700; }
details[open] summary::after { content: "−"; }
details p { margin: .7rem 0 0; color: var(--muted); font-size: .94rem; }

/* ---------- badges / alerts ---------- */
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; background: var(--bg-soft-2); color: var(--brand-ink); }
.badge--green { background: rgba(16, 185, 129, .12); color: #047857; }
.badge--amber { background: rgba(245, 158, 11, .14); color: #b45309; }
.alert { border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .92rem; border: 1px solid; }
.alert--info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert--ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert--warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert--err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
label { font-size: .86rem; font-weight: 600; }
label .req { color: var(--red); }
input, select, textarea {
  font: inherit; font-size: .94rem; padding: .7rem .8rem; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
textarea { min-height: 110px; resize: vertical; }
.hint { font-size: .78rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(226, 236, 255, .66); padding: 3.2rem 0 1.6rem; font-size: .9rem; }
.site-footer a { color: rgba(226, 236, 255, .72); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .09); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
.footer-brand p { max-width: 34ch; }

/* ---------- misc ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: inline-flex; align-items: center; gap: .5rem;
  background: #25d366; color: #06281a; font-weight: 700; font-size: .9rem;
  padding: .75rem 1.05rem; border-radius: 999px; box-shadow: 0 16px 34px -14px rgba(37, 211, 102, .9);
}
.wa-float:hover { color: #06281a; }
.breadcrumb { font-size: .84rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.logo-strip { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: center; opacity: .75; font-weight: 700; letter-spacing: -.02em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose li { margin-bottom: .45rem; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .plans, .plans--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .nav.is-open {
    display: grid; position: absolute; top: 68px; left: 0; right: 0;
    background: #0a1226; padding: .8rem 1.25rem 1.2rem; gap: .15rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-actions .btn--ghost { display: none; }
  .grid--3, .grid--2, .steps, .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .plans, .plans--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
