/*
Theme Name: Alpha Structure FX
Theme URI: https://www.alphastructurefx.com
Author: Alpha Structure FX
Description: A premium institutional WordPress block theme for Alpha Structure FX.
Version: 1.0.0
Text Domain: alpha-structure-fx
*/

:root,
html[data-theme="dark"] {
  --asfx-bg: #04070B;
  --asfx-bg-alt: #0A1117;
  --asfx-surface: #0B1622;
  --asfx-surface-raised: #102133;
  --asfx-text-strong: #F5F7FA;
  --asfx-text: #E7EDF5;
  --asfx-text-muted: #9AA8B7;
  --asfx-border: #223247;
  --asfx-border-strong: #415D76;
  --asfx-accent: #B7FF2A;
  --asfx-accent-hover: #D9FF7A;
  --asfx-accent-soft: rgba(183, 255, 42, 0.12);
  --asfx-link: #C9FF47;
  --asfx-focus: #C9FF47;
  --asfx-primary-bg: #B7FF2A;
  --asfx-primary-text: #07150F;

  --asfx-feature-bg: #09161F;
  --asfx-feature-bg-raised: #0F1E2B;
  --asfx-feature-text-strong: #F5F7FA;
  --asfx-feature-text: #D9E3EC;
  --asfx-feature-text-muted: #9AA8B7;
  --asfx-feature-border: #243D4D;
  --asfx-feature-border-strong: #4B6C83;
  --asfx-feature-accent: #92F500;
  --asfx-feature-accent-hover: #C9FF47;
  --asfx-feature-link: #C9FF47;

  --asfx-color-bg: var(--asfx-bg);
  --asfx-color-bg-deep: var(--asfx-bg-alt);
  --asfx-color-surface: var(--asfx-surface);
  --asfx-color-surface-strong: var(--asfx-surface-raised);
  --asfx-color-panel: var(--asfx-surface);
  --asfx-color-text: var(--asfx-text);
  --asfx-color-muted: var(--asfx-text-muted);
  --asfx-color-accent: var(--asfx-accent);
  --asfx-color-accent-soft: var(--asfx-accent-hover);
  --asfx-color-border: var(--asfx-border);
  --asfx-color-glow: rgba(146, 245, 0, 0.18);

  --asfx-radius-lg: 28px;
  --asfx-radius-md: 18px;
  --asfx-shadow-soft: 0 18px 44px rgba(2, 8, 12, 0.28);
  --asfx-container: 1200px;
  --asfx-font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --asfx-font-mono: "SFMono-Regular", Consolas, monospace;
}

html[data-theme="light"] {
  --asfx-bg: #F4F6F8;
  --asfx-bg-alt: #EBEFF3;
  --asfx-surface: #FFFFFF;
  --asfx-surface-raised: #F6F9FB;
  --asfx-text-strong: #0D1520;
  --asfx-text: #1A2632;
  --asfx-text-muted: #53667B;
  --asfx-border: #CED7DF;
  --asfx-border-strong: #9EAFBE;
  --asfx-accent: #84E800;
  --asfx-accent-hover: #92F500;
  --asfx-accent-soft: rgba(146, 245, 0, 0.12);
  --asfx-link: #135E24;
  --asfx-focus: #84E800;
  --asfx-primary-bg: #92F500;
  --asfx-primary-text: #08150F;

  --asfx-feature-bg: #102133;
  --asfx-feature-bg-raised: #142C3D;
  --asfx-feature-text-strong: #F5F7FA;
  --asfx-feature-text: #D8E2ED;
  --asfx-feature-text-muted: #9DB0C0;
  --asfx-feature-border: #2A4053;
  --asfx-feature-border-strong: #5A7288;
  --asfx-feature-accent: #92F500;
  --asfx-feature-accent-hover: #C9FF47;
  --asfx-feature-link: #C9FF47;

  --asfx-color-bg: var(--asfx-bg);
  --asfx-color-bg-deep: var(--asfx-bg-alt);
  --asfx-color-surface: var(--asfx-surface);
  --asfx-color-surface-strong: var(--asfx-surface-raised);
  --asfx-color-panel: var(--asfx-surface-raised);
  --asfx-color-text: var(--asfx-text);
  --asfx-color-muted: var(--asfx-text-muted);
  --asfx-color-accent: var(--asfx-accent);
  --asfx-color-accent-soft: var(--asfx-accent-hover);
  --asfx-color-border: var(--asfx-border);
  --asfx-color-glow: rgba(146, 245, 0, 0.12);
  --asfx-shadow-soft: 0 18px 44px rgba(16, 33, 51, 0.12);
}

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: var(--asfx-color-bg);
  color: var(--asfx-color-text);
  font-family: var(--asfx-font-sans);
  line-height: 1.7;
}

* {
  box-sizing: border-box;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

body,
button,
a {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

p,
li,
span,
a,
button {
  font-size: 1rem;
}

a {
  color: var(--asfx-link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--asfx-accent-hover);
}

:focus-visible {
  outline: 2px solid var(--asfx-focus);
  outline-offset: 3px;
}

.wp-site-blocks {
  background: var(--asfx-bg);
}

.wp-block-group {
  position: relative;
}

.asfx-shell {
  max-width: var(--asfx-container);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.asfx-kicker {
  margin: 0 0 1rem;
  color: var(--asfx-accent);
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.asfx-section {
  position: relative;
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.asfx-section-header {
  max-width: 720px;
  margin-bottom: 2.25rem;
}

.asfx-section-header h2 {
  margin: 0;
}

.asfx-section-header p {
  margin: 1rem 0 0;
  color: var(--asfx-text-muted);
}

.asfx-hero-title {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.asfx-section-header h2,
.asfx-community-box h2,
.asfx-risk-box h2,
.asfx-cta-box h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.asfx-principle-card h3,
.asfx-feature-card h3,
.asfx-card h3,
.asfx-data-card h3,
.asfx-community-box h3,
.asfx-risk-box h3,
.asfx-cta-box h3,
.asfx-footer-column h3,
.asfx-footer-column h4 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.2;
}

.asfx-grid-3,
.asfx-grid-4,
.asfx-grid-2,
.asfx-footer-grid {
  display: grid;
  gap: 1.25rem;
}

.asfx-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.asfx-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.asfx-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.asfx-footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
}

.asfx-card,
.asfx-principle-card,
.asfx-feature-card,
.asfx-surface-panel,
.asfx-data-card,
.asfx-info-panel,
.asfx-community-box,
.asfx-risk-box,
.asfx-cta-box {
  background: var(--asfx-surface);
  border: 1px solid var(--asfx-border);
  border-radius: var(--asfx-radius-lg);
  box-shadow: var(--asfx-shadow-soft);
}

.asfx-card,
.asfx-principle-card,
.asfx-feature-card,
.asfx-data-card,
.asfx-surface-panel,
.asfx-info-panel,
.asfx-community-box,
.asfx-risk-box,
.asfx-cta-box {
  padding: 1.5rem;
}

.asfx-hero-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
  background:
    radial-gradient(circle at top left, rgba(146, 245, 0, 0.12), transparent 33%),
    radial-gradient(circle at bottom right, rgba(201, 255, 71, 0.07), transparent 34%),
    linear-gradient(180deg, var(--asfx-bg), var(--asfx-bg-alt));
}

html[data-theme="light"] .asfx-hero-section {
  background:
    radial-gradient(circle at top left, rgba(146, 245, 0, 0.16), transparent 33%),
    radial-gradient(circle at bottom right, rgba(132, 232, 0, 0.08), transparent 34%),
    linear-gradient(180deg, var(--asfx-bg), var(--asfx-bg-alt));
}

.asfx-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 95%);
  pointer-events: none;
}

.asfx-hero-section .wp-block-columns {
  gap: clamp(2rem, 4vw, 4rem);
}

.asfx-hero-title {
  margin: 0 0 1rem;
  max-width: 630px;
  color: var(--asfx-text-strong);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.asfx-hero-copy {
  max-width: 560px;
  margin: 0;
  color: var(--asfx-text-muted);
  font-size: 1.1rem;
}

.asfx-hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.asfx-hero-actions .wp-block-button__link,
.asfx-cta-box .wp-block-button__link,
.asfx-footer-cta .wp-block-button__link {
  border-radius: 999px !important;
  padding: 0.9rem 1.5rem !important;
  font-weight: 700;
}

.asfx-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  max-width: 560px;
}

.asfx-hero-meta div {
  padding: 1rem 1rem 0.9rem;
  border: 1px solid var(--asfx-border);
  border-radius: var(--asfx-radius-md);
  background: var(--asfx-surface);
}

.asfx-hero-meta span {
  display: block;
  color: var(--asfx-text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.asfx-hero-meta strong {
  font-size: 1rem;
  color: var(--asfx-text-strong);
}

.asfx-hero-visual {
  position: relative;
  min-height: 440px;
  border-radius: var(--asfx-radius-lg);
  border: 1px solid var(--asfx-feature-border);
  background:
    linear-gradient(150deg, var(--asfx-feature-bg), var(--asfx-feature-bg-raised));
  overflow: hidden;
  box-shadow: var(--asfx-shadow-soft);
}

.asfx-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(146, 245, 0, 0.12), rgba(201, 255, 71, 0.04));
}

.asfx-market-shell {
  position: absolute;
  inset: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

.asfx-market-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.asfx-market-dots {
  display: flex;
  gap: 0.4rem;
}

.asfx-market-dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

.asfx-market-dots span:first-child { background: rgba(255, 110, 110, 0.7); }
.asfx-market-dots span:nth-child(2) { background: rgba(255, 205, 83, 0.7); }
.asfx-market-dots span:nth-child(3) { background: rgba(117, 214, 121, 0.72); }

.asfx-market-label {
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--asfx-feature-text-muted);
}

.asfx-chart-wrap {
  position: relative;
  height: 260px;
  margin-top: 1rem;
  border-radius: 18px;
  border: 1px solid var(--asfx-feature-border);
  background: rgba(7, 17, 31, 0.7);
  overflow: hidden;
}

.asfx-chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 18px 18px;
}

.asfx-chart-line {
  position: absolute;
  inset: 1.2rem 1.1rem 1.5rem 1.1rem;
}

.asfx-chart-line svg {
  width: 100%;
  height: 100%;
}

.asfx-chart-line path {
  fill: none;
  stroke: var(--asfx-feature-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(146, 245, 0, 0.6));
}

.asfx-chart-points {
  position: absolute;
  inset: 0;
}

.asfx-chart-points span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--asfx-feature-accent);
  box-shadow: 0 0 0 4px rgba(201, 255, 71, 0.14);
}

.asfx-chart-points span:nth-child(1) { left: 12%; top: 70%; }
.asfx-chart-points span:nth-child(2) { left: 34%; top: 62%; }
.asfx-chart-points span:nth-child(3) { left: 52%; top: 42%; }
.asfx-chart-points span:nth-child(4) { left: 68%; top: 48%; }
.asfx-chart-points span:nth-child(5) { left: 82%; top: 26%; }

.asfx-visual-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.asfx-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--asfx-feature-border);
  background: rgba(18, 38, 58, 0.7);
  color: var(--asfx-feature-text);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.asfx-principle-card,
.asfx-feature-card,
.asfx-card,
.asfx-data-card {
  height: 100%;
}

.asfx-principle-card .asfx-number,
.asfx-feature-card .asfx-number,
.asfx-data-card .asfx-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--asfx-border);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--asfx-accent);
  background: var(--asfx-accent-soft);
  margin-bottom: 1rem;
}

.asfx-principle-card h3,
.asfx-feature-card h3,
.asfx-card h3,
.asfx-data-card h3,
.asfx-community-box h3,
.asfx-risk-box h3,
.asfx-cta-box h3 {
  margin: 0 0 0.75rem;
  color: var(--asfx-text-strong);
}

.asfx-principle-card p,
.asfx-feature-card p,
.asfx-card p,
.asfx-data-card p,
.asfx-community-box p,
.asfx-risk-box p,
.asfx-cta-box p,
.asfx-footer-column p,
.asfx-footer-column li {
  margin: 0;
  color: var(--asfx-text-muted);
}

.asfx-surface-panel,
.asfx-community-box,
.asfx-risk-box,
.asfx-cta-box {
  color: var(--asfx-feature-text);
}

.asfx-surface-panel .asfx-kicker,
.asfx-community-box .asfx-kicker,
.asfx-risk-box .asfx-kicker,
.asfx-cta-box .asfx-kicker {
  color: var(--asfx-feature-accent);
}

.asfx-surface-panel h3,
.asfx-community-box h2,
.asfx-community-box h3,
.asfx-risk-box h2,
.asfx-risk-box h3,
.asfx-cta-box h2,
.asfx-cta-box h3,
.asfx-surface-panel h4,
.asfx-surface-panel h5,
.asfx-surface-panel h6 {
  color: var(--asfx-feature-text-strong);
}

.asfx-surface-panel p,
.asfx-community-box p,
.asfx-risk-box p,
.asfx-cta-box p {
  color: var(--asfx-feature-text);
}

.asfx-surface-panel {
  background: linear-gradient(180deg, var(--asfx-feature-bg), var(--asfx-feature-bg-raised));
  border-color: var(--asfx-feature-border);
}

.asfx-surface-panel .asfx-panel-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.asfx-surface-panel .asfx-panel-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(146, 245, 0, 0.08);
  border: 1px solid rgba(146, 245, 0, 0.18);
  color: var(--asfx-feature-accent);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.asfx-surface-panel .asfx-mini-lines {
  display: flex;
  align-items: end;
  gap: 0.45rem;
  height: 3.2rem;
}

.asfx-surface-panel .asfx-mini-lines span {
  display: block;
  width: 0.5rem;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--asfx-feature-accent), var(--asfx-feature-accent-hover));
  opacity: 0.9;
}

.asfx-mini-lines span:nth-child(1) { height: 35%; }
.asfx-mini-lines span:nth-child(2) { height: 52%; }
.asfx-mini-lines span:nth-child(3) { height: 68%; }
.asfx-mini-lines span:nth-child(4) { height: 82%; }
.asfx-mini-lines span:nth-child(5) { height: 61%; }

.asfx-metric-row {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.asfx-metric-row span {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--asfx-feature-border);
  background: rgba(9, 22, 36, 0.75);
  color: var(--asfx-feature-text);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.asfx-community-box,
.asfx-risk-box,
.asfx-cta-box {
  background: linear-gradient(180deg, var(--asfx-feature-bg), var(--asfx-feature-bg-raised));
  border-color: var(--asfx-feature-border);
}

.asfx-community-box .asfx-primary-cta,
.asfx-risk-box .asfx-primary-cta,
.asfx-cta-box .asfx-primary-cta {
  display: inline-flex;
  margin-top: 1.5rem;
}

.asfx-cta-box {
  padding: clamp(1.5rem, 4vw, 2.8rem);
}

.asfx-cta-box h2 {
  margin: 0.4rem 0 1rem;
}

.asfx-cta-box .asfx-subtle {
  color: var(--asfx-feature-text-muted);
}

.asfx-primary-cta .wp-block-button__link,
.asfx-secondary-cta .wp-block-button__link {
  border-radius: 999px !important;
  font-weight: 700 !important;
}

.asfx-primary-cta .wp-block-button__link {
  background: var(--asfx-primary-bg) !important;
  color: var(--asfx-primary-text) !important;
}

.asfx-primary-cta .wp-block-button__link:hover,
.asfx-primary-cta .wp-block-button__link:focus-visible {
  background: var(--asfx-accent-hover) !important;
  color: var(--asfx-primary-text) !important;
}

.asfx-secondary-cta .wp-block-button__link {
  background: transparent !important;
  color: var(--asfx-text) !important;
  border: 1px solid var(--asfx-border) !important;
}

.asfx-secondary-cta .wp-block-button__link:hover,
.asfx-secondary-cta .wp-block-button__link:focus-visible {
  background: var(--asfx-accent-soft) !important;
  color: var(--asfx-text-strong) !important;
  border-color: var(--asfx-border-strong) !important;
}

.asfx-footer {
  border-top: 1px solid var(--asfx-border);
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: var(--asfx-bg);
  color: var(--asfx-feature-text);
}

.asfx-footer-column h3,
.asfx-footer-column h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--asfx-feature-text-strong);
}

.asfx-footer-column p,
.asfx-footer-column li,
.asfx-footer-column a,
.asfx-risk-disclaimer {
  color: var(--asfx-feature-text);
}

.asfx-footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.asfx-footer-column li a,
.asfx-footer-column a {
  color: var(--asfx-feature-link);
}

.asfx-footer-column li a:hover,
.asfx-footer-column a:hover,
.asfx-footer-column li a:focus-visible,
.asfx-footer-column a:focus-visible {
  color: var(--asfx-feature-accent-hover);
}

.asfx-risk-disclaimer {
  margin-top: 1.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--asfx-feature-border);
  color: var(--asfx-feature-text-muted);
  font-size: 0.85rem;
}

html[data-theme="light"] .asfx-footer {
  border-top-color: var(--asfx-border-strong);
  color: var(--asfx-text);
}

html[data-theme="light"] .asfx-footer-column h3,
html[data-theme="light"] .asfx-footer-column h4 {
  color: var(--asfx-text-strong);
}

html[data-theme="light"] .asfx-footer-column p,
html[data-theme="light"] .asfx-footer-column li,
html[data-theme="light"] .asfx-footer-column a {
  color: var(--asfx-text);
}

html[data-theme="light"] .asfx-footer-column li a,
html[data-theme="light"] .asfx-footer-column a {
  color: var(--asfx-link);
}

html[data-theme="light"] .asfx-footer-column li a:hover,
html[data-theme="light"] .asfx-footer-column a:hover,
html[data-theme="light"] .asfx-footer-column li a:focus-visible,
html[data-theme="light"] .asfx-footer-column a:focus-visible {
  color: #0F4F20;
}

html[data-theme="light"] .asfx-risk-disclaimer {
  border-top-color: var(--asfx-border-strong);
  color: var(--asfx-text-muted);
}

.asfx-header-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: var(--asfx-bg);
  border-bottom: 1px solid var(--asfx-border);
}

html[data-theme="light"] .asfx-header-wrap {
  background: var(--asfx-surface);
}

.asfx-header-wrap.asfx-header-english .asfx-main-nav {
  justify-content: center;
}

.asfx-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: clamp(0.9rem, 1.5vw, 2rem);
  max-width: 1600px;
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 1rem 1.25rem 1rem 0.8rem;
}

.asfx-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  flex-shrink: 0;
  margin-left: -0.55rem;
}

.asfx-brand-group {
  display: flex;
  align-items: center;
  min-width: 0;
  justify-self: start;
}

.asfx-brand-group .wp-block-site-logo {
  display: inline-flex;
  align-items: center;
}

.asfx-site-logo,
img.asfx-site-logo {
  display: block;
  width: clamp(260px, 19vw, 315px);
  height: auto;
  max-height: clamp(94px, 8vw, 146px);
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 0 22px rgba(146, 245, 0, 0.12));
}

html[data-theme="light"] .asfx-site-logo,
html[data-theme="light"] img.asfx-site-logo {
  filter: drop-shadow(0 8px 16px rgba(16, 33, 51, 0.08));
}

.asfx-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, rgba(124,200,255,0.18), rgba(161,240,216,0.08));
  border: 1px solid rgba(124,200,255,0.2);
  color: var(--asfx-color-text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.asfx-brand-copy {
  color: var(--asfx-text-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.asfx-header-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: end;
  margin-left: 0;
  flex-shrink: 0;
}

.asfx-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--asfx-border);
  border-radius: 999px;
  background: var(--asfx-surface);
}

html[data-theme="light"] .asfx-lang-switcher {
  background: var(--asfx-surface);
}

.asfx-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.7rem;
  min-height: 2.2rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  color: var(--asfx-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.asfx-lang-link.is-active {
  background: var(--asfx-accent-soft);
  color: var(--asfx-text-strong);
  border: 1px solid var(--asfx-border-strong);
}

.asfx-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  border: 1px solid var(--asfx-border);
  border-radius: 999px;
  background: var(--asfx-surface);
  color: var(--asfx-text-strong);
  padding: 0.38rem 0.8rem;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-theme="light"] .asfx-theme-toggle {
  background: var(--asfx-surface);
}

.asfx-theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--asfx-accent-soft);
  color: var(--asfx-accent);
}

.asfx-theme-toggle-text {
  line-height: 1;
}

.asfx-main-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(0.35rem, 0.72vw, 0.9rem);
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.asfx-main-nav a {
  color: var(--asfx-text-muted);
  font-size: 0.77rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

.asfx-main-nav a:hover,
.asfx-main-nav a:focus-visible {
  color: var(--asfx-text-strong);
}

.asfx-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  justify-self: end;
  flex-shrink: 0;
}

.asfx-header-cta .wp-block-button__link {
  border-radius: 999px !important;
  padding: 0.72rem 1.2rem !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700 !important;
}

.asfx-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 44px;
  border: 1px solid var(--asfx-border);
  border-radius: 999px;
  background: var(--asfx-surface);
  color: var(--asfx-text-strong);
  padding: 0.7rem 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 1365px) {
  .asfx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 0.8rem;
  }

  .asfx-main-nav {
    display: none;
  }

  .asfx-header-cta.asfx-header-cta,
  .asfx-header-cta.wp-block-buttons,
  .asfx-header-cta.is-layout-flex {
    display: none;
  }

  .asfx-nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 920px) {
  .asfx-header-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
  }

  .asfx-header-controls {
    margin-left: auto;
    flex-shrink: 0;
    order: 2;
  }

  .asfx-main-nav {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 1.25rem;
    right: 1.25rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: var(--asfx-surface);
    border: 1px solid var(--asfx-border);
    border-radius: 1rem;
    padding: 1rem 1rem 0.9rem;
    box-shadow: var(--asfx-shadow-soft);
  }

  .asfx-main-nav.is-open {
    display: flex;
  }

  .asfx-main-nav a {
    display: block;
    width: 100%;
  }

  .asfx-header-cta.asfx-header-cta,
  .asfx-header-cta.wp-block-buttons,
  .asfx-header-cta.is-layout-flex {
    display: none;
  }

  .asfx-nav-toggle {
    display: inline-flex;
  }

  .asfx-grid-4,
  .asfx-grid-3,
  .asfx-footer-grid,
  .asfx-grid-2 {
    grid-template-columns: 1fr;
  }

  .asfx-hero-section .wp-block-columns {
    flex-direction: column;
  }

  .asfx-hero-section .wp-block-column {
    flex-basis: 100% !important;
    width: 100%;
  }

  .asfx-hero-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .asfx-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .asfx-header-inner {
    gap: 0.7rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .asfx-brand {
    max-width: 40%;
  }

  .asfx-site-logo,
  img.asfx-site-logo {
    max-height: 60px;
    max-width: clamp(160px, 42vw, 220px);
  }

  .asfx-hero-title {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .asfx-brand-copy {
    letter-spacing: 0.1em;
  }

  .asfx-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .asfx-badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
  }

  .asfx-lang-switcher {
    min-width: 0;
  }

  .asfx-lang-link {
    min-width: 2.45rem;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  .asfx-hero-actions .wp-block-button,
  .asfx-hero-actions .wp-block-button__link {
    width: 100%;
  }

  html[lang="en"] .asfx-hero-title {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
    word-break: normal;
    overflow-wrap: normal;
  }

  html[lang="el"] .asfx-header-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  html[lang="el"] .asfx-header-controls {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  html[lang="el"] .asfx-hero-title {
    font-size: clamp(2.05rem, 9.2vw, 2.8rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: manual;
  }

  html[lang="el"] .asfx-hero-actions .wp-block-button__link {
    display: inline-block;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .asfx-header-inner,
  html[lang="el"] .asfx-header-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "logo logo logo"
      "lang theme menu";
    row-gap: 0.65rem;
    column-gap: 0.55rem;
    padding: 0.9rem 1rem 0.95rem;
    align-items: center;
  }

  .asfx-brand-group {
    grid-area: logo;
    justify-self: center;
    justify-content: center;
  }

  .asfx-brand {
    max-width: none;
    margin-left: 0;
    justify-content: center;
  }

  .asfx-site-logo,
  img.asfx-site-logo {
    max-width: clamp(205px, 66vw, 232px);
    max-height: clamp(108px, 31vw, 132px);
  }

  .asfx-header-controls,
  html[lang="el"] .asfx-header-controls {
    display: contents;
  }

  .asfx-lang-switcher {
    grid-area: lang;
    width: 100%;
    justify-content: center;
  }

  .asfx-theme-toggle {
    grid-area: theme;
    width: 100%;
    justify-content: center;
  }

  .asfx-lang-link {
    min-width: 2.3rem;
    min-height: 2.1rem;
  }

  .asfx-theme-toggle {
    min-height: 40px;
    padding: 0.3rem 0.62rem;
    gap: 0.3rem;
    font-size: 0.68rem;
  }

  .asfx-theme-toggle-icon {
    width: 1.2rem;
    height: 1.2rem;
  }

  .asfx-nav-toggle {
    grid-area: menu;
    width: 100%;
    justify-content: center;
    min-height: 40px;
    padding: 0.62rem 0.85rem;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
