/* Krishna Software Solution — website design system (v2). One small file, cached by browsers.
   Colours, type and components shared by every page. Mobile first; no framework. */

:root {
    --blue: #2f5bea;
    --blue-dark: #1f44c7;
    --blue-soft: #eef3ff;
    --navy: #0b1428;
    --navy-2: #142046;
    --ink: #101828;
    --text: #475467;
    --muted: #667085;
    --line: #e6eaf2;
    --bg: #ffffff;
    --bg-soft: #f7f9fd;
    --green: #16a34a;
    --wa: #22c55e;
    --amber: #f59e0b;
    --radius: 18px;
    --radius-lg: 26px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px -12px rgba(16, 24, 40, .18);
    --shadow-lg: 0 30px 80px -20px rgba(11, 20, 40, .35);
    --max: 1180px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #93b4ff; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #c9d3ea; }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--text); max-width: 40rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 44px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } .split.reverse > :first-child { order: 2; } }

/* Buttons */
.btn { white-space: nowrap; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 22px; border-radius: 12px; font-weight: 700; font-size: 1rem; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(47, 91, 234, .7); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { color: #fff; background: #16a34a; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost-dark { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-dark:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.svg-i { width: 1.15em; height: 1.15em; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.02rem; line-height: 1.1; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; }
.nav-links { display: none; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { white-space: nowrap; color: var(--ink); font-weight: 600; font-size: .92rem; padding: 8px 10px; border-radius: 10px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-dark); }
.nav-cta { display: none; gap: 10px; }
.nav-cta .btn { padding: 10px 16px; font-size: .92rem; }
.menu-btn { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px; color: var(--ink); cursor: pointer; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; padding: 12px 20px 22px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 4px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { width: 100%; margin-top: 12px; }
@media (min-width: 1180px) { .nav-links, .nav-cta { display: flex; } .menu-btn, .mobile-menu, .mobile-menu.open { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #2a4fe0 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, #13235b 100%); color: #c9d3ea; padding: 72px 0 40px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #8fb2ff, #7cf0d1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #c9d3ea; }
.hero .eyebrow { color: #a9c1ff; background: rgba(255, 255, 255, .08); padding: 7px 14px; border-radius: 999px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: #dbe3f6; }
.hero-points .svg-i { color: #4ade80; margin-top: 3px; }
.hero-note { margin-top: 16px; font-size: .88rem; color: #9fb0d6; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; gap: 18px; padding: 20px 0 40px; }
@media (min-width: 960px) { .hero { padding: 92px 0 56px; } }

/* Phone mockups */
.phone { position: relative; width: 220px; border-radius: 34px; padding: 9px; background: #0d1220; box-shadow: var(--shadow-lg); flex: none; }
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 540 / 1168; object-fit: cover; background: #fff; }
.phone.tilt-l { transform: rotate(-6deg) translateY(18px); }
.phone.tilt-r { transform: rotate(5deg) translateY(28px); }
.phone.sm { width: 170px; }
@media (max-width: 560px) { .phone { width: 168px; } .phone.sm { display: none; } }

/* Trust / logos */
.logos { padding: 34px 0; border-bottom: 1px solid var(--line); }
.logos p { text-align: center; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 38px; }
.logo-row img { height: 44px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-row img:hover { filter: none; opacity: 1; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); height: 100%; }
.card h3 { margin-top: 14px; }
.card p { margin: 0; }
.icon-tile { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.icon-tile .svg-i { width: 24px; height: 24px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; }
.stat { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--ink); line-height: 1; }
.stat-label { color: var(--muted); font-size: .92rem; margin-top: 6px; }

/* Problem / solution */
.compare { display: grid; gap: 18px; }
@media (min-width: 800px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare .card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.compare li { display: flex; gap: 10px; }
.compare .bad .svg-i { color: #ef4444; margin-top: 4px; }
.compare .good { border-color: #c7d6ff; background: linear-gradient(180deg, #f5f8ff, #fff); }
.compare .good .svg-i { color: var(--green); margin-top: 4px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 22px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 14px; }

/* Industries */
.chip-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .chip-grid { grid-template-columns: repeat(5, 1fr); } }
.chip { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; transition: border-color .15s, transform .15s; }
.chip:hover { border-color: var(--blue); transform: translateY(-2px); color: var(--ink); }
.chip span { font-weight: 500; font-size: .88rem; color: var(--muted); }

/* Case studies */
.case { display: flex; flex-direction: column; }
.case-logo { height: 40px; width: auto; align-self: flex-start; margin-bottom: 16px; }
.case-facts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.case-facts div { font-size: .85rem; color: var(--muted); }
.case-facts strong { display: block; font-size: 1.2rem; color: var(--ink); }

/* Pricing */
.price-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; }
.price.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.price .tag { position: absolute; top: -13px; left: 30px; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.price .amount { font-size: 2.4rem; font-weight: 800; color: var(--ink); line-height: 1.05; margin: 10px 0 4px; }
.price .amount small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.price li { display: flex; gap: 10px; }
.price li .svg-i { color: var(--green); margin-top: 4px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; 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(--blue); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; }

/* CTA band */
.cta-band { border-radius: var(--radius-lg); padding: 48px 28px; text-align: center; background: radial-gradient(800px 300px at 80% 0%, #2a4fe0 0%, transparent 60%), var(--navy); color: #c9d3ea; }
.cta-band h2 { color: #fff; }
.cta-band .actions { justify-content: center; }

/* Breadcrumbs + page hero */
.page-hero { background: linear-gradient(160deg, var(--navy) 0%, #13235b 100%); color: #c9d3ea; padding: 56px 0 60px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero .lead { color: #c9d3ea; }
.crumbs { font-size: .85rem; margin-bottom: 18px; color: #9fb0d6; }
.crumbs a { color: #c9d3ea; }

/* Footer */
.site-footer { background: var(--navy); color: #9fb0d6; padding: 64px 0 28px; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #c9d3ea; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; gap: 34px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(34, 197, 94, .7); }
.wa-float:hover { color: #fff; transform: scale(1.05); }
.wa-float .svg-i { width: 28px; height: 28px; }

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

/* Small phones: buttons may wrap their text instead of widening the page. */
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; } .actions .btn { width: 100%; } html, body { overflow-x: hidden; } }
