/* ============================================
   RustShare Landing Page — Production Stylesheet
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Surface hierarchy */
  --surface: #F2F1ED;
  --surface-container-lowest: #FFFFFF;
  --surface-container-low: #EBEAE6;
  --surface-container: #E7E6E2;
  --surface-container-high: #E2E1DD;
  --surface-variant: #E7E4DF;
  --warm-ivory: #EAE8E4;
  --card-light: #FAF9F7;

  /* Primary */
  --primary: #C85A32;
  --primary-container: #8B2E0B;
  --on-primary: #FFFFFF;
  --on-primary-container: #F4E4D4;
  --primary-fixed-dim: #F2C99D;

  /* Secondary */
  --secondary: #C85A32;
  --secondary-container: #F2E7D5;
  --on-secondary-container: #3F1505;

  /* Text */
  --on-surface: #201A17;
  --on-surface-variant: #53433E;
  --on-background: #201A17;

  /* Outline */
  --outline: #85736B;
  --outline-variant: #D8CDC2;

  /* Typography */
  --font-headline: 'Newsreader', serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 80rem;
  --content-px: 2rem;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
}

ul {
  list-style: none;
}

::selection {
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--on-surface);
}

.overline {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.8;
}

.overline--section {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.body-text {
  font-family: var(--font-body);
  color: var(--on-surface-variant);
  line-height: 1.7;
}

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

/* --- Card Surface --- */
.card-surface {
  background-color: var(--warm-ivory);
  border: 1px solid rgba(133, 115, 107, 0.12);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.02);
  border-radius: 0.75rem;
}

.card-surface--light {
  background-color: var(--card-light);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  padding: 1rem 2rem;
  background-color: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn--secondary {
  padding: 1rem 2rem;
  background-color: transparent;
  color: var(--on-surface);
  border: 1px solid rgba(216, 205, 194, 0.5);
}

.btn--secondary:hover {
  background-color: var(--surface-container-low);
}

.btn--dark {
  padding: 1rem 2rem;
  background-color: var(--on-background);
  color: var(--surface);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn--dark:hover {
  opacity: 0.9;
}

/* --- Material Symbols --- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}

.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(242, 241, 237, 0.9);
  border-bottom: 1px solid rgba(133, 115, 107, 0.2);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-px);
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header__logo-img {
  height: 32px;
  width: 32px;
  display: block;
  flex-shrink: 0;
}

.site-header__logo-text {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--on-surface);
  letter-spacing: -0.02em;
}

.site-header__nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(32, 26, 23, 0.7);
  letter-spacing: 0.03em;
}

.site-header__nav-link:hover {
  color: var(--primary);
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header__github-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border: 1px solid rgba(133, 115, 107, 0.2);
  background-color: var(--surface-container-low);
  color: var(--on-surface);
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.site-header__github-btn:hover {
  background-color: var(--surface-container);
  border-color: rgba(133, 115, 107, 0.4);
}

.site-header__github-btn .material-symbols-outlined {
  font-size: 1.125rem;
}

.site-header__github-btn span:last-child {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-header__signin {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(32, 26, 23, 0.6);
}

.site-header__signin:hover {
  color: var(--on-surface);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 9rem;
  overflow: visible;
}

.hero__glow {
  position: absolute;
  top: -150px;
  left: -150px;
  width: 650px;
  height: 650px;
  background: radial-gradient(
    circle,
    rgba(200, 90, 50, 0.15) 0%,
    rgba(200, 90, 50, 0.05) 30%,
    transparent 70%
  );
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero__headline {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__body {
  font-size: 1.0625rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 0.5rem;
}

.hero__image-wrapper {
  position: relative;
}

.hero__image-container {
  overflow: hidden;
}

.hero__image-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ============================================
   FEATURES SECTION (Operational Trust)
   ============================================ */
.features {
  background-color: var(--surface-container-low);
  padding: 9rem 0;
  border-top: 1px solid rgba(216, 205, 194, 0.05);
  border-bottom: 1px solid rgba(216, 205, 194, 0.05);
}

.features__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 3rem;
}

.features__header-left {
  max-width: 42rem;
}

.features__title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
}

.features__intro {
  font-size: 1.0625rem;
  color: var(--on-surface-variant);
  max-width: 34rem;
  line-height: 1.7;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.feature-card--wide {
  grid-column: span 7;
}

.feature-card--narrow {
  grid-column: span 5;
}

.feature-card__icon {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card__title {
  font-size: 1.5625rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.feature-card__body {
  font-size: 1.0625rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.feature-card__bar {
  height: 3px;
  width: 0;
  background-color: var(--primary);
  transition: width 0.5s ease;
}

.feature-card:hover .feature-card__bar {
  width: 100%;
}

/* ============================================
   SECURITY SECTION
   ============================================ */
.security {
  padding: 9rem 0;
}

.security__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: center;
}

.security__content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.security__text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.security__title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.security__body {
  font-size: 1.0625rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  max-width: 34rem;
}

.security__bullets {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.security__bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.security__bullet-icon {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.security__bullet-text {
  font-size: 1rem;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

/* --- Security Panel Placeholder --- */
.security-panel {
  overflow: hidden;
}

.security-panel__header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(216, 205, 194, 0.2);
  background-color: rgba(235, 234, 230, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.security-panel__header-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.125rem;
}

.security-panel__header-close {
  color: var(--on-surface-variant);
  font-size: 0.875rem;
  cursor: pointer;
}

.security-panel__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.security-panel__section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.security-panel__section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.security-panel__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.security-panel__badge {
  font-size: 0.625rem;
  font-weight: 700;
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.security-panel__team-card {
  padding: 1rem;
  background-color: rgba(242, 241, 237, 0.5);
  border-radius: 0.5rem;
  border: 1px solid rgba(216, 205, 194, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.security-panel__team-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.security-panel__team-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: rgba(200, 90, 50, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.security-panel__team-avatar .material-symbols-outlined {
  font-size: 0.875rem;
}

.security-panel__team-details {
  display: flex;
  flex-direction: column;
}

.security-panel__team-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.security-panel__team-role {
  font-size: 0.625rem;
  color: var(--on-surface-variant);
}

.security-panel__team-expand {
  color: var(--on-surface-variant);
  font-size: 0.875rem;
}

/* Public Link Toggle */
.security-panel__toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.security-panel__toggle-label {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--on-surface-variant);
}

.security-panel__toggle {
  width: 2rem;
  height: 1rem;
  background-color: rgba(216, 205, 194, 0.3);
  border-radius: 9999px;
  position: relative;
}

.security-panel__toggle-knob {
  position: absolute;
  left: 0.125rem;
  top: 0.125rem;
  width: 0.75rem;
  height: 0.75rem;
  background-color: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.security-panel__disabled-notice {
  padding: 1rem;
  background-color: rgba(235, 234, 230, 0.5);
  border-radius: 0.5rem;
  border: 1px dashed rgba(216, 205, 194, 0.1);
  text-align: center;
}

.security-panel__disabled-notice p {
  font-size: 0.75rem;
  color: var(--on-surface-variant);
  font-style: italic;
}

.security-panel__footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(216, 205, 194, 0.1);
  display: flex;
  justify-content: flex-end;
}

.security-panel__save-btn {
  background-color: var(--primary);
  color: var(--on-primary);
  padding: 0.625rem 1.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: opacity 0.2s ease;
}

.security-panel__save-btn:hover {
  opacity: 0.9;
}

/* Audit Log Snippet */
.security-panel__audit {
  padding: 1rem;
  border-top: 1px solid rgba(216, 205, 194, 0.1);
}

.security-panel__audit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0.6;
}

.security-panel__audit-time,
.security-panel__audit-label,
.security-panel__audit-message {
  font-size: 0.625rem;
  font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
}

.security-panel__audit-time {
  color: var(--outline);
}

.security-panel__audit-label {
  color: var(--on-surface);
  font-weight: 700;
  text-transform: uppercase;
}

.security-panel__audit-message {
  color: var(--on-surface-variant);
}

/* ============================================
   OPEN SOURCE SECTION
   ============================================ */
.opensource {
  padding: 9rem 0;
}

.opensource__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 5rem;
  align-items: center;
}

.opensource__image-wrapper {
  order: 1;
}

.opensource__image-card {
  padding: 1.25rem;
}

.opensource__image-card img {
  border-radius: 0.5rem;
  box-shadow:
    0 8px 30px -4px rgba(0, 0, 0, 0.07),
    0 2px 8px rgba(0, 0, 0, 0.03);
}

.opensource__content {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.opensource__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background-color: rgba(200, 90, 50, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: 0.25rem;
  width: fit-content;
  margin-bottom: -0.25rem;
}

.opensource__title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.opensource__body {
  font-size: 1.0625rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  max-width: 34rem;
}

.opensource__cta {
  padding-top: 0.5rem;
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */
.final-cta {
  background-color: var(--surface-container-low);
  padding: 8rem 0;
  border-top: 1px solid rgba(216, 205, 194, 0.05);
}

.final-cta__inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-cta__overline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.final-cta__title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.final-cta__body {
  font-size: 1.0625rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.final-cta__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--surface);
  border-top: 1px solid rgba(216, 205, 194, 0.15);
  padding: 3rem 0 2rem;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-px);
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(216, 205, 194, 0.12);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.site-footer__logo-img {
  height: 26px;
  width: 26px;
  display: block;
  flex-shrink: 0;
}

.site-footer__logo-text {
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--on-surface);
  letter-spacing: -0.02em;
}

.site-footer__tagline {
  font-size: 0.8125rem;
  color: var(--on-surface-variant);
  line-height: 1.5;
}

.site-footer__nav {
  display: flex;
  gap: 1.75rem;
}

.site-footer__nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer__nav-link:hover {
  color: var(--primary);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
}

.site-footer__copyright {
  font-size: 0.75rem;
  color: var(--outline);
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.site-footer__social-link {
  color: var(--outline);
  transition: color 0.2s ease;
}

.site-footer__social-link:hover {
  color: var(--primary);
}

.site-footer__social-link .material-symbols-outlined {
  font-size: 1.125rem;
}

/* ============================================
   RESPONSIVE — Tablet (769px – 1024px)
   ============================================ */
@media (max-width: 1024px) {

  /* --- Hero --- */
  .hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
  }

  .hero__grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
  }

  .hero__headline {
    font-size: 2.25rem;
  }

  .hero__body {
    font-size: 1rem;
  }

  .hero__content {
    gap: 1.5rem;
  }

  /* --- Features --- */
  .features {
    padding: 5rem 0;
  }

  .features__header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    gap: 1.25rem;
  }

  .features__title {
    font-size: 2.5rem;
  }

  .features__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .feature-card--wide,
  .feature-card--narrow {
    grid-column: span 1;
  }

  .feature-card {
    padding: 1.75rem;
  }

  .feature-card__title {
    font-size: 1.375rem;
  }

  .feature-card__body {
    font-size: 1rem;
  }

  /* --- Security --- */
  .security {
    padding: 5rem 0;
  }

  .security__grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
  }

  .security__title {
    font-size: 2.25rem;
  }

  .security__body {
    font-size: 1rem;
  }

  .security__bullet-text {
    font-size: 0.9375rem;
  }

  .security-panel__body {
    padding: 1.75rem;
    gap: 1.75rem;
  }

  .security-panel__header {
    padding: 1.25rem 1.75rem;
  }

  /* --- Open Source --- */
  .opensource {
    padding: 5rem 0;
  }

  .opensource__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
  }

  .opensource__title {
    font-size: 2.25rem;
  }

  .opensource__body {
    font-size: 1rem;
  }

  .opensource__image-card {
    padding: 1rem;
  }

  /* --- Final CTA --- */
  .final-cta {
    padding: 5rem 0;
  }

  .final-cta__inner {
    max-width: 36rem;
  }

  .final-cta__title {
    font-size: 2.25rem;
  }

  .final-cta__body {
    font-size: 1rem;
  }

  /* --- Footer --- */
  .site-footer {
    padding: 1.5rem 0 1rem;
  }

  .site-footer__top {
    padding-bottom: 1rem;
  }

  .site-footer__brand {
    gap: 0.875rem;
  }

  .site-footer__logo-icon,
  .site-footer__logo-text {
    font-size: 1.25rem;
  }

  .site-footer__tagline {
    font-size: 0.75rem;
  }

  .site-footer__nav {
    gap: 1.25rem;
  }

  .site-footer__nav-link {
    font-size: 0.75rem;
  }

  .site-footer__bottom {
    padding-top: 0.75rem;
  }

  .site-footer__copyright {
    font-size: 0.6875rem;
  }

  .site-footer__social-link .material-symbols-outlined {
    font-size: 1rem;
  }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
  :root {
    --content-px: 1.25rem;
  }

  .hero {
    padding-top: 7.5rem;
    padding-bottom: 3.5rem;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__text {
    gap: 1.25rem;
  }

  .hero__overline {
    margin-bottom: 2rem;
    display: block;
  }

  .hero__headline {
    font-size: 2.125rem;
    line-height: 1.15;
  }

  .hero__body {
    font-size: 0.9375rem;
    max-width: 100%;
    margin-bottom: 0.5rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
    padding-top: 0;
  }

  .hero__actions .btn {
    text-align: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.25rem;
  }

  .features {
    padding: 3rem 0;
  }

  .features__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
  }

  .features__title {
    font-size: 1.625rem;
    line-height: 1.2;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card--wide,
  .feature-card--narrow {
    grid-column: span 1;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-card__title {
    font-size: 1.375rem;
  }

  .feature-card__body {
    font-size: 1rem;
  }

  .security {
    padding: 3rem 0;
  }

  .security__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .security__title {
    font-size: 1.625rem;
    line-height: 1.2;
  }

  .security__bullets {
    gap: 0.875rem;
  }

  .security__bullet {
    gap: 0.625rem;
  }

  .security-panel__body {
    padding: 1.125rem;
    gap: 1.25rem;
  }

  .security-panel__header {
    padding: 0.875rem 1.125rem;
  }

  .opensource {
    padding: 3rem 0;
  }

  .opensource__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .opensource__image-wrapper {
    order: 2;
  }

  .opensource__content {
    order: 1;
    gap: 1rem;
  }

  .opensource__title {
    font-size: 1.625rem;
    line-height: 1.2;
  }

  .final-cta {
    padding: 3.5rem 0;
  }

  .final-cta__inner {
    padding: 0 0.5rem;
  }

  .final-cta__title {
    font-size: 1.625rem;
    line-height: 1.2;
  }

  .final-cta__body {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }

  .final-cta__actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .final-cta__actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Header mobile */
  .site-header {
    padding: 0.5rem 0;
  }

  .site-header__logo-img {
    height: 30px;
    width: 30px;
  }

  .site-header__logo-text {
    font-size: 1.375rem;
  }

  .site-header__right {
    gap: 0.625rem;
  }

  .site-header__github-btn span:last-child {
    display: none;
  }

  /* Footer mobile */
  .site-footer {
    padding: 3rem 0 2rem;
  }

  .site-footer__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .site-footer__brand {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .site-footer__logo-icon,
  .site-footer__logo-text {
    font-size: 1.5rem;
  }

  .site-footer__tagline {
    margin-left: 0;
    font-size: 0.8125rem;
    max-width: 320px;
    line-height: 1.5;
    color: var(--on-surface-variant);
  }

  .site-footer__nav {
    gap: 2rem;
    justify-content: center;
  }

  .site-footer__nav-link {
    font-size: 0.875rem;
    color: var(--on-surface);
    font-weight: 600;
  }

  .site-footer__bottom {
    flex-direction: column-reverse;
    gap: 1.5rem;
    align-items: center;
    padding-top: 2rem;
  }

  .site-footer__copyright {
    margin-left: 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--outline);
  }

  .site-footer__social {
    gap: 1.25rem;
  }

  .site-footer__social-link .material-symbols-outlined {
    font-size: 1.25rem;
  }
}

/* ============================================
   RESPONSIVE — Small Mobile
   ============================================ */
@media (max-width: 480px) {
  .site-header__inner {
    height: 4rem;
  }

  .hero {
    padding-top: 6.5rem;
    padding-bottom: 2.5rem;
  }

  .hero__text {
    gap: 1.25rem;
  }

  .hero__overline {
    margin-bottom: 2rem;
    display: block;
  }

  .hero__headline {
    font-size: 1.875rem;
  }

  .features {
    padding: 2.5rem 0;
  }

  .feature-card {
    padding: 1.125rem;
  }

  .security {
    padding: 2.5rem 0;
  }

  .opensource {
    padding: 2.5rem 0;
  }

  .final-cta {
    padding: 3rem 0;
  }

  .final-cta__title {
    font-size: 1.5rem;
  }

  .site-header__logo-img {
    height: 28px;
    width: 28px;
  }

  .site-header__logo-text {
    font-size: 1.25rem;
  }

  .site-header__left {
    gap: 0.5rem;
  }

  .site-header__nav-link {
    display: none;
  }
}
