/* =========================================================
   MYRISS AI — FINAL STYLE.CSS
   Works with:
   index.php
   login.php
   register.php
   dashboard.php
   ========================================================= */

/* -------------------------
   ROOT
------------------------- */

:root {
  --bg: #f6f7fb;
  --white: #ffffff;
  --ink: #101114;
  --black: #090a0d;
  --muted: #687080;
  --muted-2: #8b93a1;
  --line: #e5e7eb;
  --red: #ed1c24;
  --red-dark: #c81017;
  --cyan: #19b7d6;
  --cyan-soft: #e7faff;
  --green: #08752f;
  --yellow: #8a6500;

  --shadow-sm: 0 8px 25px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.14);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --max-width: 1400px;
}


/* -------------------------
   RESET
------------------------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: #ffd5d7;
  color: #111;
}


/* =========================================================
   BRAND / LOGO
========================================================= */

.brand {
  position: relative;

  display: inline-flex;
  align-items: center;

  font-size: 28px;
  font-weight: 900;
  line-height: 1;

  letter-spacing: -2px;

  color: var(--ink);

  text-decoration: none;
}

.brand span {
  color: var(--ink);
}

.brand b,
.brand span:nth-child(2) {
  color: var(--red);
  font-weight: 900;
}

.brand i {
  position: absolute;

  left: 0;
  right: 0;
  bottom: -6px;

  height: 2px;

  background: var(--ink);

  border-radius: 999px;
}


/* =========================================================
   MAIN WEBSITE HEADER
========================================================= */

.site-header,
.app-header {
  width: 100%;
  height: 78px;

  padding: 0 5vw;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(255, 255, 255, 0.97);

  border-bottom: 1px solid var(--line);

  position: sticky;
  top: 0;
  z-index: 100;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;

  font-size: 14px;
  font-weight: 600;

  color: #4b5260;
}

.site-header nav a {
  position: relative;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.site-header nav a:hover {
  color: var(--ink);
}

.site-header nav a:not(.nav-btn)::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: -7px;

  height: 2px;

  background: var(--red);

  transform: scaleX(0);
  transform-origin: center;

  transition: transform 0.2s ease;
}

.site-header nav a:not(.nav-btn):hover::after {
  transform: scaleX(1);
}


/* =========================================================
   BUTTONS
========================================================= */

.nav-btn,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  background: var(--ink);
  color: #fff;

  padding: 12px 19px;

  border-radius: 10px;

  border: 1px solid var(--ink);

  font-size: 14px;
  font-weight: 800;

  cursor: pointer;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-btn:hover,
.primary:hover {
  background: #24262b;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.14);
}

.primary span {
  font-size: 18px;
  line-height: 1;
}

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 19px;

  border: 1px solid var(--line);

  border-radius: 10px;

  background: #fff;

  color: var(--ink);

  font-size: 14px;
  font-weight: 800;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.secondary:hover {
  transform: translateY(-2px);

  border-color: #cfd3da;

  box-shadow: var(--shadow-sm);
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  min-height: 690px;

  padding: 80px 7vw;

  display: grid;

  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.9fr);

  gap: 70px;

  align-items: center;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 87% 18%,
      rgba(206, 247, 255, 0.85),
      transparent 33%
    ),
    radial-gradient(
      circle at 8% 92%,
      rgba(255, 226, 228, 0.65),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #ffffff 0%,
      #fafbfc 55%,
      #f5faff 100%
    );
}

.hero::before {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  right: -230px;
  top: 110px;

  border: 1px solid rgba(25, 183, 214, 0.15);

  border-radius: 50%;

  pointer-events: none;
}

.hero::after {
  content: "";

  position: absolute;

  width: 720px;
  height: 720px;

  right: -430px;
  top: 0;

  border: 1px solid rgba(25, 183, 214, 0.08);

  border-radius: 50%;

  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;

  max-width: 720px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 18px;

  font-size: 12px;
  line-height: 1;

  letter-spacing: 2px;

  font-weight: 900;

  color: #737a87;
}

.eyebrow::before {
  content: "";

  width: 20px;
  height: 2px;

  background: var(--red);

  border-radius: 999px;
}

.hero h1 {
  max-width: 700px;

  margin: 0 0 20px;

  font-size: clamp(52px, 6vw, 82px);

  line-height: 0.98;

  letter-spacing: -5px;

  font-weight: 900;

  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero p {
  max-width: 650px;

  margin: 0;

  font-size: 18px;

  line-height: 1.7;

  color: #5e6674;
}

.hero-actions {
  display: flex;

  align-items: center;

  gap: 13px;

  margin-top: 30px;

  flex-wrap: wrap;
}

.trust {
  margin-top: 25px;

  color: #8b929e;

  font-size: 13px;

  font-weight: 500;
}


/* =========================================================
   HERO VIDEO CARD
========================================================= */

.hero-card {
  position: relative;
  z-index: 3;

  width: 100%;

  background: #111318;

  border-radius: 24px;

  padding: 13px;

  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.18),
    0 8px 25px rgba(0, 0, 0, 0.08);

  transform: translateY(0);

  transition: transform 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-5px);
}

.window-top {
  height: 27px;

  display: flex;
  align-items: center;

  gap: 7px;

  padding-left: 7px;
}

.window-top span {
  width: 9px;
  height: 9px;

  display: block;

  border-radius: 50%;

  background: #555a63;
}

.window-top span:first-child {
  background: #777d87;
}

.mini-editor {
  background: #f2f4f6;

  border-radius: 15px;

  padding: 13px;

  display: grid;

  grid-template-columns: 1fr 0.9fr;

  gap: 13px;

  overflow: hidden;
}


/* =========================================================
   AVATAR PREVIEW
========================================================= */

.avatar-preview {
  position: relative;

  min-height: 400px;

  overflow: hidden;

  border-radius: 12px;

  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(255, 255, 255, 0.8),
      transparent 25%
    ),
    linear-gradient(
      180deg,
      #d7f3fa 0%,
      #eaf4f5 100%
    );

  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-preview::before {
  content: "";

  position: absolute;

  width: 170px;
  height: 170px;

  top: 50px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.35);

  filter: blur(4px);
}

.avatar-head {
  position: absolute;

  z-index: 2;

  width: 140px;
  height: 170px;

  top: 75px;

  border-radius:
    48% 48%
    45% 45%;

  background:
    linear-gradient(
      135deg,
      #dba27c,
      #bd815d
    );

  box-shadow:
    inset -10px -8px 20px rgba(80, 35, 15, 0.08);
}

.avatar-head::before {
  content: "";

  position: absolute;

  left: 50%;

  top: 70px;

  transform: translateX(-50%);

  width: 58px;
  height: 6px;

  border-radius: 20px;

  background: rgba(95, 48, 30, 0.35);
}

.avatar-head::after {
  content: "";

  position: absolute;

  left: 50%;

  bottom: -4px;

  transform: translateX(-50%);

  width: 55px;
  height: 40px;

  background: #bd815d;

  border-radius: 0 0 50% 50%;
}

.avatar-body {
  position: absolute;

  z-index: 1;

  width: 260px;
  height: 220px;

  bottom: -48px;

  border-radius:
    120px 120px
    20px 20px;

  background:
    linear-gradient(
      135deg,
      #292c32,
      #17191e
    );
}

.avatar-body::before {
  content: "";

  position: absolute;

  width: 120px;
  height: 70px;

  left: 50%;
  top: 0;

  transform: translateX(-50%);

  border-radius: 0 0 50% 50%;

  background: #bd815d;
}

.play {
  position: absolute;

  z-index: 5;

  width: 55px;
  height: 55px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #fff;

  color: var(--red);

  font-size: 17px;

  padding-left: 3px;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.18);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.avatar-preview:hover .play {
  transform: scale(1.07);

  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.22);
}


/* =========================================================
   MINI EDITOR CONTROLS
========================================================= */

.mini-controls {
  background: #fff;

  border-radius: 12px;

  padding: 20px;

  display: flex;
  flex-direction: column;

  min-width: 0;
}

.mini-controls label {
  display: block;

  margin-bottom: 8px;

  font-size: 13px;

  font-weight: 800;

  color: #15171b;
}

.fake-input {
  min-height: 45px;

  margin: 0 0 18px;

  padding: 13px;

  display: flex;
  align-items: center;

  border: 1px solid var(--line);

  border-radius: 8px;

  color: #a2a9b4;

  font-size: 12px;

  background: #fff;
}

.two {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 8px;
}

.two div {
  min-width: 0;

  padding: 11px;

  border: 1px solid var(--line);

  border-radius: 8px;

  background: #fff;
}

.two small {
  display: block;

  margin-bottom: 4px;

  color: #999fa9;

  font-size: 10px;
}

.two strong {
  display: block;

  font-size: 12px;

  color: #1c1f24;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}

.mini-controls button {
  width: 100%;

  margin-top: 13px;

  padding: 13px;

  border: 0;

  border-radius: 8px;

  background: var(--red);

  color: #fff;

  font-size: 12px;

  font-weight: 900;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.mini-controls button:hover {
  background: var(--red-dark);

  transform: translateY(-1px);
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section {
  position: relative;

  padding: 90px 7vw;

  background: var(--bg);
}

.section-head {
  display: flex;

  align-items: baseline;

  gap: 24px;

  margin-bottom: 40px;
}

.section-head span {
  color: var(--red);

  font-size: 13px;

  font-weight: 900;
}

.section h2 {
  margin: 0;

  font-size: 42px;

  line-height: 1.05;

  letter-spacing: -2.5px;

  font-weight: 900;
}


/* =========================================================
   FEATURES
========================================================= */

.feature-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 16px;
}

.feature-grid article {
  min-height: 220px;

  padding: 28px;

  background: #fff;

  border: 1px solid var(--line);

  border-radius: 18px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.025);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.feature-grid article:hover {
  transform: translateY(-5px);

  border-color: #d7dbe1;

  box-shadow: var(--shadow-md);
}

.icon {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  margin-bottom: 25px;

  border-radius: 12px;

  background: #f3f4f6;

  color: var(--red);

  font-size: 23px;

  font-weight: 900;
}

.feature-grid h3 {
  margin: 0 0 9px;

  font-size: 18px;

  font-weight: 900;
}

.feature-grid p {
  margin: 0;

  color: var(--muted);

  font-size: 14px;

  line-height: 1.65;
}


/* =========================================================
   DARK SECTION
========================================================= */

.dark {
  background: var(--black);

  color: #fff;
}

.dark .section-head span {
  color: #ff4c52;
}

.dark .section-head h2 {
  color: #fff;
}

.steps {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 14px;
}

.steps > div {
  min-height: 210px;

  padding: 28px;

  border: 1px solid #292c34;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.015);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.steps > div:hover {
  transform: translateY(-5px);

  border-color: #414650;

  background: rgba(255, 255, 255, 0.035);
}

.steps b {
  display: block;

  margin-bottom: 35px;

  color: #ff4c52;

  font-size: 13px;
}

.steps h3 {
  margin: 0 0 8px;

  font-size: 21px;

  font-weight: 900;
}

.steps p {
  margin: 0;

  color: #a7adb8;

  font-size: 14px;

  line-height: 1.6;
}


/* =========================================================
   PRICING
========================================================= */

.pricing {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 16px;
}

.pricing > div {
  position: relative;

  min-height: 220px;

  padding: 30px;

  background: #fff;

  border: 1px solid var(--line);

  border-radius: 18px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.025);
}

.pricing .featured {
  border: 2px solid var(--red);

  box-shadow:
    0 20px 50px rgba(237, 28, 36, 0.09);
}

.pricing small {
  display: block;

  color: #888f9b;

  font-size: 11px;

  font-weight: 900;

  letter-spacing: 2px;
}

.pricing strong {
  display: block;

  margin-top: 13px;

  font-size: 28px;

  line-height: 1.1;

  letter-spacing: -1px;

  font-weight: 900;
}

.pricing p {
  margin-top: 12px;

  color: var(--muted);

  font-size: 14px;

  line-height: 1.6;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  padding: 40px 7vw;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  background: #fff;

  border-top: 1px solid var(--line);
}

footer .brand {
  font-size: 25px;
}

footer p {
  margin: 0;

  color: #8b929e;

  font-size: 13px;
}


/* =========================================================
   AUTH PAGES
========================================================= */

.auth-page {
  min-height: 100vh;

  display: grid;
  place-items: center;

  padding: 40px 20px;

  background:
    radial-gradient(
      circle at 10% 10%,
      #e9fbff,
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 90%,
      #ffecef,
      transparent 30%
    ),
    #f5f6f8;
}

.auth-card {
  width: min(450px, 92vw);

  padding: 38px;

  background: #fff;

  border: 1px solid var(--line);

  border-radius: 20px;

  box-shadow: var(--shadow-md);
}

.auth-card .brand {
  margin-bottom: 5px;
}

.auth-card h1 {
  margin: 25px 0 8px;

  font-size: 32px;

  line-height: 1.1;

  letter-spacing: -1.5px;
}

.auth-card form {
  display: grid;

  gap: 16px;

  margin-top: 25px;
}

.auth-card label,
.panel label {
  display: grid;

  gap: 7px;

  font-size: 13px;

  font-weight: 800;

  color: #292d34;
}

.auth-card input,
.panel input,
.panel select,
.panel textarea {
  width: 100%;

  padding: 13px 14px;

  border: 1px solid var(--line);

  border-radius: 10px;

  background: #fff;

  color: var(--ink);

  font: inherit;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-card input:focus,
.panel input:focus,
.panel select:focus,
.panel textarea:focus {
  border-color: var(--cyan);

  box-shadow:
    0 0 0 3px rgba(25, 183, 214, 0.12);
}

.auth-card button {
  margin-top: 4px;
}

.wide {
  width: 100%;
  text-align: center;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.error {
  margin: 15px 0;

  padding: 12px;

  border: 1px solid #ffd0d0;

  border-radius: 10px;

  background: #fff0f0;

  color: #a90000;

  font-size: 13px;
}


/* =========================================================
   APPLICATION / DASHBOARD
========================================================= */

.app {
  min-height: 100vh;

  background: #f5f6f8;
}

.app-header {
  position: sticky;
}

.app-user {
  display: flex;

  align-items: center;

  gap: 15px;

  font-size: 14px;
}

.credits {
  padding: 7px 11px;

  background: #fff2f2;

  color: #b00000;

  border-radius: 999px;

  font-size: 12px;

  font-weight: 900;
}

.app-shell {
  min-height: calc(100vh - 78px);

  display: grid;

  grid-template-columns: 250px minmax(0, 1fr);
}


/* =========================================================
   SIDEBAR
========================================================= */

aside {
  padding: 25px 15px;

  background: #fff;

  border-right: 1px solid var(--line);
}

aside small {
  display: block;

  padding: 0 14px 12px;

  color: #aaa;

  font-size: 11px;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 1px;
}

aside a {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 13px 14px;

  margin-bottom: 5px;

  border-radius: 9px;

  color: #555;

  font-size: 14px;

  font-weight: 700;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

aside a:hover {
  background: #f4f5f7;

  color: var(--ink);
}

aside a.active {
  background: #111;

  color: #fff;
}


/* =========================================================
   WORKSPACE
========================================================= */

.workspace {
  min-width: 0;

  padding: 40px 5vw;
}

.workspace-head {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 28px;
}

.workspace-head h1,
.workspace-head h2 {
  margin: 5px 0;

  font-size: 34px;

  line-height: 1.1;

  letter-spacing: -1.5px;
}

.workspace-head p {
  margin: 0;

  color: var(--muted);

  font-size: 14px;
}

.pill {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 10px 13px;

  border: 1px solid var(--line);

  border-radius: 999px;

  background: #fff;

  font-size: 13px;

  font-weight: 800;
}


/* =========================================================
   CREATOR
========================================================= */

.creator {
  display: grid;

  grid-template-columns:
    1.2fr 0.8fr 0.8fr;

  gap: 15px;
}

.panel {
  min-height: 280px;

  padding: 22px;

  background: #fff;

  border: 1px solid var(--line);

  border-radius: 18px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.025);
}

.panel-title {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 18px;
}

.panel-title span {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  border-radius: 50%;

  background: #111;

  color: #fff;

  font-size: 12px;

  font-weight: 900;
}

.panel-title h2 {
  margin: 0;

  font-size: 18px;

  font-weight: 900;
}

.panel textarea {
  min-height: 190px;

  resize: vertical;
}

.counter {
  margin-top: 6px;

  color: #999;

  font-size: 12px;

  text-align: right;
}

.panel label + label {
  margin-top: 16px;
}

.help {
  margin-top: 15px;

  color: #888;

  font-size: 12px;

  line-height: 1.5;
}


/* =========================================================
   STATUS
========================================================= */

.status {
  margin-bottom: 15px;

  padding: 13px;

  border-radius: 10px;

  background: #f4f5f7;

  color: #666;

  font-size: 13px;
}

.status.loading {
  background: #fff9e6;

  color: var(--yellow);
}

.status.success {
  background: #eafff0;

  color: var(--green);
}

.status.error {
  background: #fff0f0;

  color: #a00000;
}


/* =========================================================
   RESULT VIDEO
========================================================= */

.result {
  display: grid;

  gap: 10px;

  margin-top: 15px;
}

.result video {
  width: 100%;

  display: block;

  border-radius: 12px;

  background: #000;
}


/* =========================================================
   HIDDEN
========================================================= */

.hidden {
  display: none !important;
}


/* =========================================================
   VIDEO LIBRARY
========================================================= */

.library {
  margin-top: 55px;
}

.video-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 14px;
}

.video-card {
  overflow: hidden;

  background: #fff;

  border: 1px solid var(--line);

  border-radius: 14px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.025);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-3px);

  box-shadow: var(--shadow-sm);
}

.thumb {
  height: 130px;

  display: grid;

  place-items: center;

  background: #111;

  color: #fff;

  font-size: 12px;

  font-weight: 900;

  letter-spacing: 2px;
}

.video-card > div:last-child {
  padding: 14px;
}

.video-card small {
  display: block;

  margin-top: 5px;

  color: #888;

  font-size: 11px;
}

.empty {
  padding: 30px;

  background: #fff;

  border: 1px dashed var(--line);

  border-radius: 14px;

  color: #777;

  font-size: 14px;
}


/* =========================================================
   TABLE / GENERAL DASHBOARD HELPERS
========================================================= */

table {
  width: 100%;

  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;

  border-bottom: 1px solid var(--line);

  text-align: left;

  font-size: 13px;
}

th {
  color: #555;

  font-weight: 800;
}

td {
  color: #666;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1100px) {

  .hero {
    grid-template-columns: 1fr;

    gap: 45px;

    padding-top: 65px;
    padding-bottom: 70px;
  }

  .hero-copy {
    max-width: 850px;
  }

  .hero-card {
    max-width: 800px;

    width: 100%;

    margin: 0 auto;
  }

  .feature-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .video-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .creator {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  aside {
    display: none;
  }
}


/* =========================================================
   RESPONSIVE — 800PX
========================================================= */

@media (max-width: 800px) {

  .site-header,
  .app-header {
    height: 70px;

    padding: 0 5vw;
  }

  .site-header nav {
    gap: 16px;
  }

  .hero {
    min-height: auto;

    padding: 55px 5vw 70px;
  }

  .hero h1 {
    font-size: clamp(46px, 10vw, 68px);

    letter-spacing: -4px;
  }

  .hero p {
    font-size: 17px;
  }

  .section {
    padding: 70px 5vw;
  }

  .section h2 {
    font-size: 36px;
  }

  .pricing {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 35px 5vw;
  }

  .workspace {
    padding: 30px 4vw;
  }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 600px) {

  .brand {
    font-size: 25px;
  }

  .site-header nav {
    gap: 12px;

    font-size: 13px;
  }

  .site-header nav a:not(.nav-btn) {
    display: none;
  }

  .nav-btn {
    padding: 10px 14px;

    font-size: 12px;
  }

  .hero {
    padding: 48px 5vw 60px;
  }

  .hero h1 {
    font-size: 48px;

    letter-spacing: -3px;

    line-height: 0.98;
  }

  .hero p {
    font-size: 16px;

    line-height: 1.65;
  }

  .hero-actions {
    align-items: stretch;

    flex-direction: column;
  }

  .primary,
  .secondary {
    width: 100%;
  }

  .hero-card {
    padding: 9px;

    border-radius: 18px;
  }

  .window-top {
    height: 23px;
  }

  .mini-editor {
    grid-template-columns: 1fr;

    padding: 9px;
  }

  .avatar-preview {
    min-height: 300px;
  }

  .avatar-head {
    top: 55px;

    width: 115px;
    height: 145px;
  }

  .avatar-body {
    width: 230px;
    height: 190px;
  }

  .mini-controls {
    padding: 16px;
  }

  .section {
    padding: 60px 5vw;
  }

  .section-head {
    gap: 14px;

    align-items: flex-start;

    margin-bottom: 30px;
  }

  .section-head span {
    padding-top: 5px;
  }

  .section h2 {
    font-size: 31px;

    letter-spacing: -1.7px;
  }

  .feature-grid,
  .steps,
  .pricing,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .steps > div {
    min-height: auto;
  }

  footer {
    display: block;

    padding: 35px 5vw;
  }

  footer p {
    margin-top: 15px;
  }

  .auth-page {
    padding: 25px 15px;
  }

  .auth-card {
    padding: 28px 22px;
  }

  .auth-card h1 {
    font-size: 28px;
  }

  .app-user > span:first-child {
    display: none;
  }

  .workspace {
    padding: 25px 4vw;
  }

  .workspace-head {
    display: block;
  }

  .workspace-head h1,
  .workspace-head h2 {
    font-size: 29px;
  }

  .pill {
    margin-top: 15px;
  }

  .panel {
    padding: 18px;
  }
}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 400px) {

  .hero h1 {
    font-size: 42px;

    letter-spacing: -2.5px;
  }

  .eyebrow {
    font-size: 10px;

    letter-spacing: 1.5px;
  }

  .hero-card {
    border-radius: 15px;
  }

  .avatar-preview {
    min-height: 260px;
  }

  .two {
    grid-template-columns: 1fr;
  }

  .section h2 {
    font-size: 28px;
  }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(25, 183, 214, 0.35);

  outline-offset: 2px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@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;
  }
}