/* =========================================================
   RIASKOV IP & TECH — 2026 design system
   Trends used: bento grid, editorial serif+sans mix,
   organic blobs, kinetic marquee, glassmorphism,
   grain texture, asymmetric layouts, sticker badges.
   ========================================================= */

:root {
  --orange-50:  #FFF1E0;
  --orange-100: #FFD9B0;
  --orange-300: #FFB066;
  --orange-500: #FF7A1A;
  --orange-600: #EA5E00;
  --orange-700: #B84600;

  --green-50:  #E9F5EC;
  --green-100: #C9E8D2;
  --green-300: #7FC79A;
  --green-500: #2D8F5F;
  --green-700: #1B5C3D;
  --green-900: #0F3325;

  --cream:     #FFF7EC;
  --cream-2:   #FBEFDD;
  --ink:       #14201A;
  --ink-2:     #2A382F;
  --muted:     #6E7B73;
  --line:      rgba(20, 32, 26, 0.12);

  --radius-sm: 14px;
  --radius:    22px;
  --radius-lg: 32px;

  --ff-sans: 'Manrope', system-ui, sans-serif;
  --ff-serif: 'Plus Jakarta Sans', system-ui, sans-serif;

  --shadow-sm: 0 2px 8px rgba(20, 32, 26, 0.06);
  --shadow:    0 18px 40px -20px rgba(20, 32, 26, 0.25);
  --shadow-lg: 0 40px 80px -30px rgba(234, 94, 0, 0.35);

  --container: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

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

/* ========== GRAIN OVERLAY ========== */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--lg { padding: 16px 26px; font-size: 15px; }
.btn--primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 6px 20px -6px rgba(20, 32, 26, 0.45);
}
.btn--primary:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(234, 94, 0, 0.6);
}
.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--ink);
  transition: all .2s;
}
.icon-btn:hover {
  background: var(--orange-500);
  color: #fff;
  border-color: var(--orange-500);
  transform: rotate(-8deg);
}
.icon-btn svg { width: 18px; height: 18px; }

/* ========== HEADER ========== */
.header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 247, 236, 0.7);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.logo__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--orange-500);
  border-radius: 14px;
  transform: rotate(-4deg);
  transition: transform .3s;
}
.logo:hover .logo__mark { transform: rotate(4deg) scale(1.05); }
.logo__mark svg { width: 26px; height: 26px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text b { font-weight: 800; font-size: 16px; letter-spacing: 0.02em; }
.logo__text em {
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.25em;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
  transition: all .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav__link:hover { background: rgba(20,32,26,.06); color: var(--ink); }
.nav__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange-500);
  display: inline-block;
}

.header__cta { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
}
.burger span {
  width: 18px; height: 1.8px; background: var(--ink);
  border-radius: 2px; transition: .25s;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 60px 0 0;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__grid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  color: rgba(20, 32, 26, 0.06);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  animation: float 18s ease-in-out infinite;
}
.blob--orange {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--orange-500), transparent 70%);
  top: -120px; right: -100px;
}
.blob--green {
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--green-500), transparent 70%);
  bottom: -180px; left: -120px;
  animation-delay: -8s;
}
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.08); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(45, 143, 95, 0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(45, 143, 95, 0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(45, 143, 95, 0); }
}

.hero__title {
  font-family: var(--ff-sans);
  font-size: clamp(44px, 6.4vw, 88px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 28px;
}
.title-serif {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--green-700);
  letter-spacing: -0.02em;
}
.title-mark {
  position: relative;
  display: inline-block;
  color: var(--orange-600);
}
.title-mark svg {
  position: absolute;
  left: -4%; right: -4%; bottom: -10px;
  width: 108%; height: 18px;
  color: var(--orange-500);
}

.hero__lead {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--ink-2);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero__actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__meta {
  display: flex; align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-item strong {
  font-family: var(--ff-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}
.meta-item span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.meta-sep {
  width: 1px; height: 36px;
  background: var(--line);
}

/* ----- Hero visual (bento) ----- */
.hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .35s ease;
}
.card:hover { transform: translateY(-4px); }
.card--big {
  grid-column: 1 / -1;
  background: linear-gradient(160deg, #fff 60%, var(--cream-2));
}
.card__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  background: var(--green-50);
  color: var(--green-700);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card__id {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--muted);
}
.card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.card__progress { margin-bottom: 18px; }
.progress {
  height: 6px;
  background: var(--cream-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress span {
  display: block;
  height: 100%;
  width: var(--w, 60%);
  background: linear-gradient(90deg, var(--orange-500), var(--green-500));
  border-radius: 999px;
  animation: grow 1.6s cubic-bezier(.5,0,.2,1) forwards;
  transform-origin: left;
}
@keyframes grow { from { transform: scaleX(0); } }
.progress__legend {
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.card__steps {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.step {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--muted);
  font-weight: 600;
}
.step--done { background: var(--green-100); color: var(--green-700); }
.step--active {
  background: var(--ink);
  color: var(--orange-300);
  position: relative;
}
.step--active::after {
  content: '';
  position: absolute;
  right: -2px; top: -2px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.3);
}

.card--small { padding: 22px; }
.card--accent {
  background: linear-gradient(160deg, var(--orange-500), var(--orange-600));
  color: #fff;
  border: none;
}
.card--dark {
  background: var(--ink);
  color: var(--cream);
  border: none;
}
.card__kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: .7;
  margin-bottom: 14px;
}
.card__big {
  font-family: var(--ff-serif);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.card__big--time { color: var(--orange-300); }
.card__sub { font-size: 13px; opacity: .7; }
.card__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
}

.sticker {
  position: absolute;
  top: -34px; right: -34px;
  width: 110px; height: 110px;
  color: var(--ink);
  animation: spin 20s linear infinite;
  z-index: 3;
}
.sticker svg { width: 100%; height: 100%; }
.sticker__core {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-family: var(--ff-serif);
  font-size: 22px;
  color: var(--orange-600);
  animation: spin 20s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== MARQUEE ========== */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 22px 0;
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--ff-serif);
  font-size: 36px;
  letter-spacing: -0.01em;
}
.marquee__track span { padding: 0 6px; }
.marquee__track i {
  font-style: normal;
  color: var(--orange-500);
  font-size: 22px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ========== ANSWER (AEO) ========== */
.answer {
  padding: 120px 0;
  background: var(--cream);
  position: relative;
}
.answer__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green-700);
  margin-bottom: 24px;
}
.kicker__num {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green-500);
  color: #fff;
  font-family: var(--ff-serif);
  font-size: 14px;
  letter-spacing: 0;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.section-title em {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--orange-600);
}
.section-lead {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.6;
}

.answer__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.answer__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 16px;
  transition: all .3s;
}
.answer__item:hover {
  transform: translateY(-4px);
  border-color: var(--orange-300);
  box-shadow: var(--shadow);
}
.answer__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--orange-50);
  color: var(--orange-600);
}
.answer__icon svg { width: 22px; height: 22px; }
.answer__item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.answer__item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ========== SERVICES MATRIX ========== */
.services {
  padding: 60px 0 120px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.services__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}
.services__lead {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
  padding-bottom: 8px;
}

.bento {
  display: grid;
  gap: 16px;
}
.bento--main {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 16px;
}
.bento--sec {
  grid-template-columns: repeat(4, 1fr);
}

/* MAIN TILES */
.tile {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s;
}
.tile:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.tile__num {
  font-family: var(--ff-serif);
  font-size: 14px;
  opacity: .55;
  margin-bottom: auto;
}
.tile__icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
  margin-bottom: 22px;
  transition: transform .4s;
}
.tile:hover .tile__icon { transform: rotate(-8deg) scale(1.05); }
.tile__icon svg { width: 30px; height: 30px; }
.tile__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.tile__desc {
  font-size: 14px;
  line-height: 1.55;
  opacity: .82;
  margin-bottom: 24px;
}
.tile__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.tile__link {
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.tile__cta {
  font-size: 12px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(20, 32, 26, 0.9);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all .25s;
}
.tile__cta:hover { background: var(--ink); transform: translateY(-2px); }

.tile--orange {
  background: linear-gradient(165deg, var(--orange-500) 0%, var(--orange-600) 100%);
  color: #fff;
}
.tile--orange .tile__icon { background: rgba(255,255,255,.18); color: #fff; }

.tile--green {
  background: linear-gradient(165deg, var(--green-500) 0%, var(--green-700) 100%);
  color: #fff;
}
.tile--green .tile__icon { background: rgba(255,255,255,.18); color: #fff; }

.tile--cream {
  background: linear-gradient(165deg, #FFF 0%, var(--cream-2) 100%);
  color: var(--ink);
  border: 1px solid var(--line);
}
.tile--cream .tile__icon { background: var(--orange-50); color: var(--orange-600); }

.tile--dark {
  background: var(--ink);
  color: var(--cream);
}
.tile--dark .tile__icon { background: rgba(255,255,255,.08); color: var(--orange-300); }
.tile--dark .tile__cta { background: var(--orange-500); color: #fff; }

/* SECONDARY MINI */
.mini {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  transition: all .3s;
  overflow: hidden;
}
.mini:hover {
  transform: translateY(-4px);
  border-color: var(--orange-300);
  box-shadow: var(--shadow);
}
.mini h4 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  max-width: 80%;
}
.mini p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: auto;
}
.mini__arrow {
  position: absolute;
  right: 22px; bottom: 22px;
  font-size: 20px;
  color: var(--ink);
  transition: transform .3s;
}
.mini:hover .mini__arrow { transform: translate(4px, -4px); color: var(--orange-600); }
.mini__badge {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mini__badge--new {
  background: var(--orange-500);
  color: #fff;
}
.mini--hot {
  background: linear-gradient(160deg, #fff, var(--orange-50));
  border-color: var(--orange-100);
}
.mini--accent {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.mini--accent p { color: rgba(255,247,236,.65); }
.mini--accent .mini__arrow { color: var(--orange-300); }

/* ========== CTA STRIP ========== */
.cta-strip {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0;
  text-align: center;
}
.cta-strip__inner h2 {
  font-family: var(--ff-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.cta-strip__inner h2 + p { margin-bottom: 28px; opacity: .7; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; gap: 50px; }
  .answer__inner { grid-template-columns: 1fr; gap: 50px; }
  .services__head { grid-template-columns: 1fr; gap: 24px; }
  .bento--main { grid-template-columns: repeat(2, 1fr); }
  .bento--sec { grid-template-columns: repeat(2, 1fr); }
  .answer__list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .header__cta .btn { display: none; }
  .hero { padding-top: 30px; }
  .hero__inner { padding-bottom: 50px; }
  .hero__title { font-size: 42px; }
  .meta-sep { display: none; }
  .meta-item strong { font-size: 28px; }
  .bento--main { grid-template-columns: 1fr; }
  .bento--sec { grid-template-columns: 1fr; }
  .tile { min-height: 280px; padding: 26px; }
  .answer, .services { padding: 70px 0; }
  .marquee__track { font-size: 26px; }
  .sticker { width: 80px; height: 80px; top: -20px; right: -10px; }
}
