/* Reva Infotech: tokens, type, buttons, nav, intro, cursor, footer.
   The brand is the logo's violet-to-orchid gradient on near-black. */
:root {
  --bg: #05040a;
  --surface: #0d0b16;
  --surface-2: #15111f;
  --ink: #f4f1fb;
  --muted: #a39db6;
  --dim: #6c6680;
  --line: rgba(244, 241, 251, 0.08);
  --line-2: rgba(244, 241, 251, 0.14);
  --violet: #6a00ff;
  --orchid: #c247f6;
  --violet-hi: #9d5cff;
  --orchid-hi: #e07bff;
  --grad: linear-gradient(100deg, var(--violet), var(--orchid));
  --grad-text: linear-gradient(100deg, var(--violet-hi) 0%, var(--orchid-hi) 50%, #ffd1f6 60%, var(--orchid-hi) 70%, var(--violet-hi) 100%);
  --lime: #acfc4f;

  --display: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --h1: clamp(44px, 7vw, 108px);
  --h2: clamp(34px, 4.8vw, 72px);
  --radius: 24px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --intro: 1.5s;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 clamp(16px, 1.1vw, 18px)/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--orchid); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--orchid); color: #fff; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.grain { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
h2 { font-size: var(--h2); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
h3 { font-size: clamp(20px, 1.6vw, 24px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
h1 em, h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em;
  background: var(--grad-text); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.06em; animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.lede { margin: 0; color: var(--muted); max-width: 60ch; }
.lede a { color: var(--ink); text-decoration-color: var(--orchid); text-underline-offset: 3px; }
.section-head { display: grid; gap: 22px; justify-items: start; max-width: 900px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-radius: 999px;
  font: 600 12px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(10px);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--orchid); box-shadow: 0 0 0 4px rgba(194, 71, 246, 0.16), 0 0 14px var(--orchid); animation: beat 2.4s ease-in-out infinite; }
.chip.lime i { background: var(--lime); box-shadow: 0 0 0 4px rgba(172, 252, 79, 0.16), 0 0 14px var(--lime); }
@keyframes beat { 50% { box-shadow: 0 0 0 7px rgba(194, 71, 246, 0.04), 0 0 22px var(--orchid); } }

/* ---------- buttons ---------- */
.btn {
  --x: 0px; --y: 0px; position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 22px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 600 16px/1 var(--body); letter-spacing: -0.01em; color: var(--ink);
  transform: translate(var(--x), var(--y)); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
}
.btn .arrow { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: rotate(-45deg); }
.btn-grad { color: #fff; background: var(--grad); box-shadow: 0 12px 40px -12px rgba(140, 40, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35); overflow: hidden; isolation: isolate; }
.btn-grad::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); translate: -120% 0; transition: translate 0.8s var(--ease); }
.btn-grad:hover::before { translate: 120% 0; }
.btn-grad:hover { box-shadow: 0 18px 60px -10px rgba(170, 60, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-grad .arrow { background: rgba(255, 255, 255, 0.18); }
.btn-glass { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.1); }
.btn-lime { color: #0c1015; background: var(--lime); box-shadow: 0 12px 40px -12px rgba(172, 252, 79, 0.6); }
.btn-lime .arrow { background: #0c1015; color: var(--lime); }
.btn-xl { padding: 22px 30px; font-size: clamp(17px, 1.6vw, 22px); }
.dot-lime { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { display: block; height: 42px; width: auto; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s; }
.nav.solid { background: rgba(5, 4, 10, 0.72); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.nav-links { display: none; gap: 32px; font-size: 15px; font-weight: 550; color: var(--muted); }
.nav-links a { position: relative; text-decoration: none; transition: color 0.2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 11px 14px 11px 18px; font-size: 14px; }
.nav .btn .arrow { width: 22px; height: 22px; }
.progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; transform: scaleX(0); transform-origin: 0 50%; background: var(--grad); box-shadow: 0 0 14px var(--orchid); }
@media (min-width: 940px) { .nav-links { display: flex; } }
@media (max-width: 420px) { .nav .btn { display: none; } }

/* ---------- intro: the mark assembles, then the curtain parts ---------- */
.intro { display: none; }
.js .intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; pointer-events: none; animation: gone 0s linear calc(var(--intro) + 0.9s) forwards; }
.intro-half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--bg); animation: part 0.9s cubic-bezier(0.7, 0, 0.2, 1) var(--intro) forwards; }
.intro-half.top { top: 0; }
.intro-half.bottom { bottom: 0; --to: 100%; }
@keyframes part { to { transform: translateY(var(--to, -100%)); } }
.intro-mark { position: relative; width: 92px; height: 94px; overflow: visible; animation: markOut 0.6s var(--ease) calc(var(--intro) - 0.15s) forwards; }
.intro-mark > * { transform-box: fill-box; transform-origin: center; }
.intro-mark .m1 { animation: m1 0.8s var(--ease) 0.15s both; }
.intro-mark .m2 { animation: m2 0.8s var(--ease) 0.35s both; }
.intro-mark .m3 { animation: m3 0.8s var(--ease) 0.5s both; }
@keyframes m1 { from { transform: translateX(-140%); opacity: 0; } }
@keyframes m2 { from { transform: translateY(160%) scale(0.4); opacity: 0; } }
@keyframes m3 { from { transform: translate(120%, 120%) rotate(30deg); opacity: 0; } }
@keyframes markOut { to { transform: scale(0.6); opacity: 0; filter: blur(6px); } }
.intro-word { position: absolute; top: calc(50% + 62px); height: 40px; width: auto; animation: wordIn 0.7s var(--ease) 0.75s both, markOut 0.6s var(--ease) calc(var(--intro) - 0.15s) forwards; }
@keyframes wordIn { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }
@keyframes gone { to { visibility: hidden; } }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cursor span { display: block; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 1.5px solid rgba(224, 123, 255, 0.75); transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background 0.3s; mix-blend-mode: screen; }
.cursor.big span { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(194, 71, 246, 0.12); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-top: 72px; }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-brand p { margin: 18px 0 0; color: var(--muted); max-width: 36ch; font-size: 15px; }
.foot-col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.foot-col b { font: 600 12px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.foot-col a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.foot-col a:hover { color: var(--ink); }
.giant {
  margin-top: 56px; text-align: center; white-space: nowrap; user-select: none;
  font: 800 clamp(64px, 15.5vw, 236px)/0.8 var(--display); letter-spacing: -0.05em;
  /* A fill, not an outline: Outfit's contours overlap, and a stroke draws every seam. */
  color: transparent;
  background: var(--grad) 0 0 / calc(var(--fill, 0) * 100%) 100% no-repeat, linear-gradient(rgba(244, 241, 251, 0.06), rgba(244, 241, 251, 0.06));
  -webkit-background-clip: text; background-clip: text;
}
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px 28px; color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
  .js .intro { display: none; }
  .cursor { display: none; }
}
