/* Yunus Technologies. Black, white, and light: thin type, hairlines, a living constellation, grain. */
:root {
  --bg: #000;
  --ink: #F4F4F4;
  --soft: #9C9C9C;
  --faint: #5A5A5A;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --emerald: #168752;
  --mint: #6FC497;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 300; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(255, 255, 255, 0.9); color: #000; }

/* Film grain over everything, very faint. */
body::after {
  content: ""; position: fixed; inset: -50%; width: 200%; height: 200%; pointer-events: none; z-index: 50;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.55; animation: grain 0.6s steps(2) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 50% { transform: translate(-2%, 1%); } 100% { transform: translate(1%, -2%); } }

.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- Header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
.top.solid { background: rgba(0, 0, 0, 0.6); border-color: var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.mark { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink); }
.mark img { width: 28px; height: 28px; opacity: 0.95; }
.top nav { display: flex; gap: 34px; }
.top nav a { position: relative; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--soft); padding: 6px 0; transition: color 0.3s; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--ink); transition: right 0.45s var(--ease); }
.top nav a:hover { color: var(--ink); }
.top nav a:hover::after { right: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
/* a soft light that follows the pointer */
.hero .light {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 255, 255, 0.07), transparent 60%);
  transition: background 0.15s;
}
.hero .fade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(60% 55% at 50% 50%, transparent 30%, #000 100%); }
.hero .inner { position: relative; z-index: 3; text-align: center; padding: 120px 0 90px; }
.hero .logo { width: 180px; height: auto; margin: 0 auto 36px; display: block; filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.12)); }
.hero h1 {
  margin: 0 0 20px; font-size: clamp(42px, 7.6vw, 96px); font-weight: 200; letter-spacing: -0.035em; line-height: 1.0;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 55%, #8A8A8A 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin: 0 auto; max-width: 560px; font-size: clamp(16px, 1.6vw, 20px); color: var(--soft); }
.hero .scroll { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint); }
.hero .scroll i { display: block; width: 1px; height: 46px; background: linear-gradient(180deg, var(--ink), transparent); animation: drop 2.2s var(--ease) infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 46% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Staggered entrance */
.rise { opacity: 0; transform: translateY(26px); filter: blur(10px); animation: rise 1.3s var(--ease) forwards; }
.rise.d1 { animation-delay: 0.15s; } .rise.d2 { animation-delay: 0.35s; } .rise.d3 { animation-delay: 0.55s; } .rise.d4 { animation-delay: 1.2s; }
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- Scroll reveals ---------- */
.reveal { opacity: 0; transform: translateY(32px); filter: blur(8px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
.reveal.late { transition-delay: 0.15s; } .reveal.later { transition-delay: 0.3s; }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; gap: 64px; width: max-content; animation: slide 38s linear infinite; font-family: var(--mono); font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.marquee .track span::before { content: "✦"; margin-right: 64px; color: #333; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section.block { padding: clamp(96px, 12vw, 160px) 0; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--soft); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--line-strong); }
.block h2 { margin: 0 0 22px; max-width: 760px; font-size: clamp(32px, 5vw, 60px); font-weight: 200; letter-spacing: -0.03em; line-height: 1.05; }
.block .lead { max-width: 600px; margin: 0; font-size: clamp(16px, 1.5vw, 19px); color: var(--soft); }

/* ---------- Tibyan feature ---------- */
.feature { position: relative; overflow: hidden; }
.feature .glow { position: absolute; left: 50%; top: 50%; width: 1100px; height: 1100px; transform: translate(-10%, -50%); pointer-events: none; background: radial-gradient(closest-side, rgba(22, 135, 82, 0.28), rgba(22, 135, 82, 0.08) 45%, transparent 72%); filter: blur(10px); }
.feature .grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.feature h2 .ar { display: block; margin-top: 10px; font-family: "Amiri", "Geeza Pro", "Times New Roman", serif; font-size: 0.72em; font-weight: 400; color: var(--mint); letter-spacing: 0; }
.feature .points { list-style: none; padding: 0; margin: 36px 0 40px; border-top: 1px solid var(--line); }
.feature .points li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--soft); font-size: 16px; }
.feature .points li b { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--mint); font-weight: 400; padding-top: 4px; }
.feature .points li span strong { color: var(--ink); font-weight: 400; }
.cta { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 26px; border-radius: 999px; border: 1px solid rgba(111, 196, 151, 0.45); color: var(--ink); font-size: 15px; background: rgba(22, 135, 82, 0.12); transition: background 0.4s var(--ease), border-color 0.4s, transform 0.4s var(--ease); }
.cta:hover { background: rgba(22, 135, 82, 0.28); border-color: rgba(111, 196, 151, 0.9); transform: translateY(-2px); }
.cta i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.cta small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mint); }
.feature .note { margin: 18px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }

/* The iPhone */
.phone-stage { display: grid; place-items: center; perspective: 1400px; }
.phone {
  position: relative; width: 300px; aspect-ratio: 300 / 614; border-radius: 48px; padding: 10px; background: #0A0A0A;
  box-shadow: 0 0 0 1px #2A2A2A, 0 0 0 3px #0F0F0F, 0 50px 120px rgba(0, 0, 0, 0.8), 0 0 90px rgba(22, 135, 82, 0.35);
  transform-style: preserve-3d; transition: transform 0.6s var(--ease);
  will-change: transform;
}
.phone::before { content: ""; position: absolute; left: 50%; top: 20px; width: 92px; height: 26px; transform: translateX(-50%); border-radius: 20px; background: #000; z-index: 2; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: #fff; }
.phone .screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .shine { position: absolute; inset: 0; border-radius: 48px; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 35%, transparent 70%, rgba(255, 255, 255, 0.05)); }

/* Next app */
.next { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent); transition: border-color 0.4s, transform 0.5s var(--ease); overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--cx, 50%) var(--cy, 50%), rgba(255, 255, 255, 0.07), transparent 55%); opacity: 0; transition: opacity 0.4s; }
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--faint); }
.card h3 { margin: 18px 0 6px; font-size: 22px; font-weight: 300; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--soft); font-size: 15px; }
.card.dim h3 { color: var(--soft); }

/* ---------- Statement ---------- */
.statement { text-align: center; }
.statement h2 { max-width: 900px; margin: 0 auto; font-size: clamp(30px, 5.2vw, 68px); }
.statement h2 em { font-style: normal; color: var(--faint); }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: 48px; }
.principle { padding: 36px 28px 36px 0; border-right: 1px solid var(--line); }
.principle:last-child { border-right: 0; }
.principle + .principle { padding-left: 28px; }
.principle .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--faint); }
.principle h3 { margin: 48px 0 10px; font-size: 22px; font-weight: 300; }
.principle p { margin: 0; color: var(--soft); font-size: 15px; }

/* ---------- Contact ---------- */
.contact .mail { display: inline-block; margin-top: 14px; font-size: clamp(26px, 4vw, 52px); font-weight: 200; letter-spacing: -0.02em; position: relative; }
.contact .mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--ink); transform: scaleX(0.25); transform-origin: left; transition: transform 0.6s var(--ease); }
.contact .mail:hover::after { transform: scaleX(1); }

/* ---------- Footer ---------- */
footer.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }
footer.foot nav { display: flex; gap: 26px; }
footer.foot nav a { color: var(--soft); transition: color 0.3s; }
footer.foot nav a:hover { color: var(--ink); }

/* ---------- Plain pages ---------- */
.page { padding: 150px 0 60px; max-width: 720px; }
.page h1 { margin: 0 0 6px; font-size: clamp(36px, 5vw, 56px); font-weight: 200; letter-spacing: -0.03em; }
.page .date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }
.page h2 { margin: 40px 0 10px; font-size: 22px; font-weight: 300; }
.page p, .page li { color: var(--soft); font-size: 16px; }
.page a { border-bottom: 1px solid var(--faint); transition: border-color 0.3s; }
.page a:hover { border-color: var(--ink); }

@media (max-width: 860px) {
  .feature .grid { grid-template-columns: 1fr; gap: 48px; }
  .feature .glow { transform: translate(-50%, -20%); }
  .phone { width: 260px; }
  .principles { grid-template-columns: 1fr; }
  .principle { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .principle + .principle { padding-left: 0; }
  .principle h3 { margin-top: 20px; }
  .top nav { gap: 20px; }
  .mark span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body::after, .marquee .track, .hero .scroll i { animation: none; }
  .rise { animation: none; opacity: 1; transform: none; filter: none; }
  .reveal { transition: none; opacity: 1; transform: none; filter: none; }
}
