:root {
  --bg: #090a11;
  --bg-2: #111424;
  --panel: rgba(17, 20, 36, 0.66);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f4f7ff;
  --text-soft: #aab4d0;
  --cyan: #59e1ff;
  --cyan-deep: #1bc7ff;
  --violet: #8c7bff;
  --pink: #ff6fd8;
  --green: #8dffbe;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --line: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(89, 225, 255, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 111, 216, 0.16), transparent 28%),
    radial-gradient(circle at bottom center, rgba(140, 123, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #08090f 0%, #0b0d16 48%, #090a11 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.bg-orb {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.55;
}

.orb-1 {
  top: 40px;
  left: 40px;
  background: rgba(89, 225, 255, 0.22);
}

.orb-2 {
  right: 40px;
  top: 160px;
  background: rgba(255, 111, 216, 0.18);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.14));
}

.glass-panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.02));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(89,225,255,0.25), rgba(140,123,255,0.35));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 12px 24px rgba(0,0,0,0.3);
  font-weight: 800;
  color: #fff;
}

.brand-title {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1;
}

.brand-subtitle {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-nav a {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  transition: 180ms ease;
}

.top-nav a:hover {
  color: var(--text);
  border-color: rgba(89,225,255,0.35);
  box-shadow: 0 0 0 1px rgba(89,225,255,0.12) inset;
}

.main-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-bottom: 28px;
}

.hero-panel,
.login-style-panel,
.note-card,
.collection-card,
.pinned-card {
  padding: 28px;
}

.status-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.08);
}

.status-pill.online {
  color: #08110d;
  background: linear-gradient(135deg, var(--green), #c6ffe0);
}

.status-pill.soft {
  color: var(--text-soft);
  background: rgba(255,255,255,0.04);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-text {
  margin: 18px 0 0;
  max-width: 760px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  color: #051018;
  background: linear-gradient(135deg, var(--cyan), #c4f7ff);
  box-shadow: 0 16px 32px rgba(27, 199, 255, 0.22);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.metric-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.metric-label,
.small-label,
.mini-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-card strong {
  font-size: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 700;
}

.panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(89,225,255,0.7);
}

.console-box {
  padding: 18px;
  border-radius: 18px;
  background: rgba(4, 6, 12, 0.72);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
}

.console-line {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.9;
  font-size: 14px;
}

.mini-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.mini-value {
  color: var(--text);
  line-height: 1.8;
}

.content-section {
  margin-top: 34px;
}

.section-heading h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 38px);
}

.notes-grid,
.collection-list,
.pinned-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.note-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.tag,
.date {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tag.cyan {
  background: rgba(89,225,255,0.14);
  color: var(--cyan);
}

.tag.pink {
  background: rgba(255,111,216,0.14);
  color: var(--pink);
}

.tag.violet {
  background: rgba(140,123,255,0.14);
  color: #b8aeff;
}

.date {
  color: var(--text-soft);
  background: rgba(255,255,255,0.04);
}

.note-card h3,
.collection-card h3,
.pinned-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.35;
}

.note-card p,
.collection-card p,
.pinned-card p,
.pinned-card li {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--cyan);
  font-weight: 700;
}

.pinned-card ul {
  margin: 0;
  padding-left: 18px;
}

.site-footer {
  margin-top: 44px;
  padding: 20px 0 8px;
  color: var(--text-soft);
  text-align: center;
}

@media (max-width: 1100px) {
  .main-layout,
  .notes-grid,
  .collection-list,
  .pinned-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 20px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
  }

  .top-nav a,
  .btn {
    width: 100%;
  }

  .hero-panel,
  .login-style-panel,
  .note-card,
  .collection-card,
  .pinned-card {
    padding: 20px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}