:root {
  --bg: #f2f6ff;
  --surface: rgba(255, 255, 255, 0.66);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #0b1433;
  --muted: #5f6a89;
  --primary: #2141ff;
  --primary-soft: #5d78ff;
  --ring: rgba(34, 68, 255, 0.2);
  --shadow-lg: 0 24px 70px rgba(23, 45, 120, 0.14);
  --radius: 24px;
  --container: min(1120px, calc(100vw - 40px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(90, 110, 255, 0.22), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(37, 83, 255, 0.18), transparent 35%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, #eef4ff 100%);
  min-height: 100vh;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 12%, rgba(46, 88, 255, 0.28), transparent 30%),
    radial-gradient(circle at 90% 78%, rgba(68, 123, 255, 0.22), transparent 36%);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(248, 251, 255, 0.72);
  border-bottom: 1px solid rgba(70, 91, 160, 0.12);
  z-index: 30;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(27, 50, 120, 0.25);
}

.section {
  padding: 72px 0;
}

.hero {
  padding-top: 86px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #2f4fff;
}

h1,
h2 {
  font-family: "Sora", "Avenir Next", sans-serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 4.8vw, 4.5rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.subcopy {
  margin: 20px 0 0;
  color: var(--muted);
  max-width: 56ch;
  font-size: clamp(1.01rem, 1.55vw, 1.2rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.cta,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.cta {
  background: linear-gradient(135deg, var(--primary), #3e5dff 62%, #7991ff);
  color: #fff;
  box-shadow: 0 20px 40px rgba(31, 60, 190, 0.28);
  padding: 14px 24px;
  min-height: 50px;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 25px 48px rgba(31, 60, 190, 0.34);
}

.cta-small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.92rem;
}

.ghost {
  border: 1px solid rgba(84, 110, 190, 0.24);
  color: #1f2f63;
  background: var(--surface);
  padding: 13px 21px;
  min-height: 50px;
}

.ghost:hover {
  transform: translateY(-1px);
  background: var(--surface-strong);
}

.hero-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-points li {
  color: #2f3a59;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-points li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2d4eff, #7d94ff);
  box-shadow: 0 0 0 6px var(--ring);
}

.hero-visual {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.phone-card {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-lg);
  transform-origin: center;
  width: min(100%, 340px);
}

.phone-card img {
  width: 100%;
  aspect-ratio: 6/13;
  object-fit: cover;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid rgba(90, 110, 181, 0.16);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px rgba(60, 88, 170, 0.08);
}

.feature-card h2 {
  font-size: clamp(1.16rem, 2vw, 1.55rem);
  margin-bottom: 8px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin-top: 8px;
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.shot {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  box-shadow: 0 22px 40px rgba(48, 72, 153, 0.16);
  background: #fff;
}

.shot img {
  width: 100%;
  aspect-ratio: 6 / 13;
  object-fit: cover;
}

.faq-grid {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: 20px;
  border: 1px solid rgba(90, 110, 181, 0.18);
  background: var(--surface);
  box-shadow: 0 10px 22px rgba(54, 78, 150, 0.08);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: #1b2b63;
  position: relative;
  padding-right: 52px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 14px;
  font-size: 1.5rem;
  line-height: 1;
  color: #3756ff;
  transition: transform 220ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--muted);
}

.final-cta {
  border-radius: 32px;
  padding: clamp(28px, 5vw, 52px);
  background:
    linear-gradient(140deg, rgba(28, 58, 255, 0.95), rgba(35, 73, 255, 0.88) 58%, rgba(72, 110, 255, 0.84)),
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.3), transparent 42%);
  color: #fff;
  box-shadow: 0 32px 70px rgba(25, 47, 156, 0.32);
  display: grid;
  gap: 18px;
  justify-items: start;
}

.final-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.final-cta .cta {
  background: #fff;
  color: #1831c7;
  box-shadow: none;
}

.site-footer {
  border-top: 1px solid rgba(80, 104, 171, 0.14);
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  font-weight: 700;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-visual {
    min-height: auto;
    padding: 0;
  }

  .phone-card {
    width: min(68vw, 320px);
  }

  .screenshot-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    gap: 10px;
  }

  .brand {
    flex: 1 1 auto;
    gap: 10px;
  }

  .brand span {
    font-size: 1.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-header .cta-small {
    width: auto;
    min-height: 40px;
    padding: 9px 14px;
    font-size: 0.88rem;
    flex: 0 0 auto;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(31, 60, 190, 0.24);
  }

  .section {
    padding: 54px 0;
  }

  .hero {
    padding-top: 56px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    padding: 0;
  }

  .phone-card {
    width: min(76vw, 300px);
    border-radius: 26px;
  }

  .screenshot-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
  }

  .shot {
    flex: 0 0 min(66vw, 248px);
    scroll-snap-align: start;
    border-radius: 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .cta,
  .hero-actions .ghost {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}

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

/* Tools hub and tool pages */
.tools-hero {
  padding-top: 64px;
}

.tools-layout {
  display: grid;
  gap: 28px;
}

.tools-intro {
  max-width: 74ch;
  color: var(--muted);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid rgba(90, 110, 181, 0.16);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(60, 88, 170, 0.08);
  display: grid;
  gap: 10px;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(56, 84, 165, 0.16);
}

.tool-card h3 {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 1.1rem;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
}

.category-block {
  display: grid;
  gap: 14px;
}

.tool-page .hero-copy h1 {
  max-width: 16ch;
}

.tool-panel {
  background: var(--surface);
  border: 1px solid rgba(90, 110, 181, 0.16);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 28px);
  box-shadow: 0 14px 30px rgba(60, 88, 170, 0.08);
  display: grid;
  gap: 14px;
}

.tool-form {
  display: grid;
  gap: 10px;
}

.tool-form label {
  font-weight: 700;
  color: #1b2b63;
}

.tool-form input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(92, 112, 182, 0.3);
  background: #fff;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  color: var(--text);
}

.tool-form input:focus {
  outline: 2px solid var(--ring);
  border-color: rgba(42, 75, 255, 0.36);
}

.tool-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.tool-result {
  display: grid;
  gap: 12px;
}

.tool-status {
  margin: 0;
  color: var(--muted);
}

.tool-status-success {
  color: #0f663a;
  font-weight: 700;
}

.tool-status-error {
  color: #b00020;
  font-weight: 700;
}

.tool-code {
  border-radius: 12px;
  padding: 11px 13px;
  background: rgba(17, 30, 74, 0.92);
  color: #ebf0ff;
  overflow-x: auto;
  font-size: 0.9rem;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-btn {
  min-height: 42px;
  padding: 10px 15px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.thumb-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(80, 100, 164, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

.thumb-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #dce5ff;
}

.thumb-bar {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.thumb-bar p {
  margin: 0;
  font-weight: 700;
  color: #1b2b63;
}

.thumb-links {
  display: flex;
  gap: 8px;
}

.thumb-links a {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.thumb-links .ghost {
  background: rgba(230, 236, 255, 0.92);
  border: 1px solid rgba(82, 108, 181, 0.24);
}

.thumb-links .cta {
  box-shadow: none;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
}

.steps-card,
.info-card,
.promo-banner {
  border-radius: 20px;
  border: 1px solid rgba(90, 110, 181, 0.18);
  background: var(--surface);
  box-shadow: 0 10px 22px rgba(54, 78, 150, 0.08);
  padding: 18px;
}

.steps-card h2,
.info-card h2,
.promo-banner h2 {
  font-size: clamp(1.16rem, 2vw, 1.42rem);
  margin-bottom: 10px;
}

.steps-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #20305f;
}

.info-card p,
.promo-banner p {
  margin: 0;
  color: var(--muted);
}

.card-stack {
  display: grid;
  gap: 14px;
}

.stream-wrap {
  display: grid;
  gap: 12px;
}

.stream-block {
  border: 1px solid rgba(90, 110, 181, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.stream-title {
  margin: 0;
  font-weight: 800;
  color: #1b2b63;
}

.stream-list {
  display: grid;
  gap: 8px;
}

.stream-item {
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(85, 106, 176, 0.2);
  background: rgba(246, 249, 255, 0.9);
  display: grid;
  gap: 8px;
}

.stream-item p {
  margin: 0;
  color: #1d2e61;
  font-weight: 600;
}

.promo-banner {
  background: linear-gradient(140deg, rgba(24, 46, 160, 0.98), rgba(30, 60, 190, 0.88));
  color: #fff;
}

.promo-banner p {
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 14px;
}

.promo-banner .cta {
  background: #fff;
  color: #1831c7;
  box-shadow: none;
}

.page-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tools-home-actions {
  margin-top: 22px;
}

@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .thumb-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-actions {
    width: 100%;
  }

  .tool-actions .cta,
  .tool-actions .ghost {
    width: 100%;
  }

  .page-links a {
    width: 100%;
  }
}
