/* Unlocked Efficiency — unlockedefficiency.com */

:root {
  --bg: #080b11;
  --bg-alt: #0c1119;
  --panel: #111823;
  --line: #1e2735;
  --line-soft: #18202c;
  --text: #e8edf4;
  --muted: #94a3b6;
  --accent: #2ee6c5;
  --accent-2: #38bdf8;
  --accent-warm: #fbbf24;
  --max: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.022em; font-weight: 700; }
::selection { background: var(--accent); color: #04140f; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #04140f; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px;
  font-weight: 650; font-size: 15px; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #04140f;
  box-shadow: 0 6px 24px -8px rgba(46, 230, 197, .55);
}
.btn-primary:hover { box-shadow: 0 10px 32px -8px rgba(46, 230, 197, .7); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 11, 17, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(8, 11, 17, .94); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 17px; letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 26px; height: 26px; color: var(--accent); flex: none; }
.logo-accent { color: var(--accent); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 550; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.nav-toggle span + span { margin-top: 5px; }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: 118px 0 96px; overflow: hidden; text-align: center; }
.hero-glow {
  position: absolute; top: -320px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 700px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(46, 230, 197, .16) 0%, rgba(56, 189, 248, .07) 40%, transparent 70%);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(46, 230, 197, .28); background: rgba(46, 230, 197, .07);
  color: var(--accent); font-size: 13.5px; font-weight: 600; margin-bottom: 30px;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(46,230,197,.2); }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.15rem); font-weight: 780; margin-bottom: 26px; }
.grad {
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 55%, #a78bfa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { max-width: 720px; margin: 0 auto 38px; font-size: clamp(1.05rem, 2vw, 1.24rem); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-note { margin-top: 22px; font-size: 14px; color: #6b7a8d; }

/* ---------------- trust bar ---------------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 30px; padding-bottom: 30px; }
.trust-item { text-align: center; padding: 0 14px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-size: 16px; color: var(--text); margin-bottom: 3px; letter-spacing: -0.01em; }
.trust-item span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }

/* ---------------- sections ---------------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 58px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.85rem, 4vw, 2.6rem); margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* ---------------- services ---------------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 28px; display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.service:hover { border-color: rgba(46, 230, 197, .38); transform: translateY(-3px); }
.service-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 20px;
  display: grid; place-items: center; color: var(--accent);
  background: rgba(46, 230, 197, .09); border: 1px solid rgba(46, 230, 197, .22);
}
.service-icon svg { width: 23px; height: 23px; }
.service h3 { font-size: 1.24rem; margin-bottom: 14px; }
.service-pain { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.service-list { list-style: none; margin-bottom: 22px; display: flex; flex-direction: column; gap: 10px; }
.service-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: #c3cddb; }
.service-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 13px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.service-out {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 14.5px; color: #c3cddb;
}
.service-out strong { color: var(--accent); }
.services-foot { text-align: center; margin-top: 40px; color: var(--muted); font-size: 15px; }

/* ---------------- process ---------------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; position: relative;
}
.step-num {
  display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px; opacity: .85;
}
.step h3 { font-size: 1.08rem; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------------- work ---------------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.work-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.work-card:hover { border-color: rgba(56, 189, 248, .4); transform: translateY(-3px); }
.work-media { display: block; background: #060a0f; border-bottom: 1px solid var(--line); aspect-ratio: 16/9; overflow: hidden; }
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.work-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tag {
  display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--accent-2);
  background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .22);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.work-card h3 { font-size: 1.18rem; margin-bottom: 11px; }
.work-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.work-links { display: flex; gap: 18px; margin-top: auto; flex-wrap: wrap; }
.work-link { margin-top: auto; font-size: 14.5px; font-weight: 650; }

/* ---------------- about ---------------- */
.about { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.about-photo { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); aspect-ratio: 718/1078; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
/* photo is shot on white — fade the bottom edge into the dark page so it reads as designed, not pasted */
.about-photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(to bottom, rgba(12,17,25,0) 0%, rgba(12,17,25,.55) 55%, rgba(12,17,25,.95) 100%);
  pointer-events: none;
}
.about-photo.noimg::after { display: none; }
.about-photo-fallback {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  font-size: 72px; font-weight: 800; color: #2b3a4d; letter-spacing: -0.04em;
  background: linear-gradient(150deg, #16202e, #0d131c);
}
.about-photo.noimg img { display: none; }
.about-photo.noimg .about-photo-fallback { display: flex; }
.about-body h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 20px; }
.about-body p { color: var(--muted); margin-bottom: 18px; }
.about-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack span {
  font-size: 12.5px; color: #a9b6c7; padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02);
}

/* ---------------- faq ---------------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 22px; transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(46, 230, 197, .32); }
.faq summary {
  cursor: pointer; list-style: none; padding: 19px 30px 19px 0; position: relative;
  font-weight: 620; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--muted); font-size: 15px; }

/* ---------------- cta ---------------- */
.cta { position: relative; padding: 100px 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(46, 230, 197, .13), transparent 70%);
}
.cta-inner { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: 18px; }
.cta p { max-width: 640px; margin: 0 auto 34px; color: var(--muted); font-size: 1.06rem; }

/* ---------------- footer ---------------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .09em; color: var(--text); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 9px; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: #5f6f82;
}

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .services, .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 34px; }
  .about-photo { max-width: 290px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 22px 8px; }
  .trust-item:nth-child(2) { border-right: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 12px 24px 20px;
    background: rgba(8,11,17,.98); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 76px 0 66px; }
  .section { padding: 68px 0; }
  .services, .steps, .work-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .btn:hover, .service:hover, .work-card:hover { transform: none; }
}
