/* Qayacom – mobile app development, Vientiane. White and blue. */
:root {
  --blue: #1a5cff;
  --blue-2: #3b82f6;
  --navy: #0b1f4d;
  --ink: #1d2b4f;
  --muted: #5b6b8c;
  --line: #e3eaf7;
  --tint: #f2f6ff;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(16, 42, 110, .12);
  --font: "Plus Jakarta Sans", "Noto Sans Lao", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; overflow-x: hidden; }
html:lang(lo) body { font-family: "Noto Sans Lao", var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.logo svg { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--blue); }
.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.langs button { border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 700; color: var(--muted); padding: 4px 11px; border-radius: 99px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 99px; font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 10px 24px rgba(26, 92, 255, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(26, 92, 255, .38); }
.btn-ghost { color: var(--navy); border: 2px solid var(--line); background: var(--white); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.nav .btn { padding: 9px 18px; font-size: .9rem; }
@media (max-width: 900px) { .nav-links, .nav .btn { display: none; } .langs { margin-left: auto; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 90px 0 110px; background: radial-gradient(1200px 600px at 85% 10%, #dfe9ff 0%, rgba(223,233,255,0) 60%), linear-gradient(180deg, #f7faff, #fff); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--tint); color: var(--blue); border: 1px solid #d5e2ff; padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: .88rem; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.06; letter-spacing: -.03em; color: var(--navy); margin: 18px 0; }
.hero h1 .grad { background: linear-gradient(90deg, var(--blue), #00b4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 32em; margin: 0 0 30px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Phone with app icons popping in */
.device-stage { position: relative; display: grid; place-items: center; min-height: 460px; }
.device {
  width: 250px; height: 500px; border-radius: 44px; background: var(--navy); padding: 12px; position: relative; z-index: 2;
  box-shadow: 0 40px 80px rgba(11, 31, 77, .35); animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-14px) rotate(-1deg); } }
.device .screen { height: 100%; border-radius: 34px; background: linear-gradient(160deg, #2e6bff, #00b4ff); padding: 46px 20px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-content: start; }
.device .notch { position: absolute; top: 20px; left: 50%; width: 80px; height: 22px; background: var(--navy); border-radius: 99px; transform: translateX(-50%); }
.app-icon { aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; background: var(--white); box-shadow: 0 6px 14px rgba(0,0,0,.15); opacity: 0; transform: scale(.4); animation: pop .5s cubic-bezier(.2,1.6,.4,1) forwards; overflow: hidden; }
.app-icon svg { width: 58%; height: 58%; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
.orbit { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.orbit .chip {
  position: absolute; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px;
  box-shadow: var(--shadow); font-weight: 700; font-size: .9rem; color: var(--navy); display: flex; gap: 8px; align-items: center;
  animation: drift 6s ease-in-out infinite;
}
.orbit .chip svg { width: 22px; height: 22px; color: var(--blue); }
@keyframes drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.blob { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(26,92,255,.18), rgba(26,92,255,0) 70%); animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); } }
@media (max-width: 520px) { .orbit .chip { font-size: .78rem; padding: 8px 10px; } }

/* Sections */
section { padding: 100px 0; }
.kicker { color: var(--blue); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.15; letter-spacing: -.02em; color: var(--navy); margin: 8px 0 14px; }
.sub { color: var(--muted); font-size: 1.12rem; max-width: 40em; margin: 0 0 46px; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }
.tinted { background: var(--tint); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .25s, box-shadow .25s, border-color .25s; text-align: left; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c9d8ff; }
.card .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--tint); color: var(--blue); margin-bottom: 18px; transition: transform .3s; }
.card:hover .ico { transform: rotate(-8deg) scale(1.08); }
.card .ico svg { width: 28px; height: 28px; }
.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.25rem; }
.card p { margin: 0 0 14px; color: var(--muted); }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.card li { display: flex; gap: 8px; color: var(--ink); font-size: .95rem; }
.card li::before { content: "✓"; color: var(--blue); font-weight: 800; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-align: left; }
.step::before { counter-increment: step; content: "0" counter(step); font-weight: 800; font-size: 2.2rem; color: #c9d8ff; line-height: 1; }
.step h3 { margin: 10px 0 6px; color: var(--navy); }
.step p { margin: 0; color: var(--muted); }

.work { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; border-radius: 28px; overflow: hidden; background: var(--navy); color: #dbe5ff; box-shadow: var(--shadow); text-align: left; }
@media (max-width: 900px) { .work { grid-template-columns: 1fr; } }
.work .media { background: #aae4f8 url(/laoalphabet/img/sky.webp) center / cover; display: grid; place-items: center; padding: 40px; min-height: 320px; }
.work .media img.shot { border-radius: 18px; border: 8px solid #1b1d29; box-shadow: 0 20px 50px rgba(0,0,0,.3); transform: rotate(-3deg); transition: transform .5s; }
.work:hover .media img.shot { transform: rotate(0) scale(1.03); }
.work .body { padding: 44px; }
.work .app { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.work .app img { width: 64px; height: 64px; border-radius: 16px; }
.work h3 { margin: 0; color: var(--white); font-size: 1.5rem; }
.work .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.work .tags span { border: 1px solid rgba(255,255,255,.2); border-radius: 99px; padding: 4px 12px; font-size: .85rem; }
.work .btn-primary { background: var(--white); color: var(--navy); box-shadow: none; }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }
.why div { padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-align: left; }
.why b { display: block; color: var(--navy); font-size: 1.08rem; margin-bottom: 4px; }
.why span { color: var(--muted); }

.contact { background: linear-gradient(135deg, var(--blue), #00a6ff); color: var(--white); border-radius: 32px; padding: 60px 40px; text-align: center; position: relative; overflow: hidden; }
.contact h2 { color: var(--white); }
.contact p { color: #e6eeff; font-size: 1.15rem; margin: 0 auto 28px; max-width: 34em; }
.contact .btn-primary { background: var(--white); color: var(--blue); }
.contact .place { margin-top: 22px; font-weight: 600; color: #e6eeff; }
.contact::before, .contact::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); animation: breathe 9s ease-in-out infinite; }
.contact::before { width: 260px; height: 260px; left: -80px; top: -80px; }
.contact::after { width: 200px; height: 200px; right: -60px; bottom: -70px; animation-delay: -4s; }

footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
footer a { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .app-icon { opacity: 1; transform: none; }
}

/* Other projects: browser frames with screenshots */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
@media (max-width: 1000px) { .projects { grid-template-columns: 1fr; } }
.project { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 18px 18px 24px; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project .frame { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #0d1117; border: 1px solid var(--line); margin-bottom: 18px; }
.project .frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .6s; }
.project:hover .frame img:not(.phone-shot) { transform: scale(1.04); }
.project .bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #f1f4fa; border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.project .bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3dbea; }
.project .bar i:first-child { background: #ff6b6b; } .project .bar i:nth-child(2) { background: #ffc94d; } .project .bar i:nth-child(3) { background: #4cd07d; }
.project .bar b { margin-left: 8px; font-size: .75rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project .phone-shot { position: absolute; right: 10px; bottom: 10px; width: 22% !important; aspect-ratio: 390 / 844 !important; border-radius: 12px; border: 3px solid #0b1f4d; box-shadow: 0 10px 24px rgba(0,0,0,.4); animation: drift 6s ease-in-out infinite; }
.project .type { color: var(--blue); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.project h3 { margin: 4px 0 8px; color: var(--navy); font-size: 1.3rem; }
.project p { margin: 0 0 14px; color: var(--muted); flex: 1; }
.project .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project .tags span { background: var(--tint); color: var(--navy); border-radius: 99px; padding: 3px 10px; font-size: .8rem; font-weight: 600; }
.project .link { margin-top: 14px; font-weight: 700; text-decoration: none; }

/* Contact form (sent by the qayacom-contact worker, Turnstile anti-robot) */
.contact-form { max-width: 640px; margin: 0 auto; text-align: left; display: grid; gap: 14px; position: relative; z-index: 1; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .contact-form .row { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: 6px; font-weight: 700; color: #fff; font-size: .92rem; }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 500; color: var(--ink); background: #fff; border: 2px solid transparent;
  border-radius: 14px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #9cc0ff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .captcha { min-height: 65px; }
.contact-form button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 700; color: #fff; }
.form-status.error { color: #ffe1e1; }
.form-status.success { color: #d8ffe4; }
