/* Taiseer-ur-Rahman site (ruwaidportfolio.online/taiseer/): warm paper colours from the app */
@font-face { font-family: "Mehr Nastaliq"; src: url(/quran/fonts/mehr.ttf) format("truetype"); font-display: swap; }

:root {
  --bg: #f6f1e7;
  --ink: #1d1a16;
  --muted: #6b6358;
  --line: rgb(29 26 22 / .12);
  --card: rgb(255 255 255 / .55);
  --accent: #7a4a1e;
  --accent-ink: #fff8ee;
  --glow-a: rgb(196 140 80 / .35);
  --glow-b: rgb(31 90 61 / .22);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d0b;
    --ink: #f3ece0;
    --muted: #a39a8c;
    --line: rgb(243 236 224 / .12);
    --card: rgb(255 255 255 / .04);
    --accent: #d9a066;
    --accent-ink: #1a120a;
    --glow-a: rgb(217 160 102 / .22);
    --glow-b: rgb(60 140 100 / .18);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 16px/1.55 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img { display: block; }

/* Slowly drifting background light */
.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow span { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); animation: drift 22s ease-in-out infinite alternate; }
.glow span:first-child { background: var(--glow-a); top: -25vmax; right: -15vmax; }
.glow span:last-child { background: var(--glow-b); bottom: -30vmax; left: -20vmax; animation-delay: -11s; }
@keyframes drift { to { transform: translate(-8vmax, 6vmax) scale(1.12); } }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 14px 20px; padding-top: max(14px, env(safe-area-inset-top));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.pill { text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); transition: border-color .2s; }
.pill:hover { border-color: var(--accent); }

/* Hero */
.hero {
  max-width: 1120px; margin: 0 auto; padding: 40px 20px 80px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; min-height: calc(100vh - 70px);
}
.eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(48px, 8vw, 92px); line-height: .95; }
.urdu { font-family: "Mehr Nastaliq", "Noto Nastaliq Urdu", serif; font-size: clamp(24px, 3.4vw, 34px); line-height: 2.1; color: var(--accent); margin: 8px 0 0; text-align: left; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 30em; margin: 14px 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px var(--accent); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--accent); }
.btn.ghost { border-color: var(--line); background: var(--card); }
.btn.ghost:hover { border-color: var(--accent); }
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(3px); }
.meta { margin: 22px 0 0; font-size: 13px; color: var(--muted); }

/* iPhone illustration */
.stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.iphone {
  --w: 300px;
  position: relative; width: var(--w); aspect-ratio: 390 / 844; padding: 11px;
  border-radius: 56px;
  background: linear-gradient(145deg, #8a8580, #3a3734 30%, #26241f 60%, #6d6862);
  box-shadow: 0 0 0 1.5px #1a1816 inset, 0 0 0 1px rgb(255 255 255 / .08), 0 50px 80px -30px rgb(0 0 0 / .55), 0 20px 30px -20px rgb(0 0 0 / .4);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-12px) rotate(-.6deg); } }
.btn-side { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2a2724, #77716a); }
.action { left: -3px; top: 17%; height: 4.5%; }
.vol-up { left: -3px; top: 25%; height: 8%; }
.vol-down { left: -3px; top: 35%; height: 8%; }
.power { right: -3px; left: auto; top: 28%; height: 12%; background: linear-gradient(270deg, #2a2724, #77716a); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 46px; overflow: hidden; background: #000; isolation: isolate; }
.statusbar {
  position: absolute; inset: 0 0 auto; z-index: 3; height: 46px; display: flex; align-items: center; justify-content: space-between;
  padding: 4px 26px 0 30px; background: var(--bar, #f4ecd8); color: var(--barink, #3b2f20); transition: background .6s, color .6s;
  font: 600 14px/1 Inter, system-ui, sans-serif;
}
.island { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); width: 92px; height: 27px; border-radius: 20px; background: #000; }
.icons { display: flex; gap: 5px; align-items: center; }
.icons svg { height: 11px; width: auto; fill: currentColor; }
.slides { position: absolute; inset: 46px 0 0; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 1.2s ease; }
.slide.on { opacity: 1; transform: none; }
.homebar { position: absolute; z-index: 3; bottom: 8px; left: 50%; transform: translateX(-50%); width: 110px; height: 4px; border-radius: 4px; background: rgb(0 0 0 / .35); pointer-events: none; }

.dots { display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.dots button[aria-selected="true"] { width: 24px; background: var(--accent); }

/* Features */
.features { max-width: 1120px; margin: 0 auto; padding: 0 20px 90px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature { display: flex; flex-direction: column; gap: 2px; padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); transition: transform .3s; }
.feature:hover { transform: translateY(-4px); }
.feature .ico { font-size: 20px; color: var(--accent); margin-bottom: 10px; font-family: "Instrument Serif", serif; }
.feature b { font-weight: 600; }
.feature span:last-child { color: var(--muted); font-size: 14px; }

/* Get the app */
.get { max-width: 760px; margin: 0 auto; padding: 20px 20px 90px; text-align: center; scroll-margin-top: 70px; }
.get h2 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 32px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.card { padding: 28px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.card .logo { width: 28px; height: 28px; color: var(--accent); }
.card h3 { margin: 14px 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.card p { margin: 0 0 22px; color: var(--muted); font-size: 15px; flex: 1; }
.card p b { color: var(--ink); font-weight: 600; }
.note { margin: 20px auto 0; font-size: 13px; color: var(--muted); max-width: 34em; }

footer { text-align: center; padding: 30px 20px calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer p { margin: 4px 0; }
footer .small { font-size: 12px; opacity: .8; }

/* Entrance and scroll animations (only when JavaScript runs) */
.js .rise { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--d, 0) * 90ms + 100ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 24px; gap: 40px; min-height: 0; }
  .urdu { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .iphone { --w: 262px; border-radius: 50px; padding: 10px; }
  .screen { border-radius: 41px; }
  .cards { grid-template-columns: 1fr; }
  .features { gap: 10px; }
  .feature { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .glow span, .iphone { animation: none; }
  .js .rise, .js .reveal { animation: none; opacity: 1; transform: none; transition: none; }
  .slide { transition: none; }
}
