/*
Theme Name: Meridian
Theme URI: https://wpmcp.basheg.org.ua
Description: Modern SaaS landing page theme for WordPress
Version: 1.0.0
Author: Basheg
License: GPL-2.0-or-later
Text Domain: meridian
Domain Path: /languages
Requires at least: 6.0
Tested up to: 6.4
*/

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

:root {
  --bg:        #0d0d10;
  --surface:   #13131a;
  --surface2:  #1a1a24;
  --border:    rgba(255,255,255,0.06);
  --border2:   rgba(255,255,255,0.1);
  --purple:    #5e6ad2;
  --purple-dim: rgba(94,106,210,0.15);
  --purple-glow: rgba(94,106,210,0.08);
  --text:      #e2e2e8;
  --muted:     #6b6b7a;
  --muted2:    #9a9aaa;
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(13,13,16,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  animation: revealDown 0.4s 0.05s ease forwards;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.nav-logo em {
  color: var(--purple);
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted2);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  background: var(--purple);
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* HERO */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(94,106,210,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--purple);
  background: var(--purple-dim);
  border: 1px solid rgba(94,106,210,0.25);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 40px;
  opacity: 0;
  animation: revealUp 0.35s 0.2s ease forwards;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--purple);
  border-radius: 50%;
  animation: blink 2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(44px, 6.5vw, 82px);
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 780px;
  margin: 0 auto 28px;
  opacity: 0;
  animation: revealUp 0.4s 0.3s ease forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--purple);
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted2);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.75;
  opacity: 0;
  animation: revealUp 0.4s 0.4s ease forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: revealUp 0.4s 0.5s ease forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}

.btn-primary:hover {
  background: #6b76e0;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(94,106,210,0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--muted2);
  border: 1px solid var(--border2);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  background: var(--surface);
}

/* HERO VISUAL */
.hero-visual {
  margin: 72px auto 0;
  max-width: 800px;
  opacity: 0;
  animation: revealUp 0.5s 0.65s ease forwards;
}

.dashboard-frame {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 80px rgba(0,0,0,0.5),
    0 0 80px rgba(94,106,210,0.06);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}

.frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.frame-url {
  flex: 1;
  height: 24px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  margin: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.frame-body {
  padding: 28px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  min-height: 260px;
}

.frame-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}

.sidebar-item.active {
  background: var(--purple-dim);
  color: var(--text);
}

.sidebar-icon {
  width: 14px;
  height: 14px;
  background: currentColor;
  border-radius: 3px;
  opacity: 0.4;
  flex-shrink: 0;
}

.sidebar-item.active .sidebar-icon {
  background: var(--purple);
  opacity: 1;
}

.frame-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.frame-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.row-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
}

.row-status.done { background: #4caf7d; }
.row-status.todo { background: var(--muted); }

.row-text {
  font-size: 0.78rem;
  color: var(--text);
  flex: 1;
}

.row-tag {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--purple-dim);
  color: var(--purple);
}

.row-tag.green {
  background: rgba(76,175,125,0.12);
  color: #4caf7d;
}

/* SECTION BASE */
section {
  padding: 100px 0;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* LOGOS */
.logos {
  padding: 56px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logos-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.logo-item {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.5;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}

.logo-item:hover { opacity: 0.85; }

/* FEATURES */
.features h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 560px;
  margin-bottom: 20px;
}

.features h2 em {
  font-style: italic;
  color: var(--muted2);
}

.features-sub {
  font-size: 0.95rem;
  color: var(--muted2);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 36px 32px;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--surface); }

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--purple-dim);
  border: 1px solid rgba(94,106,210,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--purple);
}

.feature-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted2);
  line-height: 1.7;
}

/* QUOTE */
.quote-section {
  padding: 80px 0;
}

.quote-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 0.5;
  color: var(--purple);
  opacity: 0.4;
  margin-bottom: 24px;
  display: block;
}

blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 36px;
}

.quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.author-info {
  text-align: left;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.author-role {
  font-size: 0.75rem;
  color: var(--muted);
}

/* STATS */
.stats-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 0 40px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; padding-right: 0; }

.stat-num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 3rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
}

.stat-num sup {
  font-size: 1.2rem;
  color: var(--purple);
  vertical-align: super;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted2);
  letter-spacing: 0.02em;
}

/* PRICING */
.pricing {
  padding: 100px 0;
}

.pricing-header {
  text-align: center;
  margin-bottom: 64px;
}

.pricing-header h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.pricing-header p {
  font-size: 0.95rem;
  color: var(--muted2);
  font-weight: 300;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
  transition: border-color 0.2s;
}

.plan:hover { border-color: var(--border2); }

.plan.featured {
  border-color: rgba(94,106,210,0.4);
  background: var(--surface2);
  position: relative;
  overflow: hidden;
}

.plan.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.plan-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-dim);
  border: 1px solid rgba(94,106,210,0.25);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 20px;
}

.plan-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.82rem;
  color: var(--muted2);
  line-height: 1.6;
  margin-bottom: 28px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 28px;
}

.price-amount {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 2.8rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.price-period {
  font-size: 0.8rem;
  color: var(--muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--muted2);
  line-height: 1.5;
}

.check {
  color: var(--purple);
  flex-shrink: 0;
  margin-top: 1px;
}

.plan .btn { width: 100%; justify-content: center; }

/* CTA */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(94,106,210,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box .section-label { margin-bottom: 20px; }

.cta-box h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.cta-box h2 em {
  font-style: italic;
  color: var(--purple);
}

.cta-box p {
  font-size: 0.95rem;
  color: var(--muted2);
  font-weight: 300;
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 16px;
  display: block;
}

/* FOOTER */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--muted2);
  text-decoration: none;
}

.footer-logo em { color: var(--purple); font-style: normal; }

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--muted2); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* KEYFRAMES */
@keyframes revealDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-inner  { padding: 0 20px; }
  .nav-links  { display: none; }
  section     { padding: 72px 0; }
  .features-grid  { grid-template-columns: 1fr; }
  .pricing-grid   { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .stat-item      { border-right: none; padding: 0; text-align: left; }
  .stats-grid .stat-item:nth-child(odd) { border-right: 1px solid var(--border); padding-right: 24px; }
  .frame-body     { grid-template-columns: 1fr; }
  .frame-sidebar  { display: none; }
  .logos-row      { gap: 28px; }
  .footer-inner   { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links   { flex-wrap: wrap; justify-content: center; }
  .cta-box        { padding: 56px 24px; }
}
