header::before {
  content: "v20251127-1400-responsive-optimized";
  display: none;
}

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

:root {
  --bg: #0a0e17;
  --card: #11182600;
  --border: #1f2937;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --primary: #14b8a6;
  --primary-hover: #2dd4bf;
  --danger: #ef4444;
  --success: #10b981;
  --radius: 20px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.75;
  min-height: 100vh;
  padding: 0;
}

#full-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

.bg-blur {
  top: 0;
  pointer-events: none;
  left: 0;
  position: fixed;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Language Switcher — Professional Responsive */
.lang-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  left: auto !important;
  transform: translateX(0) !important;
  z-index: 1000;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.4rem;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  color: white;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  user-select: none;
}

.lang-current:hover {
  background: rgba(15, 23, 42, 1);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.dropdown-icon {
  transition: transform 0.3s ease;
  width: 16px;
  height: 16px;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  left: auto !important;
  transform: translateX(0) !important;
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  min-width: 180px;
  z-index: 1001;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  width: 100%;
  padding: 0.7rem 1rem;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.lang-option:hover,
.lang-option.active {
  background: rgba(62, 180, 191, 0.55);
  color: white;
}

.lang-option .fi {
  font-size: 1.2em;
  flex-shrink: 0;
}

/* New Menu Switcher — Professional Responsive */
.menu-switcher {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: auto !important;
  z-index: 1000;
  display: none;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: white;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.menu-toggle:hover {
  background: rgba(15, 23, 42, 1);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: auto !important;
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 200px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.menu-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.menu-dropdown .nav-link {
  display: block;
  padding: 0.7rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.menu-dropdown .nav-link:hover,
.menu-dropdown .nav-link.active {
  background: rgba(62, 180, 191, 0.55);
  color: white;
}

/* Header */
.header {
  position: relative;
  padding: 4rem 2.5rem 3rem;
  text-align: center;
  background: linear-gradient(100deg, #0d94890e, #0f766d00);
  overflow: visible;
  z-index: 1;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.header-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
  z-index: 1;
  pointer-events: none;
}

.header-logo-link {
  display: inline-block;
}

.header-logo {
  width: 96px;
  height: 96px;
  border-radius: 79% 21% 70% 30% / 50% 48% 52% 50%;
  object-fit: contain;
  background: rgba(15, 23, 42, 0.98);
  padding: 14px;
  border: 4px solid rgba(20, 184, 166, 0.6);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(20, 184, 166, 0.3);
  transition: var(--transition);
}

.header-logo:hover {
  transform: translateY(-8px) scale(1.1);
  border-color: var(--primary);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(20, 184, 166, 0.6);
}

.header-text {
  text-align: center;
}

.header-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #ffffff, #ccfbf1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.8px;
}

.header-nav {
  position: fixed;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 1.8rem;
  align-items: center;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  z-index: 1000;
  transition: var(--transition);
  user-select: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-hover);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-hover);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.updated {
  color: #ccfbf1;
  font-size: 1.1rem;
  opacity: 0.92;
  font-weight: 500;
}

/* Content */
.content {
  padding: 3rem 2.5rem;
  font-size: 1.1rem;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.intro {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: #ccfbf1;
  padding: 1.5rem;
  background: rgba(20, 184, 166, 0.1);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.section {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border);
}

.section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.section h2 .num {
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--primary-hover);
  flex-shrink: 0;
}

.section h3 {
  font-size: 1.35rem;
  margin: 1.8rem 0 0.8rem;
  color: #ccfbf1;
  word-break: break-word;
  overflow-wrap: break-word;
}

.section p,
.section ul {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.section ul {
  padding-left: 1.5rem;
  list-style-type: disc;
}

.section ul li {
  margin-bottom: 0.8rem;
  position: relative;
  word-break: break-word;
  overflow-wrap: break-word;
}

.section ul li::marker {
  color: var(--primary);
}

.section ul li strong {
  color: var(--text);
}

.section-footer {
  margin-top: 1.2rem;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 12px;
  border-left: 4px solid var(--danger);
  font-size: 0.98rem;
  color: #fca5a5;
  word-break: break-word;
  overflow-wrap: break-word;
}

.closing {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(13, 148, 136, 0.1));
  border: 1px dashed var(--primary);
  border-radius: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 1.2rem;
  color: #ccfbf1;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Footer */
.footer {
  direction: ltr;
  text-align: center;
  padding: 2.5rem 1rem;
  background: #0f172a00;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  word-break: break-all;
}

.footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Loading */
.loading {
  text-align: center;
  padding: 4rem;
  font-size: 1.3rem;
  color: var(--primary);
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .intro {
  border-left: none;
  border-right: 4px solid var(--primary);
  border-radius: 12px 0 0 12px;
}

[dir="rtl"] .section ul {
  padding-left: 0;
  padding-right: 1.5rem;
}

[dir="rtl"] .section-footer {
  border-left: none;
  border-right: 4px solid var(--danger);
}

[dir="rtl"] .lang-option {
  text-align: right;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

[dir="rtl"] .lang-current {
  flex-direction: row-reverse;
}

[dir="rtl"] .menu-dropdown {
  text-align: right;
}

/* Remove RTL overrides for positions */
.lang-switcher {
  right: 1rem !important;
  left: auto !important;
}

.menu-switcher {
  left: 1rem !important;
  right: auto !important;
}

/* Responsive Design - Optimized for All Devices */

/* Large screens (desktops, 1024px and up) */
@media (min-width: 1024px) {
  .container {
    max-width: 900px;
    margin: 2rem auto;
  }

  .header {
    padding: 4rem 3rem 3rem;
  }

  .content {
    padding: 3rem 3.5rem;
  }

  .header-text h1 {
    font-size: 3rem;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  .section h2 .num {
    font-size: 2rem;
  }
}

/* Medium screens (tablets, 768px to 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  .container {
    max-width: 90%;
    margin: 1rem auto;
  }

  .header {
    padding: 3.5rem 2rem 2.5rem;
  }

  .content {
    padding: 2.5rem 2.5rem;
    font-size: 1.05rem;
  }

  .header-logo {
    width: 90px;
    height: 90px;
    padding: 12px;
  }

  .header-text h1 {
    font-size: 2.6rem;
  }

  .updated {
    font-size: 1.05rem;
  }

  .intro {
    font-size: 1.15rem;
    padding: 1.25rem;
  }

  .section h2 {
    font-size: 1.55rem;
    gap: 0.6rem;
  }

  .section h2 .num {
    font-size: 1.75rem;
  }

  .section h3 {
    font-size: 1.3rem;
  }

  .lang-switcher {
    top: 1.5rem;
    right: 1.5rem;
  }
}

/* Small screens (mobile, up to 767px) */
@media (max-width: 767px) {
  body {
    padding: 0;
  }

  .container {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }

  .header {
    padding: 3rem 1rem 2rem;
  }

  .header-content {
    gap: 1rem;
  }

  .lang-switcher {
    top: 1rem;
    right: 1rem;
  }

  .lang-current {
    padding: 0.4rem 0.8rem;
    gap: 0.4rem;
    font-size: 0.9rem;
  }

  .lang-current .fi {
    font-size: 1em;
  }

  .lang-option {
    padding: 0.6rem 1rem;
    gap: 0.5rem;
    font-size: 0.95rem;
  }

  .lang-option .fi {
    font-size: 1em;
  }

  .header-logo {
    width: 80px;
    height: 80px;
    padding: 10px;
    border-width: 3px;
  }

  .header-text h1 {
    font-size: 2rem;
    letter-spacing: -0.5px;
  }

  .updated {
    font-size: 0.95rem;
  }

  .content {
    padding: 2rem 1.25rem;
    font-size: 1rem;
  }

  .intro {
    font-size: 1.05rem;
    padding: 1rem;
    margin-bottom: 2rem;
  }

  .section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.2rem;
  }

  .section h2 {
    font-size: 1.4rem;
    gap: 0.5rem;
    align-items: baseline;
    white-space: normal;
    flex-wrap: wrap;
  }

  .section h2 .num {
    font-size: 1.6rem;
    white-space: nowrap;
  }

  .section h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.6rem;
  }

  .section p,
  .section ul {
    margin-bottom: 1rem;
  }

  .section ul {
    padding-left: 1.2rem;
  }

  .section ul li {
    margin-bottom: 0.6rem;
  }

  .section-footer {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .closing {
    margin-top: 2.5rem;
    padding: 1.5rem;
    font-size: 1.1rem;
  }

  .footer {
    padding: 2rem 1rem;
    font-size: 0.9rem;
  }

  /* Show menu switcher and hide header-nav on mobile */
  .menu-switcher {
    display: block;
  }

  .header-nav {
    display: none;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .menu-toggle svg {
    width: 20px;
    height: 20px;
  }

  .menu-dropdown .nav-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }

  /* Remove underline for nav links in dropdown */
  .menu-dropdown .nav-link::after {
    display: none;
  }
}

/* Extra small screens (small mobiles, up to 480px) */
@media (max-width: 480px) {
  .header {
    padding: 2.5rem 0.75rem 1.5rem;
  }

  .lang-switcher {
    top: 0.75rem;
    right: 0.75rem;
  }

  .menu-switcher {
    top: 0.75rem;
    left: 0.75rem;
  }

  .header-logo {
    width: 70px;
    height: 70px;
    padding: 8px;
  }

  .header-text h1 {
    font-size: 1.8rem;
  }

  .updated {
    font-size: 0.9rem;
  }

  .content {
    padding: 1.5rem 1rem;
    font-size: 0.95rem;
  }

  .intro {
    font-size: 1rem;
    padding: 0.8rem;
  }

  .section h2 {
    font-size: 1.3rem;
  }

  .section h2 .num {
    font-size: 1.5rem;
  }

  .section h3 {
    font-size: 1.15rem;
  }

  .section ul {
    padding-left: 1rem;
  }

  .footer {
    padding: 1.5rem 0.75rem;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  .menu-toggle svg {
    width: 18px;
    height: 18px;
  }
}

/* High-resolution adjustments (for retina displays) */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .header-logo {
    image-rendering: crisp-edges;
  }
}