/*
Theme Name: Arcwave
Theme URI:
Author: Arcwave Studio
Author URI:
Description: Arcwave is a fluid, curve-driven WordPress theme for crypto trading platforms. Flowing gradients, wave dividers and organic shapes.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arcwave
Tags: crypto, trading, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   0. Design Tokens
   ============================================================ */
:root {
  --acw-indigo: #6366f1;
  --acw-cyan: #06b6d4;
  --acw-dark: #0c1222;
  --acw-dark-2: #131c33;
  --acw-light: #f8faff;
  --acw-white: #ffffff;
  --acw-grad: linear-gradient(135deg, #6366f1, #06b6d4);
  --acw-grad-soft: linear-gradient(135deg, rgba(99,102,241,.12), rgba(6,182,212,.12));
  --acw-ink: #10182b;
  --acw-muted: #5a6885;
  --acw-line: rgba(99, 102, 241, .16);
  --acw-gray-50: #f4f7fd;
  --acw-gray-100: #e9eefb;
  --acw-gray-200: #d7e0f5;
  --acw-radius-lg: 28px;
  --acw-radius: 20px;
  --acw-radius-sm: 14px;
  --acw-shadow: 0 24px 60px -28px rgba(24, 40, 90, .35);
  --acw-shadow-sm: 0 12px 30px -16px rgba(24, 40, 90, .28);
  --acw-font: "Segoe UI Rounded", "Nunito", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --acw-ease: cubic-bezier(.22, .61, .36, 1);
  --acw-header-h: 78px;
}

/* ============================================================
   1. Reset & Base
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--acw-font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--acw-ink);
  background: var(--acw-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--acw-indigo); text-decoration: none; transition: color .25s var(--acw-ease); }
a:hover { color: var(--acw-cyan); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--acw-ink);
}

p { margin: 0 0 1.1em; }

::selection { background: rgba(99, 102, 241, .22); }

/* ============================================================
   2. Layout Primitives
   ============================================================ */
.acw-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.acw-container--narrow { max-width: 900px; }

.acw-section { position: relative; padding: 108px 0; }
.acw-section--tight { padding: 72px 0; }

.acw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--acw-indigo);
  background: var(--acw-grad-soft);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.acw-section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.acw-section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.acw-section-head p { color: var(--acw-muted); font-size: 18px; margin: 0; }

.acw-grad-text {
  background: var(--acw-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Wave divider */
.acw-wave-divider { position: relative; width: 100%; line-height: 0; overflow: hidden; z-index: 1; }
.acw-wave-divider svg { display: block; width: 100%; height: 90px; }
.acw-wave-divider--flip { transform: rotate(180deg); }
.acw-wave-divider--top { margin-bottom: -1px; }
.acw-wave-divider--bottom { margin-top: -1px; }

/* ============================================================
   3. Buttons
   ============================================================ */
.acw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .3s var(--acw-ease), box-shadow .3s var(--acw-ease), background .3s var(--acw-ease), color .3s var(--acw-ease);
  background: var(--acw-grad);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(99, 102, 241, .8);
}
.acw-btn:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 20px 40px -14px rgba(6, 182, 212, .85); }
.acw-btn .acw-icon { width: 18px; height: 18px; }

.acw-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; box-shadow: none; }
.acw-btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }

.acw-btn--outline { background: transparent; border-color: var(--acw-line); color: var(--acw-indigo); box-shadow: none; }
.acw-btn--outline:hover { background: var(--acw-grad-soft); color: var(--acw-indigo); box-shadow: none; }

.acw-btn--sm { padding: 11px 22px; font-size: 14.5px; }
.acw-btn--lg { padding: 18px 38px; font-size: 17px; }
.acw-btn--block { width: 100%; }

/* ============================================================
   4. Header / Navigation
   ============================================================ */
.acw-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--acw-header-h);
  display: flex;
  align-items: center;
  transition: background .4s var(--acw-ease), box-shadow .4s var(--acw-ease), height .4s var(--acw-ease);
  background: linear-gradient(180deg, rgba(12, 18, 34, .35), rgba(12, 18, 34, 0));
}
.acw-header.is-scrolled {
  height: 66px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 10px 34px -20px rgba(16, 24, 43, .5);
  border-bottom: 1px solid rgba(99, 102, 241, .1);
}
.acw-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.acw-brand { display: inline-flex; align-items: center; gap: 11px; }
.acw-brand__mark {
  width: 40px; height: 40px; border-radius: 13px;
  background: var(--acw-grad);
  display: grid; place-items: center;
  box-shadow: 0 10px 22px -10px rgba(99, 102, 241, .9);
}
.acw-brand__mark svg { width: 24px; height: 24px; stroke: #fff; }
.acw-brand__text { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: #fff; transition: color .35s var(--acw-ease); }
.acw-header.is-scrolled .acw-brand__text { color: var(--acw-ink); }
.acw-brand img.custom-logo { max-height: 42px; width: auto; }

.acw-nav__list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.acw-navlink {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; color: rgba(255, 255, 255, .9);
  transition: background .3s var(--acw-ease), color .3s var(--acw-ease);
}
.acw-navlink:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.acw-header.is-scrolled .acw-navlink { color: var(--acw-ink); }
.acw-header.is-scrolled .acw-navlink:hover { background: var(--acw-grad-soft); color: var(--acw-indigo); }
.acw-nav__list .current-menu-item > .acw-navlink,
.acw-nav__list .current_page_item > .acw-navlink { color: var(--acw-cyan); }

.acw-header-actions { display: flex; align-items: center; gap: 12px; }

.acw-langswitch { display: inline-flex; gap: 4px; background: rgba(255, 255, 255, .14); padding: 4px; border-radius: 999px; }
.acw-header.is-scrolled .acw-langswitch { background: var(--acw-gray-100); }
.acw-langbox { font-size: 13px; font-weight: 700; padding: 6px 13px; border-radius: 999px; color: rgba(255, 255, 255, .8); transition: all .3s var(--acw-ease); }
.acw-header.is-scrolled .acw-langbox { color: var(--acw-muted); }
.acw-langbox.is-active { background: #fff; color: var(--acw-indigo); box-shadow: var(--acw-shadow-sm); }
.acw-header.is-scrolled .acw-langbox.is-active { background: var(--acw-grad); color: #fff; }
.acw-langswitch--footer { background: rgba(255, 255, 255, .1); }
.acw-langswitch--footer .acw-langbox { color: rgba(255, 255, 255, .7); }
.acw-langswitch--footer .acw-langbox.is-active { background: var(--acw-grad); color: #fff; }

.acw-burger {
  display: none; width: 44px; height: 44px; border-radius: 13px;
  border: 1.5px solid rgba(255, 255, 255, .35); background: transparent;
  color: #fff; cursor: pointer; place-items: center;
}
.acw-header.is-scrolled .acw-burger { border-color: var(--acw-line); color: var(--acw-ink); }
.acw-burger .acw-icon { width: 22px; height: 22px; }

.acw-mobilenav {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(12, 18, 34, .96);
  backdrop-filter: blur(10px);
  padding: 90px 28px 40px;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateY(-100%);
  transition: transform .5s var(--acw-ease);
  overflow-y: auto;
}
.acw-mobilenav.is-open { transform: translateY(0); }
.acw-mobilenav .acw-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
.acw-mobilenav .acw-navlink { color: #fff; font-size: 20px; padding: 14px 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
.acw-mobilenav__close {
  position: absolute; top: 22px; right: 22px; width: 46px; height: 46px;
  border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .25);
  background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center;
}
.acw-mobilenav__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }

/* ============================================================
   5. Hero
   ============================================================ */
.acw-hero {
  position: relative;
  padding: calc(var(--acw-header-h) + 96px) 0 170px;
  background: var(--acw-grad);
  overflow: hidden;
  text-align: center;
  color: #fff;
}
.acw-hero::before,
.acw-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(20px); opacity: .5; z-index: 1; }
.acw-hero::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), transparent 60%);
  top: -160px; left: -120px;
}
.acw-hero::after {
  width: 460px; height: 460px;
  background: radial-gradient(circle at 70% 70%, rgba(6,182,212,.7), transparent 60%);
  bottom: -160px; right: -100px;
}
.acw-hero__inner { position: relative; z-index: 3; max-width: 820px; margin: 0 auto; }
.acw-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; padding: 9px 20px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 26px; backdrop-filter: blur(6px);
}
.acw-hero h1 { color: #fff; font-size: clamp(34px, 6vw, 62px); line-height: 1.08; margin-bottom: 22px; text-shadow: 0 12px 40px rgba(12, 18, 34, .25); }
.acw-hero__sub { font-size: clamp(17px, 2.4vw, 21px); color: rgba(255, 255, 255, .92); max-width: 640px; margin: 0 auto 38px; }
.acw-hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.acw-hero .acw-btn { background: #fff; color: var(--acw-indigo); box-shadow: 0 18px 40px -16px rgba(12, 18, 34, .5); }
.acw-hero .acw-btn:hover { color: var(--acw-cyan); }
.acw-hero .acw-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); box-shadow: none; }
.acw-hero .acw-btn--ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.acw-hero__wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 2; }
.acw-hero__wave svg { display: block; width: 100%; height: 120px; }

/* ============================================================
   6. Features (curve-topped cards)
   ============================================================ */
.acw-features { background: var(--acw-light); }
.acw-features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.acw-feature {
  position: relative;
  background: var(--acw-white);
  border-radius: var(--acw-radius-lg);
  padding: 56px 32px 38px;
  box-shadow: var(--acw-shadow-sm);
  overflow: hidden;
  transition: transform .4s var(--acw-ease), box-shadow .4s var(--acw-ease);
  border: 1px solid rgba(99, 102, 241, .08);
}
.acw-feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 120px;
  background: var(--acw-grad);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  opacity: .95;
  transition: height .4s var(--acw-ease);
}
.acw-feature:hover { transform: translateY(-10px); box-shadow: var(--acw-shadow); }
.acw-feature:hover::before { height: 140px; }
.acw-feature__icon {
  position: relative; z-index: 2;
  width: 62px; height: 62px; border-radius: 20px;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .4);
  display: grid; place-items: center; margin-bottom: 42px; backdrop-filter: blur(6px);
}
.acw-feature__icon .acw-icon { width: 30px; height: 30px; stroke: #fff; }
.acw-feature h3 { position: relative; z-index: 2; font-size: 21px; }
.acw-feature p { position: relative; z-index: 2; color: var(--acw-muted); margin: 0; font-size: 15.5px; }

/* ============================================================
   7. Alternating story (organic shapes)
   ============================================================ */
.acw-story { background: var(--acw-white); }
.acw-story__row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 90px; }
.acw-story__row:last-child { margin-bottom: 0; }
.acw-story__row--reverse .acw-story__media { order: 2; }
.acw-story__media { position: relative; }
.acw-story__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 40% 60% 50% 50% / 55% 45% 55% 45%;
  box-shadow: var(--acw-shadow);
  transition: border-radius .6s var(--acw-ease), transform .6s var(--acw-ease);
}
.acw-story__media:hover img { border-radius: 55% 45% 45% 55% / 45% 55% 45% 55%; transform: scale(1.02); }
.acw-story__media::after {
  content: ""; position: absolute; inset: -14px; z-index: -1;
  border-radius: 45% 55% 55% 45% / 50% 50% 50% 50%;
  background: var(--acw-grad-soft);
}
.acw-story__body h3 { font-size: clamp(24px, 3vw, 32px); }
.acw-story__body p { color: var(--acw-muted); }
.acw-story__list { list-style: none; padding: 0; margin: 22px 0 0; }
.acw-story__list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-weight: 600; }
.acw-story__list .acw-icon { width: 22px; height: 22px; stroke: var(--acw-cyan); flex: 0 0 auto; margin-top: 3px; }

/* ============================================================
   8. Stats band (wave background)
   ============================================================ */
.acw-stats { position: relative; background: var(--acw-dark); color: #fff; padding: 130px 0; overflow: hidden; }
.acw-stats::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 15% 20%, rgba(99,102,241,.35), transparent 60%),
    radial-gradient(600px 300px at 85% 80%, rgba(6,182,212,.3), transparent 60%);
}
.acw-stats__wave-top, .acw-stats__wave-bottom { position: absolute; left: 0; right: 0; z-index: 2; line-height: 0; }
.acw-stats__wave-top { top: -1px; }
.acw-stats__wave-bottom { bottom: -1px; }
.acw-stats__wave-top svg, .acw-stats__wave-bottom svg { display: block; width: 100%; height: 80px; }
.acw-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; position: relative; z-index: 3; }
.acw-stat__num {
  font-size: clamp(40px, 6vw, 64px); font-weight: 800; line-height: 1;
  background: var(--acw-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; margin-bottom: 10px;
}
.acw-stat__label { color: rgba(255, 255, 255, .72); font-size: 16px; font-weight: 600; letter-spacing: .04em; }


/* ============================================================
   9. Post cards / article grid
   ============================================================ */
.acw-articles { background: var(--acw-light); }
.acw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.acw-grid--3 { grid-template-columns: repeat(3, 1fr); }

.acw-postcard {
  background: var(--acw-white);
  border-radius: var(--acw-radius-lg);
  overflow: hidden;
  box-shadow: var(--acw-shadow-sm);
  border: 1px solid rgba(99, 102, 241, .08);
  transition: transform .4s var(--acw-ease), box-shadow .4s var(--acw-ease);
  display: flex; flex-direction: column;
}
.acw-postcard:hover { transform: translateY(-8px); box-shadow: var(--acw-shadow); }
.acw-postcard__thumb { display: block; overflow: hidden; position: relative; }
.acw-postcard__thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--acw-ease); }
.acw-postcard:hover .acw-postcard__thumb img { transform: scale(1.06); }
.acw-postcard__body { padding: 26px 26px 24px; display: flex; flex-direction: column; flex: 1; }
.acw-postcard__topline { margin-bottom: 12px; }
.acw-postcard__cat {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--acw-indigo); background: var(--acw-grad-soft); padding: 5px 14px; border-radius: 999px;
}
.acw-postcard__title { font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
.acw-postcard__title a { color: var(--acw-ink); }
.acw-postcard__title a:hover { color: var(--acw-indigo); }
.acw-postcard__excerpt { color: var(--acw-muted); font-size: 15px; margin: 0 0 18px; flex: 1; }
.acw-postcard__meta { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--acw-muted); border-top: 1px solid var(--acw-gray-100); padding-top: 16px; }
.acw-postcard__author {
  width: 34px; height: 34px; border-radius: 50%; background: var(--acw-grad);
  color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
.acw-postcard__time { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }

.acw-section-more { text-align: center; margin-top: 48px; }

/* ============================================================
   10. FAQ (curved accordion)
   ============================================================ */
.acw-faq { position: relative; background: var(--acw-white); }
.acw-faq__wave-top, .acw-faq__wave-bottom { position: absolute; left: 0; right: 0; line-height: 0; z-index: 1; }
.acw-faq__wave-top { top: -1px; }
.acw-faq__wave-bottom { bottom: -1px; }
.acw-faq__wave-top svg, .acw-faq__wave-bottom svg { display: block; width: 100%; height: 70px; }
.acw-faq__list { max-width: 820px; margin: 0 auto; position: relative; z-index: 2; }
.acw-faq__item {
  background: var(--acw-gray-50);
  border: 1px solid rgba(99, 102, 241, .1);
  border-radius: var(--acw-radius);
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow .35s var(--acw-ease), border-color .35s var(--acw-ease);
}
.acw-faq__item.is-open { box-shadow: var(--acw-shadow-sm); border-color: rgba(99, 102, 241, .28); }
.acw-faq__q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-family: inherit; font-size: 17.5px; font-weight: 700; color: var(--acw-ink);
}
.acw-faq__q .acw-icon { width: 22px; height: 22px; stroke: var(--acw-indigo); flex: 0 0 auto; transition: transform .35s var(--acw-ease); }
.acw-faq__item.is-open .acw-faq__q .acw-icon { transform: rotate(180deg); }
.acw-faq__a { max-height: 0; overflow: hidden; transition: max-height .45s var(--acw-ease); }
.acw-faq__a-inner { padding: 0 26px 24px; color: var(--acw-muted); font-size: 15.5px; }

/* ============================================================
   11. CTA band
   ============================================================ */
.acw-cta { position: relative; background: var(--acw-grad); color: #fff; text-align: center; padding: 130px 0; overflow: hidden; }
.acw-cta__wave-top, .acw-cta__wave-bottom { position: absolute; left: 0; right: 0; line-height: 0; z-index: 2; }
.acw-cta__wave-top { top: -1px; }
.acw-cta__wave-bottom { bottom: -1px; }
.acw-cta__wave-top svg, .acw-cta__wave-bottom svg { display: block; width: 100%; height: 80px; }
.acw-cta__inner { position: relative; z-index: 3; max-width: 680px; margin: 0 auto; }
.acw-cta h2 { color: #fff; font-size: clamp(28px, 4.5vw, 44px); }
.acw-cta p { color: rgba(255, 255, 255, .92); font-size: 18px; }
.acw-cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.acw-cta .acw-btn { background: #fff; color: var(--acw-indigo); }
.acw-cta .acw-btn:hover { color: var(--acw-cyan); }
.acw-cta .acw-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); box-shadow: none; }
.acw-cta .acw-btn--ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ============================================================
   12. Footer (arc top)
   ============================================================ */
.acw-footer {
  position: relative;
  background: var(--acw-dark);
  color: rgba(255, 255, 255, .72);
  border-radius: 60px 60px 0 0 / 90px 90px 0 0;
  margin-top: -1px;
  padding: 90px 0 0;
  overflow: hidden;
}
.acw-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 320px at 50% -10%, rgba(99,102,241,.28), transparent 62%);
}
.acw-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; position: relative; z-index: 2; }
.acw-footer__brand .acw-brand__text { color: #fff; }
.acw-footer__about { margin: 18px 0 24px; font-size: 15px; max-width: 320px; }
.acw-footer__col-title { color: #fff; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.acw-footer__col ul { list-style: none; margin: 0; padding: 0; }
.acw-footer__col li { margin-bottom: 11px; }
.acw-footer__col a { color: rgba(255, 255, 255, .68); font-size: 15px; }
.acw-footer__col a:hover { color: var(--acw-cyan); }
.acw-social { display: flex; gap: 10px; flex-wrap: wrap; }
.acw-social a {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 14px;
  border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255,255,255,.8);
  font-size: 13px; font-weight: 700; transition: all .3s var(--acw-ease);
}
.acw-social a:hover { background: var(--acw-grad); color: #fff; }

.acw-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 60px; padding: 28px 0; position: relative; z-index: 2; }
.acw-legal__risk { font-size: 13px; color: rgba(255, 255, 255, .5); max-width: 900px; margin: 0 0 16px; }
.acw-legal__links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.acw-legal__links a { color: rgba(255, 255, 255, .7); font-size: 14px; }
.acw-legal__links a:hover { color: var(--acw-cyan); }
.acw-legal__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.acw-legal__copy { font-size: 14px; color: rgba(255, 255, 255, .55); margin: 0; }

/* ============================================================
   13. Page head / banner (inner pages)
   ============================================================ */
.acw-pagehead {
  position: relative;
  background: var(--acw-grad);
  color: #fff;
  padding: calc(var(--acw-header-h) + 70px) 0 120px;
  overflow: hidden;
  text-align: center;
}
.acw-pagehead::after {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.28), transparent 62%);
  top: -180px; right: -120px; filter: blur(10px);
}
.acw-pagehead__inner { position: relative; z-index: 3; }
.acw-pagehead h1 { color: #fff; font-size: clamp(30px, 5vw, 48px); margin-bottom: 12px; }
.acw-pagehead p { color: rgba(255, 255, 255, .9); max-width: 640px; margin: 0 auto; font-size: 17px; }
.acw-pagehead__wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 2; line-height: 0; }
.acw-pagehead__wave svg { display: block; width: 100%; height: 90px; }

/* Breadcrumb */
.acw-crumb-bar { position: relative; z-index: 4; margin-top: -54px; }
.acw-crumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, .12);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14px;
  box-shadow: var(--acw-shadow-sm);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}
.acw-crumb a { color: var(--acw-muted); font-weight: 600; }
.acw-crumb a:hover { color: var(--acw-indigo); }
.acw-crumb__sep { color: var(--acw-cyan); font-weight: 700; }
.acw-crumb__current { color: var(--acw-ink); font-weight: 700; }

/* ============================================================
   14. Single post / page content
   ============================================================ */
.acw-content-wrap { position: relative; padding: 70px 0 40px; background: var(--acw-light); }
.acw-article { background: var(--acw-white); border-radius: var(--acw-radius-lg); box-shadow: var(--acw-shadow-sm); padding: 52px 56px; border: 1px solid rgba(99,102,241,.08); }
.acw-article__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--acw-muted); font-size: 14px; margin-bottom: 26px; }
.acw-article__author { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--acw-ink); }
.acw-article__author .acw-postcard__author { width: 38px; height: 38px; }
.acw-article__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--acw-gray-200); }
.acw-article__featured { border-radius: var(--acw-radius); overflow: hidden; margin-bottom: 32px; }
.acw-article__featured img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }

.acw-entry { font-size: 17.5px; line-height: 1.85; color: #22304d; }
.acw-entry h2 { font-size: 28px; margin-top: 1.6em; }
.acw-entry h3 { font-size: 22px; margin-top: 1.4em; }
.acw-entry a { color: var(--acw-indigo); text-decoration: underline; text-underline-offset: 3px; }
.acw-entry img { border-radius: var(--acw-radius); margin: 22px 0; }
.acw-entry ul, .acw-entry ol { padding-left: 24px; margin-bottom: 1.3em; }
.acw-entry li { margin-bottom: 8px; }
.acw-entry blockquote {
  margin: 28px 0; padding: 22px 28px; border-left: 4px solid var(--acw-cyan);
  background: var(--acw-grad-soft); border-radius: 0 var(--acw-radius) var(--acw-radius) 0;
  font-size: 18px; font-weight: 600; color: var(--acw-ink);
}
.acw-entry code { background: var(--acw-gray-100); padding: 2px 7px; border-radius: 6px; font-size: .9em; }
.acw-entry pre { background: var(--acw-dark); color: #e6edf7; padding: 20px; border-radius: var(--acw-radius); overflow-x: auto; }
.acw-entry pre code { background: transparent; color: inherit; padding: 0; }
.acw-entry table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.acw-entry th, .acw-entry td { border: 1px solid var(--acw-gray-200); padding: 11px 14px; text-align: left; }
.acw-entry th { background: var(--acw-gray-50); font-weight: 700; }

.acw-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--acw-gray-100); }
.acw-tags a { font-size: 13px; font-weight: 700; color: var(--acw-indigo); background: var(--acw-grad-soft); padding: 7px 16px; border-radius: 999px; }

/* Floating related cards */
.acw-related { position: relative; padding: 40px 0 120px; background: var(--acw-light); }
.acw-related__title { font-size: 26px; text-align: center; margin-bottom: 40px; }
.acw-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.acw-related__grid .acw-postcard { position: relative; }
.acw-related__grid .acw-postcard:nth-child(2) { transform: translateY(-24px); }
.acw-related__grid .acw-postcard:hover { transform: translateY(-32px); }
.acw-related__grid .acw-postcard:nth-child(2):hover { transform: translateY(-40px); }

/* Post navigation */
.acw-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.acw-postnav a {
  background: var(--acw-white); border: 1px solid rgba(99,102,241,.1); border-radius: var(--acw-radius);
  padding: 20px 24px; box-shadow: var(--acw-shadow-sm); transition: transform .3s var(--acw-ease);
}
.acw-postnav a:hover { transform: translateY(-4px); }
.acw-postnav__label { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--acw-muted); margin-bottom: 6px; }
.acw-postnav__title { font-weight: 700; color: var(--acw-ink); }
.acw-postnav .nav-next { text-align: right; }

/* ============================================================
   15. Archive / listing
   ============================================================ */
.acw-listing { padding: 60px 0 90px; background: var(--acw-light); }
.acw-listing__count { color: var(--acw-muted); margin-bottom: 30px; font-size: 15px; }
.acw-empty { text-align: center; padding: 70px 20px; color: var(--acw-muted); }
.acw-empty h3 { color: var(--acw-ink); }

/* Pagination */
.acw-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 54px; flex-wrap: wrap; }
.acw-pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: 999px; background: var(--acw-white); color: var(--acw-muted); font-weight: 700;
  border: 1px solid rgba(99,102,241,.12); transition: all .3s var(--acw-ease);
}
.acw-pagination .page-numbers:hover { color: var(--acw-indigo); border-color: var(--acw-line); }
.acw-pagination .page-numbers.current { background: var(--acw-grad); color: #fff; border-color: transparent; }

/* ============================================================
   16. Search
   ============================================================ */
.acw-searchform { display: flex; gap: 12px; max-width: 620px; margin: 0 auto; }
.acw-searchform__input {
  flex: 1; padding: 15px 24px; border-radius: 999px; border: 1.5px solid var(--acw-line);
  font-family: inherit; font-size: 16px; background: var(--acw-white); color: var(--acw-ink); outline: none;
  transition: border-color .3s var(--acw-ease), box-shadow .3s var(--acw-ease);
}
.acw-searchform__input:focus { border-color: var(--acw-indigo); box-shadow: 0 0 0 4px rgba(99,102,241,.12); }
.acw-searchform__submit { flex: 0 0 auto; }
.acw-pagehead .acw-searchform { margin-top: 28px; }
.acw-pagehead .acw-searchform__input { border-color: transparent; }

/* 404 */
.acw-404 { text-align: center; padding: 40px 0 20px; }
.acw-404__code {
  font-size: clamp(90px, 20vw, 190px); font-weight: 800; line-height: 1;
  background: var(--acw-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Sidebar widgets */
.acw-widget { background: var(--acw-white); border-radius: var(--acw-radius); padding: 26px; box-shadow: var(--acw-shadow-sm); border: 1px solid rgba(99,102,241,.08); margin-bottom: 24px; }
.acw-widget__title { font-size: 17px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--acw-gray-100); }
.acw-widget ul { list-style: none; margin: 0; padding: 0; }
.acw-widget li { margin-bottom: 10px; }
.acw-widget li a { color: var(--acw-muted); font-weight: 600; }
.acw-widget li a:hover { color: var(--acw-indigo); }

/* Comments */
.acw-comments { margin-top: 50px; background: var(--acw-white); border-radius: var(--acw-radius-lg); padding: 40px 44px; box-shadow: var(--acw-shadow-sm); }
.acw-comments__title { font-size: 22px; margin-bottom: 24px; }
.acw-comments .comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.acw-comments .comment { padding: 18px 0; border-bottom: 1px solid var(--acw-gray-100); }
.acw-comments .comment-body { display: flex; gap: 14px; }
.acw-comments .comment-metadata { font-size: 13px; color: var(--acw-muted); }
.acw-comments .reply { margin-top: 6px; }
.acw-comments .comment-respond { margin-top: 20px; }
.acw-comments input[type="text"], .acw-comments input[type="email"], .acw-comments input[type="url"], .acw-comments textarea {
  width: 100%; padding: 13px 18px; border-radius: var(--acw-radius-sm); border: 1.5px solid var(--acw-line);
  font-family: inherit; font-size: 15px; margin-bottom: 14px; outline: none; background: var(--acw-gray-50);
}
.acw-comments textarea { min-height: 130px; resize: vertical; }
.acw-comments .form-submit .submit {
  background: var(--acw-grad); color: #fff; border: 0; padding: 14px 30px; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
}

/* Utilities */
.acw-icon { width: 20px; height: 20px; stroke: currentColor; fill: none; flex: 0 0 auto; }
.acw-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; }
.acw-desktop-only { display: inline-flex; }
.acw-reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--acw-ease), transform .7s var(--acw-ease); }
.acw-reveal.is-visible { opacity: 1; transform: none; }


/* ============================================================
   17. Responsive (all @media rules live here, at the very end)
   ============================================================ */
@media (max-width: 1024px) {
  .acw-features__grid { grid-template-columns: repeat(2, 1fr); }
  .acw-story__row { gap: 40px; }
  .acw-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .acw-related__grid { grid-template-columns: repeat(2, 1fr); }
  .acw-related__grid .acw-postcard:nth-child(2) { transform: none; }
  .acw-article { padding: 40px 34px; }
}

@media (max-width: 900px) {
  .acw-desktop-only { display: none !important; }
  .acw-burger { display: grid; }
  .acw-nav { display: none; }
  .acw-header-actions .acw-langswitch { display: none; }
  .acw-story__row { grid-template-columns: 1fr; margin-bottom: 64px; }
  .acw-story__row--reverse .acw-story__media { order: 0; }
  .acw-stats__grid { grid-template-columns: 1fr; gap: 44px; }
  .acw-grid { grid-template-columns: 1fr; }
  .acw-grid--3 { grid-template-columns: 1fr; }
  .acw-postnav { grid-template-columns: 1fr; }
  .acw-postnav .nav-next { text-align: left; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .acw-section { padding: 74px 0; }
  .acw-container { padding: 0 18px; }
  .acw-features__grid { grid-template-columns: 1fr; }
  .acw-hero { padding: calc(var(--acw-header-h) + 60px) 0 140px; }
  .acw-hero__cta .acw-btn { width: 100%; }
  .acw-stats { padding: 100px 0; }
  .acw-cta { padding: 100px 0; }
  .acw-cta__actions .acw-btn { width: 100%; }
  .acw-pagehead { padding: calc(var(--acw-header-h) + 48px) 0 100px; }
  .acw-article { padding: 30px 20px; border-radius: var(--acw-radius); }
  .acw-comments { padding: 28px 20px; }
  .acw-related__grid { grid-template-columns: 1fr; }
  .acw-footer { border-radius: 40px 40px 0 0 / 60px 60px 0 0; padding-top: 64px; }
  .acw-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .acw-legal__bar { flex-direction: column; align-items: flex-start; }
  .acw-searchform { flex-direction: column; }
  .acw-crumb { border-radius: var(--acw-radius); }
  .acw-wave-divider svg, .acw-hero__wave svg { height: 60px; }
}

/* QODER page banner strip */
.acw-page-banner{width:100%;margin:0 0 24px;overflow:hidden;border-radius:12px;}
.acw-page-banner img{display:block;width:100%;height:clamp(180px,30vw,360px);object-fit:cover;}
