/* ============================================================
   LogicLoop LLC — stylesheet
   ============================================================ */

:root {
  --bg:          #0a0d14;
  --bg-alt:      #0e131d;
  --surface:     #131a26;
  --surface-2:   #18202e;
  --line:        #202a3a;
  --line-soft:   #1a2231;

  --text:        #e9edf5;
  --text-dim:    #9aa6bb;
  --text-faint:  #6b788f;

  --accent:      #6ee7c8;
  --accent-2:    #7aa2ff;
  --accent-dim:  rgba(110, 231, 200, 0.12);

  --radius:      14px;
  --radius-lg:   20px;
  --wrap:        1140px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.022em; font-weight: 650; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #06231c; padding: 10px 18px; border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line-soft); background: rgba(10, 13, 20, 0.9); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 680; letter-spacing: -0.02em; font-size: 1.06rem; }
.brand-mark { width: 28px; height: 28px; color: var(--accent); flex: none; }
.brand-suffix { color: var(--text-faint); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav > a { color: var(--text-dim); font-size: .95rem; transition: color .2s; }
.nav > a:hover { color: var(--text); }
.nav > a.btn { color: #06231c; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 10px; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 17px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #06231c;
  padding: 13px 24px; border-radius: 10px; border: 1px solid var(--accent);
  font-weight: 620; font-size: .96rem; letter-spacing: -0.01em;
  cursor: pointer; font-family: inherit;
  transition: transform .18s var(--ease), box-shadow .25s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(110, 231, 200, .5); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 17px; font-size: .9rem; border-radius: 9px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text-faint); box-shadow: none; background: rgba(255,255,255,.03); }
.btn-full { width: 100%; padding: 15px 24px; }

/* ---------- shared section bits ---------- */
.section { padding: 108px 0; position: relative; }
.section-tight { padding: 76px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.eyebrow {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-title { font-size: clamp(1.85rem, 3.6vw, 2.6rem); max-width: 20ch; }
.section-sub { color: var(--text-dim); font-size: 1.06rem; max-width: 62ch; margin-bottom: 0; }

.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 118px 0 108px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 860px; }

.hero-grid {
  position: absolute; inset: -10% -10% auto -10%; height: 130%;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 62% at 28% 22%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 28% 22%, #000 0%, transparent 72%);
  opacity: .85;
}
.hero-glow {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px; pointer-events: none;
  background: radial-gradient(circle at 40% 45%, rgba(110,231,200,.13), transparent 62%),
              radial-gradient(circle at 70% 40%, rgba(122,162,255,.11), transparent 60%);
  filter: blur(20px);
}

.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.15rem);
  letter-spacing: -0.035em; font-weight: 700;
  margin-bottom: .38em;
}
.lede { font-size: clamp(1.06rem, 1.7vw, 1.2rem); color: var(--text-dim); max-width: 60ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin: 30px 0 40px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 12px 30px; font-size: .92rem; color: var(--text-faint); }
.hero-points li { display: flex; align-items: center; gap: 9px; }
.hero-points span { color: var(--accent); font-size: .85rem; }

/* ---------- problem ---------- */
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pain-copy .section-sub { margin-top: 14px; }
.pain-list { display: grid; gap: 2px; }
.pain-list li {
  padding: 17px 20px; border-left: 2px solid var(--line);
  color: var(--text-dim); font-size: .99rem;
  transition: border-color .25s, background .25s;
}
.pain-list li:hover { border-left-color: var(--accent); background: rgba(255,255,255,.018); }
.pain-list strong { color: var(--text); font-weight: 600; }

/* ---------- service cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 52px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px 30px 30px;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line); background: var(--surface-2); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-dim); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.22rem; }
.card > p { color: var(--text-dim); font-size: .97rem; margin-bottom: 20px; }
.card-list { border-top: 1px solid var(--line-soft); padding-top: 17px; display: grid; gap: 9px; }
.card-list li {
  position: relative; padding-left: 19px;
  font-size: .91rem; color: var(--text-faint);
}
.card-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .55;
}

/* ---------- steps ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 52px; counter-reset: step;
}
.step {
  position: relative; padding: 28px 24px 26px;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.step-num {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em;
  color: var(--accent); display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.06rem; margin-bottom: .45em; }
.step p { color: var(--text-dim); font-size: .92rem; margin: 0; }

/* ---------- faq ---------- */
.faq { margin-top: 46px; max-width: 82ch; border-top: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 22px 4px; font-size: 1.04rem; font-weight: 580;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
  content: "+"; flex: none; color: var(--accent);
  font-size: 1.3rem; line-height: 1; font-weight: 400;
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 4px 24px; max-width: 70ch; }
.faq-body p { color: var(--text-dim); font-size: .97rem; margin: 0; }
.faq-body strong { color: var(--text); font-weight: 620; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; align-items: start; }
.about-copy p { color: var(--text-dim); }
.about-copy strong { color: var(--text); font-weight: 620; }

.about-facts {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 8px 28px;
}
.about-facts dl { margin: 0; }
.about-facts dl > div {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 17px 0; border-bottom: 1px solid var(--line-soft);
}
.about-facts dl > div:last-child { border-bottom: 0; }
.about-facts dt { color: var(--text-faint); font-size: .86rem; flex: none; }
.about-facts dd { margin: 0; text-align: right; font-size: .92rem; font-weight: 520; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.contact-list { margin-top: 34px; display: grid; gap: 20px; }
.contact-list li { display: grid; gap: 3px; }
.contact-label {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--text-faint);
}
.contact-list a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact-list a:hover { border-bottom-color: var(--accent); }
.contact-list span:not(.contact-label) { color: var(--text-dim); font-size: .96rem; }

.contact-form {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 30px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .87rem; color: var(--text-dim); margin-bottom: 7px; }
.opt { color: var(--text-faint); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .96rem; line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(110,231,200,.13);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ef7a7a; }

.form-note { margin: 14px 0 0; font-size: .88rem; color: var(--text-faint); min-height: 1.3em; }
.form-note.ok { color: var(--accent); }
.form-note.err { color: #ef9a9a; }
.form-note a { color: inherit; text-decoration: underline; }
.form-fine { margin: 6px 0 0; font-size: .8rem; color: var(--text-faint); }

/* spam trap — off-screen rather than display:none, which some bots skip */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line-soft); padding: 52px 0 34px; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 30px; flex-wrap: wrap; padding-bottom: 30px;
}
.footer-brand p { color: var(--text-faint); font-size: .89rem; margin: 6px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-nav a { color: var(--text-dim); font-size: .92rem; transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-legal { border-top: 1px solid var(--line-soft); padding-top: 24px; }
.footer-legal p { margin: 0; color: var(--text-faint); font-size: .82rem; }

/* ---------- legal / long-form pages ---------- */
/* Block padding only — the shorthand would clear .wrap's 24px inline padding
   and push text against the screen edge on narrow viewports. */
.legal-head { padding-top: 66px; padding-bottom: 30px; border-bottom: 1px solid var(--line-soft); }
.legal-head .eyebrow { margin-bottom: 12px; }
.legal-head h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); letter-spacing: -0.03em; margin-bottom: .3em; }
.legal-updated { color: var(--text-faint); font-size: .88rem; margin: 0; }

/* Cap line length on the children rather than the .wrap itself, so the text
   column stays flush with the page title instead of centring away from it. */
.legal-body { padding-top: 46px; padding-bottom: 90px; }
.legal-body > * { max-width: 74ch; }
.legal-body h2 {
  font-size: 1.22rem; margin: 44px 0 .6em;
  padding-top: 26px; border-top: 1px solid var(--line-soft);
}
.legal-body h2:first-of-type { margin-top: 20px; }
.legal-body h3 { font-size: 1.02rem; margin: 26px 0 .5em; color: var(--text); }
.legal-body p, .legal-body li { color: var(--text-dim); font-size: .99rem; }
.legal-body strong { color: var(--text); font-weight: 620; }
.legal-body a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.legal-body a:hover { border-bottom-color: var(--accent); }
.legal-body ul { margin: 0 0 1.1em; display: grid; gap: 9px; }
.legal-body ul li { position: relative; padding-left: 20px; }
.legal-body ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .5;
}
.legal-body address { font-style: normal; color: var(--text-dim); }

.legal-summary {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 22px 26px; margin: 4px 0 10px;
}
.legal-summary p:last-child { margin-bottom: 0; }

.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); font-size: .93rem; }
.back-link:hover { color: var(--text); }

/* footer legal links */
.footer-legal-inner { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; align-items: center; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal-links a { color: var(--text-faint); font-size: .82rem; transition: color .2s; }
.footer-legal-links a:hover { color: var(--text-dim); }

/* ---------- reveal animation ----------
   Hidden only when JS is running (html.js), so a failed or blocked script
   can never leave a section permanently invisible.                        */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .pain-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .section-tight { padding: 58px 0; }
  .hero { padding: 76px 0 72px; }
  .cards { grid-template-columns: 1fr; }
  .brand-suffix { display: none; }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    padding: 10px 24px 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav > a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav > a.btn { margin-top: 16px; border-bottom: none; justify-content: center; }
  .hero-cta .btn { flex: 1 1 100%; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .about-facts dl > div { flex-direction: column; gap: 2px; }
  .about-facts dd { text-align: left; }
}

/* ---------- motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .nav-toggle, .hero-grid, .hero-glow, .contact-form { display: none; }
  .section, .hero { padding: 24px 0; }
}
