/* =============================================
   Persona Map Online — "Frequency" Design System
   Palette:
     --primary:   #583BBF  (electric purple)
     --secondary: #F3CA40  (golden yellow)
     --accent:    #00B4D8  (electric cyan)
     --bg:        #F8F7FA  (soft lavender-white)
     --text:      #2A2633  (deep plum-black)
============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=Syne:wght@600;700&display=swap');

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

:root {
  --primary:    #583BBF;
  --primary-d:  #3D28A0;
  --primary-lt: rgba(88,59,191,0.09);
  --secondary:  #F3CA40;
  --accent:     #00B4D8;
  --bg:         #F8F7FA;
  --white:      #ffffff;
  --text:       #2A2633;
  --text-muted: rgba(42,38,51,0.6);
  --border:     rgba(88,59,191,0.13);
  --shadow-sm:  0 2px 12px rgba(42,38,51,0.07);
  --shadow:     0 6px 28px rgba(42,38,51,0.11);
  --shadow-lg:  0 16px 56px rgba(42,38,51,0.16);
  --max-w:      1200px;
  --header-h:   68px;
  --r:          16px;
  --r-sm:       8px;
  --t:          0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── LAYOUT ─── */
.wrapper {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.text-content {
  max-width: 780px;
  margin-inline: auto;
}

/* ─── HEADER ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 200;
  background: rgba(248,247,250,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 2px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}

.site-header.scrolled {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity var(--t);
}
.logo-link:hover { opacity: 0.78; }
.logo-img { height: 44px; width: auto; max-width: 220px; }

/* Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  padding: 8px 16px;
  transition: color var(--t);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  width: 0;
  height: 2.5px;
  background: var(--primary);
  transition: width var(--t);
  border-radius: 2px;
}

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

.nav-list a:hover::after,
.nav-list a.active::after { width: calc(100% - 32px); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  border-radius: var(--r-sm);
  transition: background var(--t);
}
.burger:hover { background: var(--primary-lt); }
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t), background var(--t);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--primary); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--primary); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 199;
  background: var(--white);
  border-top: 3px solid var(--secondary);
  padding: 20px 24px 28px;
  box-shadow: var(--shadow);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 11px 14px;
  border-radius: var(--r-sm);
  transition: background var(--t), color var(--t);
}
.mobile-nav a:hover,
.mobile-nav a.active { background: var(--primary-lt); color: var(--primary); }

/* Page push */
.page-body { padding-top: var(--header-h); }

/* ═══════════════════════════════════════════
   HERO  (index only)
═══════════════════════════════════════════ */
.hero {
  padding: clamp(56px, 9vw, 96px) 0 clamp(48px, 7vw, 72px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-lt);
  padding: 5px 14px;
  border-radius: 40px;
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 18px;
}

.hero h1 .hl {
  color: var(--primary);
  position: relative;
  display: inline;
}
.hero h1 .hl::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 2px;
  height: 8px;
  background: var(--secondary);
  opacity: 0.45;
  z-index: -1;
  border-radius: 4px;
}

/* ── Role Rotator (unique feature) ── */
.role-rotator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 1rem;
}
.role-rotator-label {
  color: var(--text-muted);
  font-weight: 400;
}
.role-track {
  position: relative;
  height: 1.55em;
  min-width: 170px;
  overflow: hidden;
}
.role-word {
  position: absolute;
  top: 0; left: 0;
  font-weight: 700;
  color: var(--primary);
  opacity: 0;
  transform: translateY(110%);
}
.role-word.is-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.role-word.is-exit {
  opacity: 0;
  transform: translateY(-110%);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 50px;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.btn-primary:hover {
  background: var(--primary-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88,59,191,0.35);
}
.btn-primary .arrow { transition: transform var(--t); }
.btn-primary:hover .arrow { transform: translateX(4px); }

/* Hero visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-blob {
  position: absolute;
  width: 290px; height: 290px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
  opacity: 0.11;
  animation: blobPulse 8s ease-in-out infinite alternate;
}
@keyframes blobPulse {
  from { border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%; transform: scale(1) rotate(0deg); }
  to   { border-radius: 40% 60% 45% 55% / 55% 45% 55% 45%; transform: scale(1.08) rotate(6deg); }
}
.hero-icon {
  position: relative;
  z-index: 1;
  width: 240px; height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(88,59,191,0.28));
}

/* ── Yellow accent stripe ── */
.y-stripe {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--secondary) 20%, var(--secondary) 80%, transparent 100%);
  opacity: 0.75;
}

/* ═══════════════════════════════════════════
   INDEX TEXT BLOCK
═══════════════════════════════════════════ */
.index-intro {
  padding: clamp(48px, 6vw, 72px) 0;
}
.index-intro .text-content p {
  font-size: 1.06rem;
  line-height: 1.85;
  color: rgba(42,38,51,0.86);
  margin-bottom: 1.4rem;
}
.index-intro .text-content p:last-child { margin-bottom: 0; }
.index-intro .article-img {
  width: 100%;
  border-radius: var(--r);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

/* ═══════════════════════════════════════════
   ADDING SECTION  (Three Pillars)
═══════════════════════════════════════════ */
.adding-section {
  padding: clamp(56px, 7vw, 84px) 0;
  background: var(--white);
}
.adding-section-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.adding-section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 52px;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar-card {
  background: var(--bg);
  border-radius: var(--r);
  padding: 30px 26px;
  border: 1.5px solid var(--border);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(88,59,191,0.35);
}
.pillar-card .adding-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  border-radius: var(--r-sm);
  margin-bottom: 20px;
  background: var(--white);
  padding: 8px;
}
.pillar-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.pillar-card p {
  font-size: 0.93rem;
  line-height: 1.72;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   FEATURE BLOCKS  (adding-blocks)
═══════════════════════════════════════════ */
.feature-blocks-section {
  padding: clamp(48px, 6vw, 72px) 0;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 28px 18px 24px;
  text-align: center;
  border: 1.5px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--t);
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
  border-radius: 0 0 2px 2px;
}
.feature-card:hover { box-shadow: var(--shadow-sm); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  object-fit: contain;
}
.feature-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

/* ═══════════════════════════════════════════
   ARTICLES LIST  (homepage teaser + articles page)
═══════════════════════════════════════════ */
.articles-teaser {
  padding: clamp(56px, 7vw, 84px) 0;
  background: var(--white);
}
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.see-all {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--t), color var(--t);
  white-space: nowrap;
}
.see-all:hover { gap: 9px; color: var(--primary-d); }
.see-all::after { content: '→'; }

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

.article-card {
  background: var(--bg);
  border-radius: var(--r);
  padding: 28px;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.article-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px 0 0 2px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(88,59,191,0.28);
}
.article-card:hover::before { transform: scaleY(1); }

.article-card-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.article-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  flex: 1;
  margin-bottom: 16px;
}
.article-card a.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--t);
}
.article-card a.card-link:hover { gap: 9px; }
.article-card a.card-link::after { content: '→'; }

/* ═══════════════════════════════════════════
   ARTICLES PAGE
═══════════════════════════════════════════ */
.articles-page-section {
  padding: clamp(48px, 6vw, 80px) 0;
}
.page-heading-block {
  margin-bottom: 52px;
}
.page-heading-block h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}
.page-heading-block h1::after {
  content: '';
  display: block;
  height: 5px;
  width: 72px;
  background: var(--secondary);
  border-radius: 3px;
  margin-top: 14px;
}

/* ═══════════════════════════════════════════
   ARTICLE PAGE
═══════════════════════════════════════════ */
.article-section {
  padding: clamp(40px, 5vw, 72px) 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 36px;
  transition: gap var(--t);
}
.back-link::before { content: '←'; }
.back-link:hover { gap: 10px; }

.article-heading {
  margin-bottom: 28px;
}
.article-heading h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.7rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.18;
  margin-bottom: 18px;
}
.article-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.badge-topic {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-lt);
  padding: 4px 12px;
  border-radius: 40px;
}
.badge-time {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.badge-time::before { content: '⏱'; }

.article-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
  border-radius: 2px;
  margin: 24px 0 32px;
  max-width: 780px;
  margin-inline: auto;
  opacity: 0.65;
}

.article-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
  padding-left: 18px;
  border-left: 4px solid var(--secondary);
}
.article-body p {
  font-size: 1.04rem;
  line-height: 1.87;
  color: rgba(42,38,51,0.87);
  margin-bottom: 1.4rem;
}
.article-body p:last-child { margin-bottom: 0; }
.article-body img.article-img {
  width: 100%;
  border-radius: var(--r);
  margin: 2.5rem 0;
  box-shadow: var(--shadow);
}

/* ═══════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════ */
.about-section {
  padding: clamp(48px, 6vw, 80px) 0;
}
.about-hero-block {
  background: linear-gradient(135deg, rgba(88,59,191,0.07) 0%, rgba(0,180,216,0.05) 100%);
  border-radius: calc(var(--r) * 2);
  border: 1.5px solid var(--border);
  padding: clamp(36px, 5vw, 56px);
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-hero-block h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.18;
}
.about-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.about-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.about-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.about-hero-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-hero-right p {
  font-size: 1.05rem;
  line-height: 1.82;
  color: rgba(42,38,51,0.78);
}

.about-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(42,38,51,0.86);
  margin-bottom: 1.4rem;
}
.about-body p:last-child { margin-bottom: 0; }

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 48px 0;
}
.value-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 26px 22px;
  border: 1.5px solid var(--border);
  transition: transform var(--t), box-shadow var(--t);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.value-icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.value-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.value-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.65);
  padding: 52px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px 80px;
  align-items: start;
  margin-bottom: 40px;
}
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  transition: opacity var(--t);
}
.footer-logo-link:hover { opacity: 0.75; }
.footer-logo-img {
  height: 40px;
  width: auto;
  max-width: 200px;
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.9;
  overflow: visible;
}
.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 280px;
}
.footer-nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 14px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--t);
}
.footer-links a:hover { color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .pillars-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .about-hero-block { grid-template-columns: 1fr; }
  .about-values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-list { display: none; }
  .burger { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-values-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 20px; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
  .articles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-eyebrow { font-size: 0.68rem; }
}
