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

:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-light: #fff7ed;
  --navy: #111827;
  --text: #1f2937;
  --muted: #6b7280;
  --background: #f8fafc;
  --border: #e5e7eb;
  --white: #ffffff;
  --sidebar-width: 270px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--navy);
  color: #fff;
  padding: 34px 20px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.brand {
  display: block;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 45px;
}

.brand span {
  color: var(--orange);
}

.sidebar-label {
  color: #9ca3af;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 12px 20px;
}

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

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  padding: 13px 14px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s ease;
}

.sidebar nav a:hover {
  color: white;
  background: #1f2937;
}

.sidebar nav a.active {
  color: white;
  background: rgba(249, 115, 22, 0.18);
  border-left: 3px solid var(--orange);
}

/* MAIN CONTENT */

.main-content {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
}

.topbar {
  height: 78px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}

.topbar a {
  color: var(--orange-dark);
  font-weight: 700;
}

.topbar a:hover {
  text-decoration: underline;
}

/* HERO */

.hero {
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(249, 115, 22, 0.12),
      transparent 35%
    ),
    linear-gradient(145deg, #ffffff, #fffaf5);

  padding: 85px 48px 75px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  color: var(--orange-dark);
  background: var(--orange-light);
  border: 1px solid #fed7aa;
  padding: 9px 14px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.hero h1 {
  max-width: 750px;
  margin: 27px 0 18px;
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.12;
}

.hero h1 span {
  color: var(--orange);
}

.hero p {
  max-width: 580px;
  margin-bottom: 35px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero input {
  width: 100%;
  max-width: 620px;
  height: 62px;
  padding: 0 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  font-size: 14px;
  outline: none;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
  transition: 0.2s;
}

.hero input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

/* TOPICS */

.topics {
  padding: 60px 48px 90px;
  max-width: 1400px;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.topic-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  min-height: 230px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: 0.25s ease;
}

.topic-card:hover {
  transform: translateY(-5px);
  border-color: #fdba74;
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.07);
}

.topic-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 23px;
  border-radius: 13px;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-size: 23px;
}

.topic-card h3 {
  margin: 0 0 11px;
  font-size: 16px;
  font-weight: 800;
}

.topic-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.topic-card .arrow {
  margin-top: auto;
  padding-top: 20px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
}

/* ARTICLE PAGES */

.article {
  max-width: 950px;
  padding: 60px 48px 100px;
}

.article h1 {
  font-size: 38px;
  letter-spacing: -1.5px;
}

.article h2 {
  margin-top: 45px;
  font-size: 24px;
}

.article p,
.article li {
  line-height: 1.9;
  color: #4b5563;
}

.article img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

/* FOOTER */

footer {
  padding: 25px 48px;
  border-top: 1px solid var(--border);
  color: #9ca3af;
  font-size: 12px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .app-layout {
    display: block;
  }

  .sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
    padding: 20px;
  }

  .brand {
    margin-bottom: 16px;
  }

  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .sidebar nav a {
    white-space: nowrap;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  .topbar {
    padding: 0 22px;
    height: 65px;
  }

  .hero {
    padding: 55px 24px;
  }

  .hero h1 {
    letter-spacing: -1.5px;
  }

  .topics {
    padding: 45px 24px 65px;
  }

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

  .topic-card {
    min-height: 200px;
  }

  .article {
    padding: 35px 24px 70px;
  }

  footer {
    padding: 25px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ==========================================
   SVG ICON SYSTEM
   ========================================== */

.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  line-height: 1;
}

.svg-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Sidebar navigation */

#navigation a {
  display: flex;
  align-items: center;
  gap: 12px;
}

#navigation a .svg-icon {
  opacity: 0.85;
}

#navigation a:hover .svg-icon,
#navigation a.active .svg-icon {
  opacity: 1;
}

/* Category cards */

.topic-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.topic-icon .svg-icon {
  width: 28px;
  height: 28px;
}


/* ==========================================
   HELP ARTICLE SCREENSHOTS
   ========================================== */

.article figure.screenshot {
  margin: 32px 0;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
}

.article figure.screenshot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.article figure.screenshot.mobile img {
  max-width: 390px;
}

.article figure.screenshot figcaption {
  margin-top: 16px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .article figure.screenshot {
    padding: 12px;
    margin: 24px 0;
    border-radius: 16px;
  }

  .article figure.screenshot.mobile img {
    max-width: 100%;
  }
}

