/* =============================================================================
   SiemaszkoLab - Main Design System
   Cyberpunk / Terminal Aesthetic Dark Theme
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   ----------------------------------------------------------------------------- */

:root {
  /* Colors - Core */
  --color-bg-primary: #0a0a0f;
  --color-bg-secondary: #12121a;
  --color-bg-tertiary: #1a1a2e;
  --color-bg-hover: #1a1a2e;
  --color-bg-elevated: #16161f;

  /* Colors - Accent */
  --color-accent: #00ff88;
  --color-accent-dim: rgba(0, 255, 136, 0.15);
  --color-accent-glow: rgba(0, 255, 136, 0.4);
  --color-secondary: #00d4ff;
  --color-secondary-dim: rgba(0, 212, 255, 0.15);
  --color-secondary-glow: rgba(0, 212, 255, 0.4);

  /* Colors - Text */
  --color-text-primary: #e0e0e0;
  --color-text-secondary: #a0a0a0;
  --color-text-muted: #666680;
  --color-text-inverse: #0a0a0f;

  /* Colors - Semantic */
  --color-success: #00ff88;
  --color-error: #ff4444;
  --color-warning: #ffaa00;
  --color-info: #00d4ff;
  --color-danger: #ff4444;
  --color-danger-dim: rgba(255, 68, 68, 0.15);

  /* Colors - Borders */
  --color-border: #2a2a3e;
  --color-border-light: #1e1e30;
  --color-border-focus: #00ff88;

  /* Typography */
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-neon: 0 0 10px var(--color-accent-glow), 0 0 20px rgba(0, 255, 136, 0.2);
  --shadow-neon-lg: 0 0 15px var(--color-accent-glow), 0 0 30px rgba(0, 255, 136, 0.2), 0 0 60px rgba(0, 255, 136, 0.1);
  --shadow-cyan: 0 0 10px var(--color-secondary-glow), 0 0 20px rgba(0, 212, 255, 0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;

  /* Layout */
  --nav-height: 64px;
  --sidebar-width: 260px;
  --container-max: 1200px;
  --container-narrow: 800px;
}


/* -----------------------------------------------------------------------------
   2. @font-face Declarations
   ----------------------------------------------------------------------------- */

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/JetBrainsMono-Regular.woff2') format('woff2'),
       url('/assets/fonts/JetBrainsMono-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/JetBrainsMono-Medium.woff2') format('woff2'),
       url('/assets/fonts/JetBrainsMono-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/JetBrainsMono-Bold.woff2') format('woff2'),
       url('/assets/fonts/JetBrainsMono-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Regular.woff2') format('woff2'),
       url('/assets/fonts/Inter-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Medium.woff2') format('woff2'),
       url('/assets/fonts/Inter-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-SemiBold.woff2') format('woff2'),
       url('/assets/fonts/Inter-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Bold.woff2') format('woff2'),
       url('/assets/fonts/Inter-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* -----------------------------------------------------------------------------
   3. Reset / Normalize
   ----------------------------------------------------------------------------- */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--color-accent) var(--color-bg-secondary);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
  text-shadow: 0 0 8px var(--color-secondary-glow);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

[hidden] {
  display: none !important;
}


/* -----------------------------------------------------------------------------
   4. Scrollbar Styling
   ----------------------------------------------------------------------------- */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

::-webkit-scrollbar-corner {
  background: var(--color-bg-secondary);
}


/* -----------------------------------------------------------------------------
   5. Selection Highlight
   ----------------------------------------------------------------------------- */

::selection {
  background-color: var(--color-accent);
  color: var(--color-bg-primary);
}

::-moz-selection {
  background-color: var(--color-accent);
  color: var(--color-bg-primary);
}


/* -----------------------------------------------------------------------------
   6. Base Typography
   ----------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-5xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-4xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background-color: var(--color-bg-tertiary);
  color: var(--color-accent);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow-x: auto;
  margin-bottom: var(--space-6);
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  background-color: var(--color-bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

blockquote p:last-child {
  margin-bottom: 0;
}

mark {
  background-color: var(--color-accent-dim);
  color: var(--color-accent);
  padding: 0.1em 0.3em;
  border-radius: 2px;
}


/* -----------------------------------------------------------------------------
   7. Layout System
   ----------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: 1400px;
}

/* CSS Grid */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.grid--auto-sm {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex--col {
  flex-direction: column;
}

.flex--wrap {
  flex-wrap: wrap;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}

.flex--start {
  align-items: flex-start;
}

.flex--end {
  justify-content: flex-end;
}

.flex--gap-sm {
  gap: var(--space-2);
}

.flex--gap {
  gap: var(--space-4);
}

.flex--gap-lg {
  gap: var(--space-6);
}

.flex-1 {
  flex: 1;
}

/* Section spacing */
.section {
  padding: var(--space-20) 0;
}

.section--sm {
  padding: var(--space-12) 0;
}

.section--lg {
  padding: var(--space-24) 0;
}

/* Main content offset for fixed nav */
.main-content {
  padding-top: var(--nav-height);
  min-height: 100vh;
}


/* -----------------------------------------------------------------------------
   8. Navigation
   ----------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 20px rgba(0, 255, 136, 0.06);
  z-index: var(--z-fixed);
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav__logo:hover {
  color: var(--color-accent);
  text-shadow: 0 0 12px var(--color-accent-glow);
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
}

.nav__logo-prefix {
  color: var(--color-text-muted);
  font-weight: var(--font-normal);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--color-accent);
  background-color: var(--color-accent-dim);
  text-shadow: none;
}

.nav__link.active {
  color: var(--color-accent);
  background-color: var(--color-accent-dim);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Hamburger Menu */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.nav__hamburger:hover {
  background-color: var(--color-bg-tertiary);
}

.nav__hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text-primary);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav__hamburger.active .nav__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.active .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active .nav__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-6);
  overflow-y: auto;
  z-index: var(--z-fixed);
}

.nav__mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nav__mobile-menu .nav__link {
  font-size: var(--text-lg);
  padding: var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
}


/* -----------------------------------------------------------------------------
   9. Hero Section
   ----------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: var(--space-24) var(--space-6);
  text-align: center;
  overflow: hidden;
}

.hero--full {
  min-height: 100vh;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero__title {
  font-family: var(--font-mono);
  font-size: var(--text-6xl);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero__title-accent {
  color: var(--color-accent);
  text-shadow:
    0 0 10px var(--color-accent-glow),
    0 0 20px rgba(0, 255, 136, 0.3),
    0 0 40px rgba(0, 255, 136, 0.15),
    0 0 80px rgba(0, 255, 136, 0.08);
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Scanline overlay for hero */
.hero__scanlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero__scanlines::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 136, 0.015) 2px,
    rgba(0, 255, 136, 0.015) 4px
  );
}

.hero__scanlines::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 200%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 255, 136, 0.03) 50%,
    transparent 100%
  );
  animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(50%); }
}

/* Grid background effect */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--color-border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border-light) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}


/* -----------------------------------------------------------------------------
   10. Page Header (Non-hero pages)
   ----------------------------------------------------------------------------- */

.page-header {
  padding: var(--space-12) 0 var(--space-8);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}

.page-header__title {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-2);
}

.page-header__description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
}


/* -----------------------------------------------------------------------------
   11. Footer
   ----------------------------------------------------------------------------- */

.footer {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) 0 var(--space-8);
  margin-top: auto;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.footer__brand {
  max-width: 300px;
}

.footer__brand-name {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.footer__links {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.footer__links-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-accent);
  text-shadow: none;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-8);
  margin-top: var(--space-8);
  border-top: 1px solid var(--color-border-light);
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.footer__socials {
  display: flex;
  gap: var(--space-4);
}

.footer__social-link {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--color-accent);
  text-shadow: none;
}


/* -----------------------------------------------------------------------------
   12. Utility Classes
   ----------------------------------------------------------------------------- */

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-accent   { color: var(--color-accent); }
.text-cyan     { color: var(--color-secondary); }
.text-muted    { color: var(--color-text-muted); }
.text-danger   { color: var(--color-danger); }
.text-success  { color: var(--color-success); }

.text-sm  { font-size: var(--text-sm); }
.text-lg  { font-size: var(--text-lg); }
.text-xl  { font-size: var(--text-xl); }

.font-mono { font-family: var(--font-mono); }

.mt-0  { margin-top: 0; }
.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.pt-0  { padding-top: 0; }
.pb-0  { padding-bottom: 0; }

.w-full { width: 100%; }

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

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.no-scroll {
  overflow: hidden;
}


/* -----------------------------------------------------------------------------
   13. Responsive Breakpoints
   ----------------------------------------------------------------------------- */

/* Tablet: <= 1024px */
@media (max-width: 1024px) {
  :root {
    --text-5xl: 2.5rem;
    --text-6xl: 3rem;
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 60vh;
    padding: var(--space-16) var(--space-6);
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__links {
    gap: var(--space-8);
  }
}

/* Mobile: <= 768px */
@media (max-width: 768px) {
  :root {
    --text-4xl: 1.875rem;
    --text-5xl: 2rem;
    --text-6xl: 2.25rem;
    --nav-height: 56px;
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .grid--auto {
    grid-template-columns: 1fr;
  }

  /* Navigation mobile */
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    min-height: 50vh;
    padding: var(--space-12) var(--space-4);
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: var(--space-12) 0;
  }

  .page-header {
    padding: var(--space-8) 0 var(--space-6);
    margin-bottom: var(--space-6);
  }

  .page-header__title {
    font-size: var(--text-3xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    flex-direction: column;
    gap: var(--space-6);
  }
}
