/* =========================================================
   Urri Platforms — Futuristic static site
   ========================================================= */

:root {
  --bg: #05060a;
  --bg-soft: #0a0c14;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #eaf0ff;
  --muted: #97a3c4;
  --cyan: #38f0d0;
  --violet: #7b6bff;
  --pink: #ff6bd6;
  --grad: linear-gradient(120deg, #38f0d0 0%, #7b6bff 55%, #ff6bd6 100%);
  --radius: 18px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand__text {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Background ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(123, 107, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 240, 208, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad);
  color: #05060a;
  box-shadow: 0 8px 30px rgba(123, 107, 255, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(123, 107, 255, 0.5); }
.btn--ghost {
  background: var(--panel);
  border-color: var(--panel-border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(56, 240, 208, 0.5); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--panel-border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark { display: inline-flex; }
.brand__text { font-size: 1.15rem; }
.brand__text span { color: var(--cyan); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { color: var(--text) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 160px 0 90px; text-align: center; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; max-width: 900px; }
.pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--cyan);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}
.hero__title { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 700; margin-bottom: 22px; }
.hero__sub { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); max-width: 680px; margin: 0 auto 34px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero__badges {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__badges div { display: flex; flex-direction: column; }
.hero__badges strong { font-family: "Space Grotesk", sans-serif; font-size: 1.9rem; }
.hero__badges span { color: var(--muted); font-size: 0.85rem; }
.hero__glow {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(circle at center, rgba(123, 107, 255, 0.35), transparent 60%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  padding: 18px 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
  -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: 34px;
  white-space: nowrap;
  width: max-content;
  animation: scroll 30s linear infinite;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.marquee__track span { font-size: 0.95rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, rgba(10, 12, 20, 0.6), rgba(5, 6, 10, 0)); }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.section__head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--cards { grid-template-columns: repeat(4, 1fr); }
.grid--solutions { grid-template-columns: repeat(2, 1fr); }
.grid--stats { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(56, 240, 208, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(56, 240, 208, 0.4); }
.card:hover::before { opacity: 1; }
.card__icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; position: relative; }
.card p { color: var(--muted); font-size: 0.92rem; position: relative; }

/* ---------- Solutions ---------- */
.solution {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.solution:hover { transform: translateY(-6px); border-color: rgba(123, 107, 255, 0.45); }
.solution__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 12px;
}
.solution h3 { font-size: 1.3rem; margin-bottom: 10px; }
.solution p { color: var(--muted); margin-bottom: 16px; }
.solution ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.solution li { color: var(--text); font-size: 0.92rem; padding-left: 22px; position: relative; }
.solution li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--cyan);
}

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 6px; left: 5%; right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(123, 107, 255, 0.5), rgba(56, 240, 208, 0.5), transparent);
}
.timeline__step { position: relative; padding-top: 34px; }
.timeline__dot {
  position: absolute;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 5px rgba(123, 107, 255, 0.15);
}
.timeline__step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.timeline__step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Stats ---------- */
.stat { text-align: center; padding: 30px 18px; }
.stat strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.contact__copy h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.contact__copy p { color: var(--muted); margin-bottom: 24px; }
.contact__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact__list li { color: var(--text); }
.contact__list a:hover { color: var(--cyan); }

.contact__form {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 34px;
  backdrop-filter: blur(10px);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 240, 208, 0.15);
}
.field input::placeholder, .field textarea::placeholder { color: #5c6689; }
.form__note { margin-top: 14px; font-size: 0.9rem; color: var(--cyan); min-height: 1.2em; text-align: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--panel-border); padding: 60px 0 30px; background: rgba(5, 6, 10, 0.6); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand p { color: var(--muted); margin-top: 14px; max-width: 340px; font-size: 0.92rem; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer__cols h4 { font-size: 0.95rem; margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 9px; transition: color 0.2s; }
.footer__cols a:hover { color: var(--cyan); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--cards { grid-template-columns: repeat(2, 1fr); }
  .grid--stats { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .contact__inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5, 6, 10, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--panel-border);
    padding: 12px 24px 24px;
    transform: translateY(-140%);
    transition: transform 0.35s var(--ease);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--panel-border); }
  .nav__cta { margin-top: 12px; text-align: center; border-bottom: 0 !important; }
  .nav__toggle { display: flex; }
  .grid--solutions { grid-template-columns: 1fr; }
  .hero__badges { gap: 26px; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .grid--cards { grid-template-columns: 1fr; }
  .grid--stats { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
