@import url("https://fonts.googleapis.com/css?family=Roboto+Mono:400,500,600,700|Nunito+Sans:400,600,700,800&display=swap");

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --fg: #1a1a2e;
  --fg-dim: #62627a;
  --brand: #333399;
  --brand-dark: #29297a;
  --accent: #e7442f;
  --link: #2ea3f2;
  --line: #e2e2ea;
  --radius: 10px;
  --mono: "Roboto Mono", "SFMono-Regular", Consolas, Menlo, monospace;
  --sans: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.noise { display: none; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

.brand-mark {
  color: var(--accent);
  font-weight: 700;
}

.brand-dot { color: var(--accent); }

.lang-switch {
  display: flex;
  gap: 0.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.lang-switch button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg-dim);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.lang-switch button:hover {
  color: var(--fg);
  border-color: var(--brand);
}

.lang-switch button.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
}

.hero {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--brand);
}

.hero .lead {
  color: var(--fg-dim);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.demo-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}

.demo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(51, 51, 153, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.15s;
}

.demo-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(51, 51, 153, 0.1);
}

.demo-card:hover::before {
  opacity: 1;
}

.demo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-dim);
}

.demo-card h2 {
  font-family: var(--mono);
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
  color: var(--brand-dark);
}

.demo-card p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.demo-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--brand);
  border: 1px solid rgba(51, 51, 153, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: lowercase;
}

.demo-card-arrow {
  font-family: var(--mono);
  color: var(--fg-dim);
  align-self: flex-end;
  transition: color 0.15s, transform 0.15s;
}

.demo-card:hover .demo-card-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.empty-state {
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 0.9rem;
  text-align: center;
  padding: 3rem 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 2rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-dim);
}

.site-footer a {
  color: var(--link);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .site-header { padding: 1rem 1.25rem; }
  main { padding: 3rem 1.25rem 2rem; }
}
