@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0b0f1a;
  --bg-surface: #111827;
  --bg-card: #161d2e;
  --bg-card-hover: #1c2640;
  --accent: #f97316;
  --accent-dim: rgba(249, 115, 22, 0.15);
  --accent-glow: rgba(249, 115, 22, 0.25);
  --text-primary: #f0f4ff;
  --text-secondary: #8899bb;
  --text-muted: #4a5a7a;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(249, 115, 22, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --sidebar-w: 232px;
  --header-h: 72px;
  --bottomnav-h: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; }

/* ===================== SIDEBAR (DESKTOP) ===================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  z-index: 200;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 24px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #0b0f1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.sidebar-logo .logo-text {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.sidebar-logo .logo-text span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.sidebar-nav a i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.sidebar-nav a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.sidebar-nav a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* ===================== MAIN WRAPPER ===================== */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===================== HEADER: SEARCH & ACCOUNT ===================== */
.page-header {
  position: sticky;
  top: 0;
  z-index: 150;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-search {
  position: relative;
  flex: 1;
  max-width: 480px;
}

.header-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.header-search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.header-spacer {
  flex: 1;
}

.header-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.header-account:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.header-account .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.header-account .account-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.header-account:hover .account-label {
  color: var(--text-primary);
}

/* ===================== PAGE CONTENT ===================== */
.page-content {
  flex: 1;
}

/* ===================== HOME / HERO ===================== */
.home {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 60px 32px;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(249,115,22,0.08) 0%, transparent 60%);
}

.home-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 60px;
}

.home-text {
  flex: 1;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-hover);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.home-text h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.home-text h1 span {
  color: var(--accent);
}

.home-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.home-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--accent);
  color: #0b0f1a;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.home-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.home-cta.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.home-cta.secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

.home-stats {
  display: flex;
  gap: 32px;
  margin-top: 44px;
}

.home-stats .stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.home-stats .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.home-img {
  flex: 0 0 380px;
  position: relative;
}

.home-img::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(135deg, var(--accent) 0%, transparent 55%);
  opacity: 0.35;
  z-index: -1;
}

.home-img .hero-visual {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: block;
}

/* ===================== COMING SOON ===================== */
.coming-soon {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
}

.coming-soon-inner {
  max-width: 420px;
}

.coming-soon-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border-radius: var(--radius-lg);
  background: var(--accent-dim);
  border: 1px solid var(--border-hover);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.coming-soon-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.coming-soon h2 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.coming-soon p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ===================== BOTTOM NAV (MOBILE) ===================== */
.bottom-nav {
  display: none;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
  .sidebar {
    display: none;
  }

  .main-wrapper {
    margin-left: 0;
    padding-bottom: var(--bottomnav-h);
  }

  .page-header {
    padding: 0 16px;
  }

  .header-account .account-label {
    display: none;
  }

  .home {
    padding: 40px 20px;
  }

  .home-container {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }

  .home-text p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .home-cta-group {
    justify-content: center;
  }

  .home-stats {
    justify-content: center;
  }

  .home-img {
    flex: 0 0 auto;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--bottomnav-h);
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 200;
  }

  .bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
  }

  .bottom-nav a i {
    font-size: 19px;
  }

  .bottom-nav a.active {
    color: var(--accent);
  }
}

@media (max-width: 480px) {
  .page-header {
    gap: 10px;
  }

  .home-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .home-cta {
    justify-content: center;
    width: 100%;
  }
}
