/* Reset layout.php's centered flex body so the homepage spans 100% width */
body {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #070709 !important;
}

.block-studio-root {
  --bg-dark: #070709;
  --bg-card: #0e0e13;
  --bg-card-hover: #14141c;
  --border-color: #1f1f2b;
  --border-highlight: #38384d;
  --text-main: #f4f4f6;
  --text-muted: #9494a8;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --status-live: #10b981;
  --status-dev: #f59e0b;

  display: block;
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.block-studio-root * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.grid-background {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 3rem 3rem;
  z-index: 0;
  pointer-events: none;
}

.container {
  width: 92%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  border-bottom: 1px solid var(--border-color);
  background: rgba(7, 7, 9, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.block-icon {
  width: 0.8rem;
  height: 0.8rem;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 12px var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a:not(.studio-btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:not(.studio-btn):hover {
  color: var(--text-main);
}

/* Fluid Buttons */
.studio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.studio-btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.studio-btn-primary {
  background: var(--text-main);
  color: var(--bg-dark);
}

.studio-btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.studio-btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.studio-btn-secondary:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
}

/* Hero */
.hero {
  padding: clamp(4rem, 10vh, 7rem) 0 clamp(3rem, 8vh, 5rem);
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.hero p {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 36rem;
  margin: 0 auto 2.25rem;
}

/* Sections */
.section {
  padding: clamp(2.5rem, 6vh, 4.5rem) 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Fluid Responsive Grid */
.responsive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.studio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s;
}

.studio-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
}

.studio-card.featured {
  border-color: rgba(99, 102, 241, 0.45);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.07) 0%, var(--bg-card) 100%);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-live {
  color: var(--status-live);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tag-dev {
  color: var(--status-dev);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.studio-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.studio-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.studio-card p:last-child {
  margin-bottom: 0;
}

.card-link {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-link:hover {
  color: var(--accent);
}

.pillar-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.mono-label {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.email-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.email-link:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .nav-links a:not(.studio-btn) {
    display: none;
  }
}
/* Support R&D Banner */
.support-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, var(--bg-card) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 10px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.support-text {
  max-width: 38rem;
}

.support-text h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.support-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.support-action {
  flex-shrink: 0;
}

