/* ============ AlibiStudio — dark premium ============ */
:root {
  --bg:        #0a0a0f;
  --bg-alt:    #0e0e15;
  --surface:   #14141d;
  --surface-2: #191924;
  --border:    #24242f;
  --text:      #ecedf3;
  --muted:     #9a9bab;
  --accent:    #7c5cff;
  --accent-2:  #c14bff;
  --accent-3:  #29e0d0;
  --grad: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-3) 130%);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--grad); color: #fff; font-weight: 600; font-size: .95rem;
  padding: .7em 1.3em; border: 0; border-radius: 999px; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
  box-shadow: 0 6px 22px -8px rgba(124,92,255,.6);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(124,92,255,.75); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .9em 1.7em; font-size: 1rem; }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border); box-shadow: none;
}
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; border-color: var(--accent); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,15,.82);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(10,10,15,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6em; font-weight: 700; font-size: 1.15rem; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--grad); color: #fff; font-weight: 800;
}
.brand-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 1.7rem; list-style: none; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 110px 0 90px; text-align: center; overflow: hidden; }
.hero-glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.32), rgba(193,75,255,.12) 40%, transparent 68%);
  filter: blur(20px); z-index: 0; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .22em;
  font-size: .72rem; font-weight: 700; color: var(--accent-3); margin-bottom: 1.1rem;
}
.hero-title { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 620px; margin: 1.4rem auto 0; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.2rem); }
.hero-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-stats { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; list-style: none; margin-top: 3.5rem; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: .82rem; color: var(--muted); max-width: 150px; }

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 3.2rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-lead { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.7rem; transition: transform .3s var(--ease), border-color .3s, background .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(140deg, rgba(124,92,255,.18), rgba(41,224,208,.12));
  color: var(--accent-3); font-size: 1.25rem; font-weight: 700; margin-bottom: 1.2rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* ---------- studio ---------- */
.studio-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.feature-list { list-style: none; display: grid; gap: 1rem; }
.feature-list li {
  display: flex; align-items: flex-start; gap: .8rem; padding: 1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text);
}
.feature-list em { color: var(--accent-3); font-style: normal; }
.dot { flex: none; width: 9px; height: 9px; margin-top: .55em; border-radius: 50%; background: var(--grad); }

/* ---------- portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pf { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.pf-ph {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  color: var(--muted); font-size: .95rem; font-weight: 500; letter-spacing: .02em;
  transition: color .3s;
}
.pf:hover .pf-ph { color: var(--text); }

/* ---------- process ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1.5rem; }
.step-n { font-size: 1.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: .5rem 0 .4rem; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .93rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 1rem; margin-top: 1.8rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; }
.contact-list a { color: var(--text); border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.contact-list a:hover { color: var(--accent-3); border-bottom-color: var(--accent-3); }
.ci { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); color: var(--accent-3); }
.socials { gap: 1.2rem; }
.socials a { color: var(--muted); font-size: .92rem; }

.quote-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.field .opt { color: #6d6e7d; }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: .75em .9em; font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.2);
}
.field textarea { resize: vertical; }
.form-note { font-size: .9rem; color: var(--accent-3); min-height: 1.2em; text-align: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 3rem 0; text-align: center; }
.footer-inner { display: grid; gap: .5rem; }
.footer-inner .brand-name { font-size: 1.3rem; font-weight: 700; }
.footer-inner p { color: var(--muted); font-size: .92rem; }
.footer-inner .copy { color: #6d6e7d; font-size: .82rem; margin-top: .6rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .studio-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .nav-links.open { max-height: 340px; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links li a { display: block; padding: .9rem; width: 100%; }
  .nav-links li a.btn { border-radius: 0; }
  .cards, .portfolio-grid, .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }
  .section { padding: 66px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
