/* ==========================================================================
   AppSling — appsling.com
   ========================================================================== */

/* --------------------------------------------------------------------------
   Self-hosted fonts — Nunito Sans (body) + Quicksand (display)
   Subset to latin + latin-ext. unicode-range means only the subset a glyph
   needs is fetched, so an English page only downloads the two latin files.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/fonts/nunito-sans-latin.woff2') format('woff2');
  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: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/fonts/nunito-sans-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/quicksand-latin.woff2') format('woff2');
  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: 'Quicksand';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/quicksand-latin-ext.woff2') format('woff2');
  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 {
  --bg:        #FAF7F4;
  --ink:       #262321;
  --muted:     #5c554f;
  --muted-2:   #6b645e;
  --faint:     #8a827b;
  --card-bg:   #ffffff;
  --card-line: #efe7df;
  --rule:      #ece4dc;

  --red:    #E8261A;
  --orange: #FF7A00;
  --amber:  #FF9A00;
  --yellow: #FFC400;

  --font-display: 'Quicksand', system-ui, sans-serif;
  --font-body:    'Nunito Sans', system-ui, -apple-system, sans-serif;

  --maxw: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #ffd9a0; }

img { display: block; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  padding: 0 clamp(20px, 5vw, 40px) 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Oversized mark, cropped against the top edge */
.mark-window {
  width: 100%;
  height: clamp(178px, 29vw, 300px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mark {
  height: clamp(230px, 42vw, 420px);
  width: auto;
  animation: pop 1.1s cubic-bezier(.22, 1, .36, 1) .1s both;
}

.wordmark {
  height: clamp(42px, 8.4vw, 68px);
  width: auto;
  margin-top: clamp(10px, 1.8vw, 16px);
  margin-bottom: clamp(14px, 2.5vw, 20px);
  animation: rise .85s cubic-bezier(.22, 1, .36, 1) .4s both;
}

.tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 6.6vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  margin: 0;
  animation: rise .85s cubic-bezier(.22, 1, .36, 1) .5s both;
}

.accent {
  background: linear-gradient(100deg, var(--red), var(--orange) 55%, #FFB000);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.6;
  color: var(--muted);
  margin-top: clamp(20px, 3vw, 28px);
  max-width: 60ch;
  animation: rise .85s cubic-bezier(.22, 1, .36, 1) .72s both;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.cards {
  list-style: none;
  margin: clamp(48px, 8vw, 72px) 0 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 22px;
  text-align: left;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: 0 1px 2px rgba(80, 60, 40, .04), 0 12px 30px rgba(120, 80, 40, .05);
  animation: pop .8s cubic-bezier(.22, 1, .36, 1) both;
}

.card:nth-child(1) { animation-delay: .9s; }
.card:nth-child(2) { animation-delay: 1.02s; }
.card:nth-child(3) { animation-delay: 1.14s; }

.card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 8px;
}

.card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted-2);
  margin: 0;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg { width: 24px; height: 24px; }

.card-icon--design { background: linear-gradient(135deg, var(--orange), var(--red));   box-shadow: 0 6px 14px rgba(232, 38, 26, .22); }
.card-icon--build  { background: linear-gradient(135deg, var(--amber),  var(--orange)); box-shadow: 0 6px 14px rgba(255, 122, 0, .22); }
.card-icon--ship   { background: linear-gradient(135deg, var(--yellow), var(--amber));  box-shadow: 0 6px 14px rgba(255, 154, 0, .22); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  width: 100%;
  max-width: var(--maxw);
  padding: clamp(28px, 5vw, 40px);
  margin-top: clamp(40px, 7vw, 48px);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 14px;
  color: var(--faint);
}

.footer a {
  color: var(--faint);
  text-decoration: none;
}

.footer a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  0%   { opacity: 0; transform: translateY(18px) scale(.94); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}
