:root {
  --blue: #1a73e8;
  --red: #d93025;
  --yellow: #fbbc04;
  --green: #188038;
  --ink: #17212f;
  --muted: #64748b;
  --line: #dbe5f0;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --blue-soft: rgba(26, 115, 232, 0.14);
  --red-soft: rgba(217, 48, 37, 0.1);
  --yellow-soft: rgba(251, 188, 4, 0.16);
  --green-soft: rgba(24, 128, 56, 0.12);
  --shadow: 0 18px 48px rgba(23, 33, 47, 0.1);
  --shadow-hover: 0 24px 60px rgba(23, 33, 47, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(26, 115, 232, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 115, 232, 0.045) 1px, transparent 1px),
    linear-gradient(118deg, rgba(26, 115, 232, 0.11) 0%, transparent 24%),
    linear-gradient(245deg, rgba(24, 128, 56, 0.1) 0%, transparent 25%),
    linear-gradient(18deg, transparent 56%, rgba(251, 188, 4, 0.09) 76%, rgba(217, 48, 37, 0.055) 100%),
    linear-gradient(135deg, #f8fbff 0%, #f2f7fd 42%, #fffaf0 100%);
  background-position: 0 0, 0 0, 0 0, 100% 0, 0 100%, 0 0;
  background-size: 44px 44px, 44px 44px, 130% 130%, 130% 130%, 140% 140%, 100% 100%;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  animation: pageGradientShift 24s ease-in-out infinite alternate;
}

body::before {
  position: fixed;
  inset: -20% -10% auto;
  height: 520px;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 12%, rgba(26, 115, 232, 0.14), transparent 38%),
    linear-gradient(250deg, transparent 20%, rgba(217, 48, 37, 0.08), transparent 48%),
    linear-gradient(170deg, transparent 24%, rgba(24, 128, 56, 0.1), transparent 54%);
  filter: blur(18px);
  opacity: 0.8;
  transform: translate3d(0, 0, 0);
  animation: backgroundDrift 18s ease-in-out infinite alternate;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-header {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.76) 100%),
    linear-gradient(120deg, rgba(26, 115, 232, 0.13), rgba(24, 128, 56, 0.08), rgba(251, 188, 4, 0.1));
  border-bottom: 1px solid rgba(180, 196, 216, 0.7);
}

.app-header::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(23, 33, 47, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 47, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}

.hero-ambient {
  position: absolute;
  pointer-events: none;
  filter: blur(24px);
  opacity: 0.52;
  animation: ambientFloat 14s ease-in-out infinite alternate;
}

.hero-ambient-one {
  width: 760px;
  height: 210px;
  top: -76px;
  right: 8%;
  background: linear-gradient(100deg, rgba(26, 115, 232, 0), rgba(26, 115, 232, 0.26), rgba(24, 128, 56, 0.18), rgba(26, 115, 232, 0));
  transform: rotate(-8deg);
}

.hero-ambient-two {
  width: 680px;
  height: 170px;
  right: -180px;
  bottom: -70px;
  background: linear-gradient(100deg, rgba(251, 188, 4, 0), rgba(251, 188, 4, 0.2), rgba(217, 48, 37, 0.13), rgba(251, 188, 4, 0));
  transform: rotate(8deg);
  animation-delay: -5s;
}

.header-content,
.dashboard,
.app-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  padding: 48px 0 36px;
  align-items: center;
}

.hero-copy,
.hero-visual,
.planner-panel,
.insight-strip article,
.output-panel {
  animation: sectionReveal 620ms ease both;
}

.hero-visual {
  animation-delay: 100ms;
}

.planner-panel {
  animation-delay: 160ms;
}

.insight-strip article:nth-child(1) {
  animation-delay: 220ms;
}

.insight-strip article:nth-child(2) {
  animation-delay: 270ms;
}

.insight-strip article:nth-child(3) {
  animation-delay: 320ms;
}

.insight-strip article:nth-child(4) {
  animation-delay: 370ms;
}

.output-panel:nth-child(1) {
  animation-delay: 420ms;
}

.output-panel:nth-child(2) {
  animation-delay: 460ms;
}

.output-panel:nth-child(3) {
  animation-delay: 500ms;
}

.output-panel:nth-child(4) {
  animation-delay: 540ms;
}

.output-panel:nth-child(5) {
  animation-delay: 580ms;
}

.output-panel:nth-child(6) {
  animation-delay: 620ms;
}

.output-panel:nth-child(7) {
  animation-delay: 660ms;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 18px;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow), var(--red));
  border-radius: 999px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: 3.55rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.intro {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.proof-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  color: #2d3a4d;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(192, 206, 224, 0.85);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(23, 33, 47, 0.06);
  font-size: 0.82rem;
  font-weight: 700;
}

.proof-strip span:nth-child(1) {
  border-color: rgba(26, 115, 232, 0.28);
  background: rgba(237, 244, 255, 0.9);
}

.proof-strip span:nth-child(2) {
  border-color: rgba(24, 128, 56, 0.26);
  background: rgba(237, 249, 241, 0.92);
}

.proof-strip span:nth-child(3) {
  border-color: rgba(251, 188, 4, 0.34);
  background: rgba(255, 249, 222, 0.92);
}

.proof-strip span:nth-child(4) {
  border-color: rgba(217, 48, 37, 0.24);
  background: rgba(255, 241, 240, 0.92);
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(26, 115, 232, 0.45), rgba(24, 128, 56, 0.24), rgba(251, 188, 4, 0.28), rgba(217, 48, 37, 0.26)) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 33, 47, 0.15);
}

.hero-visual::before {
  position: absolute;
  inset: 12px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(223, 230, 239, 0.65);
  border-radius: 8px;
}

.visual-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  color: #415066;
  background: #f7faff;
  border: 1px solid #dfe8f5;
  border-radius: 8px;
  font-size: 0.9rem;
}

.search-dot {
  width: 13px;
  height: 13px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  box-shadow: 10px 10px 0 -5px var(--blue);
}

.visual-search {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.visual-chips span {
  padding: 7px 9px;
  color: #243247;
  background: #eef5ff;
  border: 1px solid #d5e5ff;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.visual-chips span:nth-child(2) {
  background: #fff5ed;
  border-color: #ffd8c1;
}

.visual-chips span:nth-child(3) {
  background: #effaf2;
  border-color: #cfead7;
}

.visual-chart {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: end;
  height: 104px;
  padding: 16px;
  background:
    linear-gradient(rgba(23, 33, 47, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 47, 0.035) 1px, transparent 1px),
    #fbfdff;
  background-size: 24px 24px;
  border: 1px solid #e2eaf4;
  border-radius: 8px;
}

.visual-chart span {
  display: block;
  min-height: 24px;
  background: linear-gradient(180deg, rgba(26, 115, 232, 0.92), rgba(26, 115, 232, 0.28));
  border-radius: 6px 6px 2px 2px;
}

.visual-chart span:nth-child(1) {
  height: 36%;
}

.visual-chart span:nth-child(2) {
  height: 64%;
  background: linear-gradient(180deg, rgba(217, 48, 37, 0.82), rgba(217, 48, 37, 0.22));
}

.visual-chart span:nth-child(3) {
  height: 48%;
  background: linear-gradient(180deg, rgba(251, 188, 4, 0.9), rgba(251, 188, 4, 0.26));
}

.visual-chart span:nth-child(4) {
  height: 76%;
  background: linear-gradient(180deg, rgba(24, 128, 56, 0.86), rgba(24, 128, 56, 0.24));
}

.visual-chart span:nth-child(5) {
  height: 58%;
}

.visual-blocks {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.visual-blocks div,
.profile-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #fbfdff;
  border: 1px solid #e1e9f3;
  border-radius: 8px;
}

.visual-blocks strong,
.profile-label {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.visual-blocks p,
.profile-card span:last-child {
  margin-bottom: 0;
  color: #344055;
  font-size: 0.86rem;
}

.profile-card {
  position: relative;
  z-index: 1;
  border-left: 4px solid var(--blue);
}

.profile-card strong {
  font-size: 1.05rem;
}

.dashboard {
  display: grid;
  gap: 22px;
  padding: 28px 0 34px;
}

.panel {
  position: relative;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(26, 115, 232, 0.22), rgba(223, 230, 239, 0.7), rgba(24, 128, 56, 0.15)) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.panel::before {
  position: absolute;
  inset: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow), var(--red));
  border-radius: 8px 8px 0 0;
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.planner-panel,
.output-panel {
  padding: 22px;
}

.planner-panel {
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.94)) padding-box,
    linear-gradient(135deg, rgba(26, 115, 232, 0.42), rgba(24, 128, 56, 0.24), rgba(251, 188, 4, 0.22)) border-box;
}

.planner-panel::after {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 190px;
  height: 190px;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(26, 115, 232, 0.08), transparent 58%),
    repeating-linear-gradient(90deg, rgba(26, 115, 232, 0.06) 0 2px, transparent 2px 18px);
  opacity: 0.8;
}

.section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.status-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #22523a;
  background: #effaf2;
  border: 1px solid #c7e7d0;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(24, 128, 56, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
}

.planner-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span {
  color: #344055;
  font-size: 0.88rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  color: var(--ink);
  background: rgba(251, 253, 255, 0.94);
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field input,
.field select {
  min-height: 46px;
  padding: 0 12px;
}

.field textarea {
  min-height: 146px;
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12), 0 12px 24px rgba(23, 33, 47, 0.06);
}

.actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #145bc0);
  box-shadow: 0 14px 28px rgba(26, 115, 232, 0.28);
}

.button-primary:hover {
  box-shadow: 0 18px 34px rgba(26, 115, 232, 0.34);
}

.button-secondary {
  color: #563d00;
  background: linear-gradient(135deg, #fff9e6, #ffe89b);
  border-color: #ecd27b;
  box-shadow: 0 10px 22px rgba(251, 188, 4, 0.14);
}

.button-ghost {
  color: #415066;
  background: #ffffff;
  border-color: var(--line);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.insight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.insight-strip article {
  position: relative;
  overflow: hidden;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 229, 240, 0.95);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 33, 47, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.insight-strip article::after {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  content: "";
  background: var(--blue);
}

.insight-strip article:nth-child(2)::after {
  background: var(--red);
}

.insight-strip article:nth-child(3)::after {
  background: var(--yellow);
}

.insight-strip article:nth-child(4)::after {
  background: var(--green);
}

.insight-strip article:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(23, 33, 47, 0.1);
}

.insight-strip strong {
  display: block;
  margin: 8px 0 6px;
}

.insight-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.dot {
  display: block;
  width: 26px;
  height: 7px;
  border-radius: 999px;
  box-shadow: 0 8px 18px currentColor;
}

.dot-blue {
  color: rgba(26, 115, 232, 0.2);
  background: var(--blue);
}

.dot-red {
  color: rgba(217, 48, 37, 0.18);
  background: var(--red);
}

.dot-yellow {
  color: rgba(251, 188, 4, 0.2);
  background: var(--yellow);
}

.dot-green {
  color: rgba(24, 128, 56, 0.18);
  background: var(--green);
}

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

.output-wide {
  grid-column: 1 / -1;
}

.output-panel:nth-child(1)::before {
  background: var(--blue);
}

.output-panel:nth-child(2)::before {
  background: var(--green);
}

.output-panel:nth-child(3)::before {
  background: linear-gradient(90deg, var(--blue), var(--yellow));
}

.output-panel:nth-child(4)::before {
  background: var(--yellow);
}

.output-panel:nth-child(5)::before {
  background: var(--red);
}

.output-panel:nth-child(6)::before {
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow));
}

.output-panel:nth-child(7)::before {
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.empty-state {
  position: relative;
  min-height: 68px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0.9)),
    repeating-linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0 1px, transparent 1px 12px);
  border: 1px dashed #bdcbe0;
  border-radius: 8px;
  padding: 16px 16px 16px 46px;
}

.empty-state::before {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 16px;
  height: 16px;
  content: "";
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 4px;
  box-shadow: 10px 10px 0 rgba(251, 188, 4, 0.52);
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  color: #243247;
  background: #edf4ff;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(26, 115, 232, 0.08);
  font-size: 0.86rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.chip:nth-child(3n + 2) {
  background: #effaf2;
  border-color: #cce9d5;
  box-shadow: 0 8px 18px rgba(24, 128, 56, 0.08);
}

.chip:nth-child(3n + 3) {
  background: #fff8df;
  border-color: #f3dc89;
  box-shadow: 0 8px 18px rgba(251, 188, 4, 0.1);
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(23, 33, 47, 0.1);
}

.chip.negative {
  color: #7d1f18;
  background: #fff0ee;
  border-color: #f4c7c3;
  box-shadow: 0 8px 18px rgba(217, 48, 37, 0.08);
}

.stack-list {
  display: grid;
  gap: 10px;
}

.stack-item,
.campaign-block,
.ad-copy-card {
  position: relative;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 33, 47, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.stack-item {
  padding-left: 18px;
  border-left: 4px solid var(--green);
}

.stack-item:nth-child(2) {
  border-left-color: var(--blue);
}

.stack-item:nth-child(3) {
  border-left-color: var(--yellow);
}

.stack-item:hover,
.campaign-block:hover,
.ad-copy-card:hover {
  transform: translateY(-2px);
  border-color: #c9d7e7;
  box-shadow: 0 16px 34px rgba(23, 33, 47, 0.09);
}

.stack-item strong,
.campaign-block strong,
.ad-copy-card strong {
  display: block;
  margin-bottom: 6px;
}

.stack-item p,
.campaign-block p,
.ad-copy-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.mini-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 7px;
  color: #39506f;
  background: #eef5ff;
  border: 1px solid #d4e3fb;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.mini-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.mini-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  color: #2d3a4d;
  background: #f4f8fd;
  border: 1px solid #dce7f3;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: #344055;
  background: linear-gradient(180deg, #f7faff, #eef4fb);
  font-size: 0.82rem;
  text-transform: uppercase;
}

td {
  color: #344055;
  line-height: 1.45;
}

tbody tr {
  transition: background 160ms ease;
}

tbody tr:hover {
  background: #f9fcff;
}

tbody tr:last-child td {
  border-bottom: 0;
}

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

.campaign-block {
  overflow: hidden;
  border-top: 4px solid var(--blue);
}

.campaign-block::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  content: "";
  background:
    linear-gradient(var(--blue), var(--blue)) 0 8px / 100% 5px no-repeat,
    linear-gradient(var(--green), var(--green)) 0 20px / 72% 5px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 0 32px / 48% 5px no-repeat;
  opacity: 0.28;
}

.campaign-block:nth-child(2) {
  border-top-color: var(--red);
}

.campaign-block:nth-child(3) {
  border-top-color: var(--green);
}

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

.ad-copy-card {
  border-left: 4px solid var(--blue);
}

.ad-copy-card:nth-child(2) {
  border-left-color: var(--green);
}

.ad-copy-card:nth-child(3) {
  border-left-color: var(--yellow);
}

.app-footer {
  padding: 0 0 30px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

@keyframes backgroundDrift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(2%, 3%, 0) scale(1.04);
  }
}

@keyframes pageGradientShift {
  from {
    background-position: 0 0, 0 0, 0 0, 100% 0, 0 100%, 0 0;
  }

  to {
    background-position: 12px 8px, 12px 8px, 8% 3%, 92% 5%, 4% 92%, 0 0;
  }
}

@keyframes ambientFloat {
  from {
    transform: translate3d(-10px, 0, 0) scale(1);
  }

  to {
    transform: translate3d(14px, 12px, 0) scale(1.04);
  }
}

@keyframes sectionReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@media (max-width: 980px) {
  .header-content {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 520px;
  }
}

@media (max-width: 860px) {
  .planner-form,
  .insight-strip,
  .results-grid,
  .campaign-preview,
  .ad-copy-grid {
    grid-template-columns: 1fr;
  }

  .header-content {
    padding-top: 32px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .profile-card {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .header-content,
  .dashboard,
  .app-footer {
    width: min(100% - 22px, 1180px);
  }

  h1 {
    font-size: 2.08rem;
  }

  .planner-panel,
  .output-panel {
    padding: 16px;
  }

  .section-heading {
    display: grid;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .visual-blocks {
    grid-template-columns: 1fr;
  }
}

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