/* =========================================================
   Bocah Pinter — Authenticator App
   Professional light theme · single accent · restrained motion
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --ink: #0f172a;        /* headings */
  --body: #475569;       /* paragraph */
  --muted: #64748b;
  --line: #e6e8f0;
  --line-2: #d8dbe8;
  --brand: #4f46e5;      /* indigo 600 */
  --brand-ink: #4338ca;
  --brand-soft: #eef0fe;
  --navy: #0e1730;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sh-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --sh: 0 1px 3px rgba(16, 24, 40, .06), 0 12px 28px -14px rgba(16, 24, 40, .14);
  --sh-lg: 0 24px 56px -24px rgba(16, 24, 40, .26);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .94rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-outline { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 14px 24px; font-size: 1rem; }

/* ---------- Eyebrow / chip ---------- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

/* ---------- Section heading ---------- */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 600px; margin: 0 auto 56px; text-align: center; }
.head.left { margin: 0 0 32px; text-align: left; }
.head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.head p { color: var(--muted); font-size: 1.06rem; }

/* =========================================================
   Navbar
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--sh-sm); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: -.01em; }
.logo .mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
}
.logo .mark svg { width: 19px; height: 19px; }
.logo img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a.link {
  color: var(--body); font-size: .93rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a.link:hover { color: var(--ink); background: var(--bg-soft); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none; width: 42px; height: 42px;
  border-radius: 9px; border: 1px solid var(--line-2);
  background: #fff; cursor: pointer; position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 11px;
  width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span { top: 20px; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.open span { background: transparent; }
.burger.open span::before { transform: translateY(6px) rotate(45deg); }
.burger.open span::after { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 138px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.5rem); margin-bottom: 20px; font-weight: 800; }
.hero .lead { font-size: 1.14rem; color: var(--body); max-width: 510px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { color: var(--brand); flex: none; }

.trust { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.trust .t-item h4 { font-size: 1.55rem; font-weight: 800; }
.trust .t-item span { color: var(--muted); font-size: .84rem; }
.trust .t-divider { width: 1px; background: var(--line); }

/* Phone mockup */
.hero-visual { display: grid; place-items: center; position: relative; }
.phone {
  width: 272px; height: 558px;
  border-radius: 40px;
  background: #0e1730;
  border: 1px solid #1c2745;
  padding: 12px;
  box-shadow: var(--sh-lg);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 108px; height: 22px; background: #0e1730; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 30px; overflow: hidden;
  background: #f6f7fb;
  display: flex; flex-direction: column;
  padding: 46px 14px 18px; gap: 11px;
}
.phone-screen .ps-head { padding: 4px 6px 8px; }
.phone-screen .ps-head .ps-title { font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.phone-screen .ps-head .ps-sub { font-size: .74rem; color: var(--muted); }
.otp-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 13px; padding: 12px; display: flex; align-items: center; gap: 11px;
  box-shadow: var(--sh-sm);
}
.otp-card .ic {
  width: 36px; height: 36px; flex: none; border-radius: 9px;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem; color: #fff;
}
.otp-card .ic.a { background: #ea4335; }
.otp-card .ic.b { background: #2563eb; }
.otp-card .ic.c { background: #5865f2; }
.otp-card .meta { flex: 1; min-width: 0; }
.otp-card .meta .svc { font-size: .8rem; font-weight: 600; color: var(--ink); }
.otp-card .meta .code { font-size: 1.32rem; font-weight: 700; letter-spacing: .1em; color: var(--ink); }
.ring {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--brand) 70%, #e6e8f0 0);
  -webkit-mask: radial-gradient(circle 8px, transparent 98%, #000 100%);
  mask: radial-gradient(circle 8px, transparent 98%, #000 100%);
}

/* partner logos row (static, muted) */
.partners { margin-top: 72px; }
.partners p { text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.partners ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 44px; }
.partners li { color: #94a0b8; font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }

/* =========================================================
   Feature cards
   ========================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--sh); transform: translateY(-3px); }
.card .ic-box {
  width: 46px; height: 46px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  margin-bottom: 18px;
}
.card .ic-box svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.14rem; margin-bottom: 7px; }
.card p { color: var(--muted); font-size: .96rem; }

/* =========================================================
   How it works
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 4px 8px; }
.step .num {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
  color: var(--brand); font-weight: 700; font-size: 1.02rem;
  box-shadow: var(--sh-sm); margin-bottom: 18px;
}
.step h3 { font-size: 1.14rem; margin-bottom: 7px; }
.step p { color: var(--muted); font-size: .96rem; }

/* =========================================================
   Showcase
   ========================================================= */
.showcase-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.showcase-img {
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-soft); padding: 36px; display: grid; place-items: center;
}
.showcase-img img { border-radius: 14px; max-height: 440px; width: auto; box-shadow: var(--sh); }
.check-list { display: grid; gap: 18px; margin-top: 8px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; }
.check-list li .ck {
  flex: none; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-top: 1px;
}
.check-list li .ck svg { width: 14px; height: 14px; }
.check-list li b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 1px; }
.check-list li span.d { color: var(--muted); font-size: .95rem; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-wrap { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq.active { border-color: var(--line-2); box-shadow: var(--sh-sm); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; background: none; border: none; cursor: pointer;
  color: var(--ink); font-family: inherit; font-size: 1.02rem; font-weight: 600; text-align: left;
}
.faq-q .pm { flex: none; width: 22px; height: 22px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after {
  content: ""; position: absolute; top: 10px; left: 4px;
  width: 14px; height: 2px; background: var(--brand); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.faq-q .pm::after { transform: rotate(90deg); }
.faq.active .pm::after { opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 22px 20px; color: var(--muted); }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  border-radius: var(--radius); padding: 60px 40px; text-align: center;
  background: var(--navy); color: #fff;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.5rem); margin-bottom: 12px; }
.cta-band p { color: #aeb6cc; max-width: 500px; margin: 0 auto 26px; }
.cta-band .btn-outline { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.cta-band .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-primary:hover { background: #eef0fe; }

/* =========================================================
   Footer
   ========================================================= */
footer { border-top: 1px solid var(--line); padding: 60px 0 28px; background: var(--bg-soft); }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--muted); margin-top: 14px; max-width: 280px; font-size: .94rem; }
.foot-col h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--muted); padding: 5px 0; font-size: .93rem; transition: color .2s; }
.foot-col a:hover { color: var(--brand); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .87rem;
}

/* =========================================================
   Reveal + back to top
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.gotop {
  position: fixed; right: 22px; bottom: 22px;
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; box-shadow: var(--sh);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s, transform .25s, background .2s; z-index: 40; cursor: pointer;
}
.gotop:hover { background: var(--brand-ink); }
.gotop.show { opacity: 1; pointer-events: auto; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .hero-visual { order: -1; }
  .showcase-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px; max-width: 460px; margin: 0 auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot-brand { grid-column: span 2; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 70px 14px auto 14px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-lg);
    transform-origin: top; transform: scaleY(.7); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .2s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a.link { padding: 12px 14px; }
  .nav-cta .btn-outline { display: none; }
  .burger { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .trust { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
