/* diawan.id — parent brand landing.
 * Tokens from the Diawan Design Guide; parent brand carries the full
 * gradient and no single app hue. Both themes mandatory. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/PlusJakartaSans.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --brand-blue-900:#11277A; --brand-blue-700:#1A3FA6; --brand-blue-500:#1F8DD6;
  --brand-blue-300:#7FC0EA; --brand-blue-100:#DCEBF8;
  --brand-cyan-400:#22B8D6; --brand-cyan-100:#D6F2F8;
  --brand-green-600:#2A9D62; --brand-green-400:#3CC47C; --brand-green-100:#D8F2E3;
  --brand-yellow-500:#F2C200; --brand-yellow-400:#FFD400;

  --ink-900:#0E1530; --ink-700:#2A335A; --ink-500:#5B6486; --ink-400:#828AA8;
  --ink-300:#A8AEC5; --ink-200:#CFD4E2; --ink-100:#E7EAF3; --ink-050:#F1F3F9;

  --surface-0:#FFFFFF; --surface-1:#F6F8FC; --surface-2:#EDF1F9;
  --fg-1:var(--ink-900); --fg-2:var(--ink-700); --fg-3:var(--ink-500);
  --fg-4:var(--ink-300); --fg-inv:#FFFFFF;

  --gradient-brand: linear-gradient(115deg, #1A3FA6 0%, #1F8DD6 28%,
                    #22B8D6 48%, #3CC47C 68%, #FFD400 100%);

  --font-sans:"Plus Jakarta Sans","Inter",system-ui,sans-serif;

  --fs-display:64px; --fs-h1:44px; --fs-h2:32px; --fs-h3:24px; --fs-h4:20px;
  --fs-body-lg:18px; --fs-body:16px; --fs-body-sm:14px; --fs-caption:12px;
  --lh-tight:1.08; --lh-snug:1.20; --lh-normal:1.45; --lh-relaxed:1.60;

  --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px;
  --space-6:32px; --space-7:48px; --space-8:64px; --space-9:96px;

  --radius-sm:6px; --radius-md:10px; --radius-lg:14px; --radius-pill:999px;

  --shadow-sm:0 1px 2px rgba(14,21,48,.06),0 1px 1px rgba(14,21,48,.04);
  --shadow-md:0 6px 16px -4px rgba(14,21,48,.10),0 2px 4px rgba(14,21,48,.06);

  --ease-out:cubic-bezier(.22,1,.36,1);
  --dur-sm:200ms;

  --container-max:1200px; --topbar-height:64px;
  --hairline:1px solid var(--ink-100);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-0:#131A36; --surface-1:#0A1024; --surface-2:#1E2748;
  --ink-900:#EEF1FA; --ink-700:#C6CCE0; --ink-500:#99A1BE;
  --ink-400:#828CAA; --ink-300:#6B7396; --ink-200:#3D466B;
  --ink-100:#29325A; --ink-050:#1A2242;
  --brand-blue-100:#17245A; --brand-cyan-100:#0E3448;
  --brand-green-100:#113A2A;
  --shadow-sm:0 1px 2px rgba(0,0,0,.35),0 1px 1px rgba(0,0,0,.25);
  --shadow-md:0 6px 16px -4px rgba(0,0,0,.45),0 2px 4px rgba(0,0,0,.3);
}

* { box-sizing: border-box; }
html { font-size:16px; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; scroll-behavior:smooth; }
body {
  margin:0; font-family:var(--font-sans); font-size:var(--fs-body);
  line-height:var(--lh-normal); color:var(--fg-2); background:var(--surface-1);
}
::selection { background:var(--brand-blue-100); color:var(--brand-blue-900); }
:focus-visible { outline:2px solid var(--brand-blue-500); outline-offset:2px; }
a { color:var(--brand-blue-700); text-decoration:none; }
a:hover { color:var(--brand-blue-500); text-decoration:underline; }
:root[data-theme="dark"] a { color:var(--brand-blue-300); }

h1,h2,h3 { color:var(--fg-1); margin:0 0 var(--space-4); }
h1 { font-size:clamp(34px, 6vw, var(--fs-h1)); line-height:var(--lh-tight); font-weight:800; letter-spacing:-.02em; }
h2 { font-size:clamp(26px, 4.5vw, var(--fs-h2)); line-height:var(--lh-snug); font-weight:700; letter-spacing:-.01em; }
h3 { font-size:var(--fs-h4); line-height:var(--lh-snug); font-weight:700; }
p  { margin:0 0 var(--space-4); }

.container { max-width:var(--container-max); margin:0 auto; padding:0 var(--space-5); }

.gradient-text {
  background:var(--gradient-brand);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.eyebrow {
  font-size:var(--fs-caption); font-weight:600; text-transform:uppercase;
  letter-spacing:.08em; color:var(--brand-blue-700); margin:0 0 var(--space-3);
}
:root[data-theme="dark"] .eyebrow { color:var(--brand-blue-300); }
.lede { font-size:var(--fs-body-lg); line-height:var(--lh-relaxed); color:var(--fg-2); }
.caption { font-size:var(--fs-caption); color:var(--fg-3); }

/* ── Top bar (site header: 64px) ─────────────────────────────── */
.topbar {
  position:sticky; top:0; z-index:50; height:var(--topbar-height);
  background:color-mix(in srgb, var(--surface-0) 88%, transparent);
  backdrop-filter:blur(10px); border-bottom:var(--hairline);
}
.topbar-inner { display:flex; align-items:center; gap:var(--space-5); height:100%; }
.brand { display:flex; align-items:center; }
.brand img { display:block; }
.topnav { display:flex; gap:var(--space-5); margin-left:auto; }
.topnav a { color:var(--fg-2); font-size:var(--fs-body-sm); font-weight:500; }
.topnav a:hover { color:var(--fg-1); text-decoration:none; }
.topbar-actions { display:flex; align-items:center; gap:var(--space-3); margin-left:var(--space-4); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  height:38px; padding:0 var(--space-5); border:none; border-radius:var(--radius-md);
  font-family:inherit; font-size:var(--fs-body-sm); font-weight:600;
  cursor:pointer; transition:filter var(--dur-sm) var(--ease-out),
  transform var(--dur-sm) var(--ease-out); white-space:nowrap;
}
.btn:hover { text-decoration:none; filter:brightness(1.06); }
.btn:active { transform:translateY(1px); }
.btn-sm { height:32px; padding:0 var(--space-4); font-size:13px; border-radius:var(--radius-sm); }
.btn-lg { height:46px; padding:0 var(--space-6); font-size:15px; }
.btn-primary { background:var(--brand-blue-700); color:var(--fg-inv); }
:root[data-theme="dark"] .btn-primary { background:var(--brand-blue-500); }
.btn-gradient { background:var(--gradient-brand); color:#fff; text-shadow:0 1px 2px rgba(14,21,48,.25); }
.btn-gradient:hover { color:#fff; }
.btn-primary:hover { color:var(--fg-inv); }
.btn-outline {
  background:transparent; color:var(--fg-1);
  border:1px solid var(--ink-200);
}
.btn-outline:hover { color:var(--fg-1); background:var(--surface-2); }
.btn-icon { width:38px; padding:0; background:transparent; color:var(--fg-2); }
.btn-icon:hover { background:var(--surface-2); }
.btn-icon svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; }
.icon-moon { display:none; }
:root[data-theme="dark"] .icon-sun { display:none; }
:root[data-theme="dark"] .icon-moon { display:block; fill:currentColor; stroke:none; }

/* ── Sections ────────────────────────────────────────────────── */
.hero { padding:var(--space-9) 0 var(--space-8); text-align:center; }
.hero .lede { max-width:720px; margin:0 auto var(--space-6); }
.hero-actions {
  display:flex; gap:var(--space-4); justify-content:center;
  flex-wrap:wrap; margin-bottom:var(--space-4);
}
.section { padding:var(--space-8) 0; }
.section-alt { background:var(--surface-2); }
.section .eyebrow, .section h2 { text-align:center; }
.section h2 { margin-bottom:var(--space-6); }

.grid { display:grid; gap:var(--space-5); }
.grid-3 { grid-template-columns:repeat(3, 1fr); }

.card {
  background:var(--surface-0); border:var(--hairline);
  border-radius:var(--radius-lg); padding:var(--space-5);
  box-shadow:var(--shadow-sm);
}
.card h3 { margin-bottom:var(--space-3); }
.card p:last-child { margin-bottom:0; color:var(--fg-3); }

.step { position:relative; padding-top:var(--space-6); }
.step-num {
  position:absolute; top:calc(-1 * var(--space-4)); left:var(--space-5);
  width:40px; height:40px; border-radius:50%;
  background:var(--gradient-brand); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:var(--fs-body-lg);
  box-shadow:var(--shadow-md);
}
.steps { margin-top:var(--space-6); }

.case-tag {
  font-size:var(--fs-caption); font-weight:600; text-transform:uppercase;
  letter-spacing:.06em; color:var(--brand-green-600); margin-bottom:var(--space-2);
}
:root[data-theme="dark"] .case-tag { color:var(--brand-green-400); }

.workshop {
  display:flex; gap:var(--space-6); align-items:center;
  background:var(--surface-0); border:var(--hairline);
  border-radius:var(--radius-lg); padding:var(--space-7);
  box-shadow:var(--shadow-md);
}
.workshop img { flex-shrink:0; }
.workshop .eyebrow, .workshop h2 { text-align:left; }
.workshop .lede { margin-bottom:0; }

.section-cta { padding-bottom:var(--space-9); }
.cta-panel { text-align:center; max-width:720px; }
.cta-panel h2 { margin-bottom:var(--space-4); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { border-top:var(--hairline); background:var(--surface-0); padding:var(--space-7) 0; }
.footer-inner { display:flex; justify-content:space-between; gap:var(--space-6); flex-wrap:wrap; }
.footer img { margin-bottom:var(--space-3); }
.footer-links { text-align:right; }
.footer-links a { font-size:var(--fs-body-sm); font-weight:500; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns:1fr; }
  .topnav { display:none; }
  .topbar-actions .btn-sm { display:none; }
  .workshop { flex-direction:column; text-align:center; }
  .workshop .eyebrow, .workshop h2 { text-align:center; }
  .hero { padding-top:var(--space-7); }
  .footer-inner, .footer-links { text-align:left; }
}
