/* Appingale — an app studio. Ink-dark, one amber accent, huge tight type, mono captions.
   The signature is "the shelf": a launcher grid where the studio's real apps are lit, the next one is being built,
   and quiet placeholder tiles leave room for more. */

@font-face {
  font-family: "Golos Text";
  src: url("/fonts/golos-text-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  src: url("/fonts/golos-text-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #07080b;
  --bg-2: #0e1016;
  --bg-3: #151821;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.14);
  --text: #f2efe8;
  --muted: #a3a6b0;
  --dim: #6d717d;
  --amber: #ffb547;
  --amber-hot: #ffd08a;
  --amber-glow: rgb(255 181 71 / 0.35);
  --font: "Golos Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --page: 1320px;
  --gutter: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* film grain: a whisper of texture so the black is not flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amber); color: #111; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--amber); color: #111; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 var(--amber-glow); animation: pulse 2.4s var(--ease) infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--amber-glow); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.035em; }
.mark { width: 26px; height: 26px; }
.mark rect { transition: fill .35s var(--ease), fill-opacity .35s var(--ease); }
.m-dim { fill: var(--text); fill-opacity: .28; }
.m-lit { fill: var(--amber); }
.brand:hover .m-dim:nth-of-type(4) { fill: var(--amber); fill-opacity: 1; }
.brand:hover .m-lit { fill: var(--text); fill-opacity: .28; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--text); }
.pill {
  text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); transition: border-color .2s, color .2s;
}
.pill:hover { border-color: var(--amber); color: var(--amber); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding-block: clamp(56px, 9vw, 128px) clamp(64px, 9vw, 128px); isolation: isolate; overflow-x: clip; }
.hero::before { /* a low warm glow behind the shelf */
  content: ""; position: absolute; z-index: -1; right: -10%; top: 5%; width: min(1100px, 110vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(255 181 71 / .13), rgb(255 140 60 / .04) 55%, transparent 75%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 28px; align-content: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 118px); line-height: .92; letter-spacing: -.055em; font-weight: 800; }
.hero h1 .line { display: block; animation: rise .9s var(--ease) both; }
.hero h1 .line:nth-child(2) { animation-delay: .06s; }
.hero h1 .line:nth-child(3) { animation-delay: .12s; }
.hero h1 .line:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: .35; transform: translateY(.2em); } }  /* readable even if the animation never runs */
.outline { color: transparent; -webkit-text-stroke: max(1.5px, .018em) var(--text); }
.amber { color: var(--amber); text-shadow: 0 0 .5em rgb(255 181 71 / .25); }
.lede { font-size: clamp(17px, 1rem + .35vw, 20px); color: var(--muted); max-width: 40ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--amber); color: #15110a; font-weight: 700; text-decoration: none;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / .12);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--amber-hot); box-shadow: 0 10px 40px -8px var(--amber-glow), inset 0 -2px 0 rgb(0 0 0 / .12); }
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translate(2px, -2px); }
.text-link { color: var(--text); font-weight: 600; text-decoration: none; background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease), color .2s; padding-bottom: 2px; }
.text-link:hover { background-size: 100% 2px; color: var(--amber-hot); }

/* ---------------------------------------------------------------- the shelf */
.shelf-wrap { perspective: 1400px; display: grid; place-items: center; }
.shelf {
  --rx: 14deg; --ry: -20deg;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px);
  width: min(100%, 460px); padding: clamp(18px, 2.4vw, 28px) clamp(18px, 2.4vw, 28px) clamp(30px, 3.4vw, 40px);
  border-radius: 34px; border: 1px solid var(--line-2);
  background: linear-gradient(155deg, rgb(255 255 255 / .06), rgb(255 255 255 / .015) 45%, rgb(0 0 0 / .2));
  box-shadow: 0 60px 120px -40px rgb(0 0 0 / .9), 0 0 0 1px rgb(0 0 0 / .4), inset 0 1px 0 rgb(255 255 255 / .06);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(2deg);
  transform-style: preserve-3d;
  transition: transform .8s var(--ease);
}
.tile {
  position: relative; aspect-ratio: 1; border-radius: 24%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  animation: pop .7s var(--ease) both;
}
.tile svg:not(.tile-icon) { width: 44%; fill: none; stroke: var(--dim); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile svg:not(.tile-icon) circle[r="1.6"] { fill: var(--dim); stroke: none; }
.tile-slot { background: transparent; border: 1px dashed var(--line-2); }
.tile span { position: absolute; top: calc(100% + 6px); left: 50%; translate: -50% 0; font: 600 11px/1 var(--font); color: var(--text); white-space: nowrap; letter-spacing: -.01em; }
.tile-app { border: 0; background: none; transform: translateZ(46px); animation-name: pop-app; }
.tile-icon { width: 100%; height: 100%; border-radius: 24%; box-shadow: 0 18px 40px -10px rgb(36 71 199 / .8), 0 0 0 1px rgb(255 255 255 / .12); }
.tile-next { background: rgb(255 181 71 / .08); border: 1px solid rgb(255 181 71 / .45); transform: translateZ(28px); animation-name: pop-next; }
.tile-next b { font: 300 clamp(26px, 3vw, 38px)/1 var(--font); color: var(--amber); }
.tile-next span { color: var(--amber); }
.tile-next i {
  position: absolute; inset: -5px; border-radius: 28%; padding: 2px;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--amber) 90%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 2.8s linear infinite;
}
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }
@keyframes pop { from { opacity: 0; transform: scale(.8); } }
@keyframes pop-app { from { opacity: 0; transform: translateZ(0) scale(.8); } to { transform: translateZ(46px); } }
@keyframes pop-next { from { opacity: 0; transform: translateZ(0) scale(.8); } to { transform: translateZ(28px); } }
.tile:nth-child(4n+2) { animation-delay: .05s; }
.tile:nth-child(4n+3) { animation-delay: .1s; }
.tile:nth-child(4n) { animation-delay: .15s; }
.tile:nth-child(n+5) { animation-duration: .8s; }
.tile:nth-child(n+9) { animation-duration: .9s; }
.tile:nth-child(n+13) { animation-duration: 1s; }

/* ---------------------------------------------------------------- sections */
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(34px, 1.4rem + 3.4vw, 76px); line-height: .98; letter-spacing: -.045em; max-width: 16ch; }
.sec-lede { color: var(--muted); font-size: clamp(17px, 1rem + .3vw, 19px); max-width: 48ch; }
.apps, .approach { padding-block: clamp(64px, 10vw, 140px); border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- apps */
.app-list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.app-card {
  grid-column: span 8;
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(20px, 3.5vw, 48px); align-items: center;
  padding: clamp(24px, 3.6vw, 48px);
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2) 60%);
  border: 1px solid var(--line-2); border-radius: 32px;
}
.app-card::before { content: ""; position: absolute; z-index: -1; right: -15%; top: -35%; width: 75%; aspect-ratio: 1; background: radial-gradient(closest-side, rgb(255 181 71 / .12), transparent); }
.app-info { display: grid; gap: 20px; align-content: start; }
.app-id { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 60px; height: 60px; border-radius: 16px; box-shadow: 0 8px 30px -6px rgb(36 71 199 / .6); flex: none; }
.app-id h3 { font-size: clamp(32px, 1.4rem + 1.8vw, 50px); letter-spacing: -.045em; line-height: 1; }
.app-id .mono { margin-top: 6px; }
.status { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1.3 var(--mono); color: var(--text); letter-spacing: .04em; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; justify-self: start; }
.app-lede { font-size: clamp(17px, 1rem + .4vw, 20px); line-height: 1.45; max-width: 32ch; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font: 11.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 0; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.app-shot { display: grid; place-items: center; }
.phone {
  width: min(100%, 260px); padding: 8px; border-radius: 38px; background: #1b1f2a;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 40px 80px -30px rgb(0 0 0 / .9), 0 0 120px -30px rgb(255 181 71 / .35);
  transform: rotate(-4deg) translateY(8px); transition: transform .8s var(--ease);
}
.app-card:hover .phone { transform: rotate(-1deg) translateY(0); }
.phone img { width: 100%; height: auto; border-radius: 31px; }

.app-next {
  grid-column: span 4;
  display: grid; align-content: start; gap: 16px;
  padding: clamp(24px, 3.6vw, 40px);
  border: 1px dashed var(--line-2); border-radius: 32px;
  background: repeating-linear-gradient(-45deg, rgb(255 255 255 / .014) 0 12px, transparent 12px 24px);
}
.next-tile { position: relative; width: 60px; height: 60px; border-radius: 16px; background: rgb(255 181 71 / .08); border: 1px solid rgb(255 181 71 / .45); }
.next-tile span::before, .next-tile span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; border-radius: 2px; background: var(--amber); translate: -50% -50%; }
.next-tile span::after { rotate: 90deg; }
.app-next h3 { font-size: clamp(24px, 1rem + 1.2vw, 32px); letter-spacing: -.035em; line-height: 1.08; }
.app-next p { color: var(--muted); }
.app-next .text-link { justify-self: start; }

/* ---------------------------------------------------------------- approach */
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.rule { position: relative; display: grid; align-content: start; gap: 14px; padding: 28px 28px 8px 0; }
.rule + .rule { padding-left: 28px; border-left: 1px solid var(--line); }
.rule::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--amber); transition: width .6s var(--ease); }
.rule + .rule::before { left: -1px; }
.rule:hover::before { width: 100%; }
.num { font: 500 13px/1 var(--mono); color: var(--amber); letter-spacing: .1em; }
.rule h3 { font-size: clamp(22px, 1rem + .8vw, 28px); letter-spacing: -.03em; line-height: 1.1; }
.rule p { color: var(--muted); font-size: 16px; }

/* ---------------------------------------------------------------- contact */
.contact { padding-block: clamp(72px, 11vw, 160px); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-copy { display: grid; gap: 22px; align-content: start; }
.big-title { font-size: clamp(48px, 7vw, 112px); line-height: .95; letter-spacing: -.055em; }
.contact-lede { color: var(--muted); font-size: clamp(17px, 1rem + .35vw, 20px); max-width: 36ch; }
.contact-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: clamp(18px, 1rem + .5vw, 22px); }
.big-mail { margin-top: 18px; font-weight: 800; font-size: clamp(34px, 7.4vw, 124px); line-height: 1; letter-spacing: -.05em; overflow-wrap: anywhere; }
.copy { font: 600 12.5px/1 var(--mono); letter-spacing: .06em; color: var(--text); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 12px; cursor: pointer; transition: border-color .2s, color .2s; }
.copy:hover { border-color: var(--amber); color: var(--amber); }
.company { font-style: normal; display: grid; gap: 4px; color: var(--muted); font-size: 15px; line-height: 1.5; padding: 20px 22px; border: 1px solid var(--line); border-radius: 20px; justify-self: start; min-width: 240px; }
.company strong { color: var(--text); font-weight: 700; }
.company .mono { text-transform: uppercase; letter-spacing: .14em; margin-bottom: 6px; color: var(--dim); }

.form {
  position: relative; display: grid; gap: 18px;
  padding: clamp(22px, 3.4vw, 40px);
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2) 60%);
  border: 1px solid var(--line-2); border-radius: 28px;
}
.field { display: grid; gap: 8px; }
.field label { font: 500 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.opt { color: var(--dim); text-transform: none; letter-spacing: .02em; }
.field input, .field textarea {
  width: 100%; font: 400 17px/1.5 var(--font); color: var(--text);
  background: rgb(0 0 0 / .28); border: 1px solid var(--line-2); border-radius: 14px; padding: 13px 16px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:hover, .field textarea:hover { border-color: rgb(255 255 255 / .24); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgb(255 181 71 / .16); background: rgb(0 0 0 / .4); }
.field [aria-invalid="true"] { border-color: #ff7a6b; }
.field-error { color: #ff9d91; font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form .btn { border: 0; cursor: pointer; font: 700 16px/1 var(--font); }
.form .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.form-status { font-size: 15px; color: var(--muted); flex: 1 1 220px; }
.form-status.ok { color: var(--amber-hot); }
.form-status.err { color: #ff9d91; }
.form-privacy { font-size: 13.5px; color: var(--dim); }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); padding-top: 28px; overflow: hidden; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.giant {
  margin-top: clamp(24px, 4vw, 56px); margin-bottom: -.22em;
  font-weight: 900; font-size: clamp(88px, 23vw, 340px); line-height: .8; letter-spacing: -.07em; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, var(--bg-3) 10%, rgb(255 181 71 / .22) 70%, rgb(255 181 71 / .5));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}

/* ---------------------------------------------------------------- scroll reveals (progressive) */
@supports (animation-timeline: view()) {
  .rule, .app-card, .app-next, .form { animation: reveal linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
  @keyframes reveal { from { opacity: .15; transform: translateY(28px); } }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .app-card, .app-next { grid-column: 1 / -1; }
  .app-next { grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; }
  .app-next .next-tile { grid-row: span 3; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule:nth-child(3) { padding-left: 0; border-left: 0; }
  .rule:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .shelf-wrap { padding-top: 8px; }
  .shelf { width: min(78%, 360px); --rx: 18deg; --ry: -14deg; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .pill { margin-left: auto; }
  .app-card { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .company { min-width: 0; justify-self: stretch; }
}
@media (max-width: 560px) {
  .pill { display: none; }
  .shelf { width: 86%; }
  .app-next { grid-template-columns: minmax(0, 1fr); }
  .app-next .next-tile { grid-row: auto; }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .rule, .rule + .rule { padding: 22px 0 6px; border-left: 0; }
  .rule + .rule { border-top: 1px solid var(--line); }
  .rule + .rule::before { left: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div:nth-child(odd) { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.message-page { display: grid; gap: 24px; justify-items: start; min-height: 50vh; align-content: center; }
