/* ============================================================
   DesignMobileApp — Shared Stylesheet
   Subtle & Strong identity
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --ink: #111111;
  --ink-soft: #555555;
  --paper: #FFFFFF;
  --paper-2: #F7F7F7;
  --line: #E5E5E5;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.35rem; }
p { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--ink); display: inline-block;
}

.grad-text {
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 15px 26px; border-radius: 100px; text-decoration: none;
  cursor: pointer; border: none; transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 26px 60px -18px rgba(0,0,0,.3); background-color: #222; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.brand-mark {
  height: 31px; width: auto;
  display: block;
}
.brand span {
  display: none;
}
.brand small { display: block; font-family: var(--font-mono); font-size: 0.6rem; color: var(--ink-soft); letter-spacing: .1em; font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; padding: 8px 16px; border-radius: 8px; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: inline-block; }
.nav-links a:hover { color: var(--ink); background: rgba(0,0,0,0.04); transform: translateY(-2px); }
.nav-links a.active { color: var(--ink); background: rgba(0,0,0,0.08); font-weight: 600; box-shadow: inset 0 1px 2px rgba(0,0,0,0.05); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
@media (max-width: 880px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; background: var(--paper); flex-direction: column; padding: 24px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-150%); transition: transform .35s ease; }
  .nav-links.open { transform: translateY(0); }
  .menu-btn { display: block; }
  .nav-cta .btn { display: none; }
}

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head h2 { margin: 16px 0; }
.section-head p { font-size: 1.1rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 90px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 50px; align-items: center; }
.hero h1 { margin: 22px 0; }
.hero p.lead { font-size: 1.2rem; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

/* app tile mosaic */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  aspect-ratio: 1; border-radius: var(--radius); display: grid; place-items: center;
  font-size: 2.2rem; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line);
  animation: float 6s ease-in-out infinite;
}
.tile:nth-child(2){ animation-delay:.6s; }
.tile:nth-child(3){ animation-delay:1.2s; }
.tile:nth-child(4){ animation-delay:.3s; }
.tile:nth-child(5){ background: var(--ink); color: #fff; animation-delay:.9s; }
.tile:nth-child(6){ animation-delay:1.5s; }
.tile:nth-child(7){ animation-delay:.45s; }
.tile:nth-child(8){ animation-delay:1.1s; }
.tile:nth-child(9){ animation-delay:.75s; }
@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce){ .tile{ animation: none; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 40px; white-space: nowrap; animation: scroll 28s linear infinite; }
.marquee-track span { font-family: var(--font-mono); color: #fff; font-size: .85rem; letter-spacing: .12em; opacity: .85; display: inline-flex; gap: 40px; }
.marquee-track span::after { content: "·"; color: var(--line); }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation: none; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.stat .num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--ink); }
.stat .lbl { font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
@media (max-width:720px){ .stats{ grid-template-columns:1fr; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 22px; }
.cards-3x3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards-3x3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-3x3 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; transition: transform .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.card-body { padding: 32px; }
.card-img-top img { width: 100%; height: 200px; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 56px; height: 56px; border-radius: var(--radius-sm); display: grid; place-items: center;
  font-size: 1.5rem; color: var(--ink); background: var(--paper-2); margin-bottom: 20px; border: 1px solid var(--line);
}
.card h3 { margin-bottom: 10px; }
.card ul { list-style: none; margin-top: 16px; }
.card ul li { padding-left: 24px; position: relative; margin-bottom: 8px; font-size: .94rem; color: var(--ink-soft); }
.card ul li::before { content: "→"; position: absolute; left: 0; color: var(--ink); font-weight: 700; }

/* ---------- Feature rows (Why RN) ---------- */
.featrow { display: grid; grid-template-columns: 80px 1fr; gap: 28px; align-items: start; padding: 34px 0; border-top: 1px solid var(--line); }
.featrow .idx { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--line); }
.featrow h3 { margin-bottom: 8px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 26px 22px; position: relative; }
.step .snum { font-family: var(--font-mono); font-weight: 700; color: var(--ink-soft); font-size: .9rem; }
.step h4 { font-size: 1.1rem; margin: 12px 0 6px; }
.step p { font-size: .9rem; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 22px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.quote p { font-size: 1.02rem; color: var(--ink); margin-bottom: 22px; }
.who { display: flex; align-items: center; gap: 14px; }
.av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); font-weight: 700; font-family: var(--font-display); }
.who .nm { font-weight: 600; font-size: .95rem; }
.who .rl { font-size: .82rem; color: var(--ink-soft); }

/* ---------- CTA band (Form) ---------- */
.cta-band {
  background: var(--ink);
  border-radius: var(--radius); padding: 64px 48px; text-align: center; color: #fff;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 560px; margin: 0 auto 36px; }

.cta-form {
  display: flex; flex-direction: column; gap: 16px; max-width: 480px; margin: 0 auto; text-align: left;
}
.cta-form input, .cta-form textarea, .cta-form select {
  width: 100%; padding: 16px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); color: #fff; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.95rem; transition: border-color .2s;
}
.cta-form input::placeholder, .cta-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.cta-form input:focus, .cta-form textarea:focus, .cta-form select:focus { outline: none; border-color: #fff; }
.cta-form .btn { width: 100%; padding: 16px; background: #fff; color: var(--ink); font-size: 1.05rem; }
.cta-form .btn:hover { background: var(--paper-2); transform: none; box-shadow: none; }

.contact-form {
  display: flex; flex-direction: column; gap: 20px; text-align: left;
}
.contact-form .form-field {
  display: flex; flex-direction: column; gap: 8px;
}
.contact-form label {
  font-weight: 600; color: var(--ink); font-size: 0.95rem;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--ink-soft); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
.contact-form .btn { width: 100%; padding: 18px; font-size: 1.1rem; justify-content: center; margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 22px 26px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
.faq-q .pm { color: var(--ink); font-size: 1.4rem; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 26px 22px; font-size: .98rem; }
.faq-item.open .faq-a { max-height: 320px; }

/* ---------- Work / portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 24px; }
.work-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .3s, box-shadow .3s; }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-top { height: 200px; display: grid; place-items: center; color: var(--ink-soft); background: var(--paper-2); font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.work-body { padding: 26px; }
.work-body .tag { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.work-body h3 { margin: 8px 0 10px; }
.metrics { display: flex; gap: 22px; margin-top: 18px; }
.metrics div { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.metrics div small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .72rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 820px){ .contact-grid{ grid-template-columns:1fr; } }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .98rem; background: #fff; transition: border-color .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--ink); }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 18px; }
.info-card h3 { margin-bottom: 14px; }
.info-card p { font-size: .95rem; margin-bottom: 6px; }
.info-card a { color: var(--ink); text-decoration: none; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 70px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.foot-grid .brand { color: #fff; margin-bottom: 16px; }
.foot-grid .brand-mark {
  background: transparent;
  filter: brightness(0) invert(1) opacity(0.6);
}
.foot-about p { color: rgba(255,255,255,.6); font-size: .95rem; margin-bottom: 22px; max-width: 320px; }
.site-footer .btn-primary { background: #fff; color: var(--ink); }
.site-footer .btn-primary:hover { background: #f0f0f0; }
.foot-col h5 { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.foot-col a { display: block; color: rgba(255,255,255,.7); text-decoration: none; font-size: .92rem; margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,.5); font-size: .85rem; }
@media (max-width: 820px){ .foot-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 520px){ .foot-grid{ grid-template-columns:1fr; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; } }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { padding: 80px 0 50px; text-align: center; }
.page-hero h1 { margin: 18px auto; max-width: 14ch; }
.page-hero p { font-size: 1.15rem; max-width: 600px; margin: 0 auto; }
.bg-soft { background: var(--paper-2); }

/* ---------- Carousels ---------- */
.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 40px 0;
  border-radius: var(--radius);
}
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-slide {
  scroll-snap-align: center;
  flex: 0 0 100%;
  min-width: 100%;
}
.carousel-slide img {
  width: 100%;
  border-radius: var(--radius);
}
.cap-slide { position: relative; }
.cap-content {
  position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff;
  border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius);
}
.cap-content h3 { font-size: 1.8rem; margin-bottom: 8px; color: #fff; }
.cap-content p { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin: 0; }
  display: block;
}

@media (min-width: 820px) {
  .carousel-slide {
    flex: 0 0 80%;
    min-width: 80%;
  }
}

/* ---------- Internal Hero Images & Fullscreen Hero ---------- */
.hero-fullscreen {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 0px 4px 20px rgba(0,0,0,0.9);
  padding: 0;
  overflow: hidden;
  text-align: center;
}
.hero-internal {
  position: relative;
  min-height: 40vh; /* Slimmer for inside pages */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 0px 4px 20px rgba(0,0,0,0.9);
  padding: 0;
  overflow: hidden;
  text-align: center;
}
.hero-fullscreen .wrap, .hero-internal .wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  padding: 100px 20px;
  width: 100%;
}
.hero-fullscreen .wrap.align-left {
  align-items: flex-start;
  text-align: left;
  margin-right: auto;
  margin-left: 5%;
}
.hero-fullscreen .wrap.align-right {
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
  margin-right: 5%;
}
.hero-fullscreen .wrap.align-left .hero-actions {
  justify-content: flex-start;
}
.hero-fullscreen .wrap.align-right .hero-actions {
  justify-content: flex-end;
}

@keyframes slideUpIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-content > * {
  animation: slideUpIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.animate-content > *:nth-child(1) { animation-delay: 0.1s; }
.animate-content > *:nth-child(2) { animation-delay: 0.25s; }
.animate-content > *:nth-child(3) { animation-delay: 0.4s; }
.animate-content > *:nth-child(4) { animation-delay: 0.55s; }

.hero-fullscreen h1, .hero-fullscreen p, .hero-fullscreen .eyebrow,
.hero-internal h1, .hero-internal p, .hero-internal .eyebrow {
  color: white;
  text-shadow: 0px 4px 20px rgba(0,0,0,0.9);
}
.hero-fullscreen .grad-text, .hero-internal .grad-text {
  background: linear-gradient(135deg, #ffffff, #a0a0a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none; /* text-shadow doesn't work well with background-clip text */
}
.hero-fullscreen p.lead { margin-bottom: 32px; }
.hero-fullscreen .hero-actions {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.hero-bg, .hero-bg-carousel {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}
.hero-bg::after, .hero-bg-carousel::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.35); /* Lighter overlay so images pop */
  z-index: 2;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-fullscreen .btn-primary, .hero-internal .btn-primary {
  background: #ffffff;
  color: var(--ink);
}
.hero-fullscreen .btn-ghost, .hero-internal .btn-ghost {
  border-color: rgba(255,255,255,0.5);
  color: #ffffff;
  background: transparent;
}
.hero-fullscreen .btn-ghost:hover, .hero-internal .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffffff;
}
.hero-bg-carousel .carousel-wrapper {
  margin: 0; border-radius: 0; height: 100%;
}
.hero-bg-carousel .carousel-track {
  height: 100%; gap: 0;
}
.hero-bg-carousel .carousel-slide {
  height: 100%; flex: 0 0 100%; min-width: 100%; scroll-snap-align: start;
}
.hero-bg-carousel .carousel-slide img {
  border-radius: 0; height: 100%; width: 100%; object-fit: cover;
}

/* Hero Slide specific (where content is inside the slide) */
.hero-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero-slide .hero-bg {
  z-index: 1;
}
.hero-slide .wrap {
  z-index: 3;
}
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.hero-dot.active {
  background: #fff;
  border-color: #fff;
}
