/* ============================================================
   App Labs — studio site. Light, editorial, warm. Accent #FF5A36
   ============================================================ */

:root {
  --bg:        #FBFAF8;
  --bg-2:      #F3F1EC;
  --surface:   #FFFFFF;
  --ink:       #16161A;
  --ink-2:     #34343C;
  --muted:     #6E6E78;
  --line:      rgba(20, 20, 25, 0.10);
  --line-2:    rgba(20, 20, 25, 0.16);

  --accent:    #FF5A36;
  --accent-2:  #E8431D;
  --accent-soft:#FFE9E2;

  --radius:    18px;
  --radius-lg: 26px;
  --maxw:      1120px;
  --shadow:    0 28px 70px -34px rgba(20, 20, 25, 0.32);
  --shadow-sm: 0 10px 30px -16px rgba(20, 20, 25, 0.28);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 84px 0; }

h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.04; font-weight: 680; }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); margin-bottom: 18px; }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; font-weight: 650; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 20px;
}
.accent { color: var(--accent); }
.section-head { max-width: 680px; }
.section-head.center { margin: 0 auto 60px; text-align: center; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 1rem; font-weight: 600; letter-spacing: -0.01em;
  padding: 13px 24px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); background: #000; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(255,90,54,.6); }
.btn-accent:hover { transform: translateY(-2px); background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(20,20,25,.04); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(251,250,248,.8); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.025em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a.navlink { color: var(--ink-2); font-size: 0.96rem; font-weight: 500; transition: color .2s; }
.nav-links a.navlink:hover { color: var(--accent-2); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* hero */
.hero { padding: 168px 0 90px; position: relative; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 700; max-width: 14ch; }
.hero .lead { margin: 28px 0 36px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-accent-line { display: inline-block; width: 64px; height: 5px; border-radius: 3px; background: var(--accent); margin-bottom: 34px; }

/* stat strip */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 44px 24px; }
.stat { text-align: center; }
.stat .num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.04em; }
.stat .lbl { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }

/* featured product */
.feature {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 56px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.feature-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-2);
  background: var(--accent-soft); padding: 6px 13px; border-radius: 999px; margin-bottom: 22px;
}
.feature-product { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.feature-product img.appicon { width: 64px; height: 64px; border-radius: 15px; box-shadow: var(--shadow-sm); }
.feature-product h3 { font-size: 1.7rem; }
.feature p { color: var(--muted); font-size: 1.08rem; margin-bottom: 24px; max-width: 460px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.feature-tags span { font-size: 0.85rem; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; }
.feature-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.feature-visual { display: flex; justify-content: center; }
.phone {
  width: 250px; aspect-ratio: 1206 / 2622; border-radius: 40px; padding: 9px;
  background: linear-gradient(160deg, #e9e7e2, #cfccc4); box-shadow: var(--shadow);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }
.phone--tilt { transform: rotate(2.5deg); }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s, box-shadow .2s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.svc .ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); margin-bottom: 18px; }
.svc .ic svg { width: 25px; height: 25px; color: var(--accent-2); }
.svc h3 { margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: 0.98rem; }

/* about / story */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.about p { color: var(--ink-2); font-size: 1.12rem; margin-bottom: 18px; }
.about p:last-child { margin-bottom: 0; }
.timeline { border-left: 2px solid var(--line-2); padding-left: 26px; display: flex; flex-direction: column; gap: 26px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -33px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.tl-item .yr { font-weight: 700; color: var(--accent-2); font-size: 0.95rem; }
.tl-item p { font-size: 1rem; color: var(--muted); margin: 4px 0 0; }

/* contact / cta */
.cta { text-align: center; }
.cta-card {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 76px 32px; position: relative; overflow: hidden;
}
.cta-card::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255,90,54,.55), transparent 65%); top: -160px; right: -120px; filter: blur(30px); }
.cta-card h2 { color: #fff; position: relative; z-index: 1; }
.cta-card .lead { color: rgba(255,255,255,.7); margin: 14px auto 30px; max-width: 520px; position: relative; z-index: 1; }
.cta-card .btn { position: relative; z-index: 1; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 52px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { margin-bottom: 12px; }
.footer-tag { color: var(--muted); font-size: 0.95rem; max-width: 280px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; color: var(--ink-2); font-size: 0.96rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 40px; padding: 40px 28px; text-align: center; }
  .feature p, .feature-product, .feature-tags, .feature-actions { justify-content: center; margin-left: auto; margin-right: auto; }
  .feature-visual { order: -1; }
  .services { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: rgba(251,250,248,.97); backdrop-filter: blur(16px); padding: 24px; gap: 18px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .section { padding: 84px 0; }
  .stats .wrap { grid-template-columns: 1fr; gap: 28px; }
  .footer-top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } }
