:root {
  --bg: #070b16;
  --bg-2: #121a2e;
  --panel: rgba(14, 21, 40, 0.82);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f8fbff;
  --muted: #a7b2d1;
  --accent: #f59e0b;
  --accent-2: #fb7185;
  --accent-3: #38bdf8;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background:#fff;
    
  margin-left: 200px;
}

button, input, textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 32px;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 22, 0.72);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.24);
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.topnav a:hover,
.topnav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.hero {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(18, 25, 43, 0.94), rgba(12, 17, 32, 0.86));
  box-shadow: var(--shadow);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #fde8c2;
  border: 1px solid rgba(245, 158, 11, 0.24);
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: 'Syne', sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
}

.hero p {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.component-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(14, 21, 40, 0.84);
  box-shadow: var(--shadow);
}

.card-preview {
  min-height: 360px;
  padding: 22px;
}

.board-preview {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(28, 22, 14, 0.98), rgba(20, 17, 22, 0.98));
}

.board-head,
.editor-toolbar,
.memo-top,
.memo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.notes-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fbbf24;
}

.board-head h2,
.editor-card input,
.memo-header h2 {
  margin: 0;
  font-family: 'Syne', sans-serif;
}

.board-badge,
.save-pill,
.due-chip,
.memo-tags span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.board-badge {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.sticky-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.sticky-note {
  padding: 16px;
  min-height: 160px;
  border-radius: 22px;
  color: #1c1c1c;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.sticky-note strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.sticky-note p {
  margin: 0;
  line-height: 1.55;
}

.yellow { background: linear-gradient(180deg, #fde68a, #fbbf24); }
.blue { background: linear-gradient(180deg, #bfdbfe, #60a5fa); }
.pink { background: linear-gradient(180deg, #fbcfe8, #fb7185); }

.tilt-one { transform: rotate(-4deg) translateY(10px); }
.tilt-two { transform: rotate(3deg); }
.tilt-three { transform: rotate(-2deg) translateY(14px); }

.editor-preview {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(16, 22, 40, 0.98), rgba(11, 15, 27, 0.98));
}

.editor-icons {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

.editor-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.editor-card input,
.editor-card textarea {
  width: 100%;
  border: none;
  outline: none;
  color: var(--text);
  background: transparent;
}

.editor-card input {
  margin-bottom: 12px;
  font-size: 24px;
}

.editor-card textarea {
  resize: none;
  min-height: 180px;
  line-height: 1.7;
  color: #dbe7ff;
}

.editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
}

.save-pill {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.18);
}

.memo-preview {
  background:
    radial-gradient(circle at bottom right, rgba(251, 113, 133, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(24, 18, 27, 0.98), rgba(17, 12, 20, 0.98));
}

.due-chip {
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.18);
}

.memo-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.memo-header span {
  color: var(--muted);
}

.memo-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.memo-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  color: #e8eefc;
}

.memo-card li i {
  color: #34d399;
  margin-top: 4px;
}

.memo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.memo-tags span {
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.16);
}

.card-body {
  padding: 22px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-family: 'Syne', sans-serif;
  font-size: 24px;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin: 18px 0 0;
}

.card-actions button {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.code-block {
  display: none;
  overflow: auto;
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 18px;
  background: #09101f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #d5ddf5;
  font-size: 13px;
  line-height: 1.7;
}

.code-block.open {
  display: block;
}


/* =========================================================
   COMMON CARD
========================================================= */

.creative-note{
  position:relative;
  overflow:hidden;
  border-radius:28px;
  padding:24px;
  min-height:280px;
  transition:0.4s ease;
  cursor:pointer;
  font-family:Inter,sans-serif;
  background: #38bdf8;
  color: #09101f;
  
}

.creative-note:hover{
  transform:translateY(-8px) rotate(-1deg);
}

.creative-note h2{
  font-size:1.5rem;
  margin:18px 0 14px;
  line-height:1.2;
  color: #8b5cf6;
}

.creative-note p{
  line-height:1.7;
  color:black;
}

/* =========================================================
   GLASS NOTE
========================================================= */

.glass-note{
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.15);
  backdrop-filter:blur(20px);
  color:white;
}

.note-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.note-top span{
  font-size:0.9rem;
  opacity:0.7;
}

.note-footer{
  margin-top:24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.note-footer button{
  border:none;
  background:white;
  color:#111827;
  padding:10px 18px;
  border-radius:14px;
  font-weight:600;
}

/* =========================================================
   POLAROID NOTE
========================================================= */

.polaroid-note{
  background:white;
  color:#111827;
  transform:rotate(-3deg);
}

.polaroid-image{
  height:170px;
  border-radius:18px;
  background:linear-gradient(135deg,#f472b6,#8b5cf6);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:4rem;
  margin-bottom:18px;
}

/* =========================================================
   STACKED NOTE
========================================================= */

.stacked-note{
  background:#fef3c7;
  color:#111827;
}

.stack-layer{
  position:absolute;
  width:100%;
  height:100%;
  background:#fde68a;
  top:12px;
  left:12px;
  border-radius:28px;
  z-index:0;
}

.stack-layer.second{
  top:22px;
  left:22px;
  background:#fcd34d;
}

.stack-content{
  position:relative;
  z-index:2;
}

.tag{
  background:#111827;
  color:white;
  padding:8px 14px;
  border-radius:999px;
  font-size:0.8rem;
}

.stacked-note ul{
  margin-top:20px;
  padding-left:20px;
}

.stacked-note li{
  margin-bottom:10px;
}

/* =========================================================
   NEON NOTE
========================================================= */

.neon-note{
  background:#111827;
  color:white;
  border:1px solid #38bdf8;
  box-shadow:0 0 30px rgba(56,189,248,0.3);
}

.neon-circle{
  position:absolute;
  width:180px;
  height:180px;
  background:#38bdf8;
  border-radius:50%;
  filter:blur(80px);
  top:-40px;
  right:-40px;
  opacity:0.5;
}

.mini-label{
  position:relative;
  z-index:2;
  background:#38bdf8;
  color:#111827;
  padding:8px 16px;
  border-radius:999px;
  font-weight:700;
}

.task-item{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:16px;
  background:rgba(255,255,255,0.06);
  padding:14px;
  border-radius:16px;
}

/* =========================================================
   TORN PAPER NOTE
========================================================= */

.torn-note{
  background:#faf5e4;
  color:#111827;
}

.torn-top{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:24px;
  background:
  radial-gradient(circle at 10px 20px,transparent 12px,#faf5e4 13px);
  background-size:24px 24px;
}

.paper-label{
  display:inline-block;
  margin-top:24px;
  background:#111827;
  color:white;
  padding:8px 14px;
  border-radius:12px;
}

/* =========================================================
   FLOATING NOTE
========================================================= */

.floating-note{
  background:linear-gradient(135deg,#6366f1,#8b5cf6);
  color:white;
}

.floating-icon{
  width:70px;
  height:70px;
  border-radius:22px;
  background:rgba(255,255,255,0.15);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.6rem;
  backdrop-filter:blur(12px);
}

.floating-note button{
  margin-top:24px;
  border:none;
  background:white;
  color:#4f46e5;
  padding:12px 20px;
  border-radius:16px;
  font-weight:700;
}
/* =========================================================
   COMPONENTS GRID
========================================================= */

.components-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(420px,1fr));
  gap:32px;
}

/* =========================================================
   COMPONENT CARD
========================================================= */

.component-card{
  overflow:hidden;
  border-radius:34px;
  background:#2f374b;
  border:1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 30px 60px rgba(0,0,0,0.28);
  transition:0.45s ease;
}

.component-card:hover{
  transform:translateY(-10px);
}

/* =========================================================
   PREVIEW
========================================================= */

.card-preview{
  padding:22px;
  min-height:420px;
  border-bottom:1px solid rgba(255,255,255,0.06);
}

/* =========================================================
   BODY
========================================================= */

.card-body{
  padding:28px;
}

.card-body h3{
  margin:0 0 12px;
  font-size:38px;
  color:#ff9b71;
  font-family:'Syne',sans-serif;
}

.card-body p{
  color:#d3ddf5;
  line-height:1.8;
  font-size:18px;
}

.card-actions{
  display:flex;
  gap:14px;
  margin-top:22px;
}

.card-actions button{
  height:52px;
  padding:0 22px;
  border:none;
  border-radius:16px;
  background:rgba(255,255,255,0.06);
  color:white;
  font-size:15px;
}

/* =========================================================
   CHAT NOTES
========================================================= */

.chat-preview{
  background:
    radial-gradient(circle at top left,
    rgba(99,102,241,0.18), transparent 30%),
    linear-gradient(145deg,#111827,#0b1120);
}

.chat-window{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.chat-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.notes-kicker{
  color:#c4b5fd;
  font-size:12px;
  letter-spacing:0.16em;
  text-transform:uppercase;
}

.online-dot{
  color:#4ade80;
  font-size:14px;
}

.chat-message{
  max-width:75%;
  padding:18px;
  border-radius:22px;
  color:white;
  line-height:1.7;
}

.chat-message.left{
  background:rgba(255,255,255,0.08);
}

.chat-message.right{
  align-self:flex-end;
  background:#6366f1;
}

/* =========================================================
   KANBAN BOARD
========================================================= */

.kanban-preview{
  background:
    radial-gradient(circle at bottom right,
    rgba(251,191,36,0.16), transparent 30%),
    linear-gradient(145deg,#221b12,#17120c);
}

.kanban-board{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.kanban-column{
  padding:18px;
  border-radius:24px;
  background:rgba(255,255,255,0.05);
}

.column-title{
  display:inline-flex;
  padding:8px 14px;
  border-radius:999px;
  font-size:13px;
  margin-bottom:18px;
}

.orange{
  background:rgba(251,146,60,0.14);
  color:#fdba74;
}

.blue{
  background:rgba(96,165,250,0.14);
  color:#93c5fd;
}

.green{
  background:rgba(74,222,128,0.14);
  color:#86efac;
}

.kanban-task{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,0.06);
  color:white;
  margin-bottom:14px;
  line-height:1.6;
}

/* =========================================================
   MUSIC CARD
========================================================= */

.music-preview{
  background:
    radial-gradient(circle at top right,
    rgba(236,72,153,0.16), transparent 30%),
    linear-gradient(145deg,#181124,#0f0a18);
}

.music-card{
  text-align:center;
  color:white;
}

.music-cover{
  width:160px;
  height:160px;
  margin:auto;
  border-radius:34px;
  background:
    linear-gradient(135deg,#ec4899,#8b5cf6);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:70px;
}

.music-card h2{
  margin:20px 0 10px;
  font-size:42px;
  font-family:'Syne',sans-serif;
}

.music-card p{
  color:#d5d8ef;
  line-height:1.7;
}

.music-progress{
  height:10px;
  margin-top:24px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
}

.music-bar{
  width:65%;
  height:100%;
  border-radius:999px;
  background:
    linear-gradient(90deg,#ec4899,#8b5cf6);
}

/* =========================================================
   TIMELINE
========================================================= */

.timeline-preview{
  background:
    radial-gradient(circle at top left,
    rgba(34,197,94,0.16), transparent 30%),
    linear-gradient(145deg,#111827,#071018);
}

.timeline-card{
  position:relative;
  padding-left:34px;
}

.timeline-line{
  position:absolute;
  top:0;
  left:10px;
  width:3px;
  height:100%;
  background:rgba(255,255,255,0.12);
}

.timeline-item{
  position:relative;
  display:flex;
  gap:18px;
  margin-bottom:38px;
  color:white;
}

.timeline-dot{
  position:absolute;
  left:-28px;
  top:6px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 18px rgba(34,197,94,0.8);
}

.timeline-item strong{
  display:block;
  margin-bottom:6px;
  font-size:18px;
}

.timeline-item p{
  margin:0;
  color:#d1d9ee;
  line-height:1.6;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:768px){

  .creative-notes-grid{
    padding:20px;
  }

}
@media (max-width: 1100px) {
  .components-grid {
    grid-template-columns: 1fr;
  }

  .card-preview {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .hero,
  .card-body {
    padding: 20px;
  }

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

  .card-actions {
    flex-direction: column;
  }

  .board-head,
  .editor-toolbar,
  .memo-top,
  .memo-header,
  .editor-footer {
    flex-direction: column;
    align-items: stretch;
  }
}
