/* ==========================================================================
   Kalre IT — Design System
   Inspired by kalre.com: Montserrat headings, Nunito Sans body,
   neon magenta/cyan on deep-purple/black, grid hero.
   ========================================================================== */

:root {
  --magenta: #f43c9b;
  --magenta-700: #c01f74;
  --cyan: #05e3d3;
  --cyan-200: #96f6ef;
  --purple: #1f0242;
  --purple-800: #2c0a5a;
  --ink: #0b0118;
  --ink-2: #14072b;
  --slate: #555d66;
  --line: rgba(150, 246, 239, 0.14);
  --white: #ffffff;
  --muted: #b9b1cf;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --grad: linear-gradient(100deg, var(--magenta) 0%, #b026ff 55%, var(--cyan) 130%);
  --grad-text: linear-gradient(95deg, var(--cyan-200), var(--magenta));
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 0 1px rgba(244, 60, 155, 0.35), 0 18px 60px -20px rgba(244, 60, 155, 0.45);
  --font-head: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: #ece8f6;
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; color: var(--white); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 0.5em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin-bottom: 1rem; color: #d9d3ea; }
a { color: var(--cyan-200); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--magenta); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1rem 1.2rem; }
li { margin-bottom: .45rem; color: #d9d3ea; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.text-center { text-align: center; }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--font-head); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .76rem; color: var(--cyan); margin-bottom: .8rem; display: inline-block; }
.lead { font-size: 1.18rem; color: #cfc8e4; max-width: 720px; }
.muted { color: var(--muted); }

/* ---- Buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; font-size: .98rem; padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 0; transition: transform .15s ease, box-shadow .2s ease, background .2s; text-align: center; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 0 0 1px rgba(5,227,211,.5), 0 22px 60px -18px rgba(244,60,155,.6); }
.btn--ghost { background: rgba(255,255,255,.05); color: #fff; border: 1px solid var(--card-border); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan-200); transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---- Header ------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: rgba(11,1,24,.78); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: #fff; letter-spacing: -.03em; display: flex; align-items: center; gap: .55rem; }
.brand:hover { color: #fff; }
.brand-icon { width: 40px; height: 40px; display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text small { font-size: .6rem; letter-spacing: .34em; color: var(--cyan); font-weight: 700; margin-top: 3px; }
.brand .dot { color: var(--magenta); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; }
.nav-links a { color: #e7e2f3; font-family: var(--font-head); font-weight: 600; font-size: .93rem; padding: 9px 12px; border-radius: 8px; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(244,60,155,.14); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-family: var(--font-head); font-weight: 800; color: #fff; white-space: nowrap; }
.nav-phone:hover { color: var(--cyan-200); }
.nav-toggle { display: none; background: none; border: 1px solid var(--card-border); border-radius: 8px; width: 44px; height: 40px; color: #fff; font-size: 1.3rem; cursor: pointer; }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; padding: 96px 0 84px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(150,246,239,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(244,60,155,.06) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%); }
.hero::after { content: ""; position: absolute; top: -160px; right: -120px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(176,38,255,.35), transparent 62%); filter: blur(30px); z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 1.2rem 0 1.8rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .9rem; }
.hero-trust strong { color: #fff; }
.stars { color: #ffc93c; letter-spacing: 2px; }

.hero-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.hero-card h3 { margin-bottom: .3rem; }
.hero-card .field { margin-bottom: 12px; }
.hero-card label { font-size: .8rem; font-family: var(--font-head); font-weight: 600; color: var(--cyan-200); display: block; margin-bottom: 5px; }
.hero-card input, .hero-card select, .hero-card textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--card-border); background: rgba(0,0,0,.35); color: #fff; font-family: var(--font-body); font-size: .95rem; }
.hero-card input:focus, .hero-card select:focus, .hero-card textarea:focus { outline: none; border-color: var(--cyan); }

/* ---- Cards / grids ------------------------------------------------------ */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s; height: 100%; }
.card:hover { transform: translateY(-4px); border-color: rgba(244,60,155,.5); box-shadow: var(--shadow); }
.card .ico { font-size: 1.9rem; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, rgba(244,60,155,.16), rgba(5,227,211,.12)); border: 1px solid var(--card-border); margin-bottom: 16px; }
.card h3 { margin-bottom: .4rem; }
.card h3 a { color: #fff; }
.card h3 a:hover { color: var(--magenta); }
.card p { font-size: .96rem; margin-bottom: .8rem; }
.card .more { font-family: var(--font-head); font-weight: 700; font-size: .9rem; }

.feature-list { list-style: none; margin: 0; }
.feature-list li { position: relative; padding-left: 30px; margin-bottom: .7rem; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--cyan); font-weight: 800; }

/* ---- Stat band ---------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 22px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: 2.3rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); font-size: .9rem; }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band { position: relative; border-radius: 22px; padding: 56px 40px; text-align: center; overflow: hidden; background: linear-gradient(120deg, var(--purple-800), var(--purple)); border: 1px solid rgba(244,60,155,.3); }
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(150,246,239,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(244,60,155,.07) 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000, transparent); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: .5rem; }
.cta-band p { max-width: 620px; margin: 0 auto 1.4rem; color: #e8e2f6; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Article / prose ---------------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; margin-bottom: .4em; }
.prose p, .prose li { font-size: 1.05rem; }
.prose ul { margin-left: 1.3rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--magenta); padding: 6px 0 6px 20px; margin: 1.4em 0; color: #efeaf8; font-style: italic; }

/* ---- Breadcrumbs -------------------------------------------------------- */
.crumbs { font-size: .85rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--cyan-200); }
.crumbs span { margin: 0 6px; opacity: .6; }

/* ---- Page hero (interior) ----------------------------------------------- */
.page-hero { position: relative; padding: 56px 0 44px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(150,246,239,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(244,60,155,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000, transparent); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 880px; }
.page-hero .lead { margin-top: 1rem; }

/* ---- FAQ accordion ------------------------------------------------------ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--card-border); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--card); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq-q .pm { color: var(--magenta); font-size: 1.3rem; transition: transform .2s; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 20px; }
.faq-item.open .faq-a { max-height: 600px; padding-bottom: 18px; }
.faq-a p { font-size: .98rem; }

/* ---- Logos / chips ------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--font-head); font-weight: 600; font-size: .85rem; padding: 8px 14px; border-radius: 999px; background: rgba(5,227,211,.08); border: 1px solid var(--card-border); color: #d9f7f4; }
.chip a { color: inherit; }

/* ---- Testimonials ------------------------------------------------------- */
.quote-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 26px; }
.quote-card .stars { font-size: 1rem; }
.quote-card p { font-style: italic; color: #efeaf8; margin: .7rem 0; }
.quote-card .who { font-family: var(--font-head); font-weight: 700; color: #fff; font-style: normal; }
.quote-card .who span { display: block; color: var(--muted); font-weight: 500; font-size: .85rem; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: linear-gradient(180deg, var(--ink), #060010); border-top: 1px solid var(--line); padding: 64px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .95rem; color: #fff; margin-bottom: 14px; letter-spacing: .04em; }
.footer-grid ul { list-style: none; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { color: #b7afce; font-size: .92rem; }
.footer-grid a:hover { color: var(--cyan-200); }
.footer-brand p { color: #b7afce; font-size: .93rem; margin-top: 10px; max-width: 320px; }
.footer-contact { color: #cfc8e4; font-size: .95rem; margin-top: 8px; }
.footer-contact a { color: var(--cyan-200); font-weight: 700; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .82rem; }
.footer-bottom a { color: var(--muted); }

/* ---- Floating call button (mobile) -------------------------------------- */
.call-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: var(--grad); color: #fff; border-radius: 999px; padding: 14px 20px; font-family: var(--font-head); font-weight: 800; box-shadow: var(--shadow-glow); display: none; }
.call-fab:hover { color: #fff; }

/* ---- Forms (contact) ---------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: #e7e2f3; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid var(--card-border); background: rgba(0,0,0,.3); color: #fff; font-family: var(--font-body); font-size: 1rem; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--cyan); }
.form-note { font-size: .82rem; color: var(--muted); }

/* ---- Misc --------------------------------------------------------------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.center-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }

/* ---- Pricing ------------------------------------------------------------ */
.price-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 30px; height: 100%; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--magenta); box-shadow: var(--shadow-glow); position: relative; }
.price-card.featured::before { content: "Most Popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .75rem; padding: 5px 14px; border-radius: 999px; }
.price-card .price { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: #fff; margin: 8px 0; }
.price-card .price small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.price-card ul { list-style: none; margin: 16px 0; flex: 1; }
.price-card li { padding-left: 26px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 800; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Collapse the link list to the hamburger before it can crowd/wrap.
   Phone + CTA button stay visible on tablet; they drop on small phones. */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 14px; gap: 4px; z-index: 60; }
  .nav-links.open a { padding: 12px; border-radius: 8px; white-space: normal; }
}
@media (max-width: 620px) {
  .nav-cta .btn, .nav-cta .nav-phone { display: none; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .call-fab { display: inline-block; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 22px; }
}

/* Skip-to-content link: off-screen until keyboard focus */
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
}
