/* =========================================================
   KEYZONE SOFTWARE — WEBSITE STYLES
   ---------------------------------------------------------
   To change the brand colours, edit ONLY the values in the
   ":root" block below. Everything else uses these values.
   ========================================================= */

:root {
  --brand:        #2F6BFF;   /* main blue (buttons, links)          */
  --brand-2:      #12C8B0;   /* teal (second colour of gradient)    */
  --brand-dark:   #1E4FD6;   /* blue when a button is hovered       */
  --ink:          #0B1220;   /* dark navy: headings + dark sections */
  --text:         #3A4458;   /* normal paragraph text               */
  --muted:        #6B7489;   /* lighter grey text                   */
  --line:         #E4E8F0;   /* thin border lines                   */
  --bg:           #FFFFFF;   /* page background                     */
  --tint:         #F4F7FC;   /* light blue-grey section background  */
  --green:        #16A34A;
  --amber:        #D97706;
  --radius:       16px;
  --shadow:       0 10px 30px rgba(11, 18, 32, .08);
  --font-head:    "Sora", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
}

/* ---------- Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.015em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; margin-bottom: .3em; }
p  { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Small labels & gradient text ---------- */
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .8em;
}
.grad {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.15rem; color: var(--text); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s; font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(47,107,255,.3); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost-light { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-lg { padding: 1em 2em; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
.btn-row.center { justify-content: center; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 700; color: var(--brand); margin-left: 2px; }
.brand-light { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); font-weight: 500; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--brand); text-decoration: none; }
.nav-links a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero, .page-hero {
  position: relative; overflow: hidden; padding: 80px 0 90px;
  background:
    radial-gradient(900px 400px at 85% 10%, rgba(18,200,176,.14), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(47,107,255,.12), transparent 60%);
}
.page-hero { padding: 70px 0; }
.page-hero.tall { padding: 130px 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero-points { list-style: none; padding: 0; margin: 2em 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .95rem; color: var(--muted); }
.hero-points li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* Phone picture made with CSS */
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 480px; }
.phone {
  width: 250px; height: 500px; border-radius: 40px; background: var(--ink); padding: 12px;
  box-shadow: 0 30px 60px rgba(11,18,32,.25); position: relative;
}
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 80px; height: 18px; background: #000; border-radius: 10px; z-index: 2; }
.phone-screen {
  height: 100%; border-radius: 30px; padding: 70px 22px 24px; text-align: center; color: #fff;
  background: linear-gradient(160deg, #13244a, #0b1220 60%);
  display: flex; flex-direction: column; align-items: center;
}
.lock-icon { font-size: 44px; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(47,107,255,.2); margin-bottom: 18px; }
.ps-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin: 0 0 4px; }
.ps-amount { font-family: var(--font-head); font-size: 2rem; font-weight: 800; margin: 0 0 8px; color: var(--brand-2); }
.ps-sub { font-size: .82rem; opacity: .75; margin-bottom: 20px; }
.ps-btn { background: var(--brand); border-radius: 999px; padding: 10px 20px; font-size: .88rem; font-weight: 600; width: 100%; }
.ps-emergency { margin-top: auto; font-size: .8rem; opacity: .8; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 8px 14px; }
.float-card {
  position: absolute; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: .85rem; color: var(--ink); border: 1px solid var(--line);
}
.fc-1 { top: 60px; left: 0; display: flex; align-items: center; gap: 8px; font-weight: 500; animation: float 5s ease-in-out infinite; }
.fc-2 { bottom: 50px; right: 0; width: 180px; animation: float 6s ease-in-out infinite reverse; }
.fc-2 small { color: var(--muted); font-size: .7rem; }
.mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 50px; margin: 8px 0 4px; }
.mini-bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(var(--brand), var(--brand-2)); }
.mini-bars i:nth-child(4) { background: var(--amber); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: #C9D1E3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--brand-2); }
.section-head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* ---------- Grids & cards ---------- */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: .25s; color: var(--text);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card p:last-child { margin-bottom: 0; }
.card.flat:hover { transform: none; box-shadow: none; }
.card.dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: #C9D1E3; }
.card.big h3 { font-size: 1.45rem; line-height: 1.35; margin: 0; }
.icon { font-size: 28px; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(47,107,255,.12), rgba(18,200,176,.12)); margin-bottom: 18px; }
.icon.sm { font-size: 22px; width: 46px; height: 46px; margin-bottom: 14px; flex-shrink: 0; }
.num { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; margin-bottom: 8px; }
.num { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product-card { display: flex; flex-direction: column; }
.product-card:hover { text-decoration: none; }
.product-card h3 { margin-top: 14px; }
.link-arrow { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--brand); }

/* Status badges */
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; align-self: flex-start; }
.badge-live  { background: #DCFCE7; color: #166534; }
.badge-early { background: #DBEAFE; color: #1E40AF; }
.badge-dev   { background: #FEF3C7; color: #92400E; }
.badge-soon  { background: #EDE9FE; color: #5B21B6; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }

/* Check-mark lists */
.check-list { list-style: none; padding: 0; margin: 1.2em 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(18,200,176,.18); color: var(--brand-2); font-size: .8rem; font-weight: 700; display: grid; place-items: center;
}
.check-list.boxed { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 0; }
.section-dark .check-list li { color: #C9D1E3; }

/* Feature list (icon + text rows) */
.feature-list { display: grid; gap: 22px; }
.feature { display: flex; gap: 16px; }
.feature p { margin: 0; font-size: .95rem; }

/* Numbered step pills */
.steps-visual { display: grid; gap: 16px; }
.step-pill { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px 22px; color: #fff; font-weight: 500; display: flex; align-items: center; gap: 14px; }
.step-pill span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-weight: 700; flex-shrink: 0; }
.step-pill:nth-child(2) { margin-left: 24px; } .step-pill:nth-child(3) { margin-left: 48px; } .step-pill:nth-child(4) { margin-left: 72px; }

/* Timeline (EMI Locker page) */
.timeline { max-width: 760px; margin: 0 auto; display: grid; gap: 28px; }
.tl-item { display: flex; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.tl-item p { margin: 0; }
.tl-num { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-head); background: linear-gradient(135deg, var(--brand), var(--brand-2)); }

/* KPI tiles (Personal CFO) */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.kpi small { display: block; color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; margin-bottom: 6px; }
.kpi strong { color: var(--ink); font-family: var(--font-head); font-size: 1rem; }
.product-row .sub { color: var(--muted); font-weight: 500; margin-top: -8px; }
.product-row h2 { margin-top: 14px; }
.note { background: #FFF8E6; border-left: 4px solid var(--amber); padding: 14px 18px; border-radius: 8px; font-size: .95rem; margin-top: 30px; }
.prose .note { margin-top: 0; margin-bottom: 30px; }

/* Quote */
.quote-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 40px; position: relative; }
.quote-card p { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.5; }
.quote-card span { color: var(--brand-2); font-weight: 600; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; }

/* Call-to-action band */
.cta-band { background: linear-gradient(120deg, var(--ink) 0%, #13244a 100%); padding: 70px 0; color: #C9D1E3; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.form label { display: block; font-weight: 500; color: var(--ink); font-size: .95rem; margin-bottom: 16px; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,107,255,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: #B91C1C; font-size: .92rem; min-height: 1em; margin: 0; }
.form:hover { transform: none; }
.contact-side { display: grid; gap: 16px; }
.contact-side h3 { margin-bottom: .3em; }
.contact-side p { margin-bottom: .6em; }

/* Legal pages */
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* Footer */
.site-footer { background: #070C17; color: #8B95AB; padding: 64px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: #8B95AB; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .brand { margin-bottom: 12px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; }
.footer-bottom p { margin: 0; font-size: .85rem; }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; z-index: 60;
  box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Fade-in when scrolling */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fc-1, .fc-2 { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   TABLETS AND PHONES
   ========================================================= */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.btn { margin-top: 14px; border-bottom: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 50px 0 60px; }
  .grid-2, .grid-3, .grid-4, .kpi-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 440px; transform: scale(.92); }
  .fc-1 { left: -6px; } .fc-2 { right: -6px; }
  .step-pill:nth-child(n) { margin-left: 0; }
  .btn-row .btn { flex: 1 1 100%; }
  .card, .tl-item { padding: 22px; }
  .tl-item { flex-direction: column; gap: 14px; }
}
