/* ---------- Design tokens (from prostudio.my) ---------- */
:root {
  --ink: #0b1220;
  --text: #333f4f;
  --muted: #5a6a7a;
  --faint: #64748b;
  --line: #e0e6ed;
  --line-2: #cbd5e1;
  --bg: #fbfcfe;
  --soft: #f4f7fb;
  --soft-2: #eaeff6;
  --primary: #0f3460;
  --primary-hi: #164a8a;
  --primary-deep: #0a2444;
  --primary-bg: #e8eff8;
  --accent: #0d9488;
  --accent-hi: #0f766e;
  --accent-deep: #0a5f56;
  --accent-bg: #e6f4f3;
  --grad-brand: linear-gradient(135deg, var(--primary) 0%, var(--primary-hi) 58%, var(--accent) 132%);
  --good: #059669;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(11,18,32,.05), 0 8px 24px rgba(11,18,32,.05);
  --shadow-md: 0 20px 46px rgba(11,18,32,.10);
  --shadow-lg: 0 36px 84px rgba(11,18,32,.16);
  --max: 1180px;
  --gutter: 24px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
code { background: var(--soft-2); padding: 2px 6px; border-radius: 4px; font-size: .9em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,252,254,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { border-radius: 8px; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.brand-name span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); font-size: .95rem; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 10px 22px; border-radius: 999px; font-weight: 600;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--primary-hi); transform: translateY(-1px); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(15,52,96,.2); }
.btn-primary:hover { background: var(--primary-hi); transform: translateY(-2px); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-bg); text-decoration: none; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 6rem 0 4rem; background: linear-gradient(180deg, var(--primary-bg) 0%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.hero-lede { font-size: 1.1rem; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin: 1.5rem 0; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.hero-points li { padding: 4px 0; font-size: .95rem; }
.hero-points li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* Dashboard mock */
.dashboard-mock {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid var(--line);
}
.mock-bar {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  background: var(--soft); border-bottom: 1px solid var(--line);
}
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-bar .dot:first-child { background: #ff5f57; }
.mock-bar .dot:nth-child(2) { background: #febc2e; }
.mock-bar .dot:nth-child(3) { background: #28c840; }
.mock-title { margin-left: 12px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.mock-body { display: grid; grid-template-columns: 160px 1fr; min-height: 260px; }
.mock-sidebar { background: var(--soft); padding: 12px 8px; border-right: 1px solid var(--line); }
.mock-nav-item { padding: 8px 12px; border-radius: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 2px; }
.mock-nav-item.active { background: var(--primary); color: #fff; }
.mock-main { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; align-content: start; }
.mock-card { background: var(--soft); border-radius: var(--radius-sm); padding: 14px; }
.mock-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mock-value { font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-top: 4px; font-family: var(--font-display); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { margin-bottom: .75rem; }
.section-lede { color: var(--muted); font-size: 1.05rem; }

/* ---------- Modules ---------- */
.module-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.module-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; text-align: center; transition: transform .2s, box-shadow .2s;
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.module-icon { font-size: 2rem; margin-bottom: .75rem; }
.module-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.module-card p { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.why-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.why-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Demo ---------- */
.demo-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: center; }
.demo-grid h2 { margin-bottom: 1rem; }
.demo-note { background: var(--accent-bg); border: 1px solid var(--accent); border-radius: var(--radius); padding: 1.5rem; }
.demo-note p { margin: 0; color: var(--accent-deep); font-weight: 600; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 800px; margin: 0 auto 2rem; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; position: relative;
}
.price-card-featured { border: 2px solid var(--primary); box-shadow: var(--shadow-md); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 4px 16px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.price-head { text-align: center; margin-bottom: 1.5rem; }
.price-head h3 { font-size: 1.1rem; color: var(--muted); font-family: var(--font-sans); font-weight: 600; margin-bottom: .5rem; }
.price-amount { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--ink); }
.price-amount .currency { font-size: 1.2rem; vertical-align: super; color: var(--muted); }
.price-sub { font-size: .85rem; color: var(--muted); margin: .25rem 0 0; }
.price-features { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.price-features li { padding: 6px 0; font-size: .9rem; border-bottom: 1px solid var(--soft-2); }
.price-features li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.pricing-note { text-align: center; color: var(--muted); font-size: .9rem; max-width: 600px; margin: 0 auto; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .75rem; overflow: hidden; }
.faq-item summary { padding: 1rem 1.25rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+ "; color: var(--accent); font-weight: 700; }
.faq-item[open] summary::before { content: "− "; }
.faq-item p { padding: 0 1.25rem 1rem; margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Contact / Checkout ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; }
.contact-form label { display: block; margin-bottom: 1rem; }
.contact-form label span { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.contact-form input, .contact-form select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font-size: .95rem; font-family: inherit; background: #fff;
}
.contact-form input:focus, .contact-form select:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .75rem; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 3rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; align-items: start; }
.footer-brand .brand-name { color: #fff; font-size: 1.2rem; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .9rem; margin-top: .5rem; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .9rem; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-legal p { color: rgba(255,255,255,.4); font-size: .8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .demo-grid, .contact-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 1rem; border-bottom: 1px solid var(--line); gap: 8px; }
  .nav-toggle { display: block; }
  .hero-visual { display: none; }
}
@media (max-width: 600px) {
  .module-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}
