/* Yawakili website — design tokens, layout, components, motion. */
:root {
  --navy: #0f2a44; --navy-2: #16385a; --navy-3: #1d4a73; --gold: #b8902f; --gold-2: #d4ae55;
  --ink: #0f172a; --body: #334155; --muted: #64748b; --line: #e4e8ef; --paper: #f6f7f9; --white: #fff;
  --radius: 18px; --shadow: 0 20px 45px -25px rgba(15, 23, 42, .35); --ease: cubic-bezier(.2, .7, .2, 1);
}
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--body); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, .serif { font-family: 'Source Serif 4', Georgia, serif; color: var(--ink); letter-spacing: -.015em; }
h4, h5, h6 { color: var(--ink); }
a { color: var(--navy); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--gold); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Buttons */
.btn { border-radius: 12px; font-weight: 600; padding: .7rem 1.25rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn-lg { padding: .9rem 1.6rem; }
.btn-brand { background: var(--navy); color: #fff; border: 0; box-shadow: 0 10px 24px -12px rgba(15, 42, 68, .8); }
.btn-brand:hover { background: var(--navy-2); color: #fff; transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #fff; border: 0; box-shadow: 0 12px 28px -12px rgba(184, 144, 47, .9); }
.btn-gold:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost { color: var(--navy); border: 1px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-glass { color: #fff; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.btn-glass:hover { color: var(--navy); background: #fff; }

/* Navigation */
.site-nav { position: fixed; inset: 0 0 auto 0; z-index: 1030; transition: background .3s, box-shadow .3s, padding .3s; padding: 10px 0; }
.site-nav.scrolled, .site-nav.solid { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); box-shadow: 0 1px 0 var(--line); padding: 2px 0; }
.site-nav .navbar-brand img { height: 44px; width: auto; border-radius: 8px; }
.site-nav .nav-link { color: var(--body); font-weight: 500; padding: .5rem .9rem !important; position: relative; }
.site-nav .nav-link::after { content: ''; position: absolute; left: .9rem; right: .9rem; bottom: .2rem; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link.active { color: var(--navy); }
.navbar-toggler { border: 0; font-size: 1.4rem; color: var(--navy); }
@media (max-width: 991.98px) { .site-nav .navbar-collapse { background: #fff; border-radius: 16px; padding: 1rem; margin-top: .5rem; box-shadow: var(--shadow); } }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: 9.5rem 0 6rem; background: var(--navy); isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: -20%; z-index: -2;
  background: radial-gradient(40% 50% at 15% 20%, rgba(212, 174, 85, .28), transparent 60%), radial-gradient(45% 55% at 85% 30%, rgba(56, 126, 196, .35), transparent 60%), radial-gradient(50% 60% at 50% 100%, rgba(29, 74, 115, .9), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) rotate(0deg); } to { transform: translate3d(2%, 2%, 0) rotate(3deg); } }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.07; }
.hero h1 .accent { background: linear-gradient(90deg, var(--gold-2), #f3d58a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: rgba(255, 255, 255, .82); font-size: 1.15rem; max-width: 36rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hero .eyebrow { color: var(--gold-2); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); padding: .4rem .8rem; border-radius: 999px; }
.hero-points { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1.5rem; color: rgba(255, 255, 255, .8); font-size: .92rem; }
.hero-points i { color: var(--gold-2); margin-right: .35rem; }
.page-hero { padding: 8.5rem 0 4rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* Product frame and floating cards */
.frame { position: relative; border-radius: 16px; background: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; }
.frame-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: #eef1f5; border-bottom: 1px solid var(--line); }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.frame-bar span:nth-child(1) { background: #f87171; } .frame-bar span:nth-child(2) { background: #fbbf24; } .frame-bar span:nth-child(3) { background: #34d399; }
.frame-bar .url { margin-left: 10px; font-size: .72rem; color: var(--muted); background: #fff; border-radius: 6px; padding: 2px 10px; }
.frame img { display: block; width: 100%; height: auto; }
.hero-visual { position: relative; perspective: 1400px; }
.hero-visual .frame { transform: rotateY(-8deg) rotateX(4deg); transition: transform .8s var(--ease); }
.hero-visual:hover .frame { transform: rotateY(-2deg) rotateX(1deg); }
.float-card { position: absolute; background: #fff; color: var(--ink); border-radius: 14px; padding: .75rem .9rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .65rem; font-size: .85rem; animation: bob 6s ease-in-out infinite; }
.float-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.float-card small { display: block; color: var(--muted); font-size: .72rem; }
.float-card.one { left: -28px; bottom: 18%; }
.float-card.two { right: -18px; top: 12%; animation-delay: -2s; }
.float-card.three { right: 8%; bottom: -22px; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 991.98px) { .float-card { display: none; } .hero-visual .frame { transform: none; } }

/* Trust strip and marquee */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: scroll 40s linear infinite; padding: 1.1rem 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { color: var(--muted); font-weight: 500; white-space: nowrap; }
.marquee-track i { color: var(--gold); margin-right: .45rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-muted { background: var(--paper); }
.section-dark { background: var(--navy); color: rgba(255, 255, 255, .82); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 46rem; margin: 0 auto 3.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: .6rem 0 .8rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: rgba(255, 255, 255, .7); }

/* Cards */
.f-card { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; position: relative; overflow: hidden; }
.f-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.f-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.f-card:hover::before { transform: scaleX(1); }
.f-card h3 { font-family: 'Inter', sans-serif; font-size: 1.08rem; font-weight: 700; margin: 1rem 0 .5rem; }
.f-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: var(--navy); background: linear-gradient(135deg, rgba(15, 42, 68, .08), rgba(184, 144, 47, .14)); transition: transform .35s var(--ease), background .35s; }
.f-card:hover .icon-tile { transform: rotate(-6deg) scale(1.06); background: var(--navy); color: var(--gold-2); }
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
.tick-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: .05rem; color: var(--gold); }

/* Split feature rows */
.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 992px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.split h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: .6rem 0 1rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: 999px; background: rgba(15, 42, 68, .06); color: var(--navy); font-size: .82rem; font-weight: 600; margin: 0 .35rem .45rem 0; }
.chip i { color: var(--gold); }

/* Stats */
.stat { text-align: center; }
.stat .num { font-family: 'Source Serif 4', serif; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: #fff; }
.stat .lbl { color: rgba(255, 255, 255, .7); font-size: .95rem; }

/* Steps */
.step { position: relative; padding-left: 4rem; }
.step .n { position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--navy); background: #fff; box-shadow: 0 0 0 6px rgba(184, 144, 47, .2); }
.step h3 { font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 700; }

/* Tabs (module explorer) */
.module-tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.module-tabs button { border: 1px solid var(--line); background: #fff; color: var(--body); border-radius: 999px; padding: .55rem 1.05rem; font-weight: 600; transition: all .25s var(--ease); }
.module-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 10px 22px -12px rgba(15, 42, 68, .9); }
.module-panel { display: none; animation: fadeUp .5s var(--ease); }
.module-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Pricing */
.billing-toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.billing-toggle button { border: 0; background: transparent; border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; color: var(--body); }
.billing-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.save-badge { background: rgba(184, 144, 47, .15); color: #7a5b13; border-radius: 999px; font-size: .72rem; font-weight: 700; padding: .15rem .5rem; margin-left: .35rem; }
.price-card { position: relative; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 2rem; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--navy); box-shadow: 0 30px 60px -35px rgba(15, 42, 68, .7); }
.price-card .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #fff; font-size: .75rem; font-weight: 700; padding: .3rem .85rem; border-radius: 999px; white-space: nowrap; }
.price-card h3 { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.2rem; }
.price-card .amount { font-family: 'Source Serif 4', serif; font-size: 2.6rem; font-weight: 700; color: var(--ink); line-height: 1; }
.price-card .per { color: var(--muted); font-size: .95rem; }
.price-card ul { flex: 1; }
.compare { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: .85rem 1rem; vertical-align: middle; }
.compare thead th { background: var(--navy); color: #fff; font-weight: 600; }
.compare tbody tr:nth-child(even) { background: var(--paper); }
.compare .yes { color: #15803d; } .compare .no { color: #cbd5e1; }

/* FAQ */
.faq .accordion-item { border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: .75rem; overflow: hidden; }
.faq .accordion-button { font-weight: 600; color: var(--ink); }
.faq .accordion-button:not(.collapsed) { background: rgba(15, 42, 68, .04); color: var(--navy); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(184, 144, 47, .3); }

/* CTA */
.cta { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; border-radius: 28px; padding: 3.5rem; }
.cta::after { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 174, 85, .35), transparent 70%); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .8); }

/* Forms */
.form-control, .form-select { border-radius: 12px; border-color: var(--line); padding: .75rem .95rem; }
.form-control:focus, .form-select:focus { border-color: var(--navy); box-shadow: 0 0 0 .2rem rgba(15, 42, 68, .12); }
.form-label { font-weight: 600; font-size: .88rem; color: #334155; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 2rem; box-shadow: var(--shadow); }
.info-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.info-row .icon-tile { width: 46px; height: 46px; font-size: 1.1rem; flex-shrink: 0; }

/* Legal pages (privacy, terms) keep their markup */
.bg-primary { background: var(--navy) !important; }
section.bg-primary { padding-top: 8.5rem !important; }
.bg-primary-soft { background: rgba(15, 42, 68, .07) !important; }
.text-primary { color: var(--navy) !important; }

/* Footer */
.site-footer { background: #0b2034; color: rgba(255, 255, 255, .7); padding: 4.5rem 0 2rem; }
.footer-logo { border-radius: 8px; height: 44px; width: auto; }
.footer-title { font-family: 'Inter', sans-serif; color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a, .footer-contact a, .footer-bottom a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover, .footer-bottom a:hover { color: var(--gold-2); }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .7rem; }
.footer-contact i { color: var(--gold-2); margin-top: .25rem; width: 16px; }
.social { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; transition: background .25s, transform .25s; }
.social:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding-top: 1.5rem; font-size: .88rem; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .reveal-left, .no-js .reveal-right { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}

/* Navigation over the dark hero (before scrolling), desktop only */
@media (min-width: 992px) {
  .site-nav:not(.scrolled) .nav-link { color: rgba(255, 255, 255, .85); }
  .site-nav:not(.scrolled) .nav-link:hover, .site-nav:not(.scrolled) .nav-link.active { color: #fff; }
  .site-nav:not(.scrolled) .btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); color: #fff; }
  .site-nav:not(.scrolled) .btn-ghost:hover { background: #fff; color: var(--navy); }
  .site-nav:not(.scrolled) .btn-brand { background: linear-gradient(135deg, var(--gold), var(--gold-2)); }
}
.site-nav:not(.scrolled) .navbar-toggler { color: #fff; }
