/* ========================================
   Stackwarden — Consolidated Stylesheet
   ======================================== */

/* --- Font Faces --- */
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/HostGrotesk-Variable.ttf') format('truetype');
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/Inter-Variable.woff2') format('woff2');
}
@font-face {
  font-family: "Cardo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cardo-normal-400.woff2') format('woff2');
}

/* --- CSS Custom Properties --- */
:root {
  --color-base: #011222;
  --color-base-light: #0b1e2d;
  --color-card: #0b1e2d;
  --color-text: #FFFFFF;
  --color-text-muted: #A1A1AA;
  --color-primary: #F97316;
  --color-primary-hover: #EA580C;
  --color-purple-start: #5d18e5;
  --color-purple-end: #3a0e8d;
  --color-border: #2A2A2E;
  --color-black: #000000;
  --font-primary: "Host Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 100px;
  --spacing-xxs: clamp(5px, 1vw, 10px);
  --spacing-xs: clamp(10px, 2vw, 20px);
  --spacing-sm: clamp(20px, 4vw, 40px);
  --spacing-md: clamp(30px, 6vw, 60px);
  --spacing-lg: clamp(40px, 8vw, 80px);
  --spacing-xl: clamp(50px, 10vw, 100px);
  --font-tiny: clamp(10px, 0.625rem + 0.23vw, 12px);
  --font-xxs: clamp(12px, 0.75rem + 0.23vw, 14px);
  --font-xs: 16px;
  --font-sm: clamp(16px, 1rem + 0.23vw, 18px);
  --font-md: clamp(18px, 1.125rem + 0.23vw, 20px);
  --font-lg: clamp(24px, 1.5rem + 0.91vw, 32px);
  --font-xl: clamp(32px, 2rem + 1.82vw, 48px);
  --font-xxl: clamp(40px, 2.5rem + 2.73vw, 64px);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font-primary);
  font-size: var(--font-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-base);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
ul, ol {
  list-style-position: inside;
}
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--spacing-sm) 0;
  opacity: 0.4;
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}
.text-center { text-align: center; }
.text-left { text-align: left; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: #FAFAFA;
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: var(--font-xxl); }
h2 { font-size: var(--font-xl); }
h3 { font-size: var(--font-lg); }
h4 { font-size: var(--font-md); }
h5, h6 { font-size: var(--font-md); }
p {
  font-size: var(--font-xs);
  line-height: 1.4;
  color: var(--color-text-muted);
}
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: var(--font-sm); }

/* --- Launch Banner --- */
.launch-banner {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0.08) 100%);
  border-bottom: 2px solid rgba(249, 115, 22, 0.3);
  padding: var(--spacing-sm) var(--spacing-sm);
  position: relative;
  overflow: hidden;
}
.launch-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.1), transparent);
  animation: bannerShine 3s ease-in-out 1;
}
@keyframes bannerShine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}
.launch-banner-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.launch-banner-icon {
  font-size: var(--font-lg);
  animation: bounce 2s ease-in-out 1;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.launch-banner-text {
  font-size: var(--font-sm);
  color: #fff;
  text-align: center;
  flex: 1;
  min-width: 200px;
}
.launch-banner-text strong {
  color: var(--color-primary);
  font-weight: 700;
}
.launch-banner-cta {
  background: linear-gradient(135deg, var(--color-purple-start) 0%, var(--color-purple-end) 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: all 0.3s ease;
  text-decoration: none;
}
.launch-banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(93, 24, 229, 0.4);
  text-decoration: none;
}
.launch-banner-cta:active {
  transform: translateY(0);
}
@media (max-width: 768px) {
  .launch-banner-content {
    flex-direction: column;
    gap: var(--spacing-xxs);
  }
  .launch-banner-text {
    font-size: var(--font-xs);
  }
  .launch-banner-cta {
    padding: 8px 16px;
    font-size: var(--font-xxs);
  }
}

/* --- Navigation --- */
.site-header {
  padding: 20px var(--spacing-sm) 10px;
}
.nav-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--color-base-light);
  border-radius: var(--radius-pill);
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  font-size: var(--font-sm);
  font-weight: 600;
  letter-spacing: 2px;
  color: #FAFAFA;
  flex-shrink: 0;
}
.nav-logo a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-logo-img {
  width: 50px;
  height: 50px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  list-style: none;
}
.nav-links a {
  color: #FAFAFA;
  font-size: var(--font-xs);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-links a:hover {
  opacity: 0.8;
  text-decoration: none;
}
.nav-cta {
  flex-shrink: 0;
}
.btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, var(--color-purple-start) 0%, var(--color-purple-end) 100%);
  color: #fff;
  font-size: var(--font-sm);
  font-weight: 600;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-purple-start);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Hamburger / Mobile Menu */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: #FAFAFA;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(1, 18, 34, 0.95);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu-overlay.active {
  display: flex;
}
.mobile-menu-overlay a {
  color: #FAFAFA;
  font-size: var(--font-lg);
  font-weight: 700;
  text-decoration: none;
}
.mobile-menu-overlay a:hover {
  text-decoration: underline;
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #FAFAFA;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-close svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* --- Hero Section --- */
.hero {
  padding: var(--spacing-md) var(--spacing-sm) var(--spacing-sm);
  background-image: url('../images/header-bg.png');
  background-position: 100% 0%;
  background-repeat: no-repeat;
  background-size: contain;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}
.hero h1 {
  text-align: center;
  max-width: 800px;
}
.hero-subtitle {
  text-align: center;
  max-width: 500px;
  font-size: var(--font-sm);
  color: var(--color-text-muted);
}
.hero-description {
  text-align: center;
  max-width: 900px;
  color: var(--color-text-muted);
  margin-top: var(--spacing-xs);
}
.hero-image {
  margin-top: var(--spacing-sm);
  width: 100%;
  max-width: 900px;
}
.hero-image img {
  width: 100%;
  border-radius: var(--radius-sm);
}

/* --- IDE Logos Bar --- */
.ide-logos {
  padding: var(--spacing-xs) var(--spacing-sm);
  max-width: var(--max-width);
  margin: 0 auto;
}
.ide-logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: nowrap;
}
.ide-logos-grid img {
  height: auto;
  object-fit: contain;
}
.ide-logos-grid img.logo-vscode { width: 52px; }
.ide-logos-grid img.logo-eclipse { width: 160px; }
.ide-logos-grid img.logo-intellij { width: 160px; }

/* --- Features Section --- */
.features {
  padding: var(--spacing-xl) var(--spacing-sm);
  max-width: var(--max-width);
  margin: 0 auto;
}
.features-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--spacing-sm);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
}
.feature-card {
  background: var(--color-base-light);
  padding: var(--spacing-sm);
  text-align: center;
  border-radius: 0;
}
.feature-icon {
  width: 48px;
  height: 48px;
  object-fit: cover;
  margin: 0 auto var(--spacing-xxs);
}
.feature-card h3 {
  font-size: var(--font-md);
  margin-bottom: var(--spacing-xxs);
}
.feature-card p {
  font-size: var(--font-xs);
  color: var(--color-text-muted);
}
.features-cta {
  text-align: center;
  margin-top: var(--spacing-sm);
}

/* --- Two-Column Sections --- */
.two-col {
  padding: var(--spacing-lg) var(--spacing-sm);
}
.two-col.alt-bg {
  background: var(--color-base-light);
}
.two-col-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--spacing-sm);
}
.two-col-text h3 {
  font-size: var(--font-xl);
  margin-bottom: var(--spacing-xxs);
}
.two-col-text p {
  font-size: var(--font-sm);
  color: var(--color-text-muted);
}
.two-col-image img {
  width: 100%;
  border-radius: var(--radius-sm);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-md) var(--spacing-sm) var(--spacing-sm);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}
.footer-brand {
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--color-text);
}
.footer-brand a { color: inherit; text-decoration: none; }
.footer-links {
  display: flex;
  gap: var(--spacing-xs);
  list-style: none;
}
.footer-links a {
  color: var(--color-text);
  font-size: var(--font-xs);
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-copy {
  width: 100%;
  margin-top: var(--spacing-sm);
  background: var(--color-black);
  border-radius: var(--radius-sm);
  padding: var(--spacing-xs);
  text-align: center;
  font-size: var(--font-xs);
  color: var(--color-text);
}

/* --- Page Content (Impressum / Datenschutz) --- */
.page-content {
  padding: var(--spacing-sm);
  max-width: 800px;
  margin: var(--spacing-sm) auto var(--spacing-md);
}
.page-content h1 {
  margin-bottom: var(--spacing-sm);
}
.page-content h4, .page-content h5 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #FAFAFA;
}
.page-content p {
  margin-bottom: 0.75rem;
}
.page-content ul, .page-content ol {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  list-style-position: outside;
}
.page-content li {
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
  font-size: var(--font-xs);
  line-height: 1.4;
}
.page-content a {
  color: var(--color-primary);
}
.page-content a:hover {
  text-decoration: underline;
}
.page-content strong {
  color: #FAFAFA;
}
.page-content hr {
  margin: 1.5rem 0;
}
.address-block {
  margin-bottom: 1.5rem;
}
.address-block p {
  margin-bottom: 0.25rem;
}

/* --- Alt Background Section --- */
.alt-bg {
  background: var(--color-base-light);
  padding: var(--spacing-xl) var(--spacing-sm);
}
.alt-bg .features-header {
  margin-bottom: var(--spacing-md);
}

/* --- Team Photos --- */
.team-photo {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto var(--spacing-xs);
  display: block;
}
.team-role {
  font-size: var(--font-xxs);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-xxs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Blog Posts --- */
.blog-post {
  margin-bottom: var(--spacing-md);
}
.blog-post h2 {
  font-size: var(--font-lg);
  margin-bottom: var(--spacing-xs);
}
.blog-excerpt {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xs);
}
.blog-date {
  font-size: var(--font-xxs);
  color: var(--color-text-muted);
  opacity: 0.8;
}

/* ========================================
   Gate Overlay Styles
   ======================================== */
.gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: linear-gradient(135deg, #011222 0%, #0a1a2e 30%, #1a2a3a 60%, #0a1a2e 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.gate-content {
  max-width: 650px;
  width: 100%;
  text-align: center;
  color: #fff;
  animation: fadeInUp 0.6s ease-out;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.gate-logo {
  width: 100px;
  margin: 0 auto 1.5rem;
  display: block;
  animation: logoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(249, 115, 22, 0.3));
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.gate-content h1 {
  font-size: var(--font-xl);
  margin-bottom: 0.75rem;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gate-message {
  font-size: var(--font-sm);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18) 0%, rgba(249, 115, 22, 0.08) 100%);
  border: 2px solid rgba(249, 115, 22, 0.35);
  border-radius: var(--radius-lg);
  padding: var(--spacing-sm);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.15);
  text-align: left;
}
.gate-message a {
  color: var(--color-primary);
  font-weight: 600;
  transition: color 0.2s;
}
.gate-message a:hover {
  color: var(--color-primary-hover);
}
.gate-info {
  margin: 2.5rem 0;
  text-align: left;
}
.gate-info-section {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
  transition: transform 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(10px);
}
.gate-info-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
}
.gate-info-section h3 {
  font-size: var(--font-sm);
  color: #fff;
  margin-bottom: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gate-info-section h3::before {
  content: '✨';
  font-size: 1.2em;
}
.gate-info-section p {
  font-size: var(--font-xs);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.gate-info-section p:last-child {
  margin-bottom: 0;
}
.gate-info-section.gate-beta {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0.08) 100%);
  border: 2px solid rgba(249, 115, 22, 0.3);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.2);
}
.gate-info-section.gate-beta h3::before {
  content: '🚀';
}
.gate-info-section.gate-beta p {
  color: rgba(255, 255, 255, 0.95);
}
.gate-info-section.gate-beta strong {
  color: var(--color-primary);
  font-weight: 700;
}
.gate-form {
  width: 100%;
  margin-top: 2rem;
}
.gate-form label {
  display: block;
  font-size: var(--font-xs);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.gate-input-group {
  display: flex;
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s, transform 0.2s;
}
.gate-input-group:focus-within {
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.3), 0 0 0 3px rgba(249, 115, 22, 0.2);
  transform: translateY(-2px);
}
.gate-input-group input {
  flex: 1;
  border: none;
  padding: 16px 24px;
  font-size: var(--font-sm);
  font-family: var(--font-primary);
  color: #1a1a1a;
  background: transparent;
  outline: none;
  min-width: 0;
  font-weight: 500;
}
.gate-input-group input::placeholder {
  color: #999;
  font-weight: 400;
}
.gate-input-group button {
  background: linear-gradient(135deg, var(--color-purple-start) 0%, var(--color-purple-end) 100%);
  color: #fff;
  border: none;
  padding: 16px 32px;
  font-size: var(--font-xs);
  font-family: var(--font-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.gate-input-group button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}
.gate-input-group button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(93, 24, 229, 0.4);
}
.gate-input-group button:hover::before {
  left: 100%;
}
.gate-input-group button:active {
  transform: scale(0.98);
}
.gate-error {
  color: #ff6b6b;
  font-size: var(--font-xs);
  margin-top: 1rem;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Shake animation for invalid code */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
  20%, 40%, 60%, 80% { transform: translateX(6px); }
}
.shake {
  animation: shake 0.5s ease-in-out;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col-inner {
    gap: var(--spacing-xs);
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: block;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .contact-hero h1 {
    font-size: var(--font-xl);
  }
  .two-col-inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  .two-col-inner.reverse-mobile {
    direction: ltr;
  }
  .two-col-image {
    order: -1;
  }
  .ide-logos-grid {
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    justify-content: center;
  }
  .ide-logos-grid img.logo-eclipse,
  .ide-logos-grid img.logo-intellij {
    width: 120px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}

/* ========== Contact Hero ========== */
.contact-hero {
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-sm) var(--spacing-md);
}
.contact-hero h1 {
  font-size: var(--font-xxl);
  font-style: italic;
  margin-bottom: var(--spacing-xs);
}
.contact-hero > p {
  color: var(--color-text-muted);
  font-size: var(--font-sm);
  max-width: 550px;
  margin: 0 auto var(--spacing-md);
}
.contact-email-card {
  display: inline-block;
  background: var(--color-base-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: center;
}
.contact-email-card img {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--spacing-xs);
  display: block;
}
.contact-email-card h3 {
  font-size: var(--font-md);
  margin-bottom: var(--spacing-xxs);
}
.contact-email-card a {
  color: var(--color-text-muted);
  font-size: var(--font-xs);
}
.contact-email-card a:hover {
  color: var(--color-primary);
}

/* ========== Team Section ========== */
.team-section {
  background: var(--color-surface);
  padding: var(--spacing-xl) var(--spacing-sm);
  text-align: center;
}
.team-section h2 {
  font-size: var(--font-xl);
  margin-bottom: var(--spacing-xs);
}
.team-subtitle {
  color: var(--color-text-muted);
  font-size: var(--font-sm);
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
  max-width: var(--max-width);
  margin: 0 auto;
}
.team-member {
  background: var(--color-base-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.team-member h3 {
  font-size: var(--font-md);
  margin-bottom: var(--spacing-xxs);
}
.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--spacing-sm);
  display: block;
}
.team-role {
  color: var(--color-primary);
  font-size: var(--font-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-xs);
}
.team-email {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: var(--spacing-xs);
  color: var(--color-text-muted);
  font-size: var(--font-xs);
}
.team-email a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.team-email a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}
.team-bio {
  color: var(--color-text-muted);
  font-size: var(--font-xs);
  line-height: 1.6;
  flex: 1;
}

/* ========== Blog Page ========== */
.blog-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-xl);
}
.blog-title {
  font-size: var(--font-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  border-bottom: 3px solid var(--color-text);
  display: inline-block;
  padding-bottom: 4px;
}
.blog-intro {
  color: var(--color-text-muted);
  font-size: var(--font-xs);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}
.blog-post {
  margin-bottom: var(--spacing-sm);
}
.blog-post h2 {
  font-size: var(--font-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}
.blog-post h2 a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-post h2 a:hover {
  color: var(--color-primary);
}
.blog-excerpt {
  color: var(--color-text-muted);
  font-size: var(--font-xs);
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}
.blog-date {
  color: var(--color-text-muted);
  font-size: var(--font-xs);
  margin-bottom: var(--spacing-sm);
}
.blog-separator {
  border: none;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  width: 80px;
  margin: var(--spacing-sm) auto var(--spacing-md);
}

/* ========== Blog Article (single post) ========== */
.blog-article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-xl);
}
.blog-article h1 {
  font-size: var(--font-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: var(--font-xs);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}
.blog-meta-sep {
  color: var(--color-primary);
}
.blog-body {
  color: var(--color-text-muted);
  font-size: var(--font-xs);
  line-height: 1.8;
}
.blog-body p {
  margin-bottom: var(--spacing-sm);
}
.blog-body strong {
  color: var(--color-text);
}
.blog-body ol,
.blog-body ul {
  margin: 0 0 var(--spacing-sm) var(--spacing-sm);
}
.blog-body li {
  margin-bottom: var(--spacing-xxs);
}
.blog-tags {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.blog-tags span {
  display: inline-block;
  background: var(--color-base-light);
  color: var(--color-text-muted);
  font-size: var(--font-xs);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}
.blog-back {
  display: inline-block;
  margin-top: var(--spacing-md);
  color: var(--color-primary);
  font-size: var(--font-xs);
  font-weight: 600;
  text-decoration: none;
}
.blog-back:hover {
  text-decoration: underline;
}

/* ========== Alt Background ========== */
.alt-bg {
  background: var(--color-surface);
  padding: var(--spacing-xl) var(--spacing-md);
}

@media (max-width: 480px) {
  .gate-input-group {
    flex-direction: column;
    border-radius: var(--radius-md);
  }
  .gate-input-group input {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    text-align: center;
  }
  .gate-input-group button {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 14px;
  }
  h1 { font-size: var(--font-xl); }
  .hero-subtitle { font-size: var(--font-xs); }
}
