/* components.css — section/component styles */

/* ===== Brand ===== */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--heading); letter-spacing: -.02em; }
.brand__mark { display: inline-grid; place-items: center; }

/* ===== Navbar ===== */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s, background .2s; }
.navbar.scrolled { border-bottom-color: var(--ink-200); box-shadow: var(--shadow-sm); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-700); font-weight: 500; font-size: .97rem; transition: color .15s; }
.nav-links a:hover { color: var(--brand-700); }
/* Keep the nav CTA button text white (overrides .nav-links a specificity) */
.nav-links .nav-cta { color: #fff; }
.nav-links .nav-cta:hover { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink-800); border-radius: 2px; transition: transform .2s, opacity .2s; }
.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); }

/* ===== Hero ===== */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 110px); background: radial-gradient(1200px 600px at 80% -10%, var(--brand-50), transparent 60%), linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--brand-200); color: var(--brand-700); font-weight: 600; font-size: .85rem; padding: 6px 14px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 4px rgba(59,130,246,.18); }
.hero__title { margin-bottom: 20px; }
.hero__sub { font-size: 1.15rem; max-width: 540px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 22px; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--ink-700); }
.hero__points svg { color: var(--brand-600); }

/* Phone mockup */
.hero__visual { display: flex; justify-content: center; }
.phone { position: relative; width: min(320px, 86vw); aspect-ratio: 9/19; background: linear-gradient(160deg, #1E293B, #0F172A); border-radius: 38px; padding: 14px; box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06); }
.phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: #0F172A; border-radius: 0 0 16px 16px; z-index: 2; }
.phone__screen { position: relative; width: 100%; height: 100%; background: var(--brand-50); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 22px 18px 14px; background: linear-gradient(180deg, var(--brand-600), var(--brand-700)); color: #fff; }
.chat-head__avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 800; }
.chat-head__title { font-weight: 700; font-size: 1.05rem; }
.chat-head__status { font-size: .78rem; opacity: .85; display: flex; align-items: center; gap: 6px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52,211,153,.25); }
.chat-body { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.45; }
.bubble--in { align-self: flex-start; background: #fff; color: var(--ink-800); border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); }
.bubble--out { align-self: flex-end; background: var(--brand-600); color: #fff; border-bottom-right-radius: 5px; }
.bubble.typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; }
.bubble.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-400); animation: typing 1.2s infinite ease-in-out; }
.bubble.typing span:nth-child(2) { animation-delay: .2s; }
.bubble.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-input { margin: 12px 14px 18px; background: #fff; border-radius: var(--r-pill); padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; color: var(--ink-400); font-size: .88rem; box-shadow: var(--shadow-sm); }
.chat-send { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-600); display: grid; place-items: center; }
.chat-send::before { content: ""; width: 9px; height: 9px; border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg) translate(-1px, 1px); }

/* ===== Trust band ===== */
.trust-band { background: var(--ink-900); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trust-band h3 { color: #fff; margin: 14px 0 8px; }
.trust-band p { color: var(--ink-300); }
.trust-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: rgba(59,130,246,.18); color: var(--brand-300); }

/* ===== Features ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.feature-card__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand-700); margin-bottom: 18px; }
.feature-card h3 { margin-bottom: 8px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border-radius: var(--r-lg); padding: 30px 26px; border: 1px solid var(--ink-200); box-shadow: var(--shadow-sm); position: relative; }
.step__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-600); color: #fff; font-weight: 800; margin-bottom: 16px; box-shadow: var(--shadow-blue); }
.step h3 { margin-bottom: 8px; }

/* ===== Why ===== */
.why__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.why__lead { font-size: 1.15rem; margin-bottom: 16px; }
.why__marks { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.why__marks div { display: flex; flex-direction: column; }
.why__marks strong { font-size: 2rem; font-weight: 800; color: var(--brand-700); line-height: 1; }
.why__marks span { font-size: .85rem; color: var(--ink-500); margin-top: 6px; }
.shield-art { max-width: 340px; margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(37,99,235,.28)); }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--r-md); padding: 4px 6px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s; }
.faq__item[open] { border-color: var(--brand-200); box-shadow: var(--shadow-md); }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; color: var(--heading); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand-600); transition: transform .2s; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__a { padding: 0 20px 20px; }
.faq__a p { color: var(--text-soft); }

/* ===== CTA ===== */
.cta { background: linear-gradient(150deg, var(--brand-700), var(--brand-900)); color: #fff; padding: clamp(56px, 8vw, 96px) 0; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -20%, rgba(255,255,255,.12), transparent 60%); }
.cta__inner { position: relative; }
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { color: var(--brand-100); max-width: 540px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta__form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto 10px; flex-wrap: wrap; justify-content: center; }
.cta__form input { flex: 1; min-width: 220px; padding: 14px 18px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; font-size: 1rem; }
.cta__form input::placeholder { color: rgba(219,234,254,.7); }
.cta__form input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.18); }
.cta__note { min-height: 24px; font-size: .92rem; color: var(--brand-100); margin-top: 4px; }
.cta__note.ok { color: #BBF7D0; }
.cta__note.err { color: #FECACA; }
.cta__store { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.store-btn { color: var(--ink-900); }
.cta__soon { color: var(--brand-200); font-size: .88rem; font-weight: 600; letter-spacing: .04em; }

/* ===== Footer ===== */
.footer { background: var(--ink-900); color: var(--ink-300); padding: 56px 0 36px; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; align-items: start; }
.footer .brand__name { color: #fff; }
.footer__tag { margin-top: 12px; font-size: .92rem; max-width: 280px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: var(--ink-300); font-size: .95rem; transition: color .15s; }
.footer__links a:hover { color: #fff; }
.footer__legal { font-size: .85rem; }
.footer__legal p { color: var(--ink-400); }
.footer__privacy-note { margin-top: 6px; color: var(--ink-500); }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(4px); }
.modal__panel { position: relative; max-width: 440px; width: 100%; background: #fff; border-radius: var(--r-lg); padding: 36px 30px 30px; text-align: center; box-shadow: var(--shadow-lg); animation: pop .25s ease; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__close { position: absolute; top: 12px; right: 14px; font-size: 1.6rem; color: var(--ink-400); line-height: 1; }
.modal__close:hover { color: var(--ink-800); }
.modal__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); margin: 0 auto 16px; }
.modal__panel h2 { font-size: 1.4rem; margin-bottom: 10px; }
.modal__panel p { margin-bottom: 22px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .why__grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid, .steps, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 680px) {
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 12px var(--gutter) 24px; box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .28s ease; border-bottom: 1px solid var(--ink-200); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--ink-100); }
  .nav-links .nav-cta { margin-top: 12px; border-bottom: none; justify-content: center; }
  .nav-toggle { display: flex; }
  .feature-grid, .steps, .trust-grid { grid-template-columns: 1fr; }
  .hero__points { gap: 14px; }
  .cta__form { flex-direction: column; }
  .cta__form .btn { width: 100%; justify-content: center; }
}
