@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  color-scheme: dark;

  --bg: #050816;
  --bg-2: #0b1023;

  --paper: rgba(17, 24, 39, 0.95);
  --panel: rgba(15, 23, 42, 0.9);
  --panel-2: rgba(30, 41, 59, 0.9);

  --ink: #ffffff;
  --muted: #94a3b8;

  --accent: #8b5cf6;
  --accent-2: #3b82f6;
  --accent-3: #06b6d4;
  --accent-4: #22c55e;

  --line: rgba(255,255,255,.08);

  --shadow: 0 20px 60px rgba(0,0,0,.5);
  --shadow-soft: 0 8px 25px rgba(0,0,0,.35);

  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-dark: #0f172a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background:
radial-gradient(circle at 15% 20%, rgba(59,130,246,.25), transparent 30%),
radial-gradient(circle at 85% 25%, rgba(139,92,246,.25), transparent 30%),
radial-gradient(circle at 50% 80%, rgba(6,182,212,.18), transparent 35%),
#050816;
}

body::before,
body::after {
  z-index: 0;
  content: "";
  position: fixed;
  pointer-events: none;
  inset: 0;
}

body::before {
  background:
    radial-gradient(
      circle at 10% 85%,
      rgba(0,87,255,.18) 0 120px,
      transparent 121px
    ),
    radial-gradient(
      circle at 88% 16%,
      rgba(255,45,85,.16) 0 150px,
      transparent 151px
    );
}

body::after{
    display:none;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

.hidden {
  display: none !important;
}

.app-shell {
  width: min(1380px, calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0 34px;
  position: relative;
  z-index: 1;
}

.glass-card {
  position: relative;
  background: rgba(15,23,42,.65);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
  border: 3px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.08),
      transparent 50%
    );
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--accent-3);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--line);
}

.brand-logo,
.hero-logo,
.sidebar-logo {
  display: block;
  object-fit: contain;
}

.login-view {
  min-height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 430px);
  gap: 30px;
  align-items: center;
}

.login-copy {
  padding: 26px;
  position: relative;
}

.brand-logo {
  width: min(100%, 420px);
  margin: 20px 0 22px;
  border: 3px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  background: #141735;
}

.login-copy h1,
.hero-text h1 {
    font-family:'Inter',sans-serif;
    font-weight:900;

    font-size: clamp(3rem, 5vw, 5.3rem);

    line-height: 1.02;

    letter-spacing: 1px;

    word-spacing: 6px;

    text-shadow:
      0 4px 15px rgba(255,255,255,.15);

    max-width: 11ch;
}

.lede {
  margin-top: 18px;
  max-width: 62ch;
  line-height: 1.7;
  font-size: 1.02rem;
  color: var(--muted);
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.feature-chips span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: white;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--line);
  font-weight: 800;
}

.feature-chips span:nth-child(1){
    background:#22c55e;
    color:#ffffff;
}

.feature-chips span:nth-child(2){
    background:#2563eb;
    color:#ffffff;
}

.feature-chips span:nth-child(3){
    background:#ec4899;
    color:#ffffff;
}

.sidebar,
.hero-panel,
.form-panel,
.output-panel,
.auth-card {
  border-radius: 28px;
}

.auth-card {
  padding: 28px;
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, #fffdf3, #ffeeb8);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: #111111;
}

.tab-button {
  min-height: 46px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background:#1e293b;
  color:#94a3b8;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--line);
}

.tab-button.active {
  background:#8b5cf6;
  color:white;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.section-heading {
  display: grid;
  gap: 6px;
}

.section-heading p,
.helper-text,
#status,
.history-empty,
.history-meta,
.thumbnail-empty {
  color: #64748b;
}

label span,
.sidebar-user p {
  color: #334155;
}

.section-heading.compact h3 {
  font-size: 1rem;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 3px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: white;
  color: #111827;
  box-shadow: 4px 4px 0 var(--line);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

textarea {
  resize: vertical;
  min-height: 144px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--line);
  background: #fffbe9;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 50px;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  border: 3px solid var(--line);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, #ff7a00 100%);
  box-shadow: 5px 5px 0 var(--line);
}

.secondary-button,
.ghost-button {
  background: white;
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--line);
}

.secondary-button {
  background: var(--accent-3);
}

.ghost-button {
  background: #ffe48c;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--line);
  filter: saturate(1.05);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
  box-shadow: 3px 3px 0 var(--line);
}

.workspace-view {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  min-height: calc(100vh - 60px);
  align-items: start;
}

.sidebar {
  width: 100%;
  min-width: 0;
  padding: 22px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 20px;
  position: sticky;
  top: 28px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, #fffef7, #dff4ff);
}

.sidebar-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.sidebar-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 3px solid var(--line);
  box-shadow: var(--shadow-soft);
  flex: 0 0 auto;
  object-fit:contain;
  padding:4px;
  background:white;
}

.sidebar-user,
.stat-card,
.history-item,
.thumbnail-panel,
.thumbnail-empty,
.output-card {
  position: relative;
}

.sidebar-user {
  min-width: 0;
  padding: 16px;
  border-radius: 20px;
  background: #fff7da;
  border: 3px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.sidebar-user::before,
.thumbnail-panel::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 28px;
  width: 22px;
  height: 22px;
  background: inherit;
  border-left: 3px solid var(--line);
  border-top: 3px solid var(--line);
  transform: rotate(45deg);
}

.sidebar-user strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 1.02rem;
  color: #0f172a;
}

.sidebar-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.stat-card {
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  border: 3px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.sidebar-stats .stat-card:first-child {
  background: #ffd5e3;
}

.sidebar-stats .stat-card:last-child {
  background: #caf6ff;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.stat-card span,
.history-search span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card strong{
    display:block;

    font-size:.95rem;
    line-height:1.3;
    word-break:break-word;

    overflow-wrap:anywhere;
}

.sidebar-actions {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.sidebar-actions button {
  width: 100%;
}

.history-block {
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
}

.history-search {
  gap: 6px;
  min-width: 0;
}

.history-search input {
  min-width: 0;
}

.history-list {
  min-height: 0;
  min-width: 0;
  overflow: visible;
  display: grid;
  align-content: start;
  gap: 12px;
  padding-right: 4px;
}

.history-item {
  width: 100%;
  min-width: 0;
  border: 3px solid var(--line);
  border-radius: 20px;
  background: white;
  color: #0f172a;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.history-item:nth-child(odd) {
  background: #fff0b8;
}

.history-item:nth-child(even) {
  background: #dff4ff;
}

.history-item:hover {
  transform: translate(-2px, -2px) rotate(-0.5deg);
  box-shadow: 7px 7px 0 var(--line);
}

.history-item.active {
  background: #ffd2df;
  box-shadow: 7px 7px 0 var(--line);
}

.history-item-button {
  min-width: 0;
  width: 100%;
  padding: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.history-item strong,
.history-item span {
  display: block;
}

.history-item strong {
  margin-bottom: 6px;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.history-item span + span {
  margin-top: 3px;
}

.history-delete-button {
  min-height: 40px;
  align-self: start;
  padding: 8px 14px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background:#ef4444;
  color:white;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--line);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.history-delete-button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--line);
  background: #dc2626;
}

.workspace-main {
  display: grid;
  gap: 24px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: center;
  padding: 28px;
  background:linear-gradient(135deg,rgba(59,130,246,.15),rgba(139,92,246,.15));
  position:relative;
}

.hero-panel .eyebrow {
  background: white;
}

.hero-text h1 {
  max-width: 16ch;
  line-height:1.05;
}

.hero-logo {
  width: 100%;
  max-width: 300px;
  justify-self: end;
  border: 3px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  background: transparent;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.form-panel,
.output-panel {
  padding: 24px;
}

.form-panel {
  display: grid;
  gap: 16px;
  background: linear-gradient(180deg, #fffef7, #fff0b8);
}

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

.output-panel {
  min-height: 100%;
  background: linear-gradient(180deg, #fffef7, #dff4ff);
}

.output-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.thumbnail-panel {
  margin-top: 20px;
  padding: 18px;
  border-radius: 22px;
  border: 3px solid var(--line);
  background: #fff7da;
  box-shadow: var(--shadow-soft);
}

.thumbnail-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.thumbnail-empty {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 3px dashed var(--line);
  background: #fffef4;
  box-shadow: 3px 3px 0 var(--line);
}

.thumbnail-image {
  display: block;
  width: 100%;
  margin-top: 16px;
  border-radius: 18px;
  border: 3px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: white;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.output-card {
  margin-top: 20px;
  min-height: 560px;
  padding: 20px;
  overflow: auto;
  white-space: pre-wrap;
  border-radius: 22px;
  border: 3px solid var(--line);
  background: rgba(15,23,42,.8);
  color: var(--ink);
  line-height: 1.7;
  box-shadow: var(--shadow-soft);
  font-family: "Courier New", Consolas, monospace;
}

@media (max-width: 1100px) {
  .login-view,
  .workspace-view,
  .workspace-grid,
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
  }

  .hero-logo {
    justify-self: start;
    max-width: 220px;
  }

  .thumbnail-header {
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 20px, 1380px);
    padding: 16px 0 24px;
  }

  .auth-card,
  .sidebar,
  .hero-panel,
  .form-panel,
  .output-panel {
    padding: 18px;
    border-radius: 22px;
  }

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

  .login-copy h1,
  .hero-text h1 {
    max-width: none;
    font-size: clamp(2.4rem, 11vw, 3.8rem);
  }

  .output-card {
    min-height: 360px;
  }
}


.built-by{
    position:absolute;

    bottom:18px;
    right:24px;

    font-size:.9rem;

    color:#94a3b8;

    font-weight:600;

    z-index:10;
}

.built-by strong{
    color:#8b5cf6;
}

.sidebar,
.form-panel,
.output-panel,
.auth-card {
    color: var(--text-dark);
}

.sidebar::-webkit-scrollbar{
    width:0;
}

.sidebar{
    scrollbar-width:none;
}


::-webkit-scrollbar{
    width:0;
    height:0;
}

*{
    scrollbar-width:none;
}



.ai-assistant{
    position:absolute;

    left:45%;
    top:-50%;

    width:600px;
    height:1200px;

    z-index:5;
    pointer-events:none;
}

.robot-body{
    position:absolute;

    bottom:0;
    left:50%;

    width:420px;

    transform:translateX(-50%);
}

.robot-head{
    position:absolute;

    left:50%;

    width:420px;

    bottom:197px;

    transform-origin:center bottom;
    transform:translateX(-50%);

    transition:transform .12s linear;
}




.robot-head,
.robot-body{
    pointer-events:none;
}
