/* Creative Cyber Cats (M) Sdn. Bhd. site styles
   Font: Inter 400 / 600 / 800. Breakpoints: 768px, 1024px. */

:root {
  --navy: #0f1b2d;
  --navy-2: #16263d;
  --ink: #1b2430;
  --muted: #5b6676;
  --line: #e3e7ee;
  --bg: #ffffff;
  --soft: #f4f6fa;
  --accent: #f5b73b;
  --accent-dark: #d99a14;
  --accent-ink: #2a1d00;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --danger: #c0392b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.08);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; border-radius: 8px; font-weight: 600; z-index: 1000;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--navy .section-head p { color: rgba(255,255,255,0.78); }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px;
}
.section--navy .eyebrow { color: var(--accent); }
@media (min-width: 768px) { .section { padding: 96px 0; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
  font-family: inherit; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { width: 16px; height: 34px; flex: none; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 68px; background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.1); padding: 8px 16px 16px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.site-nav a {
  display: block; padding: 12px 10px; text-decoration: none; border-radius: 8px; font-weight: 600; font-size: 0.98rem; white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,0.1); }
.site-nav .nav-cta a { background: var(--accent); color: var(--accent-ink); text-align: center; margin-top: 6px; }
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav.is-open { position: static; padding: 0; border: 0; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 2px; }
  .site-nav a { padding: 10px 12px; }
  .site-nav .nav-cta a { margin: 0 0 0 8px; padding: 10px 18px; }
}

/* Hero */
.hero {
  position: relative; background: var(--navy); color: #fff; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/hero-bg.webp") center/cover no-repeat; opacity: 0.18;
}
.hero .container { position: relative; display: grid; gap: 36px; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 560px; }
.hero .trust { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 22px 0 0; color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.hero .trust li { display: flex; align-items: center; gap: 6px; }
.hero .trust svg { width: 16px; height: 16px; color: var(--accent); }
@media (min-width: 1024px) {
  .hero .container { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding-top: 80px; padding-bottom: 80px; }
}
.hero--inner { padding: 0; }
.hero--inner .container { display: block; padding-top: 48px; padding-bottom: 48px; }
.hero--inner .lead { max-width: 680px; }

/* Chat demo (inline) */
.chat {
  background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.chat-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--whatsapp); flex: none; }
.chat-head strong { font-size: 0.95rem; }
.chat-head small { color: var(--muted); font-size: 0.8rem; }
.chat-log { list-style: none; margin: 0; padding: 14px; display: flex; flex-direction: column; gap: 10px; height: 300px; overflow-y: auto; }
.chat-log li { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 0.95rem; line-height: 1.5; }
.chat-log .bot { background: var(--soft); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-log .user { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-log .typing { color: var(--muted); font-style: italic; }
.chat-prompts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 10px; list-style: none; margin: 0; }
.chat-prompts button {
  font: inherit; font-size: 0.82rem; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; color: var(--ink);
}
.chat-prompts button:hover { border-color: var(--navy); }
.chat-form { display: flex; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1; min-width: 0; font: inherit; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line);
}
.chat-form button { padding: 11px 18px; }
.chat-note { margin: 0; padding: 0 14px 12px; font-size: 0.78rem; color: var(--muted); }

/* Floating chat widget */
.chat-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; font: inherit;
  font-weight: 600; box-shadow: var(--shadow); cursor: pointer;
}
.chat-fab svg { width: 20px; height: 20px; }
.chat-panel {
  position: fixed; right: 16px; bottom: 80px; z-index: 61; width: min(380px, calc(100vw - 32px));
  border: 0; padding: 0; margin: 0; background: transparent;
}
.chat-panel[hidden] { display: none; }
.chat-panel .chat { height: min(560px, calc(100vh - 110px)); }
.chat-panel .chat-log { flex: 1; height: auto; }
.chat-close { margin-left: auto; background: transparent; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.chat-close:hover { background: var(--line); }
.wa-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 8px;
  background: var(--whatsapp); color: #fff; border-radius: 999px; padding: 12px 16px; font-weight: 600;
  text-decoration: none; box-shadow: var(--shadow); font-size: 0.95rem;
}
.wa-fab svg { width: 20px; height: 20px; }
@media (max-width: 767px) { .wa-fab span { display: none; } .chat-fab span { display: none; } }

/* Story */
.story { display: grid; gap: 28px; }
.story-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.story-steps li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 70px; position: relative;
}
.story-steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  font-weight: 800; display: grid; place-items: center;
}
.story-steps h3 { margin-bottom: 6px; }
.story-steps p { margin: 0; color: var(--muted); }
@media (min-width: 1024px) { .story { grid-template-columns: 1fr 1.2fr; align-items: start; } }

/* Cards grid */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section--navy .card { background: var(--navy-2); border-color: rgba(255,255,255,0.1); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; margin-bottom: 14px; color: var(--navy); }
.section--navy .card .icon { background: rgba(255,255,255,0.1); color: var(--accent); }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
.section--navy .card p { color: rgba(255,255,255,0.78); }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }

/* Conversation example */
.convo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.convo li { padding: 12px 16px; border-radius: 14px; font-size: 0.98rem; }
.convo .q { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; max-width: 85%; }
.convo .a { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; max-width: 92%; }
.convo .meta { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 2px; }
.convo .q .meta { color: rgba(255,255,255,0.7); }

/* Steps (how it works) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps li span.num { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; color: var(--accent-dark); margin-bottom: 8px; }
.steps li p { margin: 0; color: var(--muted); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Pricing */
.price-grid { display: grid; gap: 20px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.price-card--hl { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price-card .tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; align-self: flex-start; }
.price { font-size: 2.4rem; font-weight: 800; line-height: 1.1; margin: 6px 0 4px; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-sub { color: var(--muted); margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { width: 20px; height: 20px; flex: none; color: var(--whatsapp-dark); margin-top: 3px; }
.price-card .btn { margin-top: auto; }
@media (min-width: 1024px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }

/* Works */
.works { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.work { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.work img { width: 100%; aspect-ratio: 600 / 405; object-fit: cover; }
.work .body { padding: 16px 18px 18px; }
.work h3 { font-size: 1.05rem; margin-bottom: 4px; }
.work p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.work a { text-decoration: none; }
.work a:hover h3 { text-decoration: underline; }
.work .region { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 6px; }
@media (min-width: 600px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .works { grid-template-columns: repeat(3, 1fr); } .works--4 { grid-template-columns: repeat(4, 1fr); } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 36px 14px 0; position: relative; list-style: none; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; color: var(--accent-dark); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 0 0 16px; padding-right: 24px; }

/* About / dl */
.dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.dl dt { font-weight: 600; padding: 12px 0 2px; }
.dl dd { margin: 0; padding: 0 0 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) {
  .dl { grid-template-columns: 220px 1fr; }
  .dl dt { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .dl dd { padding: 14px 0; }
}
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.member img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.member h3 { margin-bottom: 2px; }
.member .role { color: var(--accent-dark); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.member p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 768px) { .team { grid-template-columns: repeat(3, 1fr); } }

/* Two column text/visual */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--whatsapp-dark); margin-top: 2px; }

/* CTA band */
.cta-band { background: var(--accent); color: var(--accent-ink); }
.cta-band .container { display: grid; gap: 18px; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; }
@media (min-width: 1024px) { .cta-band .container { grid-template-columns: 1fr auto; align-items: center; } }

/* Forms */
.form { display: grid; gap: 16px; max-width: 640px; }
.form label { font-weight: 600; display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 4px; }
.form-msg { margin: 0; font-weight: 600; }
.form-msg.is-error { color: var(--danger); }
.form-msg.is-ok { color: var(--whatsapp-dark); }
.contact-grid { display: grid; gap: 36px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; } }
.contact-aside { background: var(--soft); border-radius: var(--radius); padding: 28px; }
.contact-aside p { color: var(--muted); }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: 56px 0 28px; font-size: 0.95rem; }
.site-footer .cols { display: grid; gap: 28px; margin-bottom: 36px; }
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (min-width: 768px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-24 { margin-top: 24px; } .mt-36 { margin-top: 36px; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.note { font-size: 0.9rem; color: var(--muted); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.badge-row li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; font-weight: 600; }
.section--navy .badge-row li { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }

/* Case study */
.case { display: grid; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.case-visual { margin: 0; }
.case-visual img { width: 100%; max-width: 420px; border-radius: 12px; border: 1px solid var(--line); margin: 0 auto; }
.case-visual figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 10px; text-align: center; }
.case-body h3 { font-size: 1.35rem; }
.case-body .check-list { margin: 18px 0; }
@media (min-width: 1024px) { .case { grid-template-columns: 0.8fr 1.2fr; align-items: center; padding: 36px; } }

/* President message */
.president { display: grid; gap: 28px; align-items: start; }
.president-photo { margin: 0; text-align: center; }
.president-photo img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.president-photo figcaption { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.president-body p { font-size: 1.05rem; }
.president-sign { font-weight: 800; font-size: 1.15rem; margin-top: 18px; }
.career-wrap { grid-row: 2; }
.career-title { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 8px; }
.career { margin: 0; display: grid; grid-template-columns: 52px 1fr; gap: 6px 10px; font-size: 0.9rem; }
.career dt { font-weight: 800; color: var(--navy); }
.career dd { margin: 0; color: var(--muted); }
@media (min-width: 1024px) {
  .president { grid-template-columns: 300px 1fr; gap: 48px; grid-template-rows: auto auto; }
  .president-photo { grid-column: 1; grid-row: 1; }
  .career-wrap { grid-column: 1; grid-row: 2; }
  .president-body { grid-column: 2; grid-row: 1 / span 2; }
}

/* Conversation example inside the dark hero */
.convo--hero { max-width: 100%; }
.convo--hero .a { background: #fff; color: var(--ink); }
.convo--hero .q { background: var(--accent); color: var(--accent-ink); }
.convo--hero .q .meta { color: rgba(42,29,0,0.7); }
.hero .eyebrow { color: var(--accent); }
