/* ========================================================================
   beetl.io — Brand CSS
   Single-file design system. No build step. CSS custom properties throughout.
   ======================================================================== */

/* --- Custom Properties ------------------------------------------------- */
:root {
  /* Colors — Light mode */
  --bg: #F5F5F5;
  --bg-surface: #FFFFFF;
  --bg-elevated: #EBEBEB;
  --accent: #D45A00;
  --accent-hover: #B34D00;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-muted: #999999;
  --border: #D4D4D4;
  --border-hover: #B0B0B0;

  /* Accent glow */
  --accent-glow: rgba(212, 90, 0, 0.1);
  --accent-subtle: rgba(212, 90, 0, 0.05);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Roboto Mono', monospace;

  /* Spacing & shape */
  --radius: 4px;
  --container: 1200px;
  --transition-speed: 0.35s;

  /* Nav */
  --nav-bg: rgba(245, 245, 245, 0.92);
  --nav-border: rgba(0, 0, 0, 0.06);
}


/* --- Reset & Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.25rem; }

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

/* --- Layout ------------------------------------------------------------ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.grid-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* --- Sections ---------------------------------------------------------- */
.section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section__title {
  margin-bottom: 16px;
}

.section__intro {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 48px;
}

.section__intro .section__description {
  flex: 1;
  margin-bottom: 0;
}

.section__intro .section__cta {
  flex-shrink: 0;
  align-self: center;
  margin-top: 0;
  text-align: center;
}

.section__description {
  max-width: 720px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}
.section__description p { margin-bottom: 16px; }
.section__description p:last-child { margin-bottom: 0; }

/* --- Header / Nav ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  padding: 0;
}

.site-nav {
  overflow-x: auto;
  white-space: nowrap;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 24px;
  width: auto;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 1rem 0;
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--accent); }
.nav__link.active-link { color: var(--text-primary); }
.nav__link.active-link:hover { color: var(--accent); }

/* Language switcher */
.lang-switcher {
  margin-left: auto;
  display: flex;
  gap: 0.75rem;
}

.lang-switcher__link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.lang-switcher__link:hover { opacity: 1; color: var(--accent); }
.lang-switcher__link--active { opacity: 1; color: var(--text-secondary); }

/* --- Hero -------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 60%, var(--accent-glow) 0%, transparent 50%);
  pointer-events: none;
}

.hero__center {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.0rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 0.4rem 1.2rem;
  margin-bottom: 3rem;
}

/* Scramble effect: resolved text is visible, suffix renders via ::after */
.hero__badge-text::after {
  content: attr(data-scramble-suffix);
  color: var(--text-muted);
}

.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__title-accent {
  color: var(--accent);
}

.hero__subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.hero__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.btn--primary {
  color: var(--accent);
  background: transparent;
  border: 2px solid var(--accent);
}
.btn--primary:hover {
  color: var(--bg-surface);
  background: var(--accent);
  border-color: var(--accent);
}

.btn--secondary {
  color: var(--text-secondary);
  background: transparent;
  border: 2px solid transparent;
  padding-left: 0;
}
.btn--secondary:hover { color: var(--text-primary); }

.btn--secondary svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* --- Feature Cards ----------------------------------------------------- */
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform var(--transition-speed) ease,
              border-color var(--transition-speed) ease,
              box-shadow var(--transition-speed) ease;
}

.feature-card__image {
  margin-bottom: 20px;
}
.feature-card__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.feature-card__title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.feature-card__subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Contact Form ------------------------------------------------------ */
.contact {
  padding: 80px 0;
}

.contact__box {
  max-width: 640px;
  margin: 0 auto;
}

.contact__title {
  margin-bottom: 12px;
}

.contact__description {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.form__group {
  margin-bottom: 20px;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition-speed) ease;
  outline: none;
}
.form__input:focus,
.form__textarea:focus {
  border-color: var(--accent);
}
.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-muted);
}

.form__textarea { resize: vertical; min-height: 160px; }

.form__submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}
.form__submit:hover {
  color: var(--bg-surface);
  background: var(--accent);
}

/* --- Footer ------------------------------------------------------------ */
.site-footer {
  background: var(--bg-elevated);
  padding: 40px 0;
  margin-top: 40px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer__nav {
  display: flex;
  list-style: none;
  gap: 24px;
}

.footer__nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.footer__nav a:hover { color: var(--accent); }

.footer__email a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Page Content (About, etc.) ---------------------------------------- */
.page-heading {
  padding: 60px 0 20px;
  text-align: left;
}

.page-heading__description {
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 640px;
}

.page-content {
  max-width: 720px;
  padding: 0 0 80px;
}

.page-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.page-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.page-content strong { color: var(--text-primary); }

.page-content ul {
  margin-bottom: 24px;
  padding-left: 0;
  list-style: none;
}

.page-content li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}
.page-content li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.page-content a { color: var(--accent); }
.page-content a:hover { text-decoration: underline; }

/* --- Image Band -------------------------------------------------------- */
.image-band {
  width: 100%;
  overflow: hidden;
  max-height: 400px;
}
.image-band img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
}
.image-band--hero img {
  object-position: center 25%;
}

/* --- About Layout ------------------------------------------------------ */
.about-layout {
  display: flex;
  gap: 48px;
}
.about-layout__content { flex: 1; }
.about-layout__image {
  flex: 0 0 35%;
  position: sticky;
  top: 88px;
  align-self: flex-start;
}
.about-layout__image img {
  width: 100%;
  border-radius: var(--radius);
}

/* --- Utilities --------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-features {
    grid-template-columns: 1fr;
  }
  .about-layout {
    flex-direction: column;
  }
  .about-layout__image {
    position: static;
    flex: none;
  }
}

@media (max-width: 768px) {
  .grid-features {
    grid-template-columns: 1fr;
  }

  .section__intro {
    flex-direction: column;
    gap: 24px;
  }

  .section { padding: 60px 0; }
  .hero { min-height: 100vh; min-height: 100dvh; }
  .contact { padding: 60px 0; }
}
