/* =========================================================
   TEXTORA — FINAL CLEAN PREMIUM CSS (CONSOLIDATED)
   ========================================================= */

/* =========================
   ROOT
   ========================= */

:root {
  --textora-blue: #2563eb;
  --textora-indigo: #4f46e5;
  --textora-dark: #111827;
  --textora-muted: #64748b;
  --textora-bg: #f8faff;
  --textora-white: #ffffff;
  --textora-border: #dbe4f0;
}


/* =========================
   GLOBAL
   ========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--textora-dark);
  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(37, 99, 235, 0.08),
      transparent 32%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(79, 70, 229, 0.07),
      transparent 30%
    ),
    var(--textora-bg);

  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  height: 72px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 6%;

  position: sticky;
  top: 0;
  z-index: 100;

  background:
    linear-gradient(
      180deg,
      rgba(238, 244, 255, 0.96),
      rgba(248, 250, 255, 0.94)
    );

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-bottom: 1px solid #dbe7ff;

  box-shadow:
    0 4px 20px rgba(37, 99, 235, 0.06);
}

.brand {
  color: var(--textora-blue);

  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.35rem;
}

.nav a {
  color: #475569;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--textora-blue);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 12px;

  padding: 12px 20px;

  background:
    linear-gradient(
      135deg,
      var(--textora-blue),
      var(--textora-indigo)
    );

  color: #fff;

  font-weight: 750;

  cursor: pointer;

  box-shadow:
    0 10px 25px rgba(37, 99, 235, 0.18);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 14px 30px rgba(37, 99, 235, 0.25);
}

.btn-small {
  padding: 9px 14px;
  font-size: 0.88rem;
}

.btn-ghost {
  background: #ffffff;

  color: var(--textora-blue);

  border: 1px solid #dbe7ff;

  box-shadow:
    0 6px 18px rgba(15, 23, 42, 0.06);
}

.btn-ghost:hover {
  background: #f8faff;
  color: #1d4ed8;

  border-color: rgba(37, 99, 235, 0.3);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  max-width: 1200px;
  margin: auto;

  padding: 90px 6%;

  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 60px;

  align-items: center;

  overflow: hidden;
  isolation: isolate;
}


/* =========================================================
   HERO — LIGHT WATER WAVE ANIMATION
   ========================================================= */

.hero::before {
  content: "";

  position: absolute;

  left: -25%;
  top: 35%;

  width: 150%;
  height: 220px;

  pointer-events: none;

  z-index: -2;

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse at center,
      rgba(96, 165, 250, 0.20) 0%,
      rgba(37, 99, 235, 0.12) 28%,
      rgba(79, 70, 229, 0.06) 48%,
      transparent 72%
    );

  filter: blur(18px);

  animation:
    textora-water-wave-one
    8s
    ease-in-out
    infinite;
}

.hero::after {
  content: "";

  position: absolute;

  left: -20%;
  top: 48%;

  width: 145%;
  height: 180px;

  pointer-events: none;

  z-index: -2;

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse at center,
      rgba(147, 197, 253, 0.18) 0%,
      rgba(96, 165, 250, 0.10) 35%,
      rgba(79, 70, 229, 0.05) 55%,
      transparent 75%
    );

  filter: blur(15px);

  animation:
    textora-water-wave-two
    11s
    ease-in-out
    infinite;
}

@keyframes textora-water-wave-one {

  0% {
    transform:
      translateX(-8%)
      translateY(0)
      rotate(-4deg)
      scaleY(0.90);
  }

  25% {
    transform:
      translateX(0%)
      translateY(15px)
      rotate(-1deg)
      scaleY(1.05);
  }

  50% {
    transform:
      translateX(7%)
      translateY(-10px)
      rotate(3deg)
      scaleY(0.95);
  }

  75% {
    transform:
      translateX(1%)
      translateY(18px)
      rotate(-2deg)
      scaleY(1.08);
  }

  100% {
    transform:
      translateX(-8%)
      translateY(0)
      rotate(-4deg)
      scaleY(0.90);
  }
}

@keyframes textora-water-wave-two {

  0% {
    transform:
      translateX(8%)
      translateY(10px)
      rotate(3deg)
      scaleY(1);
  }

  25% {
    transform:
      translateX(-2%)
      translateY(-12px)
      rotate(-2deg)
      scaleY(1.08);
  }

  50% {
    transform:
      translateX(-9%)
      translateY(12px)
      rotate(2deg)
      scaleY(0.92);
  }

  75% {
    transform:
      translateX(3%)
      translateY(-8px)
      rotate(-3deg)
      scaleY(1.05);
  }

  100% {
    transform:
      translateX(8%)
      translateY(10px)
      rotate(3deg)
      scaleY(1);
  }
}

.hero-copy::after {
  content: "";

  position: absolute;

  width: 260px;
  height: 260px;

  left: -130px;
  top: 10px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(37, 99, 235, 0.13),
      transparent 70%
    );

  filter: blur(45px);

  pointer-events: none;

  z-index: -1;

  animation:
    textora-hero-glow
    7s
    ease-in-out
    infinite
    alternate;
}

@keyframes textora-hero-glow {

  from {
    transform: translate(0, 0);
    opacity: 0.45;
  }

  to {
    transform: translate(130px, 35px);
    opacity: 0.9;
  }
}

.hero-copy,
.product-preview {
  position: relative;
  z-index: 3;
}

.eyebrow {
  font-size: 0.78rem;

  font-weight: 850;

  letter-spacing: 0.16em;

  color: var(--textora-blue);
}

.hero h1,
.page h1,
.tool-page h1 {
  font-size: clamp(2.7rem, 6vw, 5.2rem);

  line-height: 1.03;

  letter-spacing: -0.055em;

  margin: 16px 0;
}

.hero p,
.lead {
  font-size: 1.12rem;

  color: #6b7280;

  max-width: 650px;
}

.hero-actions {
  display: flex;

  gap: 12px;

  margin: 28px 0;
}

.demo-note {
  font-size: 0.8rem !important;
}


/* =========================================================
   PRODUCT PREVIEW
   ========================================================= */

.product-preview {
  background: #111827;

  border-radius: 22px;

  padding: 10px;

  box-shadow:
    0 30px 80px rgba(17, 24, 39, 0.22);

  animation:
    textora-preview-float
    6s
    ease-in-out
    infinite;
}

@keyframes textora-preview-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.window-top {
  display: flex;

  align-items: center;

  gap: 6px;

  color: #fff;

  padding: 9px 10px;
}

.window-top span {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #6b7280;
}

.window-top b {
  margin-left: auto;
  margin-right: auto;

  font-size: 0.75rem;
}

.preview-grid {
  background: #f8fafc;

  border-radius: 14px;

  display: grid;

  grid-template-columns: 100px 1fr;

  min-height: 330px;
}

.preview-grid aside {
  padding: 18px 12px;

  border-right: 1px solid #e5e7eb;

  display: flex;

  flex-direction: column;

  gap: 12px;
}

.mini-logo {
  width: 38px;
  height: 38px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 11px;

  background:
    linear-gradient(
      135deg,
      #2563eb,
      #4f46e5
    );

  color: #ffffff;

  font-size: 20px;

  font-weight: 800;

  box-shadow:
    0 8px 18px rgba(37, 99, 235, 0.22);
}

.preview-grid small {
  color: #6b7280;
}

.preview-editor {
  padding: 30px;
}

.pill {
  display: inline-block;

  background: #ede9fe;

  color: #5b21b6;

  padding: 5px 9px;

  border-radius: 999px;

  font-size: 0.7rem;

  font-weight: 700;
}

.fake-editor {
  height: 100px;

  border: 1px solid #e5e7eb;

  border-radius: 12px;

  background: #fff;

  margin: 20px 0;
}

.preview-footer {
  display: flex;

  justify-content: space-between;

  align-items: center;

  color: #6b7280;

  font-size: 0.8rem;
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
  max-width: 1200px;

  margin: auto;

  padding: 90px 6%;
}

.section-heading {
  text-align: center;

  max-width: 720px;

  margin: 0 auto 40px;
}

.section h2,
.split h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);

  line-height: 1.1;

  letter-spacing: -0.04em;

  margin: 10px 0;
}

.section-heading p {
  color: #6b7280;
}


/* =========================================================
   TOOL GRID
   4 TOP + 3 CENTERED BOTTOM
   ========================================================= */

.tool-grid {
  display: grid;

  grid-template-columns: repeat(12, 1fr);

  gap: 16px;
}

.tool-card {
  grid-column: span 3;

  padding: 25px;

  border: 1px solid rgba(37, 99, 235, 0.08);

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.92);

  box-shadow:
    0 8px 30px rgba(15, 23, 42, 0.05);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.tool-card:nth-child(5) {
  grid-column: 3 / span 3;
}

.tool-card:nth-child(6) {
  grid-column: 6 / span 3;
}

.tool-card:nth-child(7) {
  grid-column: 9 / span 3;
}

.tool-card:hover {
  transform: translateY(-6px);

  border-color:
    rgba(37, 99, 235, 0.22);

  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.10);
}

.tool-card h3 {
  margin: 16px 0 8px;
}

.tool-card p {
  color: #6b7280;

  font-size: 0.92rem;

  min-height: 105px;
}

.tool-card > span:last-child {
  color: var(--textora-blue);

  font-weight: 750;
}

.tool-icon {
  display: grid;

  place-items: center;

  width: 44px;
  height: 44px;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.12),
      rgba(79, 70, 229, 0.12)
    );

  color: var(--textora-blue);

  font-size: 1.25rem;

  font-weight: 900;
}


/* =========================================================
   SPLIT SECTION
   ========================================================= */

.split {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 60px;

  background: #f8fafc;

  max-width: none;

  padding-left: 12%;
  padding-right: 12%;
}

.text-link {
  color: var(--textora-blue);

  font-weight: 800;
}


/* =========================================================
   HOW IT WORKS
   ========================================================= */

.how-it-works {
  position: relative;

  overflow: hidden;
}

.how-it-works::before {
  content: "";

  position: absolute;

  width: 300px;
  height: 300px;

  background:
    rgba(37, 99, 235, 0.07);

  border-radius: 50%;

  filter: blur(70px);

  top: 20px;
  left: -130px;

  pointer-events: none;
}

.steps-grid {
  position: relative;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 24px;

  margin-top: 42px;

  max-width: 1050px;

  margin-left: auto;
  margin-right: auto;
}

.step-card {
  position: relative;

  padding: 32px 28px;

  border: 1px solid rgba(37, 99, 235, 0.12);

  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f8fbff
    );

  box-shadow:
    0 12px 35px rgba(15, 23, 42, 0.07);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;

  overflow: hidden;
}

.step-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 3px;

  background:
    linear-gradient(
      90deg,
      #2563eb,
      #60a5fa
    );

  opacity: 0;

  transition: opacity 0.3s ease;
}

.step-card::after {
  content: "";

  position: absolute;

  width: 120px;
  height: 120px;

  background:
    rgba(79, 70, 229, 0.06);

  border-radius: 50%;

  right: -55px;
  bottom: -55px;

  transition:
    transform 0.4s ease;
}

.step-card:hover {
  transform: translateY(-8px);

  box-shadow:
    0 20px 45px rgba(37, 99, 235, 0.14);

  border-color:
    rgba(37, 99, 235, 0.25);
}

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

.step-card:hover::after {
  transform: scale(1.5);
}

.step-number {
  font-size: 13px;

  font-weight: 800;

  letter-spacing: 0.12em;

  color: var(--textora-blue);

  margin-bottom: 18px;
}

.step-icon {
  width: 52px;
  height: 52px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 15px;

  background: #eff6ff;

  color: var(--textora-blue);

  font-size: 24px;

  margin-bottom: 20px;

  transition:
    transform 0.3s ease;
}

.step-card:hover .step-icon {
  transform:
    rotate(-4deg)
    scale(1.08);
}

.step-card h3 {
  margin: 0 0 10px;

  font-size: 20px;

  color: #111827;
}

.step-card p {
  margin: 0;

  color: #64748b;

  line-height: 1.7;

  font-size: 15px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: #0f172a;

  color: #cbd5e1;

  padding: 55px 6%;

  display: grid;

  grid-template-columns:
    2fr repeat(3, 1fr);

  gap: 30px;

  position: relative;
}

.footer strong {
  color: #fff;

  font-size: 1.2rem;
}

.footer h4 {
  color: #fff;

  margin-top: 0;
}

.footer a {
  display: block;

  margin: 8px 0;

  color: #94a3b8;

  transition: color 0.2s ease;
}

.footer a:hover {
  color: #fff;
}

.copyright {
  grid-column: 1 / -1;

  border-top: 1px solid #374151;

  padding-top: 22px;

  font-size: 0.85rem;

  color: #94a3b8;

  text-align: center;
}


/* =========================================================
   PAGES
   ========================================================= */

.page,
.tool-page {
  max-width: 1200px;

  margin: auto;

  padding: 80px 6%;

  min-height: 70vh;
}

.page.narrow {
  max-width: 850px;
}

.page h1,
.tool-page h1 {
  font-size:
    clamp(
      2.5rem,
      5vw,
      4.3rem
    );
}

.info-card,
.notice {
  background: #f8fafc;

  border: 1px solid #e5e7eb;

  border-radius: 18px;

  padding: 24px;

  margin-top: 30px;
}


/* =========================================================
   PRICING
   ========================================================= */

.pricing-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 20px;

  margin-top: 50px;

  align-items: stretch;
}

.price-card {
  position: relative;
  height: 100%;

  border: 1px solid #e5e7eb;

  border-radius: 20px;

  padding: 30px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.price-card:hover {
  transform: translateY(-10px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 25px 55px rgba(37, 99, 235, 0.15);
}

.price-card.featured {
  border-color: #818cf8;

  box-shadow:
    0 20px 50px rgba(79, 70, 229, 0.12);
}

.price-card.featured:hover {
  transform: translateY(-10px);
  border-color: #6366f1;
  box-shadow: 0 28px 60px rgba(79, 70, 229, 0.20);
}

.price-card h2 {
  font-size: 2.6rem;

  margin: 10px 0 0;
}

.price-card ul {
  padding-left: 20px;

  min-height: 150px;
}


/* =========================================================
   CONTACT FORM
   ========================================================= */

.contact-form {
  display: grid;

  gap: 18px;

  margin-top: 35px;
}

.contact-form label {
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.tool-shell input,
.tool-shell select,
.tool-shell textarea {
  width: 100%;

  margin-top: 7px;

  padding: 13px 14px;

  border: 1px solid #d1d5db;

  border-radius: 12px;

  font: inherit;

  background: #fff;
}


/* =========================================================
   TOOL PAGE
   ========================================================= */

.tool-page {
  position: relative;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(37, 99, 235, 0.10),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(79, 70, 229, 0.08),
      transparent 32%
    );
}

.tool-page::before {
  content: "";

  position: absolute;

  width: 420px;
  height: 420px;

  border-radius: 50%;

  background:
    rgba(37, 99, 235, 0.06);

  filter: blur(90px);

  top: 120px;
  right: -220px;

  pointer-events: none;
}

.tool-page::after {
  content: "";

  position: absolute;

  width: 300px;
  height: 300px;

  border-radius: 50%;

  background:
    rgba(79, 70, 229, 0.05);

  filter: blur(80px);

  bottom: 80px;
  left: -180px;

  pointer-events: none;
}

.tool-page > * {
  position: relative;

  z-index: 1;
}

.tool-page h1 {
  color: #111827;

  margin-bottom: 12px;
}

.tool-page > p {
  font-size: 1.05rem;

  color: #64748b;
}


/* =========================================================
   TOOL WORKSPACE
   ========================================================= */

.tool-shell {
  position: relative;

  background:
    rgba(255, 255, 255, 0.88);

  border: 1px solid
    rgba(37, 99, 235, 0.12);

  border-radius: 24px;

  padding: 28px;

  box-shadow:
    0 25px 70px
      rgba(15, 23, 42, 0.08),
    0 4px 15px
      rgba(37, 99, 235, 0.04);

  backdrop-filter: blur(18px);

  -webkit-backdrop-filter: blur(18px);

  animation:
    textora-workspace-in
    0.55s
    ease
    both;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 22px;
}

.tool-shell.single {
  display: block;
}

@keyframes textora-workspace-in {

  from {
    opacity: 0;

    transform:
      translateY(12px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }
}

.tool-shell label {
  display: block;

  color: #1e293b;

  font-weight: 800;

  margin-bottom: 8px;
}

.tool-shell textarea,
.tool-shell input,
.tool-shell select {
  border: 1px solid #dbe4f0;

  background: #fbfdff;

  border-radius: 16px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.tool-shell textarea:focus,
.tool-shell input:focus,
.tool-shell select:focus {
  outline: none;

  border-color:
    var(--textora-blue);

  background: #ffffff;

  box-shadow:
    0 0 0 4px
      rgba(37, 99, 235, 0.10),
    0 8px 25px
      rgba(37, 99, 235, 0.06);
}

.tool-shell textarea {
  min-height: 300px;

  line-height: 1.7;
}

.tool-shell textarea::placeholder,
.tool-shell input::placeholder {
  color: #94a3b8;
}


/* =========================================================
   TOOL SHELL BUTTON
   ========================================================= */

.tool-shell > .btn,
.tool-shell button#run {
  margin-top: 4px;

  min-height: 48px;

  border-radius: 14px;

  padding: 12px 24px;

  font-size: 0.95rem;

  font-weight: 800;
}

.tool-shell button#run:disabled {
  opacity: 0.75;

  cursor: wait;

  transform: none;

  box-shadow:
    0 8px 25px
      rgba(37, 99, 235, 0.12);
}


/* =========================================================
   TOOL GRID / FORM
   ========================================================= */

.form-row {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 12px;

  margin: 12px 0;
}

.counter {
  display: flex;

  justify-content: space-between;

  align-items: center;

  color: #6b7280;

  font-size: 0.85rem;

  margin: 8px 0 15px;

  padding: 2px 4px;
}


/* =========================================================
   RESULT
   ========================================================= */

.result {
  position: relative;

  min-height: 300px;

  margin-top: 22px;

  padding: 24px;

  border-radius: 18px;

  border: 1px solid #dbe4f0;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f8fbff
    );

  color: #334155;

  line-height: 1.75;

  box-shadow:
    inset 0 1px 0
      rgba(255, 255, 255, 0.8),
    0 8px 25px
      rgba(15, 23, 42, 0.04);

  white-space: pre-wrap;
}


/* =========================================================
   LOADING
   ========================================================= */

.result.loading {
  border-color:
    rgba(37, 99, 235, 0.20);

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f4f8ff
    );

  animation:
    textora-pulse
    2s
    ease-in-out
    infinite;
}

.result.loading::after {
  content: "";

  display: inline-block;

  width: 20px;
  height: 20px;

  margin-left: 12px;

  vertical-align: middle;

  border:
    2px solid #dbeafe;

  border-top-color:
    var(--textora-blue);

  border-radius: 50%;

  box-shadow:
    0 0 12px
      rgba(37, 99, 235, 0.18);

  animation:
    textora-spin
    0.8s
    linear
    infinite;
}

@keyframes textora-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes textora-pulse {

  0%,
  100% {
    box-shadow:
      0 8px 25px
        rgba(15, 23, 42, 0.04);
  }

  50% {
    box-shadow:
      0 12px 35px
        rgba(37, 99, 235, 0.10);
  }
}


/* =========================================================
   RESULT ACTIONS
   ========================================================= */

.result-actions {
  display: flex;

  gap: 12px;

  margin-top: 14px;

  padding-top: 4px;

  align-items: center;

  flex-wrap: wrap;
}

.result-actions button,
#copy,
#download {
  display: inline-flex !important;

  visibility: visible !important;

  opacity: 1 !important;

  cursor: pointer;

  min-height: 42px;

  padding: 10px 18px;

  justify-content: center;

  border-radius: 12px;

  border: 1px solid #dbe4f0;

  background: #ffffff;

  color: #334155;

  font-weight: 750;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.result-actions button:hover,
#copy:hover,
#download:hover {
  transform: translateY(-2px);

  border-color: #93c5fd;

  color: var(--textora-blue);

  box-shadow:
    0 8px 20px
      rgba(37, 99, 235, 0.10);
}


/* =========================================================
   NOTICE
   ========================================================= */

.notice {
  position: relative;

  border-radius: 16px;

  background:
    rgba(239, 246, 255, 0.75);

  border:
    1px solid
      rgba(37, 99, 235, 0.10);

  color: #475569;

  font-size: 0.9rem;
}

.narrow p {
  color: #4b5563;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    scroll-behavior: auto !important;

    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 60px;
  }

  .tool-card,
  .tool-card:nth-child(5),
  .tool-card:nth-child(6),
  .tool-card:nth-child(7) {
    grid-column: span 1;
  }

  .tool-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

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

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

  .tool-shell {
    grid-template-columns: 1fr;

    padding: 22px;

    border-radius: 20px;
  }

  .result {
    min-height: 250px;
  }

  .steps-grid {
    grid-template-columns: 1fr;

    max-width: 600px;
  }

  .tool-page {
    padding-top: 60px;
  }
}


/* =========================================================
   MOBILE (non-nav rules)
   ========================================================= */

@media (max-width: 650px) {

  .site-header {
    padding: 0 5%;
  }

  .hero {
    padding:
      55px 5%
      65px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

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

  .preview-grid aside {
    display: none;
  }

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

  .tool-card,
  .tool-card:nth-child(5),
  .tool-card:nth-child(6),
  .tool-card:nth-child(7) {
    grid-column: span 1;
  }

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

  .page,
  .tool-page,
  .section {
    padding:
      55px 5%;
  }

  .tool-shell {
    grid-template-columns: 1fr;

    padding: 18px;

    border-radius: 18px;
  }

  .tool-shell textarea {
    min-height: 240px;
  }

  .result {
    min-height: 220px;

    padding: 18px;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions button,
  #copy,
  #download {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .step-card {
    padding: 26px 22px;
  }

  .steps-grid {
    gap: 18px;

    margin-top: 30px;
  }

  .product-preview {
    animation: none;
  }

  /* Pricing cards on mobile */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card,
  .price-card.featured,
  .price-card:hover,
  .price-card.featured:hover {
    transform: none;
  }

  .price-card:hover {
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.10);
  }

  /* Tap feedback for touch devices (no hover state exists on mobile) */
  .price-card:active {
    transform: scale(0.97) !important;
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
  }

  .price-card.featured:active {
    border-color: #6366f1;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.18);
  }
}


/* ==========================================
   TEXTORA — BLUE BUTTON FIX (single copy)
   ========================================== */

.btn,
.site-header .btn,
.hero-actions .btn {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.22) !important;
  transition: all 0.25s ease !important;
}

.btn:hover,
.site-header .btn:hover,
.hero-actions .btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.30) !important;
}

.hero-actions .btn.btn-ghost {
  background: #ffffff !important;
  color: #2563eb !important;
  border: 1px solid #bfdbfe !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08) !important;
}

.hero-actions .btn.btn-ghost:hover {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #93c5fd !important;
}

.tool-shell .btn,
.tool-shell button#run {
  background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
  color: #ffffff !important;
  border: none !important;
}

.text-link,
.eyebrow {
  color: #2563eb !important;
}

.tool-icon,
.step-icon {
  color: #2563eb !important;
}


/* =========================================================
   TEXTORA — NAVIGATION (SINGLE SOURCE OF TRUTH)
   Desktop base + mobile override, all .site-header-scoped
   ========================================================= */

.site-header .nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header .nav a {
  display: inline-flex;
  align-items: center;
}

.site-header .menu-toggle {
  display: none;
}

@media (max-width: 650px) {

  .site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
  }

  .site-header .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #111827;
    font-size: 25px;
    cursor: pointer;
  }

  .site-header .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 9998;

    flex-direction: column;
    align-items: stretch;
    gap: 4px;

    padding: 16px 5% 20px;

    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #dbe4f0;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.10);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .site-header .nav.open {
    display: flex;
  }

  .site-header .nav a {
    width: 100%;
    padding: 12px 10px;
    border-radius: 10px;
  }

  .site-header .nav a:hover {
    background: #eff6ff;
  }

  .site-header .nav .btn {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
  }
}

/* =========================================================
   TEXTORA — MOBILE PRICING ANIMATION
   ========================================================= */

@media (max-width: 650px) {

  .price-card {
    animation: textora-price-mobile 0.65s ease both;
  }

  .price-card:nth-child(1) {
    animation-delay: 0.05s;
  }

  .price-card:nth-child(2) {
    animation-delay: 0.15s;
  }

  .price-card:nth-child(3) {
    animation-delay: 0.25s;
  }

  @keyframes textora-price-mobile {
    from {
      opacity: 0;
      transform: translateY(25px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

}