/* ============================================
   LISE INFOTECH — SHARED DESIGN SYSTEM
   ============================================ */

:root {
  /* Brand — derived from logo */
  --purple: #6B4E9B;
  --purple-deep: #4A3470;
  --purple-soft: #E8DFF5;
  --green: #5DC9A5;
  --green-deep: #2E9678;
  --green-soft: #DBF3EA;

  /* Ink + paper */
  --ink: #0E0B1F;
  --ink-2: #2A2440;
  --ink-3: #524A6B;
  --ink-4: #8A839E;
  --line: #E8E5EE;
  --line-2: #F2F0F5;
  --paper: #FAFAF7;
  --paper-2: #F4F2EC;
  --white: #FFFFFF;

  /* Accents */
  --signal: #E5532A;
  --gold: #D4A437;

  /* Type */
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Layout */
  --maxw: 1360px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --radius-lg: 22px;
}

/* Note: not using Fraunces for body to avoid generic SaaS look. Editorial uses
   a tight grotesque (Inter Tight via Inter) + a contrast serif for moments. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { font-size: 17px; line-height: 1.55; font-feature-settings: 'ss01', 'cv11'; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Typography scale (editorial) */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.eyebrow-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}
.h-display {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(48px, 7.4vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-style: normal;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.h-section {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.h-card {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  max-width: 60ch;
}
.italic-serif { font-family: var(--serif); font-style: italic; font-weight: 360; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--purple-deep); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lite { color: var(--ink); padding: 0; gap: 8px; }
.btn-lite .arrow { transition: transform .2s ease; }
.btn-lite:hover .arrow { transform: translateX(4px); }
.btn .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }

/* Logo wordmark inline (purple Lise / dark Info Tech / mark) */
.lise-logo { display: inline-flex; align-items: center; gap: 10px; }
.lise-logo img { height: 28px; width: auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--ink-2); transition: color .15s; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
@media (max-width: 980px) {
  .nav-links { display: none; }
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 100px 0 40px;
  margin-top: 120px;
}
.footer .container { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 18px; font-weight: 500; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: color-mix(in srgb, var(--paper) 70%, transparent); transition: color .15s; }
.footer ul a:hover { color: var(--paper); }
.footer ul li { font-size: 14px; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.footer-brand p { color: color-mix(in srgb, var(--paper) 62%, transparent); font-size: 14px; max-width: 36ch; margin-top: 18px; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--paper) 12%, transparent); margin-top: 64px; padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-4); }
@media (max-width: 880px) { .footer .container { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer .container { grid-template-columns: 1fr; } }

/* FAQ */
.faq-section { padding: 120px 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.faq-grid .h-section { position: sticky; top: 100px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; cursor: pointer; }
.faq-q { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.faq-q .plus { font-family: var(--mono); font-weight: 300; color: var(--ink-4); transition: transform .3s ease; flex-shrink: 0; font-size: 22px; line-height: 1; }
.faq-item.open .plus { transform: rotate(45deg); color: var(--purple); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, margin .35s ease; color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 60ch; }
.faq-item.open .faq-a { max-height: 400px; margin-top: 14px; }
@media (max-width: 880px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } .faq-grid .h-section { position: static; } }

/* Lead form */
.form-section { padding: 0 0 140px; }
.form-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, color-mix(in srgb, var(--purple) 60%, transparent), transparent 60%),
              radial-gradient(ellipse 60% 50% at 0% 100%, color-mix(in srgb, var(--green) 30%, transparent), transparent 60%);
  pointer-events: none;
}
.form-card > * { position: relative; }
.form-card .h-section { color: var(--paper); }
.form-card .lede { color: color-mix(in srgb, var(--paper) 75%, transparent); margin-top: 20px; }
.form-meta { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.form-meta .row { display: flex; gap: 14px; align-items: center; font-size: 14px; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.form-meta .row .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #0e0b1f; width: 80px; }
form.lead-form { display: flex; flex-direction: column; gap: 18px; }
form.lead-form .field { display: flex; flex-direction: column; gap: 8px; }
form.lead-form label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #0E0B1F; }
form.lead-form input, form.lead-form select, form.lead-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid ;
  padding: 10px 0;
  color: #8B8B97;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .2s;
}
form.lead-form input:focus, form.lead-form select:focus, form.lead-form textarea:focus { border-bottom-color: var(--green); }
form.lead-form input::placeholder, form.lead-form textarea::placeholder { color: #8A8A99; }
form.lead-form select option { color: var(--ink); }
form.lead-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form.lead-form button { margin-top: 16px; align-self: flex-start; background: var(--green); color: var(--ink); padding: 14px 24px; border-radius: 999px; font-weight: 500; }
form.lead-form button:hover { background: var(--paper); }
form.lead-form .hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.lead-notice { font-size: 14px; padding: 12px 16px; border-radius: 10px; margin-bottom: 4px; }
.lead-notice.sent { background: var(--green-soft); color: var(--green-deep); }
.lead-notice.error { background: color-mix(in srgb, var(--signal) 16%, transparent); color: var(--signal); }
@media (max-width: 880px) { .form-card { grid-template-columns: 1fr; gap: 40px; } }

/* Marquee / logo strip */
.marquee { overflow: hidden; padding: 24px 0; border-block: 1px solid var(--line); }
.marquee-track { display: flex; gap: 64px; animation: marquee 38s linear infinite; width: max-content; }
.marquee-track span { font-family: var(--serif); font-size: 26px; color: var(--ink-3); white-space: nowrap; font-style: italic; font-weight: 360; }
.marquee-track .dot { color: var(--purple); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Cursor follower (subtle) */
.cursor-glow {
  position: fixed; pointer-events: none; z-index: 1; width: 460px; height: 460px;
  border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--purple) 18%, transparent), transparent 70%);
  filter: blur(20px); transition: opacity .3s; opacity: 0;
}
@media (hover: hover) { body:hover .cursor-glow { opacity: 1; } }

/* Utility */
.row { display: flex; gap: 12px; align-items: center; }
.col { display: flex; flex-direction: column; }
.divider { height: 1px; background: var(--line); width: 100%; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--paper-2); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.tag.green { background: var(--green-soft); color: #006d4d; }
.tag.purple { background: var(--purple-soft); color: var(--purple-deep); }
.tag .ping { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ping 1.8s ease infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 currentColor; } 100% { box-shadow: 0 0 0 7px transparent; } }

/* Section spacing */
section { padding: clamp(80px, 10vw, 140px) 0; }
section.tight { padding: clamp(60px, 7vw, 100px) 0; }

/* progress hairline */
.v3-progress { position: fixed; top: 0; left: 0; height: 2.5px; width: 0; background: linear-gradient(90deg, var(--purple), var(--green)); z-index: 99; }

/* custom cursor */
.cur-dot, .cur-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 98; border-radius: 50%; transform: translate(-50%,-50%); }
.cur-dot { width: 7px; height: 7px; background: var(--purple); }
.cur-ring { width: 36px; height: 36px; border: 1.5px solid color-mix(in srgb, var(--purple) 55%, transparent); transition: width .25s, height .25s, border-color .25s, opacity .25s; }
.cur-ring.hot { width: 58px; height: 58px; border-color: var(--green); }
@media (hover: none), (max-width: 980px) { .cur-dot, .cur-ring { display: none; } }

/* mobile menu */
.v3-burger { display: none; flex-direction: column; gap: 5px; padding: 12px; min-width: 48px; min-height: 48px; justify-content: center; align-items: center; z-index: 97; position: relative; }
.v3-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .25s; }
.v3-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.v3-burger.open span:nth-child(2) { opacity: 0; }
.v3-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 980px) { .v3-burger { display: flex; } }
.v3-menu { position: fixed; inset: 0; background: var(--ink); z-index: 96; display: flex; flex-direction: column; padding: 110px var(--gutter) 40px; clip-path: circle(0% at calc(100% - 54px) 36px); transition: clip-path .65s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.v3-menu.open { clip-path: circle(160% at calc(100% - 54px) 36px); pointer-events: auto; }
.v3-menu a.l { font-family: var(--serif); font-size: clamp(34px, 9vw, 52px); font-weight: 360; letter-spacing: -.02em; color: var(--paper); padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--paper) 10%, transparent); display: flex; justify-content: space-between; align-items: baseline; opacity: 0; transform: translateY(22px); transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1); }
.v3-menu.open a.l { opacity: 1; transform: none; }
.v3-menu a.l em { font-style: italic; font-weight: 300; color: var(--green); }
.v3-menu a.l .n { font-family: var(--mono); font-size: 11px; color: var(--green); }
.v3-menu .foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; color: color-mix(in srgb, var(--paper) 60%, transparent); font-size: 14px; }
.v3-menu .foot a { color: var(--green); }

/* Sticky CTA */
.sticky-cta { position: fixed; right: 24px; bottom: 24px; z-index: 40; opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .3s; pointer-events: none; }
.sticky-cta.visible { opacity: 1; transform: none; pointer-events: auto; }
.sticky-cta .btn { box-shadow: 0 20px 40px -20px rgba(14,11,31,.4); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) { .cur-dot, .cur-ring, .v3-progress { display: none; } .marquee-track { animation: none; } }

/* Generic inner pages (index.php / page.php / 404.php) */
.page-shell { padding: clamp(60px, 8vw, 100px) 0; min-height: 50vh; }
.page-shell .entry-content { margin-top: 32px; max-width: 70ch; color: var(--ink-2); }
.page-shell .entry-content p { margin-bottom: 1.2em; }
.page-shell .entry-content h2, .page-shell .entry-content h3 { font-family: var(--serif); font-weight: 380; letter-spacing: -.02em; margin: 1.4em 0 .5em; }
.page-shell .entry-content a { color: var(--purple); text-decoration: underline; }
.archive-list { display: grid; gap: 32px; margin-top: 48px; }
