:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-strong: #10131a;
  --text: #111827;
  --muted: #5b6472;
  --line: #dfe3ea;
  --accent: #00d1c1;
  --accent-2: #ff315a;
  --shadow: 0 22px 70px rgba(16, 19, 26, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 760;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0;
  box-shadow: inset 4px 0 0 var(--accent), inset -4px 0 0 var(--accent-2);
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 56px;
  padding: 36px 0 80px;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 720;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

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

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

.button.primary {
  background: var(--surface-strong);
  color: #ffffff;
}

.button.primary:hover {
  background: #232a39;
}

.button.secondary {
  background: var(--surface);
  border: 1px solid var(--line);
}

.button.secondary:hover {
  background: #f1f4f7;
}

.product-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel-bar {
  display: flex;
  gap: 8px;
  padding: 4px 0 18px;
}

.panel-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9d0da;
}

.video-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.preview-frame {
  aspect-ratio: 9 / 13;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(0, 209, 193, 0.9), rgba(255, 49, 90, 0.84)),
    linear-gradient(180deg, #232631, #07080b);
}

.play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 14px;
  border-left: 15px solid #111827;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 760;
}

.video-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

.video-card p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.status-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.status-grid div {
  min-height: 116px;
  border-radius: 8px;
  padding: 16px;
  background: #f1f4f7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.status-grid strong {
  color: var(--accent-2);
}

.status-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
}

.section h2,
.legal h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p,
.split p,
.contact p,
.legal p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.steps {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.steps article {
  min-height: 260px;
  padding: 24px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.steps span {
  color: var(--accent);
  font-weight: 800;
}

.steps h3 {
  margin: 52px 0 12px;
  font-size: 20px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 48px;
  align-items: start;
}

.checks {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.checks li {
  min-height: 56px;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 650;
}

.contact {
  text-align: center;
}

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.legal {
  max-width: 860px;
  padding: 64px 0 96px;
}

.legal .updated {
  margin: 14px 0 42px;
  font-size: 15px;
}

.legal section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.legal h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.legal p {
  margin: 0;
}

/* ==========================================================================
   NEW HIGH-FIDELITY DASHBOARD VIEW & SIMULATION STYLES
   ========================================================================== */

#dashboard-view {
  margin-top: 20px;
  margin-bottom: 80px;
}

.hidden {
  display: none !important;
}

/* Dashboard Profile bar */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(16, 19, 26, 0.02);
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar-ring {
  padding: 3px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 49, 90, 0.2);
}

.avatar-svg {
  border-radius: 50%;
  background: #ffffff;
  display: block;
}

.user-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.user-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
}

.badge {
  font-size: 10px;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.active-badge {
  background: rgba(0, 209, 193, 0.1);
  color: #00a497;
  border: 1px solid rgba(0, 209, 193, 0.25);
}

.user-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-label {
  font-weight: 650;
}

.scope-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #eaeef3;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #3b4252;
  font-weight: 600;
}

/* Dashboard Workspace Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
}

.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 25px rgba(16, 19, 26, 0.02);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 760;
  color: var(--text);
  flex-grow: 1;
}

.card-icon {
  font-size: 20px;
}

/* Vertical Video Mock Player aspect 9:16 */
.interactive-video-preview {
  position: relative;
  width: 100%;
  max-width: 270px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #07080b;
  box-shadow: 0 12px 35px rgba(0,0,0,0.18);
  border: 4px solid #10131a;
}

.mock-player-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.glowing-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.5) 0%, rgba(254, 9, 121, 0.5) 100%);
  background-size: 200% 200%;
  animation: gradientMotion 5s ease infinite alternate;
}

@keyframes gradientMotion {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.media-indicator {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  pointer-events: none;
}

.pulse-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  animation: radialPulse 2s infinite;
}

@keyframes radialPulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.sound-waves {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 24px;
}

.sound-waves span {
  width: 3px;
  background: #ffffff;
  border-radius: 2px;
  animation: equalise 0.8s ease infinite alternate;
}

.sound-waves span:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.sound-waves span:nth-child(2) { height: 18px; animation-delay: 0.3s; }
.sound-waves span:nth-child(3) { height: 24px; animation-delay: 0.5s; }
.sound-waves span:nth-child(4) { height: 14px; animation-delay: 0.2s; }
.sound-waves span:nth-child(5) { height: 8px; animation-delay: 0.4s; }

@keyframes equalise {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1.1); }
}

.mock-play-btn {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #ffffff;
  transition: all 0.2s ease;
  z-index: 5;
}

.mock-play-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.06);
}

.play-symbol {
  width: 0;
  height: 0;
  border-left: 9px solid #ffffff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}

.mock-play-btn.paused .play-symbol {
  border-left: none;
  border-top: none;
  border-bottom: none;
  width: 8px;
  height: 10px;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  box-sizing: border-box;
  margin-left: 0;
}

/* TikTok Mobile Simulator Interface Overlay */
.video-overlay-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  color: #ffffff;
}

.video-right-actions {
  position: absolute;
  right: 10px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.action-item .icon {
  font-size: 22px;
  margin-bottom: 1px;
}

.video-bottom-info {
  max-width: calc(100% - 44px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.creator-tag {
  font-weight: 750;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.video-desc-overlay {
  font-size: 11px;
  line-height: 1.35;
  opacity: 0.9;
}

.music-track {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 6px;
  border-radius: 10px;
  width: 160px;
  white-space: nowrap;
  overflow: hidden;
}

.music-icon {
  font-size: 10px;
  animation: rotateDisc 3s linear infinite;
  display: inline-block;
}

@keyframes rotateDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  animation: scrollText 12s linear infinite;
}

@keyframes scrollText {
  0% { transform: translate3d(80px, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Edit and validation fields layout */
.publish-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.form-control {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 209, 193, 0.1);
}

.char-counter {
  align-self: flex-end;
  font-size: 11px;
  color: var(--muted);
  margin-top: -4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.badge-api {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 49, 90, 0.06);
  color: var(--accent-2);
  border: 1px solid rgba(255, 49, 90, 0.12);
  height: 39px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Custom Checkbox Design */
.check-group {
  margin: 6px 0;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background-color: #ffffff;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--accent-2);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 2px 8px rgba(255, 49, 90, 0.2);
}

.checkmark:after {
  content: "";
  display: none;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 650;
  transition: color 0.2s;
}

.checkbox-container input:checked ~ .checkbox-text {
  color: var(--text);
}

/* Button variants */
.btn-block {
  width: 100%;
  margin-top: 8px;
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-block:disabled {
  background: #eaeef3;
  color: #98a2b3;
  border: 1px solid var(--line);
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

/* High fidelity Dark Developer Console */
.console-card {
  background: #090d16;
  border: 1px solid #1c2635;
  box-shadow: 0 10px 40px rgba(5, 8, 15, 0.25);
}

.console-card .card-header {
  border-bottom: 1px solid #1c2635;
}

.console-card .card-header h3 {
  color: #ffffff;
}

.console-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 750;
  color: #58a6ff;
  letter-spacing: 0.5px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d1c1;
  box-shadow: 0 0 10px #00d1c1;
  animation: pulsingLight 1.5s infinite;
}

@keyframes pulsingLight {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.console-wrapper {
  background: #05080f;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #1c2635;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  max-height: 480px;
}

.developer-console {
  flex-grow: 1;
  overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 8px;
}

.developer-console::-webkit-scrollbar {
  width: 6px;
}
.developer-console::-webkit-scrollbar-track {
  background: #05080f;
}
.developer-console::-webkit-scrollbar-thumb {
  background: #1c2635;
  border-radius: 4px;
}

.console-line {
  animation: slideUpLog 0.2s ease-out forwards;
}

@keyframes slideUpLog {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.log-time {
  color: #4f5666;
}

.log-prefix {
  font-weight: 700;
  margin-right: 4px;
}

.line-system .log-prefix { color: #88c0d0; }
.line-system .log-msg { color: #8fbcbb; font-weight: 600; }

.line-info .log-prefix { color: #81a1c1; }
.line-info .log-msg { color: #d8dee9; }

.line-success .log-prefix { color: #a3be8c; }
.line-success .log-msg { color: #a3be8c; font-weight: 600; }

.line-warning .log-prefix { color: #ebcb8b; }
.line-warning .log-msg { color: #ebcb8b; }

.line-error .log-prefix { color: #bf616a; }
.line-error .log-msg { color: #bf616a; font-weight: 700; }

.console-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #4f5666;
  border-top: 1px solid #1c2635;
  padding-top: 12px;
}

.text-success {
  color: #00d1c1;
}

/* Spinners */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spinningDisc 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spinningDisc {
  to { transform: rotate(360deg); }
}

/* Success Modal Details */
.success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.success-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  animation: growModal 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes growModal {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.success-modal h2 {
  margin: 0 0 10px;
  font-size: 24px;
  color: var(--text);
  font-weight: 800;
}

.success-modal p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 20px;
}

.modal-details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.detail-row span {
  color: var(--muted);
  font-weight: 500;
}

.detail-row strong {
  color: var(--text);
  font-weight: 700;
}

.detail-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
}

.modal-subtext {
  font-size: 12px !important;
  color: var(--muted) !important;
  font-style: italic;
  line-height: 1.45 !important;
}

/* TikTok login icon */
.tiktok-icon {
  vertical-align: middle;
}

/* State controls */
.logged-in .hero,
.logged-in #workflow,
.logged-in #security,
.logged-in .contact {
  display: none !important;
}

.logged-in nav {
  display: none !important;
}


/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */

@media (max-width: 860px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0;
  }

  nav {
    flex-wrap: wrap;
    margin-top: 10px;
  }

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

  .hero {
    min-height: auto;
    gap: 36px;
    padding-top: 34px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .interactive-video-preview {
    max-width: 280px;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .hero h1 {
    font-size: 42px;
  }

  .product-panel {
    padding: 14px;
  }

  .video-card,
  .status-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .video-card {
    align-items: start;
  }

  .preview-frame {
    width: min(160px, 100%);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .dashboard-actions {
    width: 100%;
  }
  
  .dashboard-actions button {
    width: 100%;
  }
}
