/*
Theme Name: SecureMatrix One
Theme URI: https://securematrix.org/
Author: SecureMatrix
Description: Lightweight bilingual WordPress theme for the SecureMatrix One AI-powered cyber resilience platform.
Version: 1.0.0
Requires at least: 6.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: securematrix-one
*/

:root {
  --bg: #f5f1e8;
  --surface: #ffffff;
  --ink: #16201f;
  --muted: #59635f;
  --line: rgba(22, 32, 31, 0.14);
  --deep: #111615;
  --deep-2: #1b2421;
  --mint: #18c7a4;
  --mint-dark: #0f8b75;
  --amber: #f4b64b;
  --coral: #e66b52;
  --blue: #3772ff;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(17, 22, 21, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 56px);
  color: #ffffff;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(245, 241, 232, 0.9);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

body.admin-bar .site-header {
  top: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: var(--mint);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.92rem;
  font-weight: 650;
}

.main-nav a {
  opacity: 0.86;
}

.main-nav a:hover {
  opacity: 1;
}

.language-switch {
  justify-self: end;
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  width: 112px;
  padding: 4px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.site-header.is-scrolled .language-switch {
  background: rgba(255, 255, 255, 0.7);
}

.lang-btn {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.lang-btn.is-active {
  background: var(--mint);
  color: #061311;
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--deep);
  color: #ffffff;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: 62% center;
  opacity: 0.72;
  transform: scale(1.02);
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 14, 13, 0.94) 0%, rgba(10, 14, 13, 0.68) 43%, rgba(10, 14, 13, 0.12) 82%),
    linear-gradient(180deg, rgba(10, 14, 13, 0.5) 0%, rgba(10, 14, 13, 0) 52%, rgba(245, 241, 232, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: 88svh;
  padding: 112px 0 124px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.5rem, 8vw, 7.1rem);
}

h1 span {
  display: block;
}

h2 {
  max-width: 860px;
  font-size: clamp(2rem, 4.5vw, 4.6rem);
}

h3 {
  font-size: clamp(1.08rem, 2vw, 1.45rem);
}

h2,
h3,
p {
  overflow-wrap: break-word;
}

.hero-lead {
  max-width: 690px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--mint);
  color: #061311;
}

.btn-primary:hover {
  background: #35dfbd;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.74);
}

.signal-strip {
  position: relative;
  z-index: 3;
  margin-top: -64px;
  color: #ffffff;
}

.signal-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.signal-inner div {
  min-height: 128px;
  padding: 24px;
  background: rgba(18, 25, 23, 0.9);
  backdrop-filter: blur(18px);
}

.signal-inner strong {
  display: block;
  color: var(--amber);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.signal-inner span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
}

.section {
  padding: clamp(80px, 10vw, 140px) 0;
}

.section-light {
  background: var(--bg);
}

.section-dark {
  background:
    radial-gradient(circle at 15% 15%, rgba(24, 199, 164, 0.14), transparent 34%),
    linear-gradient(135deg, var(--deep), var(--deep-2));
  color: #ffffff;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(38px, 6vw, 80px);
  align-items: start;
}

.section-copy p:not(.eyebrow),
.section-heading + p,
.compliance-layout p,
.text-stack p,
.contact-panel p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.section-dark p,
.section-dark .check-list li {
  color: rgba(255, 255, 255, 0.74);
}

.section-copy p:not(.eyebrow) {
  max-width: 610px;
  margin: 24px 0 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.market-card {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-index {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
}

.feature-card p,
.market-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.problem-list {
  display: grid;
  gap: 12px;
}

.problem-list div {
  position: relative;
  min-height: 68px;
  padding: 18px 18px 18px 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
}

.problem-list div::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 6px rgba(230, 107, 82, 0.12);
}

.target-panel {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.target-panel p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.target-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.target-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 750;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(38px, 7vw, 90px);
  align-items: center;
}

.dashboard-mockup {
  padding: 18px;
  border: 1px solid rgba(22, 32, 31, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(17, 22, 21, 0.96), rgba(27, 36, 33, 0.96)),
    var(--deep);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  font-weight: 850;
}

.mockup-header span:last-child {
  color: var(--mint);
}

.score-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  align-items: end;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(24, 199, 164, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(24, 199, 164, 0.16), rgba(55, 114, 255, 0.1)),
    rgba(255, 255, 255, 0.05);
}

.score-card span,
.mockup-tile span,
.ai-summary span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.score-card strong {
  grid-row: span 2;
  color: var(--mint);
  font-size: clamp(4rem, 9vw, 6.4rem);
  line-height: 0.86;
}

.score-card small,
.mockup-tile small {
  color: rgba(255, 255, 255, 0.58);
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.mockup-tile {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.mockup-tile strong {
  display: block;
  margin-top: 16px;
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
}

.mockup-tile.is-alert {
  border-color: rgba(244, 182, 75, 0.42);
}

.mockup-tile.is-alert strong {
  color: var(--amber);
}

.ai-summary {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.ai-summary p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.compliance-layout,
.split-layout,
.principles-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 18px 18px 18px 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 19px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(24, 199, 164, 0.14);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 38px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.market-card {
  border-top: 4px solid var(--mint);
}

.market-card:nth-child(2) {
  border-top-color: var(--blue);
}

.market-card:nth-child(3) {
  border-top-color: var(--amber);
}

.section-split {
  background: #e4eee8;
}

.text-stack {
  display: grid;
  gap: 18px;
}

.text-stack p {
  margin: 0;
}

.principle-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.principle-tags span {
  display: grid;
  min-height: 74px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--deep);
  color: #ffffff;
  font-weight: 850;
}

.principle-tags span:nth-child(2n) {
  background: var(--mint-dark);
}

.principle-tags span:nth-child(3n) {
  background: var(--coral);
}

.contact-section {
  padding: clamp(82px, 11vw, 150px) 0;
  background: var(--deep);
  color: #ffffff;
}

.contact-panel {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.contact-panel p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  padding: 28px 0;
  background: #080c0b;
  color: rgba(255, 255, 255, 0.68);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.92rem;
}

.footer-inner span:first-child {
  color: #ffffff;
  font-weight: 800;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .section-grid,
  .compliance-layout,
  .split-layout,
  .principles-layout,
  .contact-layout,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-grid,
  .signal-inner {
    grid-template-columns: 1fr;
  }

  .signal-strip {
    margin-top: -34px;
  }

  .signal-inner div {
    min-height: 104px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 68px;
    padding: 12px 14px;
    gap: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .language-switch {
    width: 98px;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-media {
    object-position: 68% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(10, 14, 13, 0.94) 0%, rgba(10, 14, 13, 0.74) 70%, rgba(10, 14, 13, 0.24) 100%),
      linear-gradient(180deg, rgba(10, 14, 13, 0.42) 0%, rgba(10, 14, 13, 0) 54%, rgba(245, 241, 232, 0.96) 100%);
  }

  .hero-content {
    min-height: 92svh;
    padding: 96px 0 116px;
  }

  h1 {
    font-size: clamp(2.85rem, 12.5vw, 4.4rem);
  }

  .hero-actions,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .feature-grid,
  .feature-grid-wide,
  .mockup-grid,
  .principle-tags {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .market-card {
    min-height: auto;
  }

  .feature-index {
    margin-bottom: 34px;
  }

  .dashboard-mockup {
    padding: 14px;
  }

  .score-card {
    grid-template-columns: 1fr;
  }

  .score-card strong {
    grid-row: auto;
    font-size: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
