/* LT Dev Studio — Static site (HTML/CSS/JS/PHP) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --background: #f7f8fb;
  --foreground: #111827;
  --muted: #6b7280;
  --primary: #14b89a;
  --primary-glow: #8bc34a;
  --primary-foreground: #ffffff;
  --border: rgba(17,24,39,0.10);
  --card: #ffffff;
  --foreground-invert: #ffffff;
  --shadow-xl: 0 20px 50px -20px rgba(17,24,39,0.25);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
::selection { background: rgba(20,184,154,.2); }

.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.font-display { font-weight: 800; letter-spacing: -0.02em; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }
.bal { text-wrap: balance; }
.pretty { text-wrap: pretty; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ----- Page loader ----- */
#page-loader {
  position: fixed; inset: 0; z-index: 100;
  background: #0b0f17;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transform: translateY(0);
  transition: transform .9s var(--ease);
}
#page-loader.is-hidden { transform: translateY(-100%); }
#page-loader .loader-inner {
  display: flex; align-items: center; gap: 14px;
  color: #fff; font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; letter-spacing: .25em; font-size: 11px;
}
#page-loader .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, #14b89a, #8bc34a);
  box-shadow: 0 0 20px rgba(20,184,154,.6);
  animation: pulse 1.2s var(--ease) infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(.8); opacity: .6; }
  50% { transform: scale(1.3); opacity: 1; }
}
#page-loader .bar {
  position: absolute; left: 0; bottom: 0; height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #14b89a, #8bc34a);
  transition: width .8s var(--ease);
}

/* ----- Nav ----- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,248,251,0.8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .2s ease;
}
.nav.is-open { background: var(--background); backdrop-filter: none; }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -0.04em; font-size: 20px;
}
.brand img { height: 28px; width: 28px; border-radius: 6px; }
.brand .accent { color: var(--primary); }
.nav-links { display: none; gap: 32px; }
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; text-transform: uppercase; letter-spacing: .2em;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.cta { color: var(--primary); font-weight: 700; }
.nav-toggle {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.nav-toggle:hover { color: var(--primary); }
.nav-toggle svg { width: 22px; height: 22px; }

/* mobile menu (in-flow, pushes content) */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
  box-shadow: 0 12px 30px -16px rgba(0,0,0,.15);
}
.mobile-menu.is-open { display: block; animation: slideDown .35s var(--ease); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu .mm-inner { padding: 24px; display: flex; flex-direction: column; gap: 0; }
.mobile-menu a.mm-link {
  font-weight: 800; font-size: 22px; letter-spacing: -.02em;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.mobile-menu a.mm-link:hover { color: var(--primary); }
.mobile-menu .mm-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.mobile-menu .mm-actions a {
  text-align: center; padding: 16px 24px; border-radius: 999px; font-weight: 600;
}
.mobile-menu .mm-actions .filled { background: var(--foreground); color: #fff; }
.mobile-menu .mm-actions .outline { border: 1px solid var(--border); }
.mobile-menu .mm-meta {
  margin-top: 24px; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 800;
  font-family: 'Inter', sans-serif;
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.btn-dark { background: var(--foreground); color: #fff; }
.btn-dark:hover { background: var(--primary); transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--foreground); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }

/* ----- Reveal animations ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

.hairline { display: block; height: 1px; background: var(--border); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.hairline.in { transform: scaleX(1); }

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(20,184,154,.10); color: var(--primary);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow .ping {
  position: relative; display: inline-block; width: 8px; height: 8px;
}
.hero-eyebrow .ping::before, .hero-eyebrow .ping::after {
  content: ''; position: absolute; inset: 0; border-radius: 999px; background: var(--primary);
}
.hero-eyebrow .ping::before { animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite; opacity: .75; }
@keyframes ping { 0% { transform: scale(1); opacity: .75 } 75%,100% { transform: scale(2.5); opacity: 0 } }
.hero h1 {
  font-size: clamp(40px, 7vw, 88px); line-height: .95; margin: 0 0 32px;
  font-weight: 800; letter-spacing: -0.03em;
}
.hero p.sub { font-size: 18px; color: var(--muted); max-width: 55ch; margin: 0 0 40px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-bg {
  position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 22vw; font-weight: 800; letter-spacing: -0.05em;
  opacity: .055; user-select: none; pointer-events: none; line-height: 1;
}

/* ----- Section helpers ----- */
section { border-top: 1px solid var(--border); }
.sec-pad { padding: 96px 0; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 64px;
}
.sec-head h2 { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.sec-head .line { flex: 1; }

/* ----- Grid blocks ----- */
.grid-px {
  display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.grid-px > * { background: var(--background); padding: 32px; transition: background .2s ease; }
.grid-px > *:hover { background: rgba(20,184,154,.05); }
.cols-3 { grid-template-columns: 1fr; }
.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

@media (min-width: 768px) {
  .cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tile h3 { font-family: 'Inter'; font-weight: 800; font-size: 22px; margin: 0 0 12px; letter-spacing: -.02em; }
.tile .num { font-family: 'JetBrains Mono', monospace; color: var(--primary); margin-bottom: 48px; font-size: 13px; }
.tile p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* dark section */
.dark-section { background: var(--foreground); color: #fff; }
.dark-section h2 { color: rgba(255,255,255,.5); }
.dark-section .grid-px { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.1); }
.dark-section .grid-px > * { background: var(--foreground); }
.dark-section .grid-px > *:hover { background: rgba(20,184,154,.07); }
.dark-section .tile p { color: rgba(255,255,255,.6); }
.dark-section .pretty, .dark-section .lead { color: rgba(255,255,255,.9); }

/* Problem/Solution/Outcome */
.psg { display: grid; gap: 48px; }
@media (min-width: 768px) { .psg { grid-template-columns: repeat(3,1fr); } }
.psg .tag { font-family: 'JetBrains Mono', monospace; color: var(--primary); font-size: 11px; text-transform: uppercase; letter-spacing: .15em; }
.psg h3 { font-size: 26px; margin: 12px 0; font-weight: 800; letter-spacing: -.02em; }
.psg p { color: var(--muted); margin: 0; line-height: 1.65; }

/* Testimonials */
.t-card { display: flex; flex-direction: column; gap: 28px; }
.t-card .q { color: var(--primary); font-family: 'JetBrains Mono', monospace; font-size: 26px; line-height: 1; }
.t-card blockquote { margin: 0; font-size: 15.5px; line-height: 1.65; flex: 1; }
.t-card figcaption { border-top: 1px solid var(--border); padding-top: 20px; }
.t-card figcaption .name { font-weight: 800; }
.t-card figcaption .role { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; color: var(--muted); margin-top: 4px; letter-spacing: .1em; }

/* Contact */
.contact-grid { display: grid; gap: 64px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.contact-card {
  display: block; padding: 24px; border: 1px solid var(--border); border-radius: 16px;
  transition: border-color .2s ease;
}
.contact-card:hover { border-color: var(--primary); }
.contact-card .label { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-bottom: 4px; }
.contact-card .val { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.contact-card:hover .val { color: var(--primary); }
.form-card {
  background: var(--card); border-radius: 20px; padding: 36px;
  box-shadow: var(--shadow-xl); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 60px -30px rgba(0,0,0,.18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--background); color: var(--foreground);
  border: 1px solid var(--border); padding: 14px 16px; border-radius: 10px;
  font: inherit; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20,184,154,.15); }
.field textarea { resize: vertical; }
.form-card .submit { width: 100%; padding: 16px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 800; }
.form-card .submit:hover { filter: brightness(1.1); }
.form-msg { margin-top: 16px; font-size: 14px; }
.form-msg.ok { color: var(--primary); }
.form-msg.err { color: #c0392b; }
.hp { position: absolute; left: -9999px; }

/* Pricing card highlight */
.pkg.featured { background: rgba(20,184,154,.05) !important; position: relative; }
.pkg .price { color: var(--primary); font-weight: 800; font-size: 20px; margin: 4px 0 12px; }
.pkg ul { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 12px; }
.pkg li { display: flex; gap: 12px; font-size: 14px; }
.pkg li::before { content: '+'; color: var(--primary); font-family: 'JetBrains Mono', monospace; }
.pkg .pill {
  position: absolute; top: 24px; right: 24px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--primary); background: rgba(20,184,154,.1); padding: 4px 10px; border-radius: 999px;
}
.pkg-cta { display: block; text-align: center; padding: 12px 24px; border-radius: 999px; font-weight: 800; font-size: 13px; border: 1px solid var(--border); transition: all .2s ease; }
.pkg-cta:hover { border-color: var(--foreground); }
.pkg.featured .pkg-cta { background: var(--primary); color: #fff; border-color: var(--primary); }
.pkg.featured .pkg-cta:hover { filter: brightness(1.1); }

/* Project zigzag */
.project { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; margin-bottom: 80px; }
@media (min-width: 768px) { .project { grid-template-columns: 7fr 5fr; gap: 48px; } .project.flip { direction: rtl; } .project.flip > * { direction: ltr; } }
.project .shot {
  position: relative; display: block; overflow: hidden; border-radius: 20px;
  border: 1px solid var(--border); background: var(--card); aspect-ratio: 16/10;
}
.project .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project .shot:hover img { transform: scale(1.03); }
.project .shot .badge {
  position: absolute; top: 16px; left: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .15em;
  background: rgba(247,248,251,.85); backdrop-filter: blur(8px);
  padding: 6px 14px; border-radius: 999px;
}
.project .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.project .tags span {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .15em;
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; color: var(--muted);
}
.project h3 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 12px; font-weight: 800; letter-spacing: -.02em; }
.project p.desc { color: var(--muted); margin: 0 0 20px; line-height: 1.6; }
.project .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* About profile aside */
.about-grid { display: grid; gap: 48px; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 7fr 5fr; gap: 64px; } }
.profile-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 32px;
}
.profile-card dl { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.profile-card .row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.profile-card .row:last-child { border: 0; padding: 0; }
.profile-card dt { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }
.profile-card dd { margin: 0; font-weight: 800; }

/* Footer */
footer.site {
  background: var(--foreground); color: #fff;
  padding: 64px 0 24px; border-top: 1px solid rgba(255,255,255,.1);
}
footer.site .row { display: flex; flex-direction: column; gap: 48px; justify-content: space-between; }
@media (min-width: 768px) { footer.site .row { flex-direction: row; align-items: flex-start; } }
footer.site .brand { font-size: 28px; }
footer.site p.tag { color: rgba(255,255,255,.5); max-width: 320px; font-size: 14px; margin: 16px 0 0; }
footer.site .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
footer.site h4 { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.3); margin: 0 0 24px; font-weight: 500; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: rgba(255,255,255,.6); }
footer.site ul a:hover { color: var(--primary); }
footer.site .copy {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 24px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: rgba(255,255,255,.25);
}
