/* ============================================================
   RAMDAS GAT — App Studio
   Icon-forward, bold light design.
   Display: Bricolage Grotesque · Body: Inter
   ============================================================ */

:root {
  --canvas:   #f3f2f9;   /* cool light lavender-grey */
  --paper:    #ffffff;
  --ink:      #16131f;   /* near-black indigo        */
  --ink-soft: #57536b;
  --line:     #e7e5f1;
  --dark:     #100e1c;

  /* brand gradient — used with restraint (wordmark, one accent) */
  --grad: linear-gradient(96deg, #7c3aed 0%, #ec4899 52%, #f59e0b 100%);

  --radius:   22px;
  --radius-s: 14px;
  --icon-r:   26%;       /* squircle-ish icon corner */
  --shadow:   0 18px 44px -22px rgba(29, 14, 61, .30);
  --shadow-lg:0 40px 80px -34px rgba(29, 14, 61, .40);
  --maxw:     1140px;

  --disp: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--disp);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 .4em;
  font-weight: 800;
}

/* signature accents */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ink-underline {
  position: relative; white-space: nowrap;
}
.ink-underline::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .34em;
  background: var(--grad); border-radius: 4px; z-index: -1; opacity: .9;
}

.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft);
  padding-left: 2.4rem; position: relative; margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 1.8rem; height: 2px;
  background: var(--grad); transform: translateY(-50%);
}
.eyebrow--center { padding-left: 0; }
.eyebrow--center::before { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: 999px;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s;
}
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -14px rgba(22,19,31,.7); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { transform: translateY(-3px); background: var(--ink); color: #fff; }
.btn--lg { padding: 1.05rem 2.3rem; font-size: 1.12rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 5vw, 3rem);
  background: rgba(243, 242, 249, .8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-family: var(--disp); }
.nav__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: #fff; font-weight: 800; font-family: var(--disp);
  box-shadow: 0 6px 16px -6px rgba(236,72,153,.6);
}
.nav__name { letter-spacing: .01em; }
.nav__links { display: flex; gap: 1.7rem; }
.nav__links a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; transition: color .15s; }
.nav__links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.8rem, 7vw, 5.5rem) clamp(1rem, 5vw, 3rem) clamp(2.5rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5rem); letter-spacing: -.035em; }
.hero__sub {
  max-width: 34ch; font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--ink-soft); margin: 1.3rem 0 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }

/* signature icon wall */
.iconwall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.6rem, 1.4vw, 1rem);
  perspective: 1000px;
}
.iconwall .tile {
  aspect-ratio: 1 / 1;
  border-radius: var(--icon-r);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(22,19,31,.06);
  animation: bob 6s ease-in-out infinite;
}
.iconwall .tile img, .iconwall .tile svg { width: 100%; height: 100%; object-fit: cover; }
.iconwall .tile--contain { background: #fff; }
.iconwall .tile--contain img { object-fit: contain; padding: 14%; }
.iconwall .tile--mono {
  display: grid; place-items: center; color: #fff;
  font-family: var(--disp); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem);
}
/* staggered float */
.iconwall .tile:nth-child(1){ animation-delay: -.2s; }
.iconwall .tile:nth-child(2){ animation-delay: -1.4s; }
.iconwall .tile:nth-child(3){ animation-delay: -2.6s; }
.iconwall .tile:nth-child(4){ animation-delay: -3.4s; }
.iconwall .tile:nth-child(5){ animation-delay: -.8s; }
.iconwall .tile:nth-child(6){ animation-delay: -2.0s; }
.iconwall .tile:nth-child(7){ animation-delay: -3.0s; }
.iconwall .tile:nth-child(8){ animation-delay: -1.0s; }
.iconwall .tile:nth-child(9){ animation-delay: -2.4s; }
.iconwall .tile:nth-child(10){ animation-delay: -3.6s; }
/* special tiles = studio badge + custom builds */
.iconwall .tile--badge, .iconwall .tile--custom {
  display: grid; place-items: center; text-align: center;
  box-shadow: var(--shadow); font-family: var(--disp); animation: none;
}
.iconwall .tile--badge { background: var(--dark); color: #fff; }
.iconwall .tile--custom {
  background: var(--grad); color: #fff; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.iconwall .tile--custom:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.iconwall .tile--badge b, .iconwall .tile--custom b { font-size: clamp(1.4rem, 3.5vw, 2rem); line-height: 1; }
.iconwall .tile--badge span, .iconwall .tile--custom span {
  font-family: var(--body); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  opacity: .82; margin-top: .3rem; padding: 0 .2rem;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- services / work with us ---------- */
.services { background: var(--dark); color: #fff; padding: clamp(2.2rem, 5vw, 3.5rem) clamp(1rem, 5vw, 3rem); }
.services__inner { position: relative; max-width: var(--maxw); margin: 0 auto; overflow: hidden; }
.services__glow {
  position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; z-index: 0;
  background: radial-gradient(circle, rgba(124,58,237,.5), transparent 62%),
              radial-gradient(circle at 70% 60%, rgba(236,72,153,.4), transparent 60%);
  filter: blur(12px); pointer-events: none;
}
.services > .services__inner > *:not(.services__glow) { position: relative; z-index: 1; }
.eyebrow--ondark { color: rgba(255,255,255,.72); }
.services__title { font-size: clamp(1.9rem, 4.6vw, 3.1rem); max-width: 16ch; }
.services__lead { color: rgba(255,255,255,.75); font-size: 1.12rem; max-width: 60ch; margin-top: .8rem; }
.services__grid {
  list-style: none; padding: 0; margin: 1.6rem 0 1.8rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem;
}
.services__grid li {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-s); padding: 1.2rem 1.3rem;
}
.services__grid b { font-family: var(--disp); font-size: 1.1rem; display: block; margin-bottom: .3rem; }
.services__grid span { color: rgba(255,255,255,.66); font-size: .92rem; }
.services__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.services__note { color: rgba(255,255,255,.6); font-size: .95rem; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -14px rgba(0,0,0,.5); }

/* ---------- marquee strip ---------- */
.strip {
  background: var(--dark); color: #fff; overflow: hidden;
  padding: .95rem 0; border-top: 1px solid rgba(255,255,255,.08);
}
.strip__track {
  display: flex; gap: 1.5rem; align-items: center; white-space: nowrap; width: max-content;
  animation: slide 26s linear infinite;
  font-family: var(--disp); font-weight: 700; font-size: 1.05rem; letter-spacing: .01em;
}
.strip__track span:not([aria-hidden]) { opacity: .95; }
.strip__track span[aria-hidden] { color: #ec4899; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 5vw, 3rem); max-width: var(--maxw); margin: 0 auto; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 3.2rem; }
.section__title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
.section__lead { color: var(--ink-soft); font-size: 1.12rem; margin-top: .6rem; }

/* ---------- apps grid ---------- */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.5rem; }
.appcard {
  position: relative; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow); overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s;
  /* reveal */
  opacity: 0; transform: translateY(22px);
}
.appcard.in { opacity: 1; transform: none; }
.appcard::after {
  content: ""; position: absolute; top: -70px; right: -70px;
  width: 170px; height: 170px; border-radius: 50%;
  background: var(--accent, var(--grad)); opacity: .09; filter: blur(4px);
}
.appcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }

.appcard__top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.05rem; }
.appicon {
  width: 64px; height: 64px; border-radius: var(--icon-r); flex: none; overflow: hidden;
  box-shadow: 0 10px 22px -12px rgba(0,0,0,.4), inset 0 0 0 1px rgba(22,19,31,.07);
}
.appicon img, .appicon svg { width: 100%; height: 100%; object-fit: cover; }
.appicon--contain { background: #fff; }
.appicon--contain img { object-fit: contain; padding: 12%; }
.appicon--mono { display: grid; place-items: center; color: #fff; font-family: var(--disp); font-weight: 800; font-size: 1.7rem; }

.appcard__name { font-family: var(--disp); font-size: 1.28rem; font-weight: 800; margin: 0; }
.appcard__badge {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: .22rem .62rem; border-radius: 999px; color: #fff; margin-top: .4rem;
}
.appcard__desc { color: var(--ink-soft); font-size: .97rem; margin: 0 0 1rem; }
.appcard__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.35rem; }
.chip { font-size: .75rem; font-weight: 600; padding: .3rem .68rem; border-radius: 999px; background: var(--canvas); color: var(--ink-soft); }
.appcard__foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.appcard__platform { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.appcard__link {
  font-size: .85rem; font-weight: 800; padding: .58rem 1.05rem; border-radius: 999px;
  color: #fff; transition: opacity .15s, transform .15s;
}
.appcard__link:hover { opacity: .9; transform: translateY(-2px); }
.appcard__link[data-soon]::after { content: " · soon"; opacity: .7; font-weight: 600; }

/* ---------- screenshot strip ---------- */
.shots {
  display: flex; gap: .6rem; overflow-x: auto;
  padding: .1rem .1rem .9rem; margin: 0 0 .2rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.shot {
  flex: none; height: 150px; aspect-ratio: 1080 / 2340;
  padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--canvas); cursor: pointer; scroll-snap-align: start;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shot:hover, .shot:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; outline: none; }

/* ---------- flagship (LIMS) ---------- */
#flagship { margin-bottom: 1.6rem; }
.flagship {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 240px 1fr; gap: 2.2rem; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 2.2rem; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease;
}
.flagship.in { opacity: 1; transform: none; }
.flagship:hover { box-shadow: var(--shadow-lg); }
.flagship::after {
  content: ""; position: absolute; top: -100px; left: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: var(--accent, var(--grad)); opacity: .09; filter: blur(6px);
}
.flagship__aside { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.flagship__icon {
  width: 100%; max-width: 220px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 28px -16px rgba(0,0,0,.35); display: block;
}
.flagship__icon img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.flagship__body { position: relative; z-index: 1; }
.flagship__name { font-family: var(--disp); font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 .5rem; }
.flagship__desc { color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 1rem; max-width: 64ch; }
.flagship__creds { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.cred {
  font-size: .78rem; font-weight: 700; color: #0f766e;
  background: #ecfdf5; border: 1px solid #a7f3d0; padding: .32rem .7rem; border-radius: 999px;
}
.flagship__foot { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; margin-top: .3rem; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 4vh 4vw;
  background: rgba(8, 6, 18, .92); backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; max-height: 92vh; }
.lightbox__img { max-height: 82vh; max-width: 90vw; width: auto; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.lightbox__cap { color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 600; letter-spacing: .03em; }
.lightbox__btn {
  position: absolute; background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.22); width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background .15s, transform .15s;
}
.lightbox__btn:hover { background: rgba(255,255,255,.24); }
.lightbox__close { top: 3vh; right: 3vw; }
.lightbox__prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 3vw; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover, .lightbox__next:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__close:hover { transform: scale(1.08); }

/* ---------- about ---------- */
.section--about { background: var(--paper); max-width: none; }
.about {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr .9fr; gap: 3.2rem; align-items: center;
}
.about__text p { color: var(--ink-soft); font-size: 1.06rem; }
.valuelist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.valuelist li { position: relative; padding-left: 1.7rem; color: var(--ink-soft); }
.valuelist li span { color: var(--ink); font-weight: 700; }
.valuelist li::before {
  content: "✦"; position: absolute; left: 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900;
}
.orgcard {
  background: linear-gradient(162deg, #1c1633, var(--dark));
  color: #fff; border-radius: var(--radius); padding: 2.3rem; box-shadow: var(--shadow-lg); text-align: center;
}
.orgcard__mark {
  width: 66px; height: 66px; margin: 0 auto 1rem; display: grid; place-items: center;
  border-radius: 19px; font-family: var(--disp); font-size: 1.9rem; font-weight: 800; background: var(--grad);
}
.orgcard h3 { font-size: 1.55rem; margin: 0; }
.orgcard__role { color: rgba(255,255,255,.62); margin: .2rem 0 1.5rem; font-weight: 600; }
.orgcard__meta { display: grid; gap: .95rem; text-align: left; }
.orgcard__meta dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.48); }
.orgcard__meta dd { margin: .12rem 0 0; font-weight: 600; }
.orgcard__meta a { color: #f9a8d4; }

/* ---------- contact ---------- */
.section--contact { text-align: center; }
.contact { max-width: 660px; margin: 0 auto; }
.contact__loc { color: var(--ink-soft); margin-top: 1.5rem; font-weight: 600; }

/* ---------- footer ---------- */
.footer { background: var(--dark); color: #fff; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 2.6rem clamp(1rem, 5vw, 3rem);
  display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between;
}
.footer__brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-family: var(--disp); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.35rem; }
.footer__links a { color: rgba(255,255,255,.72); font-weight: 600; font-size: .92rem; transition: color .15s; }
.footer__links a:hover { color: #fff; }
.footer__copy { width: 100%; color: rgba(255,255,255,.5); font-size: .85rem; margin: 0; }

/* ---------- legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 5vw, 2rem); }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal .updated { color: var(--ink-soft); font-weight: 600; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.4rem; }
.legal p, .legal li { color: #3a3752; }
.legal a { color: #7c3aed; font-weight: 600; }
.legal__back { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: #7c3aed; margin-bottom: 2rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; font-size: .95rem; }
.legal th { background: #faf9ff; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .iconwall { max-width: 440px; margin-top: .5rem; }
  .about { grid-template-columns: 1fr; }
  .flagship { grid-template-columns: 1fr; gap: 1.4rem; }
  .flagship__aside { flex-direction: row; align-items: center; }
  .flagship__icon { max-width: 160px; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .iconwall .tile { animation: none; }
  .strip__track { animation: none; }
  .appcard, .flagship { opacity: 1; transform: none; }
  .shot { transition: none; }
  html { scroll-behavior: auto; }
}
