:root {
  --duration: 10s;
  --bg: #eef3f9;
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #1f5eff;
  --violet: #5b45f6;
  --green: #10a873;
  --orange: #f59e0b;
  --red: #ef4444;
  --surface: #ffffff;
  --soft: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(31, 94, 255, .16), transparent 28%),
    linear-gradient(135deg, #f7fbff 0%, #e9eef7 54%, #f8fafc 100%);
  overflow: hidden;
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 28px);
}

.app-shell {
  position: relative;
  width: min(1640px, 96vw);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}

.intro-screen {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(31, 94, 255, .20), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #e9f1fb 52%, #ffffff 100%);
  animation: introScreen var(--duration) cubic-bezier(.2, .7, .2, 1) infinite;
  pointer-events: none;
  visibility: hidden;
}

.intro-image {
  position: relative;
  width: min(760px, 72%);
  aspect-ratio: 1.62;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .38);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(31, 94, 255, .08) 1px, transparent 1px),
    linear-gradient(rgba(31, 94, 255, .08) 1px, transparent 1px),
    linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(239, 246, 255, .82));
  background-size: 42px 42px, 42px 42px, auto;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .20);
  animation: introImage var(--duration) cubic-bezier(.2, .7, .2, 1) infinite;
}

.intro-image:before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(31, 94, 255, .20);
  border-radius: 50%;
}

.intro-scan {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 42%;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(31, 94, 255, .85), transparent);
  animation: radarSweep var(--duration) linear infinite;
}

.intro-ring {
  position: absolute;
  border: 1px solid rgba(31, 94, 255, .28);
  border-radius: 50%;
}

.intro-ring-one {
  width: 260px;
  height: 260px;
}

.intro-ring-two {
  width: 420px;
  height: 420px;
}

.intro-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(31, 94, 255, .10);
}

.intro-dot-one {
  left: 21%;
  top: 31%;
}

.intro-dot-two {
  right: 22%;
  bottom: 29%;
  background: var(--green);
}

.intro-doc {
  position: absolute;
  width: 92px;
  height: 118px;
  border: 1px solid rgba(148, 163, 184, .45);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .10);
}

.intro-doc:before,
.intro-doc:after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 5px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: 0 18px 0 #dbe3ee, 0 36px 0 #e2e8f0;
}

.intro-doc:before {
  top: 24px;
}

.intro-doc:after {
  bottom: 21px;
  width: 36px;
  right: auto;
  background: var(--blue);
  box-shadow: none;
}

.intro-doc-one {
  left: 10%;
  bottom: 15%;
  transform: rotate(-8deg);
}

.intro-doc-two {
  right: 11%;
  top: 13%;
  transform: rotate(7deg);
}

.intro-title {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 28px;
}

.intro-title p,
.intro-title b {
  display: inline-flex;
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.intro-title h1 {
  margin: 16px 0 18px;
  font-size: clamp(44px, 5.2vw, 82px);
  line-height: .95;
  letter-spacing: 0;
}

.topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
}

.brand {
  font-size: clamp(18px, 1.55vw, 28px);
  font-weight: 800;
  letter-spacing: 0;
}

.account {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.account strong,
.account span {
  display: block;
  text-align: right;
}

.account strong {
  color: var(--ink);
  font-size: 14px;
}

.account b {
  color: #047857;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  background: #dff9eb;
  border: 1px solid #b8efd5;
  border-radius: 999px;
  padding: 7px 12px;
}

.account i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, .04)),
    url("./Asset/augustin-fresnel.jpg") center 22% / cover no-repeat;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 2px #fff;
}

.tabs {
  position: relative;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.tab {
  position: relative;
  z-index: 2;
  height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  color: #6b7c93;
  font-weight: 760;
  font-size: 15px;
  white-space: nowrap;
}

.tab-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  color: #64748b;
  background: #edf2f8;
  font-size: 10px;
  font-weight: 900;
}

.tab-news {
  animation: newsTab var(--duration) cubic-bezier(.2, .7, .2, 1) infinite;
}

.tab-library {
  animation: libraryTab var(--duration) cubic-bezier(.2, .7, .2, 1) infinite;
}

.tab-docs {
  animation: docsTab var(--duration) cubic-bezier(.2, .7, .2, 1) infinite;
}

.tab-indicator {
  position: absolute;
  left: 33px;
  bottom: 0;
  z-index: 1;
  width: 104px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--blue);
  animation: tabSlide var(--duration) cubic-bezier(.2, .7, .2, 1) infinite;
}

.workspace {
  position: relative;
  height: calc(100% - 128px);
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0%, transparent calc(100% - 84px), rgba(31, 94, 255, .04) calc(100% - 84px)),
    #f8fafc;
}

.panel-track {
  height: 100%;
  display: flex;
  width: 300%;
  margin-left: 0;
  animation: panelTrack var(--duration) cubic-bezier(.2, .7, .2, 1) infinite;
}

.panel {
  position: relative;
  flex: 0 0 33.333333%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  padding: 42px 54px 58px;
  pointer-events: none;
}

.panel-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 0 0 18px;
}

.scroll-group {
  will-change: transform;
}

.panel-head p {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.panel-head h1 {
  margin: 0;
  font-size: clamp(25px, 2.15vw, 42px);
  line-height: 1;
  letter-spacing: 0;
}

.panel-head span {
  color: var(--blue);
  background: #e7efff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 850;
}

.feed-grid,
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.news-scroll {
  animation: newsScroll var(--duration) cubic-bezier(.2, .7, .2, 1) infinite;
}

.library-scroll {
  animation: libraryScroll var(--duration) cubic-bezier(.2, .7, .2, 1) infinite;
}

.brief-card,
.library-card {
  min-height: 238px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
}

.brief-card.wide {
  min-height: 300px;
}

.meta,
.chips,
.author {
  display: flex;
  align-items: center;
}

.meta {
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.meta b {
  color: var(--blue);
  background: #e7efff;
  border-radius: 6px;
  padding: 6px 11px;
  font-size: 10px;
}

.meta .flag {
  color: #be123c;
  background: #ffe4e8;
}

.meta .urgent {
  color: #dc2626;
  background: #fee2e2;
}

h2,
h3,
p {
  letter-spacing: 0;
}

.brief-card h2,
.library-card h2 {
  margin: 24px 0 12px;
  font-size: clamp(18px, 1.24vw, 25px);
  line-height: 1.14;
}

.brief-card p,
.library-card p {
  margin: 0;
  color: #334155;
  font-size: 15px;
  line-height: 1.68;
}

.chips {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.chips span {
  min-width: 92px;
  text-align: center;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #dfe4ff;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.chips span:nth-child(2) {
  color: #c2410c;
  background: #fff7df;
  border-color: #fde7a7;
}

.chips span:nth-child(3) {
  color: #047857;
  background: #dcfce7;
  border-color: #a7f3d0;
}

.library-card {
  min-height: 400px;
  transform: translateY(8px);
}

.author {
  display: inline-flex;
  color: #4338ca;
  background: #eef2ff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 780;
}

.ai-summary {
  position: relative;
  margin-top: 24px;
  padding: 22px 22px 24px;
  border: 1px solid #e7edf6;
  border-radius: 13px;
  background: linear-gradient(180deg, #fbfdff, #f8fafc);
  overflow: hidden;
}

.ai-summary:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--blue), #75a7ff);
}

.ai-summary b {
  display: inline-flex;
  margin-bottom: 13px;
  color: var(--blue);
  border: 1px solid #dbe8ff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}

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

.documents-scroll {
  animation: documentsScroll var(--duration) cubic-bezier(.2, .7, .2, 1) infinite;
}

.document-card {
  min-height: 308px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
}

.doc-status,
.doc-meta,
.doc-actions {
  display: flex;
  align-items: center;
}

.doc-status {
  gap: 10px;
  margin-bottom: 20px;
}

.doc-status span,
.doc-status b,
.doc-meta span {
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 950;
}

.doc-status span {
  color: #047857;
  background: #dff9eb;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.doc-status b {
  color: #334155;
  background: #f1f5f9;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.doc-status i {
  margin-left: auto;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: #edf4ff;
  position: relative;
}

.doc-status i:before,
.doc-status i:after {
  content: "";
  position: absolute;
  left: 18px;
  top: 13px;
  width: 15px;
  height: 21px;
  border: 2px solid var(--blue);
  border-radius: 3px;
}

.doc-status i:after {
  left: 22px;
  top: 18px;
  width: 9px;
  height: 2px;
  border: 0;
  border-top: 2px solid var(--blue);
  box-shadow: 0 5px 0 var(--blue), 0 10px 0 var(--blue);
}

.document-card h2 {
  margin: 0 0 22px;
  min-height: 68px;
  font-size: clamp(18px, 1.35vw, 27px);
  line-height: 1.2;
}

.doc-meta {
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.doc-meta span {
  color: #64748b;
  background: #f8fafc;
}

.document-card p {
  min-height: 84px;
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
}

.doc-actions {
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}

.doc-actions a {
  color: var(--blue);
  font-size: 16px;
  font-weight: 850;
}

.doc-actions button {
  min-width: 142px;
  height: 42px;
  color: #be123c;
  background: #fff;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cursor {
  position: absolute;
  z-index: 20;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  transform: translate(705px, 552px);
  animation: cursorMove var(--duration) cubic-bezier(.2, .7, .2, 1) infinite;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .35));
}

.cursor:before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 17px solid #111827;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  transform: rotate(-32deg);
}

.cursor span {
  position: absolute;
  left: 13px;
  top: 15px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid #fff;
}

.click {
  position: absolute;
  z-index: 19;
  width: 18px;
  height: 18px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.click-library {
  left: 278px;
  top: 101px;
  animation: clickLibrary var(--duration) ease-out infinite;
}

.click-docs {
  left: 720px;
  top: 101px;
  animation: clickDocs var(--duration) ease-out infinite;
}

.scroll-hint {
  position: absolute;
  right: 30px;
  top: 55%;
  z-index: 15;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #111827;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .3);
  opacity: 0;
  animation: scrollHint var(--duration) linear infinite;
}

.scroll-hint:before,
.scroll-hint:after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
}

.scroll-hint:before {
  top: 12px;
  width: 16px;
  height: 22px;
  border: 2px solid #fff;
}

.scroll-hint:after {
  top: 17px;
  width: 4px;
  height: 7px;
  background: #fff;
  animation: wheel var(--duration) linear infinite;
}

.hero-preview {
  background:
    radial-gradient(circle at 50% 44%, rgba(31, 94, 255, .18), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #e9f1fb 52%, #ffffff 100%);
}

.hero-preview .stage {
  min-height: 100vh;
  padding: 0;
}

.hero-preview .app-shell {
  width: min(1220px, 94vw);
  aspect-ratio: 1.76;
  border-radius: 24px;
  border-color: rgba(148, 163, 184, .22);
  box-shadow: none;
}

.hero-preview .intro-screen {
  opacity: 1;
  visibility: visible;
  transform: none;
  animation: none;
}

.hero-preview .intro-image {
  opacity: 1;
  width: min(800px, 74%);
  transform: none;
  animation: heroPreviewFloat 7s ease-in-out infinite;
}

.hero-preview .intro-scan {
  opacity: 1;
  animation: heroPreviewSweep 6s linear infinite;
}

@keyframes heroPreviewFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.01); }
}

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

@keyframes newsTab {
  0%, 44% { color: var(--blue); }
  49%, 100% { color: #6b7c93; }
}

@keyframes libraryTab {
  0%, 45% { color: #6b7c93; }
  50%, 79% { color: var(--blue); }
  84%, 100% { color: #6b7c93; }
}

@keyframes docsTab {
  0%, 80% { color: #6b7c93; }
  85%, 100% { color: var(--blue); }
}

@keyframes tabSlide {
  0%, 45% { transform: translateX(0); width: 104px; }
  50%, 79% { transform: translateX(122px); width: 128px; }
  85%, 100% { transform: translateX(496px); width: 122px; }
}

@keyframes panelTrack {
  0%, 45% { margin-left: 0; }
  50%, 79% { margin-left: -100%; }
  85%, 100% { margin-left: -200%; }
}

@keyframes newsScroll {
  0%, 24% { transform: translateY(0); }
  39%, 45% { transform: translateY(-285px); }
  50%, 100% { transform: translateY(-285px); }
}

@keyframes libraryScroll {
  0%, 51% { transform: translateY(0); }
  64%, 72% { transform: translateY(-290px); }
  77%, 83% { transform: translateY(-530px); }
  88%, 100% { transform: translateY(-530px); }
}

@keyframes documentsScroll {
  0%, 93% { transform: translateY(0); }
  98%, 100% { transform: translateY(-185px); }
}

@keyframes cursorMove {
  0%, 21% { transform: translate(1060px, 585px); opacity: 0; }
  24%, 36% { transform: translate(1055px, 585px); opacity: 1; }
  44% { transform: translate(305px, 99px); opacity: 1; }
  48% { transform: translate(305px, 99px) scale(.88); opacity: 1; }
  55%, 70% { transform: translate(1335px, 565px); opacity: 1; }
  80% { transform: translate(746px, 99px); opacity: 1; }
  84% { transform: translate(746px, 99px) scale(.88); opacity: 1; }
  94%, 100% { transform: translate(1160px, 585px); opacity: 1; }
}

@keyframes clickLibrary {
  0%, 43% { opacity: 0; transform: scale(.5); }
  46% { opacity: .65; transform: scale(1); }
  51%, 100% { opacity: 0; transform: scale(4.2); }
}

@keyframes clickDocs {
  0%, 79% { opacity: 0; transform: scale(.5); }
  82% { opacity: .65; transform: scale(1); }
  89%, 100% { opacity: 0; transform: scale(4.2); }
}

@keyframes scrollHint {
  0%, 23% { opacity: 0; transform: translateY(18px); }
  27%, 41% { opacity: 1; transform: translateY(0); }
  47%, 53% { opacity: 0; transform: translateY(-10px); }
  57%, 74% { opacity: 1; transform: translateY(0); }
  81%, 100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes wheel {
  0%, 23% { transform: translate(-50%, 0); opacity: .2; }
  27%, 41% { transform: translate(-50%, 7px); opacity: 1; }
  47%, 53% { transform: translate(-50%, 0); opacity: .2; }
  57%, 74% { transform: translate(-50%, 7px); opacity: 1; }
  81%, 100% { transform: translate(-50%, 0); opacity: .2; }
}

@keyframes introScreen {
  0%, 15% { opacity: 1; transform: scale(1); visibility: visible; }
  21%, 100% { opacity: 0; transform: scale(1.025); visibility: hidden; }
}

@keyframes introImage {
  0% { opacity: 0; transform: translateY(20px) scale(.96); }
  4%, 15% { opacity: 1; transform: translateY(0) scale(1); }
  21%, 100% { opacity: 0; transform: translateY(-18px) scale(1.02); }
}

@keyframes radarSweep {
  0% { transform: rotate(-34deg); opacity: 0; }
  4%, 16% { opacity: 1; }
  21%, 100% { transform: rotate(330deg); opacity: 0; }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .stage {
    min-height: auto;
    padding: 0;
  }

  .app-shell {
    width: 100vw;
    min-height: 100svh;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
  }

  .topbar {
    height: 64px;
    padding: 0 18px;
  }

  .account span,
  .account b {
    display: none;
  }

  .tabs {
    overflow: hidden;
    padding: 0 14px;
    gap: 0;
  }

  .tab {
    font-size: 12px;
    padding: 0 9px;
  }

  .tab-icon {
    display: none;
  }

  .tab-indicator {
    left: 14px;
  }

  .workspace {
    height: calc(100svh - 122px);
  }

  .panel-track {
    width: 300%;
  }

  .panel {
    padding: 28px 18px 42px;
  }

  .feed-grid,
  .library-grid,
  .documents-grid {
    grid-template-columns: 1fr;
  }

  .feed-grid,
  .library-grid,
  .documents-grid {
    gap: 16px;
  }

  .cursor,
  .click,
  .scroll-hint {
    display: none;
  }

  @keyframes tabSlide {
    0%, 45% { transform: translateX(0); width: 70px; }
    50%, 79% { transform: translateX(82px); width: 96px; }
    85%, 100% { transform: translateX(282px); width: 88px; }
  }

  @keyframes newsScroll {
    0%, 24% { transform: translateY(0); }
    39%, 45% { transform: translateY(-250px); }
    50%, 100% { transform: translateY(-250px); }
  }

  @keyframes libraryScroll {
    0%, 51% { transform: translateY(0); }
    64%, 72% { transform: translateY(-340px); }
    77%, 83% { transform: translateY(-720px); }
    88%, 100% { transform: translateY(-720px); }
  }

  @keyframes documentsScroll {
    0%, 93% { transform: translateY(0); }
    98%, 100% { transform: translateY(-315px); }
  }
}

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

  .panel-track {
    margin-left: -100%;
  }
}
