/* ============================================
   StackMap — Redesigned Stylesheet
   tinkerer.club feel × claw.toggle.pro hero
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Backgrounds — warmer dark, not blue-tinted */
  --color-bg:           #0c0c0c;
  --color-bg-card:      #141414;
  --color-bg-elevated:  #1a1a1a;
  --color-bg-hover:     #1f1f1f;

  /* Borders */
  --color-border:       #222222;
  --color-border-mid:   #2e2e2e;
  --color-border-light: #3a3a3a;

  /* Text */
  --color-text:         #f2f2f2;
  --color-text-muted:   #888888;
  --color-text-faint:   #444444;

  /* Accents */
  --color-accent:       #7c6af7;           /* purple — primary */
  --color-accent-glow:  rgba(124,106,247,0.12);
  --color-accent-dim:   rgba(124,106,247,0.06);
  --color-green:        #00d084;           /* live / success indicator */
  --color-green-glow:   rgba(0,208,132,0.15);
  --color-danger:       #f84343;

  /* Gradient */
  --gradient-accent: linear-gradient(135deg, #7c6af7 0%, #a78bfa 100%);
  --gradient-subtle: linear-gradient(135deg, #1a1a1a 0%, #111111 100%);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs:   0.6875rem;
  --text-sm:   0.8125rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Radius */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.875rem;
  --radius-xl:   1.25rem;
  --radius-2xl:  1.75rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.5);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.7);

  /* Transitions */
  --t-fast: 120ms ease;
  --t-base: 220ms ease;
  --t-slow: 380ms ease;

  /* Layout */
  --container-max: 1200px;
  --nav-height:    60px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

p { color: var(--color-text-muted); line-height: 1.75; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section      { padding: var(--space-20) 0; }
.section--lg  { padding: var(--space-32) 0; }
.section--sm  { padding: var(--space-12) 0; }

.grid   { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { flex-direction: column; }
.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(12,12,12,0.85);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  transition: opacity var(--t-fast);
}
.nav__logo:hover { opacity: 0.75; }

.nav__logo-mark {
  width: 28px;
  height: 28px;
  background: var(--gradient-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: white;
  letter-spacing: 0;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover    { color: var(--color-text); background: var(--color-bg-elevated); }
.nav__link.is-active { color: var(--color-text); }

.nav__actions { display: flex; align-items: center; gap: var(--space-3); }

.nav__cta {
  padding: 7px var(--space-4);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-mid);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.nav__cta:hover { border-color: var(--color-border-light); background: var(--color-bg-hover); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--space-2);
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text-muted);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

/* ============================================
   HERO  — claw.toggle.pro style
   Two-column: left text / right live widget
   ============================================ */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  display: flex;
  align-items: stretch;
}

/* Dot-grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #2a2a2a 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 100%);
}

/* Ambient glow top-left */
.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(124,106,247,0.09) 0%, transparent 65%);
  pointer-events: none;
}

/* Inner grid wrapper — sits inside .container for max-width + padding */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  width: 100%;
  min-height: calc(100vh - var(--nav-height));
  position: relative;
  z-index: 2;
}

.hero__left {
  padding: var(--space-20) 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 12px 5px 8px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-green);
  animation: blink 2s ease-in-out infinite;
}

.hero__headline {
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.hero__headline em {
  font-style: italic;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtext {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-border);
}

.hero__proof-item {}

.hero__proof-number {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero__proof-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ---- Right: Live widget ---- */
.hero__right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-20) 0;
}

.hero__widget {
  width: 100%;
  max-width: 420px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(124,106,247,0.07);
}

.hero__widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}

.hero__widget-dots {
  display: flex;
  gap: 6px;
}

.hero__widget-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.hero__widget-dot:nth-child(1) { background: #ff5f57; }
.hero__widget-dot:nth-child(2) { background: #febc2e; }
.hero__widget-dot:nth-child(3) { background: #28c840; }

.hero__widget-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.hero__widget-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  color: var(--color-green);
  font-weight: 600;
}

.hero__widget-status-dot {
  width: 5px;
  height: 5px;
  background: var(--color-green);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

.hero__widget-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Individual tool rows in the widget */
.hero__tool-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--t-fast), transform var(--t-fast);
  animation: slideIn 0.4s ease both;
}

.hero__tool-row:hover {
  border-color: var(--color-border-light);
  transform: translateX(3px);
}

.hero__tool-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid var(--color-border-mid);
}

.hero__tool-info { flex: 1; min-width: 0; }

.hero__tool-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__tool-cat {
  font-size: 10px;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-top: 1px;
}

.hero__tool-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.hero__tool-badge--new {
  background: var(--color-green-glow);
  color: var(--color-green);
  border: 1px solid rgba(0,208,132,0.25);
}
.hero__tool-badge--hot {
  background: var(--color-accent-glow);
  color: var(--color-accent);
  border: 1px solid rgba(124,106,247,0.25);
}

.hero__widget-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border);
}

.hero__widget-count {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.hero__widget-count strong {
  color: var(--color-text-muted);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 2px 16px rgba(124,106,247,0.28);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(124,106,247,0.38);
}

.btn--secondary {
  background: var(--color-bg-elevated);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-mid);
}
.btn--secondary:hover {
  color: var(--color-text);
  border-color: var(--color-border-light);
  background: var(--color-bg-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn--ghost:hover {
  color: var(--color-text);
  border-color: var(--color-border-mid);
}

.btn--sm  { padding: 7px var(--space-4); font-size: var(--text-xs); }
.btn--lg  { padding: 13px var(--space-8); font-size: var(--text-base); }

/* ============================================
   SECTION LABELS / HEADERS
   ============================================ */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-header              { margin-bottom: var(--space-10); }
.section-header--center      { text-align: center; }
.section-header h2           { color: var(--color-text); margin-bottom: var(--space-3); font-size: clamp(1.6rem, 3vw, 2.25rem); }
.section-header p            { font-size: var(--text-lg); max-width: 560px; }
.section-header--center p    { margin: 0 auto; }

/* ============================================
   LISTING CARDS  — tinkerer.club inspired
   Clean, editorial, generous padding
   ============================================ */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: border-color var(--t-base), box-shadow var(--t-base);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--color-border-mid);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.card__logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-muted);
}
.card__logo img { width: 100%; height: 100%; object-fit: cover; }

.card__category {
  display: inline-block;
  padding: 3px 9px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
}

.card__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

.card__description {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.card__tags { display: flex; gap: var(--space-1); flex-wrap: wrap; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-accent-dim);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color var(--t-fast), gap var(--t-fast);
}
.card__link:hover { color: var(--color-text); gap: var(--space-2); }

.card--featured {
  border-color: rgba(124,106,247,0.22);
  background: linear-gradient(160deg, rgba(124,106,247,0.04) 0%, var(--color-bg-card) 60%);
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-3);
}

.category-chip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.category-chip:hover {
  border-color: var(--color-border-mid);
  background: var(--color-bg-elevated);
}

.category-chip__icon { font-size: 18px; line-height: 1; }

.category-chip__info {}
.category-chip__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color var(--t-fast);
  display: block;
}
.category-chip:hover .category-chip__name { color: var(--color-text); }

.category-chip__count {
  font-size: 10px;
  color: var(--color-text-faint);
  font-weight: 500;
  margin-top: 1px;
  display: block;
}

/* ============================================
   FILTER BAR + SEARCH
   ============================================ */
.filter-bar {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-4) 0 var(--space-6);
}

.filter-btn {
  padding: 6px 14px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: inherit;
  letter-spacing: 0.02em;
}
.filter-btn:hover { border-color: var(--color-border-mid); color: var(--color-text); }
.filter-btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.search-bar          { position: relative; margin-bottom: var(--space-4); }
.search-bar__icon    {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-faint);
  pointer-events: none;
  display: flex;
}

.search-bar input {
  width: 100%;
  padding: 13px var(--space-4) 13px var(--space-12);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-size: var(--text-base);
  font-family: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search-bar input::placeholder { color: var(--color-text-faint); }
.search-bar input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(124,106,247,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter__label   { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-3); }
.newsletter__heading { font-size: clamp(1.6rem, 2.5vw, 2.25rem); color: var(--color-text); margin-bottom: var(--space-4); letter-spacing: -0.025em; }
.newsletter__subtext { color: var(--color-text-muted); font-size: var(--text-base); max-width: 420px; margin: 0 auto var(--space-8); }

.newsletter__form {
  display: flex;
  gap: var(--space-3);
  max-width: 440px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  padding: 11px var(--space-4);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-family: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.newsletter__input::placeholder { color: var(--color-text-faint); }
.newsletter__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.newsletter__note { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-4); }

/* ============================================
   FORMS
   ============================================ */
.form { display: flex; flex-direction: column; gap: var(--space-5); }
.form__group { display: flex; flex-direction: column; gap: var(--space-2); }
.form__label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.form__label span { color: var(--color-accent); margin-left: 2px; }

.form__input,
.form__textarea,
.form__select {
  padding: 11px var(--space-4);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-family: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.form__input::placeholder, .form__textarea::placeholder { color: var(--color-text-faint); }
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}
.form__textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23444' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}
.form__select option { background: var(--color-bg-elevated); }
.form__hint   { font-size: var(--text-xs); color: var(--color-text-faint); }
.form__row    { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form__submit { display: flex; justify-content: flex-end; padding-top: var(--space-2); }

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-14);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 100% at 0% 50%, rgba(124,106,247,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-header__content { position: relative; max-width: 640px; }
.page-header h1 { color: var(--color-text); margin-bottom: var(--space-4); font-size: clamp(1.8rem, 4vw, 3rem); }
.page-header p  { font-size: var(--text-lg); }

/* ============================================
   POST / BLOG CARDS
   ============================================ */
.post-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.post-card:hover {
  border-color: var(--color-border-mid);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}

.post-card__cover {
  aspect-ratio: 16/9;
  background: var(--color-bg-elevated);
  overflow: hidden;
}
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.post-card:hover .post-card__cover img { transform: scale(1.03); }

.post-card__body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }

.post-card__meta { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.post-card__category { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.post-card__date     { font-size: var(--text-xs); color: var(--color-text-faint); }

.post-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: var(--space-3);
  transition: color var(--t-fast);
  letter-spacing: -0.01em;
}
.post-card:hover .post-card__title { color: var(--color-accent); }

.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.post-card__author  { font-size: var(--text-xs); color: var(--color-text-faint); font-weight: 500; }
.post-card__readmore { font-size: var(--text-xs); font-weight: 700; color: var(--color-accent); display: flex; align-items: center; gap: 3px; letter-spacing: 0.02em; text-transform: uppercase; }

/* ============================================
   ARTICLE (blog post page)
   ============================================ */
.article { max-width: 680px; margin: 0 auto; }

.article__cover { border-radius: var(--radius-xl); overflow: hidden; margin-bottom: var(--space-10); aspect-ratio: 16/9; background: var(--color-bg-elevated); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }

.article__meta { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); flex-wrap: wrap; }
.article__category { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.article__date, .article__author { font-size: var(--text-xs); color: var(--color-text-faint); }

.article__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--color-text);
  margin-bottom: var(--space-5);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.article__excerpt {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.article__body h2 { color: var(--color-text); margin: var(--space-10) 0 var(--space-4); font-size: var(--text-2xl); }
.article__body h3 { color: var(--color-text); margin: var(--space-8) 0 var(--space-3); font-size: var(--text-xl); }
.article__body p  { color: var(--color-text-muted); margin-bottom: var(--space-5); line-height: 1.8; }
.article__body ul, .article__body ol { color: var(--color-text-muted); margin-bottom: var(--space-5); padding-left: var(--space-6); }
.article__body li { margin-bottom: var(--space-2); list-style: disc; line-height: 1.65; }
.article__body blockquote {
  border-left: 2px solid var(--color-accent);
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg-elevated);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--color-text-muted);
}
.article__body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--color-bg-elevated);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--color-accent);
}
.article__body pre {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  overflow-x: auto;
  margin: var(--space-8) 0;
}
.article__body pre code { background: none; padding: 0; color: var(--color-text); }

/* ============================================
   ABOUT
   ============================================ */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
  margin: var(--space-10) 0;
}
.about-stat {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.about-stat__number {
  font-size: var(--text-4xl);
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  letter-spacing: -0.04em;
}
.about-stat__label { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-2); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer__brand { display: flex; flex-direction: column; gap: var(--space-4); }

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.footer__logo-icon {
  width: 26px; height: 26px;
  background: var(--gradient-accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: white;
}
.footer__tagline { font-size: var(--text-sm); color: var(--color-text-faint); line-height: 1.65; max-width: 240px; }

.footer__col-title { font-size: var(--text-xs); font-weight: 700; color: var(--color-text-muted); margin-bottom: var(--space-4); text-transform: uppercase; letter-spacing: 0.1em; }
.footer__links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__link { font-size: var(--text-sm); color: var(--color-text-faint); transition: color var(--t-fast); }
.footer__link:hover { color: var(--color-text); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer__copy { font-size: var(--text-xs); color: var(--color-text-faint); }
.footer__social { display: flex; gap: var(--space-2); }
.footer__social-link {
  width: 32px; height: 32px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  transition: all var(--t-fast);
}
.footer__social-link:hover { color: var(--color-text); border-color: var(--color-border-mid); }

/* ============================================
   SUBMIT PAGE
   ============================================ */
.submit-wrapper { display: grid; grid-template-columns: 1fr 380px; gap: var(--space-12); align-items: start; }
.submit-sidebar { position: sticky; top: calc(var(--nav-height) + var(--space-8)); }
.submit-info-card { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-6); }
.submit-info-card h3 { font-size: var(--text-base); color: var(--color-text); margin-bottom: var(--space-4); }
.submit-checklist { display: flex; flex-direction: column; gap: var(--space-3); }
.submit-checklist__item { display: flex; gap: var(--space-3); align-items: flex-start; }
.submit-checklist__icon { color: var(--color-green); flex-shrink: 0; font-size: var(--text-base); line-height: 1.5; }
.submit-checklist__text { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.55; }

/* ============================================
   CONTACT
   ============================================ */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: var(--space-6); }
.contact-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-item__icon {
  width: 40px; height: 40px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-mid);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-base);
  flex-shrink: 0;
}
.contact-item__label { font-size: var(--text-sm); font-weight: 700; color: var(--color-text); margin-bottom: 3px; }
.contact-item__value { font-size: var(--text-sm); color: var(--color-text-muted); }
.contact-item__value a { color: var(--color-accent); }
.contact-item__value a:hover { opacity: 0.8; }

/* ============================================
   NOTICE / ALERTS
   ============================================ */
.notice {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.notice--success { background: rgba(0,208,132,0.07); border: 1px solid rgba(0,208,132,0.2); color: var(--color-green); }
.notice--error   { background: rgba(248,67,67,0.07); border: 1px solid rgba(248,67,67,0.2); color: var(--color-danger); }
.notice--info    { background: var(--color-accent-glow); border: 1px solid rgba(124,106,247,0.2); color: var(--color-accent); }

/* ============================================
   MISC
   ============================================ */
.divider { height: 1px; background: var(--color-border); margin: var(--space-12) 0; }

.empty-state { text-align: center; padding: var(--space-20) var(--space-6); }
.empty-state__icon  { font-size: 2.5rem; margin-bottom: var(--space-4); opacity: 0.3; }
.empty-state__title { font-size: var(--text-xl); color: var(--color-text); margin-bottom: var(--space-2); }
.empty-state__text  { color: var(--color-text-faint); margin-bottom: var(--space-6); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up { animation: fadeUp 0.55s ease both; }
.animate-delay-1 { animation-delay: 0.08s; }
.animate-delay-2 { animation-delay: 0.16s; }
.animate-delay-3 { animation-delay: 0.24s; }

/* Stagger widget rows */
.hero__tool-row:nth-child(1) { animation-delay: 0.05s; }
.hero__tool-row:nth-child(2) { animation-delay: 0.12s; }
.hero__tool-row:nth-child(3) { animation-delay: 0.19s; }
.hero__tool-row:nth-child(4) { animation-delay: 0.26s; }
.hero__tool-row:nth-child(5) { animation-delay: 0.33s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; min-height: auto; gap: 0; }
  .hero__left  { padding: var(--space-16) 0 var(--space-10); }
  .hero__right { padding: 0 0 var(--space-16); justify-content: flex-start; }
  .hero__widget { max-width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .submit-wrapper { grid-template-columns: 1fr; }
  .submit-sidebar { position: static; }
  .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-4); }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4);
    gap: var(--space-1);
    z-index: 999;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .newsletter { padding: var(--space-10) var(--space-5); }
  .newsletter__form { flex-direction: column; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__proof { gap: var(--space-6); flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}
