/* ============================================================
   Adtirex Studio — Studio / Product direction
   Display: Space Grotesk · Body: Manrope · Accent: mascot green
   ============================================================ */
:root {
  --bg: #ffffff;
  --soft: #F4F6F5;
  --ink: #0E1512;
  --mut: #5E6B64;
  --line: #E7EBE9;
  --brand: #12A150;     /* accent (fills, large) */
  --brand-d: #0C7C3D;   /* accent text on white / dark band */
  --star: #F5A623;
  --maxw: 1200px;

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:where(a, button, .btn, .app, .badge, .nav-toggle) { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }

.eyebrow { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-d); }
.eyebrow--light { color: rgba(255,255,255,.72); }

section[id] { scroll-margin-top: 88px; }

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
  transform: translateY(-160%); transition: transform .2s ease;
}
.skip-link:focus { transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__logo { display: block; width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.brand__logo--sm { width: 28px; height: 28px; border-radius: 8px; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 19px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--mut); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.nav__cta { color: #fff !important; background: var(--ink); padding: 10px 20px; border-radius: 10px; }
.nav__cta:hover { background: #000; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 700; font-size: 15.5px;
  padding: 14px 24px; border-radius: 12px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn--primary { color: #fff; background: var(--ink); }
.btn--primary:hover { transform: translateY(-2px); background: #000; }
.btn--ghost { color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--ink); }

.badge { display: inline-flex; transition: transform .15s ease; }
.badge:hover { transform: translateY(-2px); }
.badge img { display: block; height: 56px; width: auto; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 60px 32px 80px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center;
}
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--soft); color: var(--brand-d);
  font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  padding: 8px 15px; border-radius: 999px;
}
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.hero__title { font-size: clamp(40px, 5.6vw, 62px); font-weight: 700; margin-top: 22px; max-width: 14ch; }
.hero__sub { font-size: clamp(17px, 2vw, 19px); color: var(--mut); margin-top: 20px; max-width: 46ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero__rating { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--mut); font-size: 14.5px; font-weight: 600; }
.stars { color: var(--star); letter-spacing: 2px; font-size: 16px; }

/* Device mockup */
.showcase { justify-self: center; display: flex; flex-direction: column; align-items: center; width: 288px; }
.device {
  position: relative;
  width: 288px; height: 576px;
  background: var(--ink); border-radius: 46px; padding: 12px;
  box-shadow: 0 44px 90px -34px rgba(14,21,18,.5);
}
.device::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 122px; height: 26px; background: var(--ink); border-radius: 0 0 16px 16px; z-index: 2;
}
.device__screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background-color: #090134;
  background-image: url("img/mandala-screenshot.jpg");
  background-repeat: no-repeat;
  background-size: 122% auto;
  background-position: center 15%;
}
/* icon + badge overlaid inside the screen (ikame style) */
.device__overlay {
  position: absolute; left: 12px; right: 12px; bottom: 30px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.device__appicon {
  display: block; width: 74px; height: 74px; border-radius: 18px;
  border: 3px solid #fff; background: #fff;
  box-shadow: 0 10px 22px -8px rgba(0,0,0,.55);
  transition: transform .15s ease;
}
.device__appicon img { width: 100%; height: 100%; border-radius: 15px; display: block; }
.device__appicon:hover { transform: translateY(-3px); }
.device__badge { display: block; transition: transform .15s ease; }
.device__badge img { display: block; height: 46px; width: auto; }
.device__badge:hover { transform: translateY(-2px); }

/* ---------- Section shell ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 40px 32px 80px; }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 30px;
}
.section__head h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 700; }
.section__note { color: var(--mut); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Apps ---------- */
.apps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--line); border-radius: 20px; padding: 22px;
  background: var(--bg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.app { cursor: pointer; }
a.app:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(14,21,18,.4); border-color: transparent; }
.app__icon { display: block; width: 64px; height: 64px; border-radius: 16px; object-fit: cover; box-shadow: 0 0 0 1px rgba(14,21,18,.08) inset; }
.app__name { font-family: var(--display); font-weight: 600; font-size: 19px; margin-top: 16px; }
.app__cat { color: var(--mut); font-size: 14px; margin-top: 3px; }
.app__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
}
.app__row { margin-top: 18px; }
.app__stars { color: var(--star); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.app__stars small { color: var(--mut); font-weight: 600; margin-left: 4px; }
.app__go { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--brand-d); }
a.app:hover .app__go { text-decoration: underline; text-underline-offset: 3px; }
.app__go--muted { color: var(--mut); font-weight: 500; }

/* ---------- Studio ---------- */
.studio__grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start;
  border-top: 1px solid var(--line); padding-top: 34px;
}
.studio__intro .eyebrow { display: block; margin-bottom: 14px; }
.studio__intro h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; max-width: 16ch; }
.studio__intro p { color: var(--mut); font-size: 18px; margin-top: 16px; max-width: 52ch; }
.specs { display: grid; }
.specs > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.specs > div:first-child { border-top: 0; }
.specs dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); font-weight: 700; }
.specs dd { font-family: var(--display); font-weight: 600; font-size: 18px; }

/* ---------- Contact ---------- */
.contact { background: var(--brand-d); color: #fff; }
.contact__inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 7vw, 92px) 32px; text-align: center;
}
.contact__inner .eyebrow { display: block; margin-bottom: 14px; }
.contact__title { font-size: clamp(28px, 4.4vw, 46px); font-weight: 700; max-width: 20ch; margin: 0 auto; }
.contact__mail {
  display: inline-block; margin-top: 26px;
  font-weight: 700; font-size: clamp(17px, 2.6vw, 24px); color: #fff;
  padding-bottom: 5px; border-bottom: 2px solid rgba(255,255,255,.45);
  transition: border-color .2s ease;
}
.contact__mail:hover { border-color: #fff; }
.contact__meta { margin-top: 24px; font-size: 14px; color: rgba(255,255,255,.75); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 15px; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { color: var(--mut); font-size: 14.5px; font-weight: 600; }
.footer__links a:hover { color: var(--ink); }
.footer__legal { color: var(--mut); font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 40px; }
  .showcase { order: -1; }
  .apps { grid-template-columns: 1fr 1fr; }
  .studio__grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 620px) {
  .apps { grid-template-columns: 1fr; }
  .nav {
    position: absolute; top: 68px; right: 16px; left: 16px;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px; background: #fff;
    border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 20px 44px -22px rgba(14,21,18,.4);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 10px; text-align: center; }
  .nav__cta { text-align: center; }
  .nav-toggle { display: flex; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .app, .badge, .nav, .nav-toggle span, .skip-link, .device__appicon, .device__badge { transition: none; }
}

:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
