/* Ruditool promo — modern dark UI (2026) */
:root {
  color-scheme: dark;
  --bg-0: #030306;
  --bg-1: #0a0a12;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-card: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f8f8fc;
  --muted: #9b9bb0;
  --muted2: #6e6e84;
  --violet: #a78bfa;
  --violet-dim: #7c3aed;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --lime: #bef264;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1180px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: "ss01" on, "cv11" on;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* —— Background layers —— */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 20% -20%, rgba(124, 58, 237, 0.35), transparent 50%),
    radial-gradient(ellipse 90% 70% at 85% 10%, rgba(34, 211, 238, 0.18), transparent 45%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(244, 114, 182, 0.12), transparent 55%),
    var(--bg-0);
  animation: mesh-shift 18s var(--ease-out) infinite alternate;
}

@keyframes mesh-shift {
  0% {
    filter: hue-rotate(0deg) saturate(1);
    transform: scale(1);
  }
  100% {
    filter: hue-rotate(12deg) saturate(1.08);
    transform: scale(1.02);
  }
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, black 25%, transparent 72%);
}

/* —— Layout —— */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--violet-dim) 0%, #4c1d95 40%, #0891b2 100%);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: white;
  letter-spacing: -0.04em;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 4px 24px rgba(124, 58, 237, 0.35),
    0 16px 40px rgba(0, 0, 0, 0.35);
}

.lang-nav {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.lang-nav a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.lang-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.lang-nav a[aria-current="page"] {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.45), rgba(34, 211, 238, 0.2));
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* —— Hero —— */
.hero {
  padding: clamp(32px, 6vw, 56px) 0 clamp(56px, 10vw, 96px);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: clamp(22px, 4vw, 32px);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.08);
}

.hero-badge span {
  opacity: 0.95;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 clamp(18px, 3vw, 24px);
  background: linear-gradient(
    120deg,
    #fff 12%,
    #e9d5ff 35%,
    #a5f3fc 58%,
    #f9a8d4 85%,
    #fff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto clamp(28px, 5vw, 40px);
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 15px 26px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    border-color 0.2s;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-primary {
  background: linear-gradient(145deg, #7c3aed, #6d28d9 40%, #0e7490 120%);
  color: white;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 4px 20px rgba(124, 58, 237, 0.35),
    0 20px 50px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover:not(:disabled) {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 8px 32px rgba(124, 58, 237, 0.45),
    0 24px 56px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

a.btn-primary {
  text-decoration: none;
  color: white;
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.btn-secondary:hover:not(:disabled) {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.08);
  text-decoration: none;
}

a.btn-secondary {
  text-decoration: none;
  color: var(--text);
}

/* Phone mock */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 8vw, 64px);
}

@media (min-width: 900px) {
  .hero-visual {
    margin-top: 0;
  }
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(340px, 90vw);
  height: min(340px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, transparent 65%);
  filter: blur(4px);
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.phone-mock {
  position: relative;
  max-width: 268px;
  width: 100%;
  border-radius: 40px;
  padding: 3px;
  background: linear-gradient(
    145deg,
    rgba(167, 139, 250, 0.55),
    rgba(34, 211, 238, 0.35),
    rgba(244, 114, 182, 0.4)
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 48px 100px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(124, 58, 237, 0.15);
}

.phone-inner {
  border-radius: 37px;
  overflow: hidden;
  background: linear-gradient(180deg, #12121a 0%, #0a0a10 100%);
  aspect-ratio: 9 / 18;
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mock-row {
  display: flex;
  gap: 10px;
}

.mock-tile {
  flex: 1;
  min-height: 58px;
  border-radius: 16px;
  opacity: 0.95;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.mock-tile--1 {
  background: linear-gradient(145deg, #7c3aed, #a78bfa);
}
.mock-tile--2 {
  background: linear-gradient(145deg, #0d9488, #22d3ee);
}
.mock-tile--3 {
  background: linear-gradient(145deg, #2563eb, #38bdf8);
}
.mock-tile--4 {
  background: linear-gradient(145deg, #be185d, #f472b6);
}

/* —— Sections —— */
.section-block {
  padding: clamp(56px, 10vw, 100px) 0;
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto clamp(40px, 6vw, 56px);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted2);
  margin: 0 0 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--text);
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* Feature grid — default + bento desktop */
.features {
  display: grid;
  gap: 14px;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.35s,
    box-shadow 0.35s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 200px at var(--mx, 20%) var(--my, 0%), rgba(167, 139, 250, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.feature-card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-3px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(124, 58, 237, 0.08);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.icon-training {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.5), rgba(167, 139, 250, 0.25));
}
.icon-metro {
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.45), rgba(34, 211, 238, 0.25));
}
.icon-lessons {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.45), rgba(56, 189, 248, 0.25));
}
.icon-dsp {
  background: linear-gradient(145deg, rgba(234, 88, 12, 0.4), rgba(250, 204, 21, 0.2));
}
.icon-board {
  background: linear-gradient(145deg, rgba(190, 24, 93, 0.45), rgba(244, 114, 182, 0.25));
}
.icon-profile {
  background: linear-gradient(145deg, rgba(82, 82, 91, 0.55), rgba(161, 161, 170, 0.2));
}

@media (min-width: 900px) {
  .features--bento {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 16px;
  }

  .features--bento .feature-card:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    padding: 32px;
  }

  .features--bento .feature-card:nth-child(1) .feature-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .features--bento .feature-card:nth-child(1) h3 {
    font-size: 1.35rem;
  }

  .features--bento .feature-card:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1;
  }

  .features--bento .feature-card:nth-child(3) {
    grid-column: 4 / 5;
    grid-row: 1;
  }

  .features--bento .feature-card:nth-child(4) {
    grid-column: 3 / 4;
    grid-row: 2;
  }

  .features--bento .feature-card:nth-child(5) {
    grid-column: 4 / 5;
    grid-row: 2;
  }

  .features--bento .feature-card:nth-child(6) {
    grid-column: 1 / 5;
    grid-row: 3;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 6px 28px;
    align-items: center;
  }

  .features--bento .feature-card:nth-child(6) .feature-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    margin-bottom: 0;
    align-self: center;
  }

  .features--bento .feature-card:nth-child(6) h3 {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
    align-self: end;
  }

  .features--bento .feature-card:nth-child(6) p {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .features--bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Final CTA */
.final-cta {
  position: relative;
  text-align: center;
  padding: clamp(48px, 8vw, 72px) clamp(22px, 4vw, 40px);
  margin: clamp(32px, 6vw, 56px) 0 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(167, 139, 250, 0.28);
  background:
    radial-gradient(ellipse 80% 120% at 50% -40%, rgba(124, 58, 237, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 80% at 100% 80%, rgba(34, 211, 238, 0.12), transparent 50%),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 32px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.final-cta::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    125deg,
    transparent 30%,
    rgba(255, 255, 255, 0.04) 45%,
    transparent 60%
  );
  animation: cta-sheen 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cta-sheen {
  0%,
  100% {
    transform: translateX(-100%) rotate(8deg);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  60% {
    transform: translateX(100%) rotate(8deg);
    opacity: 0;
  }
}

.final-cta h2 {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3.5vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.final-cta p {
  position: relative;
  color: var(--muted);
  margin: 0 auto 26px;
  max-width: 32rem;
  line-height: 1.65;
}

.final-cta .cta-row {
  position: relative;
  justify-content: center;
}

/* Footer */
.site-footer {
  padding: 48px 0 56px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
  margin-top: clamp(40px, 8vw, 72px);
}

.site-footer strong {
  color: var(--text);
  font-weight: 700;
}

.footer-legal {
  margin: 18px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
}

.footer-legal a {
  color: var(--muted2);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--cyan);
}

/* Desktop hero split */
@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    text-align: left;
    padding-top: clamp(24px, 4vw, 40px);
  }

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero-lead {
    margin-left: 0;
    margin-right: 0;
    max-width: 36rem;
  }

  .cta-row {
    justify-content: flex-start;
  }

  .hero-visual {
    justify-content: flex-end;
  }

  .phone-mock {
    max-width: 280px;
  }
}
