:root {
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --alt: #f8fafc;
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --accent: #14b8a6;
  --night: #0b1224;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 0.6rem; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }
.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.85rem 1.4rem; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--brand); cursor: pointer; font: inherit; font-weight: 700; transition: background 0.15s, transform 0.05s, box-shadow 0.15s; box-shadow: 0 8px 20px rgba(79,70,229,0.25); }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--brand); box-shadow: none; }
.btn--ghost:hover { background: #eef2ff; color: var(--brand-dark); }
.btn--small { padding: 0.5rem 1rem; font-size: 0.92rem; box-shadow: none; }
.btn--block { width: 100%; padding: 1rem; font-size: 1.05rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-size: 0.85rem; letter-spacing: 0.04em; }
.nav__links { display: flex; align-items: center; gap: 1.4rem; }
.nav__links a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav__links a:not(.btn):hover { color: var(--brand); }

/* Hero */
.hero { padding: 4.5rem 0 4rem; background: radial-gradient(900px 400px at 85% 0%, rgba(20,184,166,0.15), transparent 60%), radial-gradient(800px 420px at 0% 10%, rgba(79,70,229,0.12), transparent 60%); }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { margin: 0 0 0.6rem; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand); }
.eyebrow--light { color: #a5b4fc; }
.lead { font-size: 1.15rem; color: var(--text); max-width: 34rem; }
.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero__shot { position: relative; margin: 0; }
.hero__shot > img:first-child { border-radius: 14px; box-shadow: 0 30px 60px rgba(15,23,42,0.18); border: 1px solid var(--line); }
.hero__phone { position: absolute; right: -14px; bottom: -36px; width: 30%; border-radius: 18px; border: 6px solid var(--night); box-shadow: 0 20px 40px rgba(15,23,42,0.3); aspect-ratio: 600 / 1266; object-fit: cover; object-position: top; background: #fff; }

/* Sections */
.section { padding: 5rem 0; }
.section--alt { background: var(--alt); }
.section__lead { max-width: 46rem; font-size: 1.08rem; }

/* Project */
.project { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; margin-top: 2rem; align-items: start; }
.project__gallery { display: grid; gap: 1rem; }
.project__gallery figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,0.08); }
.project__gallery figcaption { padding: 0.6rem 0.9rem; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.project__details { position: sticky; top: 90px; }
.checks { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.8rem; }
.checks li { position: relative; padding-left: 1.8rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #ccfbf1; color: #0f766e; font-size: 0.78rem; font-weight: 800; display: grid; place-items: center; margin-top: 0.15rem; }
.checks strong { color: var(--ink); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: 0 6px 18px rgba(15,23,42,0.04); }
.card__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #eef2ff; font-size: 1.3rem; margin-bottom: 0.8rem; }
.card p { margin: 0; color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; counter-reset: step; }
.steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.steps span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 0.8rem; }
.steps p { margin: 0; color: var(--muted); }

/* Request */
.section--request { background: linear-gradient(160deg, var(--night), #1e1b4b); color: #cbd5e1; }
.request { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.request__intro h2 { color: #fff; }
.request__intro p { font-size: 1.08rem; }
.request__points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.5rem; color: #e2e8f0; font-weight: 600; }
.request__form { background: #fff; color: var(--text); border-radius: 20px; padding: 1.75rem; box-shadow: 0 30px 60px rgba(0,0,0,0.3); display: grid; gap: 1rem; }
.request__form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.request__form small { font-weight: 400; color: var(--muted); }
.request__form input, .request__form select, .request__form textarea { font: inherit; font-size: 16px; padding: 0.7rem 0.85rem; border: 1.5px solid #cbd5e1; border-radius: 10px; background: #f8fafc; color: var(--ink); width: 100%; }
.request__form input:focus, .request__form select:focus, .request__form textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(79,70,229,0.15); }
.request__form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.request__form fieldset { border: 0; margin: 0; padding: 0; }
.request__form legend { font-weight: 600; font-size: 0.92rem; color: var(--ink); margin-bottom: 0.45rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { position: relative; cursor: pointer; display: inline-flex !important; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { padding: 0.45rem 0.85rem; border: 1.5px solid #cbd5e1; border-radius: 999px; font-weight: 600; font-size: 0.88rem; background: #fff; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(79,70,229,0.2); }
.hp { position: absolute; left: -9999px; }
.fineprint { margin: 0; font-size: 0.82rem; color: var(--muted); text-align: center; }

.request__contact { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); display: grid; gap: 0.5rem; }
.request__contact p { margin: 0; font-size: 0.95rem; color: #94a3b8; }
.request__contact a { color: #fff; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.request__contact a:hover { color: #c7d2fe; }

/* Footer */
.footer { background: var(--night); color: #94a3b8; padding: 1.5rem 0; font-size: 0.9rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { color: #c7d2fe; }

/* Thanks page */
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.thanks__emoji { font-size: 3rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero__inner, .project, .request { grid-template-columns: 1fr; }
  .project__details { position: static; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__phone { right: 8px; bottom: -24px; width: 26%; }
}
@media (max-width: 640px) {
  .nav__links a:not(.btn) { display: none; }
  .brand { font-size: 0.95rem; }
  .btn--small { white-space: nowrap; }
  .hero { padding: 3rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }
  .cards, .steps, .request__form .row { grid-template-columns: 1fr; }
  .request__form { padding: 1.25rem; }
}

/* Hello chip */
.hello { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; padding: 0.3rem 1rem 0.3rem 0.3rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(15,23,42,0.08); color: var(--ink); font-weight: 700; text-decoration: none; }
.hello img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.hello:hover { border-color: #c7d2fe; }

/* About */
.about__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: center; }
.about__photo { position: relative; margin: 0; }
.about__photo img { border-radius: 24px; box-shadow: 0 30px 60px rgba(15,23,42,0.2); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about__photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 24px; background: linear-gradient(135deg, rgba(79,70,229,0.18), rgba(20,184,166,0.22)); z-index: -1; }
.about__photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 2px; padding: 0.8rem 1rem; border-radius: 14px; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); box-shadow: 0 10px 24px rgba(15,23,42,0.15); }
.about__photo figcaption strong { color: var(--ink); }
.about__photo figcaption span { font-size: 0.88rem; color: var(--muted); }
.about__text p { font-size: 1.06rem; }
.about__facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.about__facts li { display: flex; gap: 0.75rem; align-items: center; font-weight: 600; color: var(--ink); }
.about__facts span { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #eef2ff; }

/* Browser frame on project shots */
.frame__bar { display: flex; align-items: center; gap: 6px; padding: 0.55rem 0.8rem; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.frame__bar i:nth-child(1) { background: #f87171; } .frame__bar i:nth-child(2) { background: #fbbf24; } .frame__bar i:nth-child(3) { background: #34d399; }
.frame__bar b { margin-left: 0.6rem; flex: 1; max-width: 260px; padding: 0.15rem 0.7rem; border-radius: 6px; background: #fff; font-size: 0.75rem; font-weight: 500; color: var(--muted); }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: start; }
.faq__list { display: grid; gap: 0.75rem; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 1.2rem; transition: box-shadow 0.15s, border-color 0.15s; }
.faq details[open] { border-color: #c7d2fe; box-shadow: 0 10px 24px rgba(79,70,229,0.08); }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.3rem; line-height: 1; color: var(--brand); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.1rem; color: var(--text); }

@media (max-width: 960px) {
  .about__inner, .faq { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__photo { max-width: 420px; margin-inline: auto; width: calc(100% - 18px); }
}
@media (max-width: 640px) {
  .about__photo figcaption { left: 10px; right: auto; bottom: 10px; padding: 0.5rem 0.75rem; }
  .about__photo figcaption span { font-size: 0.78rem; }
}

/* Case study */
.case { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 3rem; }
.case__block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.case__block p { margin: 0; color: var(--text); }
.case__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #eef2ff; font-size: 1.3rem; margin-bottom: 0.8rem; }
.stack { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 1rem; margin-top: 1.5rem; }
.stack__label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stack ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; }
.stack li { padding: 0.35rem 0.8rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.88rem; font-weight: 600; color: var(--ink); }

/* More screens */
.more { margin-top: 4rem; }
.more__title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 800; }
.more__lead { max-width: 44rem; margin: 0 0 0.5rem; }
.muted { color: var(--muted); }
.more__group { margin: 2rem 0 0.9rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.shots--phones { grid-template-columns: repeat(4, 1fr); }
.shot { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(15,23,42,0.07); display: flex; flex-direction: column; }
.shot__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.shot__open img { width: 100%; transition: transform 0.25s; }
.shot__open:hover img { transform: scale(1.02); }
.shot__open:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.shot--phone .shot__open { background: var(--night); padding: 10px 10px 0; }
.shot--phone .shot__open img { border-radius: 14px 14px 0 0; aspect-ratio: 600 / 1000; object-fit: cover; object-position: top; }
.shot figcaption { display: grid; gap: 0.2rem; padding: 0.8rem 1rem 1rem; }
.shot figcaption strong { color: var(--ink); font-size: 0.98rem; }
.shot figcaption span { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }

/* Project 2 */
.project2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; margin-top: 1.5rem; }
.project2__shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(15,23,42,0.12); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(11,18,36,0.85); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); margin: 0 auto; }
.lightbox--phone img { max-width: 380px; width: 100%; }
.lightbox__cap { margin: 0.8rem 0 0; text-align: center; color: #e2e8f0; font-weight: 600; }
.lightbox__close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.1rem; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,0.3); z-index: 1; }

@media (max-width: 960px) {
  .case { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .shots--phones { grid-template-columns: repeat(2, 1fr); }
  .project2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .shots { grid-template-columns: 1fr; }
  .lightbox__close { top: 6px; right: 6px; }
}

/* Demo project */
.project2--demo { margin-bottom: 4rem; }
.project2__shots { position: relative; padding-bottom: 2.5rem; }
a.project2__shot { display: block; transition: transform 0.2s, box-shadow 0.2s; }
a.project2__shot:hover { transform: translateY(-3px); box-shadow: 0 26px 50px rgba(15,23,42,0.18); }
.project2__shot--small { position: absolute; right: -12px; bottom: 0; width: 46%; border: 4px solid #fff !important; }
.tag { display: inline-block; margin-bottom: 0.8rem; padding: 0.3rem 0.8rem; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 0.82rem; font-weight: 700; }
.more-work__second { margin-top: 1rem; }
@media (max-width: 960px) { .project2__shot--small { right: 8px; } }
a.project2__shot { text-decoration: none; }
