/* KhojiInfo — portfolio + traffic bridge. No framework, no build-time CSS tooling. */

:root {
  --navy: #0B1F3A;
  --navy-2: #12305a;
  --navy-3: #1b3d6e;
  --yellow: #FFC72C;
  --yellow-2: #ffd55c;
  --ink: #0B1F3A;
  --ink-2: #3c4b61;
  --muted: #66758b;
  --line: #e2e7ef;
  --bg: #ffffff;
  --tint: #f4f6f9;
  --wa: #1fa855;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 8px 24px rgba(11, 31, 58, .06);
  --shadow-lg: 0 2px 4px rgba(11, 31, 58, .08), 0 18px 48px rgba(11, 31, 58, .14);

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1200px;
  --hdr-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--font); color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
svg { flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--navy); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }

.eyebrow { font: 500 12.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.eyebrow-y { color: var(--yellow); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font: 600 15.5px/1.2 var(--font); text-decoration: none; border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--yellow-2); box-shadow: 0 8px 22px rgba(255, 199, 44, .3); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline { color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #18934a; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.more { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 15.5px; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; transition: gap .2s; }
.more:hover { gap: 10px; }
.more-y { color: var(--yellow); border-color: transparent; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .hdr { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(8px); } }
.hdr-in { display: flex; align-items: center; gap: 20px; height: var(--hdr-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 36px; object-fit: contain; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt strong { font-size: 20px; letter-spacing: -.02em; }
.brand-txt small { font: 500 10.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--navy); background: var(--tint); }
.nav a[href="#tpl"] { color: var(--navy); font-weight: 600; }
.hdr-cta { min-height: 42px; padding: 9px 16px; font-size: 14.5px; }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; border-radius: 8px; }
.nav-toggle span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.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: 1000px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: var(--hdr-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 520px) {
  .hdr-cta span { display: none; }
  .hdr-cta { width: 44px; min-height: 44px; padding: 0; }
  .brand-txt small { font-size: 9.5px; }
}

/* ---------- hero ---------- */
.hero { background: var(--navy); color: #fff; padding: 64px 0 0; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6.4vw, 64px); }
.hero-sub { margin-top: 18px; font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; color: var(--yellow); }
.hero-lead { margin-top: 18px; max-width: 560px; color: #c5d0e0; font-size: 17.5px; }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); aspect-ratio: 16 / 10; background: var(--navy-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero { padding-top: 88px; }
  .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; padding-bottom: 32px; }
}

.caps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.caps li { display: flex; align-items: center; gap: 10px; padding: 18px 16px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.caps li:last-child { grid-column: 1 / -1; }
.caps svg { width: 22px; height: 22px; color: var(--navy); }
@media (min-width: 900px) {
  .caps { grid-template-columns: repeat(5, 1fr); margin-top: 24px; }
  .caps li { padding: 22px 20px; font-size: 15px; }
  .caps li:last-child { grid-column: auto; }
}

/* ---------- generic sections ---------- */
.sec { padding: 88px 0; }
.sec-tint { background: var(--tint); }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 44px); }
.sec-head p { margin-top: 14px; color: var(--ink-2); font-size: 17.5px; }
.sec-head .more { margin-top: 22px; }
@media (max-width: 700px) { .sec { padding: 64px 0; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d3dbe6; }

.ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--yellow); color: var(--navy); }
.ico svg { width: 24px; height: 24px; }

/* ---------- services ---------- */
.svc-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1050px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc { display: flex; flex-direction: column; padding: 28px; }
.svc h3 { font-size: 20.5px; margin-top: 20px; }
.svc p { margin-top: 10px; color: var(--ink-2); flex: 1; }
.svc .more { margin-top: 22px; align-self: flex-start; }

/* ---------- featured TPL ---------- */
.tpl { position: relative; background: var(--navy); color: #fff; padding: 96px 0; overflow: hidden; }
.tpl::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 90% 0%, rgba(255, 199, 44, .12), transparent 70%); pointer-events: none; }
.tpl::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--yellow); }
.tpl .wrap { position: relative; }
.tpl-grid { display: grid; gap: 40px; align-items: center; }
.tpl h2 { font-size: clamp(32px, 5vw, 52px); }
.tpl-lead { margin-top: 18px; font-size: clamp(18px, 2vw, 21px); color: #fff; font-weight: 500; }
.tpl-copy > p:not(.eyebrow):not(.tpl-lead) { margin-top: 14px; color: #c5d0e0; max-width: 560px; }
.ticks { margin-top: 24px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; color: #e4eaf3; }
.ticks svg { width: 20px; height: 20px; color: var(--yellow); }
.tpl-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-2); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.tpl-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .tpl-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

.prod-grid { display: grid; gap: 16px; margin-top: 64px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .prod-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.prod { background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); overflow: hidden; transition: transform .25s, border-color .25s; }
.prod:hover { transform: translateY(-3px); border-color: rgba(255, 199, 44, .55); }
.prod img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #fff; }
.prod-body { padding: 22px 22px 24px; }
.prod h3 { font: 600 20px/1.2 var(--mono); letter-spacing: .02em; }
.prod p { margin-top: 8px; color: #c5d0e0; font-size: 15.5px; }
.prod .more { margin-top: 16px; }
.tpl-foot { margin-top: 28px; text-align: center; }
.tpl-foot a { color: #c5d0e0; font-size: 15px; text-underline-offset: 4px; }
.tpl-foot a:hover { color: var(--yellow); }

.lead-jump { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--yellow); font-weight: 600; font-size: 15.5px; text-decoration: none; border-bottom: 1px dashed rgba(255, 199, 44, .5); padding-bottom: 2px; }
.lead-jump:hover { border-bottom-style: solid; }
.lead-jump svg { width: 18px; height: 18px; }

/* ---------- lead form (WhatsApp hand-off) ---------- */
.lead { display: grid; gap: 28px; margin-top: 56px; padding: 28px 20px; background: var(--navy-2); border: 1px solid rgba(255, 199, 44, .35); border-radius: var(--radius); scroll-margin-top: calc(var(--hdr-h) + 16px); }
.lead h3 { font-size: clamp(24px, 3vw, 32px); }
.lead-copy > p:not(.eyebrow) { margin-top: 12px; color: #c5d0e0; }
.lead-steps { display: grid; gap: 12px; margin-top: 24px; }
.lead-steps li { display: flex; align-items: center; gap: 12px; color: #e4eaf3; font-size: 15.5px; }
.lead-steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--navy); font: 600 13px/1 var(--mono); flex: none; }
.lead-form { display: grid; gap: 14px; padding: 22px 18px; background: #fff; color: var(--ink); border-radius: var(--radius-sm); }
.f-row { display: grid; gap: 14px; }
.f { display: grid; gap: 6px; }
.f > span { font-size: 14px; font-weight: 600; }
.f em { color: #c0392b; font-style: normal; }
.f small { color: var(--muted); font-weight: 400; }
.f input, .f select, .f textarea { width: 100%; min-height: 46px; padding: 10px 12px; font: 400 16px/1.4 var(--font); color: var(--ink); background: var(--tint); border: 1px solid var(--line); border-radius: 8px; transition: border-color .2s, background-color .2s; }
.f textarea { resize: vertical; min-height: 84px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(255, 199, 44, .45); }
.f [aria-invalid="true"] { border-color: #c0392b; background: #fdf3f2; }
.f-err { padding: 10px 12px; border-radius: 8px; background: #fdf3f2; color: #a5281b; font-size: 14.5px; font-weight: 500; }
.btn-block { width: 100%; }
.f-alt { text-align: center; font-size: 14px; color: var(--muted); }
.f-alt a { color: var(--navy); font-weight: 600; }
@media (min-width: 600px) { .f-row { grid-template-columns: 1fr 1fr; } .lead-form { padding: 26px; } }
@media (min-width: 900px) { .lead { grid-template-columns: .8fr 1.2fr; gap: 48px; padding: 44px; align-items: center; } }

/* ---------- work ---------- */
.work-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .work-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .work-grid { grid-template-columns: repeat(4, 1fr); } }
.work { overflow: hidden; }
.work img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); }
.work-body { padding: 22px; }
.tag { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.work h3 { font-size: 19px; margin-top: 10px; }
.work-body > p:last-child { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }

.integ { display: grid; margin-top: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.integ-media { aspect-ratio: 4 / 3; background: var(--line); }
.integ-media img { width: 100%; height: 100%; object-fit: cover; }
.integ-copy { padding: 32px 24px; border-top: 4px solid var(--yellow); }
.integ h3 { font-size: clamp(24px, 3vw, 32px); }
.integ-copy > p:not(.eyebrow) { margin-top: 14px; color: var(--ink-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.split li { padding: 14px 16px; background: var(--tint); border-radius: var(--radius-sm); border-left: 3px solid var(--navy); }
.split li:first-child { border-left-color: var(--yellow); }
.split strong { display: block; font-size: 15.5px; }
.split span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
@media (min-width: 900px) {
  .integ { grid-template-columns: 1fr 1fr; }
  .integ-media { aspect-ratio: auto; min-height: 100%; }
  .integ-copy { padding: 48px; border-top: 0; border-left: 4px solid var(--yellow); align-self: center; }
}

/* ---------- why ---------- */
.why-grid { display: grid; gap: 8px; }
@media (min-width: 900px) { .why-grid { grid-template-columns: .85fr 1.15fr; gap: 64px; } }
.sec-head-left { margin-bottom: 24px; }
.why-list li { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.why-list li:first-child { border-top: 1px solid var(--line); }
.why-list .n { font: 500 14px/1.6 var(--mono); color: var(--muted); padding-top: 2px; }
.why-list h3 { font-size: 19px; }
.why-list p { margin-top: 4px; color: var(--ink-2); font-size: 16px; }

/* ---------- CTAs ---------- */
.cta { padding: 64px 0; }
.cta-in { display: grid; gap: 24px; align-items: center; }
.cta h2 { font-size: clamp(26px, 3.6vw, 36px); }
.cta p { margin-top: 10px; font-size: 17.5px; max-width: 640px; }
.cta-navy { background: var(--navy); color: #fff; }
.cta-navy p { color: #c5d0e0; }
.cta-yellow { background: var(--yellow); color: var(--navy); }
.cta-yellow p { color: #2a3b55; }
.cta-ico { display: none; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--navy); color: var(--yellow); }
.cta-ico svg { width: 32px; height: 32px; }
@media (min-width: 900px) {
  .cta-in { grid-template-columns: 1fr auto; gap: 48px; }
  .cta-yellow .cta-in { grid-template-columns: auto 1fr auto; gap: 28px; }
  .cta-ico { display: grid; }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 8px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; } }
.contact-cards { display: grid; gap: 12px; }
.ccard { display: flex; gap: 16px; align-items: center; padding: 18px 20px; text-decoration: none; }
.ccard strong { display: block; font-size: 17px; }
.ccard small { display: block; color: var(--muted); font-size: 15px; word-break: break-word; }
.ico-wa { background: var(--wa); color: #fff; }

/* ---------- footer ---------- */
.ftr { background: #071628; color: #c5d0e0; padding: 64px 0 0; font-size: 15.5px; }
.ftr-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 800px) { .ftr-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.ftr h3 { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8796ad; margin-bottom: 18px; }
.ftr ul { display: grid; gap: 10px; }
.ftr a { text-decoration: none; transition: color .2s; }
.ftr a:hover { color: var(--yellow); }
.brand-light .brand-txt strong { color: #fff; }
.brand-light .brand-txt small { color: #8796ad; }
.ftr-brand p { margin-top: 16px; max-width: 360px; }
.sites a { display: block; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-sm); }
.sites a:hover { border-color: var(--yellow); }
.sites strong { display: block; color: #fff; }
.sites small { display: block; color: #8796ad; font-size: 14px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; }
.social a:hover { background: var(--yellow); color: var(--navy); }
.social svg { width: 20px; height: 20px; }
.ftr-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 88px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: #8796ad; }
@media (min-width: 800px) { .ftr-base { padding-bottom: 26px; } }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- subtle reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .prod, .more { transition: none; }
}
