:root {
  color-scheme: dark;
  --bg: #050816;
  --bg-soft: #090e23;
  --surface: rgba(255, 255, 255, 0.078);
  --surface-strong: rgba(255, 255, 255, 0.135);
  --surface-muted: rgba(255, 255, 255, 0.052);
  --border: rgba(255, 255, 255, 0.15);
  --text: #f7f9ff;
  --text-soft: #c8d0e4;
  --text-muted: #8d99ba;
  --accent: #93f8ff;
  --accent-2: #9b6cff;
  --accent-3: #79f2c0;
  --gold: #f8d886;
  --danger: #ff7a90;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: min(1180px, calc(100% - 40px));
  --header-height: 82px;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8ff;
  --bg-soft: #eef3ff;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-muted: rgba(255, 255, 255, 0.58);
  --border: rgba(15, 23, 42, 0.12);
  --text: #06111f;
  --text-soft: #303b52;
  --text-muted: #65708a;
  --accent: #0077ff;
  --accent-2: #6d28d9;
  --accent-3: #0f9f6e;
  --gold: #b7791f;
  --shadow: 0 26px 90px rgba(44, 63, 107, 0.18);
  --shadow-soft: 0 18px 50px rgba(44, 63, 107, 0.13);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 18% 8%, rgba(147, 248, 255, 0.16), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(155, 108, 255, 0.18), transparent 30%),
    linear-gradient(135deg, var(--bg), var(--bg-soft));
  color: var(--text);
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #020617; background: var(--accent); }

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 9999;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  transform: translateY(-150%);
  transition: transform 220ms ease;
}
.skip-link:focus { transform: translateY(0); }

.site-bg { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.046) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.046) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
  opacity: 0.36;
}
html[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.055) 1px, transparent 1px);
}
.orb { position: absolute; width: 34rem; height: 34rem; border-radius: 999px; filter: blur(58px); opacity: 0.34; animation: float-orb 12s ease-in-out infinite alternate; }
.orb-one { left: -12rem; top: 8rem; background: rgba(147, 248, 255, 0.42); }
.orb-two { right: -13rem; top: -7rem; background: rgba(155, 108, 255, 0.42); animation-delay: -4s; }
.orb-three { right: 18%; bottom: -17rem; background: rgba(121, 242, 192, 0.22); animation-delay: -8s; }
@keyframes float-orb { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(32px,-24px,0) scale(1.08); } }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}
.site-header.is-scrolled {
  background: rgba(5, 8, 22, 0.68);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(24px);
}
html[data-theme="light"] .site-header.is-scrolled { background: rgba(246, 248, 255, 0.78); }
.navbar { width: var(--container); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; letter-spacing: -0.04em; text-transform: uppercase; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 16px; font-family: var(--font-display); font-size: 0.95rem; color: #020617; background: linear-gradient(135deg, var(--accent), #fff 44%, var(--accent-2)); box-shadow: 0 14px 34px rgba(147, 248, 255, 0.23); }
.brand-text { font-family: var(--font-display); font-size: 1rem; }
.nav-panel { display: flex; align-items: center; gap: 4px; padding: 7px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); backdrop-filter: blur(22px); box-shadow: var(--shadow-soft); }
.nav-link { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: 999px; color: var(--text-soft); font-size: 0.88rem; font-weight: 800; text-decoration: none; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface-strong); }
.nav-link:hover { transform: translateY(-1px); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .menu-toggle, .scroll-top, .language-button {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.theme-toggle, .menu-toggle, .scroll-top { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; }
.theme-toggle:hover, .menu-toggle:hover, .scroll-top:hover, .language-button:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 58%, var(--border)); background: var(--surface-strong); }
.theme-icon-light, html[data-theme="light"] .theme-icon-dark { display: none; }
html[data-theme="light"] .theme-icon-light { display: inline-flex; }
.menu-toggle { display: none; }
.icon-close { display: none; }
.language-switcher { position: relative; }
.language-button { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 0 14px; border-radius: 999px; font-weight: 900; }
.language-flag, .language-menu img { width: 21px; height: 21px; border-radius: 999px; object-fit: cover; }
.language-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 190px; padding: 8px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface-strong); box-shadow: var(--shadow); backdrop-filter: blur(24px); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease; }
.language-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.language-menu button { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 14px; color: var(--text-soft); background: transparent; cursor: pointer; font-weight: 800; text-align: left; }
.language-menu button:hover { color: var(--text); background: var(--surface); }

.blog-hero { min-height: 100svh; padding: calc(var(--header-height) + 58px) 0 44px; display: grid; align-items: center; }
.hero-shell { width: var(--container); margin-inline: auto; display: grid; grid-template-columns: minmax(0, .95fr) minmax(340px, .72fr); gap: clamp(34px, 6vw, 88px); align-items: center; }
.eyebrow { width: fit-content; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-soft); background: var(--surface); box-shadow: var(--shadow-soft); backdrop-filter: blur(20px); font-size: 0.9rem; font-weight: 800; }
.eyebrow .material-symbols-rounded { color: var(--gold); }
.hero-copy h1 { margin: 0; max-width: 820px; font-family: var(--font-display); font-size: clamp(2.8rem, 5.8vw, 5.6rem); line-height: .96; letter-spacing: -0.068em; text-wrap: balance; }
.hero-copy p { max-width: 680px; margin: 28px 0 0; color: var(--text-soft); font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.78; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn { position: relative; isolation: isolate; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border-radius: 999px; font-weight: 900; text-decoration: none; overflow: hidden; transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.btn::before { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 200ms ease; }
.btn:hover { transform: translateY(-3px); }
.btn:hover::before { opacity: 1; }
.btn-primary { color: #020617; background: linear-gradient(135deg, var(--accent), #fff 42%, var(--accent-2)); box-shadow: 0 18px 44px rgba(147, 248, 255, 0.21); }
.btn-primary::before { background: linear-gradient(135deg, #fff, var(--accent)); }
.btn-secondary { color: var(--text); border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(18px); }
.btn-secondary::before { background: var(--surface-strong); }
.hero-feature { position: relative; }
.feature-label { display: inline-flex; margin-bottom: 12px; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--accent); background: var(--surface); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.feature-card { position: relative; display: block; min-height: 520px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(24px); text-decoration: none; }
.feature-card::before { content: ""; position: absolute; inset: -1px; z-index: 2; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, rgba(147,248,255,.38), transparent 38%, rgba(155,108,255,.38)); }
.feature-card img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; opacity: .86; transform: scale(1.02); transition: transform 600ms ease, opacity 600ms ease; }
.feature-card:hover img { transform: scale(1.08); opacity: .98; }
.feature-overlay { position: absolute; inset: auto 18px 18px; z-index: 3; padding: 22px; border: 1px solid var(--border); border-radius: 26px; background: rgba(5, 8, 22, .62); backdrop-filter: blur(22px); }
html[data-theme="light"] .feature-overlay { background: rgba(255,255,255,.72); }
.feature-overlay span { color: var(--accent); font-weight: 900; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.feature-overlay h2 { margin: 10px 0 0; font-family: var(--font-display); letter-spacing: -.04em; font-size: clamp(1.35rem, 2.2vw, 2rem); }
.feature-overlay p { margin: 12px 0 0; color: var(--text-soft); line-height: 1.55; }
.hero-metrics { width: var(--container); margin: 34px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metric-card { padding: 18px 20px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-soft); backdrop-filter: blur(18px); }
.metric-card strong { display: block; font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -.035em; }
.metric-card span { display: block; margin-top: 6px; color: var(--text-muted); line-height: 1.45; }

.editorial-strip { width: var(--container); margin: 0 auto; padding: 34px 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.strip-card { padding: 24px; border: 1px solid var(--border); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-soft); backdrop-filter: blur(18px); }
.strip-card > .material-symbols-rounded { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; color: #020617; background: linear-gradient(135deg, var(--accent), #fff 45%, var(--accent-2)); }
.strip-card h2 { margin: 18px 0 0; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.04em; }
.strip-card p { margin: 10px 0 0; color: var(--text-soft); line-height: 1.65; }

.posts-section { width: var(--container); margin: 0 auto; padding: 84px 0 42px; }
.section-heading { max-width: 780px; margin-bottom: 30px; }
.section-kicker { display: inline-flex; color: var(--accent); font-weight: 950; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; }
.section-heading h2, .blog-cta h2 { margin: 10px 0 0; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: .98; letter-spacing: -.07em; }
.section-heading p, .blog-cta p { margin: 18px 0 0; color: var(--text-soft); line-height: 1.78; font-size: 1.05rem; }
.blog-controls { display: grid; grid-template-columns: minmax(260px, .82fr) 1fr; gap: 16px; align-items: start; margin-top: 26px; }
.search-box { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-soft); backdrop-filter: blur(18px); }
.search-box .material-symbols-rounded { color: var(--accent); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-weight: 700; }
.search-box input::placeholder { color: var(--text-muted); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chip, .clear-filters { min-height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-soft); background: var(--surface); cursor: pointer; font-weight: 850; transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease; }
.filter-chip:hover, .clear-filters:hover { transform: translateY(-2px); color: var(--text); background: var(--surface-strong); }
.filter-chip.active { color: #020617; border-color: transparent; background: linear-gradient(135deg, var(--accent), #fff 42%, var(--accent-2)); }
.results-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 22px 0 18px; color: var(--text-muted); font-weight: 800; }
.clear-filters { min-height: 38px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { position: relative; min-height: 100%; border: 1px solid var(--border); border-radius: 28px; background: linear-gradient(180deg, var(--surface-strong), var(--surface-muted)); box-shadow: var(--shadow-soft); backdrop-filter: blur(20px); overflow: hidden; transition: transform 220ms ease, border-color 220ms ease, background 220ms ease; }
.post-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, rgba(147,248,255,.3), transparent 40%, rgba(155,108,255,.26)); opacity: 0; transition: opacity 220ms ease; }
.post-card:hover { transform: translateY(-7px); border-color: color-mix(in srgb, var(--accent) 38%, var(--border)); }
.post-card:hover::before { opacity: 1; }
.post-link { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; text-decoration: none; }
.post-media { position: relative; aspect-ratio: 16 / 10.4; overflow: hidden; background: var(--surface); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform 520ms ease, filter 520ms ease; }
.post-card:hover .post-media img { transform: scale(1.08); filter: saturate(1.08) contrast(1.03); }
.post-track { position: absolute; left: 14px; top: 14px; max-width: calc(100% - 28px); padding: 8px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.24); color: #fff; background: rgba(5, 8, 22, .64); backdrop-filter: blur(14px); font-size: .75rem; font-weight: 900; }
.post-body { flex: 1; display: flex; flex-direction: column; padding: 20px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 9px 12px; color: var(--text-muted); font-size: .78rem; font-weight: 800; }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta .material-symbols-rounded { font-size: 1rem; color: var(--accent); }
.post-body h3 { margin: 15px 0 0; font-family: var(--font-display); font-size: 1.28rem; line-height: 1.12; letter-spacing: -.045em; }
.post-body p { margin: 12px 0 0; color: var(--text-soft); line-height: 1.62; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; color: var(--text-muted); font-size: .82rem; font-weight: 850; }
.read-more { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); white-space: nowrap; }
.read-more .material-symbols-rounded { font-size: 1rem; transition: transform 180ms ease; }
.post-card:hover .read-more .material-symbols-rounded { transform: translateX(3px); }
.empty-state { display: none; margin: 22px 0 0; padding: 26px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); color: var(--text-soft); text-align: center; font-weight: 800; }
.empty-state.is-visible { display: block; }

.blog-cta { width: var(--container); margin: 40px auto 90px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; padding: 34px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: radial-gradient(circle at 90% 0%, rgba(155,108,255,.22), transparent 35%), var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(24px); }
.blog-cta p { max-width: 760px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.scroll-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; opacity: 0; visibility: hidden; transform: translateY(12px); }
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.footer { border-top: 1px solid var(--border); background: rgba(5, 8, 22, 0.7); color: var(--text); text-align: center; padding: 2.2rem 1rem; backdrop-filter: blur(18px); }
html[data-theme="light"] .footer { background: rgba(246, 248, 255, 0.72); }
.footer-title { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 900; letter-spacing: -.03em; }
.footer p { margin: .65rem 0 0; color: var(--text-muted); }
.footer a { color: var(--accent); font-weight: 900; text-decoration: none; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 75%, white); outline-offset: 4px; }

@media (max-width: 1160px) {
  .nav-panel { gap: 2px; }
  .nav-link { padding: 0 10px; font-size: .82rem; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1040px) {
  :root { --header-height: 74px; }
  .nav-panel { position: fixed; top: calc(var(--header-height) + 12px); right: 20px; left: 20px; z-index: 999; display: grid; gap: 8px; padding: 14px; border-radius: 26px; opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease; }
  .nav-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
  .nav-link { min-height: 48px; justify-content: center; font-size: 1rem; }
  .menu-toggle { display: inline-grid; }
  .menu-toggle.is-active .icon-menu { display: none; }
  .menu-toggle.is-active .icon-close { display: inline-flex; }
  .hero-shell { grid-template-columns: 1fr; padding-top: 34px; }
  .hero-copy h1 { max-width: 900px; }
  .feature-card, .feature-card img { min-height: 430px; }
  .hero-metrics, .editorial-strip { grid-template-columns: 1fr; }
  .blog-controls { grid-template-columns: 1fr; }
  .blog-cta { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
}
@media (max-width: 720px) {
  :root { --container: min(100% - 28px, 1180px); }
  .brand-text { display: none; }
  .language-button { padding-inline: 12px; }
  .language-current-flag { display: none; }
  .blog-hero { padding-top: calc(var(--header-height) + 30px); }
  .hero-copy h1 { font-size: clamp(2.35rem, 11vw, 3.85rem); }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .feature-card, .feature-card img { min-height: 390px; }
  .feature-overlay { inset: auto 12px 12px; padding: 18px; }
  .posts-grid { grid-template-columns: 1fr; }
  .results-meta { align-items: flex-start; flex-direction: column; }
  .blog-cta { padding: 24px; margin-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
