/*
Theme Name: SafeW Inspired Original
Theme URI: https://safew.org/
Author: Cursor Assistant
Author URI: https://safew.org/
Description: An original WordPress theme inspired by the visual language of safew.org, featuring a dark cyber-neon landing layout and conversion-focused sections.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: safew-inspired
Tags: dark, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --bg: #060712;
  --bg-soft: #140d2b;
  --bg-deep: #05060f;
  --card: #0c1840;
  --card-border: rgba(93, 151, 255, 0.38);
  --primary: #00d4ff;
  --primary-2: #2f6bff;
  --primary-3: #6a4cff;
  --text: #eef5ff;
  --muted: #a6b9e7;
  --success: #4bffca;
  --container: 1180px;
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 48% 58%, rgba(132, 71, 196, 0.56), rgba(68, 37, 120, 0.34) 34%, rgba(12, 12, 28, 0) 70%),
    radial-gradient(circle at 92% 66%, rgba(205, 70, 164, 0.36), rgba(205, 70, 164, 0) 34%),
    radial-gradient(circle at 80% 14%, rgba(75, 95, 255, 0.26), rgba(75, 95, 255, 0) 28%),
    linear-gradient(180deg, #05060f 0%, #0a081a 42%, #090716 100%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.fx-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.fx-particle {
  position: absolute;
  width: var(--size, 6px);
  height: var(--size, 6px);
  border-radius: 50%;
  opacity: 0.32;
  background: radial-gradient(circle at 35% 35%, rgba(192, 241, 255, 0.95), rgba(109, 157, 255, 0.28) 62%, rgba(109, 157, 255, 0) 100%);
  animation: particleFloat var(--duration, 12s) linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes particleFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0;
  }
  15% {
    opacity: 0.32;
  }
  100% {
    transform: translate3d(var(--drift-x, 0px), -120vh, 0) scale(1.3);
    opacity: 0;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 0 100%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 46%),
    radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 40%);
  opacity: 0.75;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(44, 125, 255, 0), rgba(44, 125, 255, 0.75) 46%, rgba(195, 62, 178, 0.68) 78%, rgba(195, 62, 178, 0));
  box-shadow: 0 0 12px rgba(69, 122, 255, 0.45);
  z-index: 3;
}

a {
  color: inherit;
  text-decoration: none;
}

a[data-real-href] {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(4, 11, 29, 0.76);
  border-bottom: 1px solid rgba(120, 174, 255, 0.25);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.brand-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(165, 188, 255, 0.4);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.site-nav {
  flex: 1;
  min-width: 0;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.lang-switch {
  margin-left: 0;
  flex-shrink: 0;
}

.nav-download-btn {
  padding: 9px 14px;
  font-size: 0.88rem;
  line-height: 1;
  white-space: nowrap;
}

.lang-switch-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.lang-switch select {
  border: 1px solid rgba(110, 172, 255, 0.45);
  border-radius: 10px;
  background: rgba(7, 18, 42, 0.78);
  color: #dcebff;
  padding: 7px 10px;
  font-size: 0.9rem;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(23, 214, 255, 0), rgba(23, 214, 255, 0.95), rgba(122, 107, 255, 0));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
  color: #f7fbff;
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.55);
}

.site-nav a:hover::after,
.site-nav .current-menu-item a::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 13px;
  border: 1px solid transparent;
  padding: 12px 18px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  color: #041127;
  background: linear-gradient(128deg, #1ef3ff, #27beff 52%, #4d79ff);
  box-shadow: 0 14px 38px rgba(0, 194, 255, 0.4);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 78%);
  transform: translateX(-140%);
  transition: transform 0.55s ease;
}

.btn-primary:hover {
  box-shadow: 0 18px 42px rgba(0, 194, 255, 0.5);
}

.btn-primary:hover::before {
  transform: translateX(140%);
}

.btn-outline {
  border-color: rgba(97, 178, 255, 0.62);
  color: #daf2ff;
  background: rgba(10, 27, 70, 0.35);
}

.hero {
  padding: 94px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px -140px auto;
  height: 480px;
  background:
    radial-gradient(circle at 16% 36%, rgba(0, 212, 255, 0.18), rgba(0, 212, 255, 0) 42%),
    radial-gradient(circle at 72% 28%, rgba(168, 93, 255, 0.24), rgba(168, 93, 255, 0) 48%),
    radial-gradient(circle at 42% 84%, rgba(86, 134, 255, 0.2), rgba(86, 134, 255, 0) 46%);
  filter: blur(10px);
  animation: heroGlowDrift 16s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 8% 3% auto;
  height: 340px;
  border-radius: 300px;
  background: radial-gradient(circle, rgba(127, 73, 201, 0.34), rgba(127, 73, 201, 0) 68%);
  filter: blur(26px);
  pointer-events: none;
  z-index: -1;
}

@keyframes heroGlowDrift {
  0% {
    transform: translate3d(-14px, 0, 0) scale(1);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(16px, -10px, 0) scale(1.06);
    opacity: 1;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #ffffff;
  background: none;
}

.hero-line {
  display: block;
}

.stagger-line {
  opacity: 0;
  transform: translateY(10px);
}

.hero-copy.is-visible .stagger-line {
  animation: lineRise 0.58s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--stagger-delay, 0ms);
}

@keyframes lineRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-line-strong {
  font-weight: 800;
}

.hero-line-light {
  margin-top: 4px;
  font-weight: 400;
  color: rgba(236, 241, 255, 0.95);
}

.hero-logo-wrap {
  margin-top: 20px;
}

.hero-logo-image {
  width: min(210px, 46vw);
  display: block;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 18px 0 0;
  max-width: 56ch;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.92rem;
  color: #bfd4ff;
}

.hero-device-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 460px;
}

.hero-device-image {
  width: min(125%, 560px);
  max-height: 600px;
  object-fit: contain;
  object-position: right bottom;
  transform: translateX(-48px) translateY(var(--parallax-y, 0px));
  filter: drop-shadow(0 26px 58px rgba(0, 0, 0, 0.55));
}

.panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 29, 74, 0.8), rgba(7, 16, 45, 0.93));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow:
    0 22px 58px rgba(0, 10, 42, 0.52),
    inset 0 1px 0 rgba(163, 218, 255, 0.14);
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(0, 212, 255, 0), rgba(0, 212, 255, 0.55), rgba(166, 92, 255, 0.45), rgba(0, 212, 255, 0));
  background-size: 220% 220%;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: cardGlowSweep 6s linear infinite;
  pointer-events: none;
}

.glow-card:hover::before {
  opacity: 0.42;
}

@keyframes cardGlowSweep {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.section {
  padding: 76px 0;
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.section-intro {
  margin: 0 0 34px;
  color: var(--muted);
  max-width: 70ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature h3 {
  margin: 8px 0 10px;
}

.feature p {
  margin: 0;
  color: #b5c8f2;
}

.section-metrics {
  padding-top: 26px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.metric-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.metric-card:hover,
.scenario-card:hover {
  transform: translateY(-4px);
  border-color: rgba(136, 191, 255, 0.6);
}

.metric-number {
  font-size: 2rem;
  font-weight: 800;
  color: #d7f4ff;
  margin-bottom: 10px;
}

.metric-card h3,
.scenario-card h3 {
  margin: 0 0 8px;
}

.metric-card p,
.scenario-card p {
  margin: 0;
  color: #c0cff1;
}

.section-showcase {
  padding-top: 20px;
}

.section-trustbar {
  padding: 10px 0 16px;
}

.trustbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  padding: 14px 18px;
}

.trustbar-title {
  color: #d9eaff;
  font-weight: 700;
  font-size: 0.95rem;
}

.trustbar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trustbar-list span {
  border: 1px solid rgba(125, 180, 255, 0.42);
  background: rgba(17, 34, 84, 0.55);
  color: #bdd4ff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.84rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: center;
}

.showcase-image img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.showcase-list {
  margin: 0;
  padding-left: 18px;
  color: #cbdbff;
  display: grid;
  gap: 8px;
}

.section-scenarios {
  padding-top: 26px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.section-faq {
  padding-top: 18px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  position: relative;
  padding-right: 42px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 1.1rem;
  color: #b8d7ff;
  transition: transform 0.22s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 20px;
  color: #c1cff2;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, opacity 0.22s ease, padding 0.22s ease;
}

.faq-item[open] p {
  padding: 0 20px 18px;
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(calc(22px + var(--parallax-y, 0px)));
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(var(--parallax-y, 0px));
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .glow-card::before {
    animation: none;
  }

  .hero::before {
    animation: none;
  }

  .fx-particles {
    display: none;
  }

  .stagger-line {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .faq-item p {
    transition: none;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-index {
  color: var(--success);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cta {
  text-align: center;
}

.cta .panel {
  padding: 40px 26px;
}

.site-footer {
  border-top: 1px solid rgba(109, 171, 255, 0.27);
  padding: 22px 0;
  color: #9bb3e5;
}

.post-list,
.post-single {
  padding: 72px 0;
}

.post-card {
  margin-bottom: 16px;
}

.post-card h2,
.post-single h1 {
  margin-top: 0;
}

@media (max-width: 720px) {
  .hero-grid,
  .showcase-grid,
  .metrics-grid,
  .scenario-grid,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-device-wrap {
    min-height: 360px;
    justify-content: center;
  }

  .hero-device-image {
    max-width: 340px;
    width: 100%;
    transform: none;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    width: 100%;
    order: 2;
    padding-bottom: 0;
  }

  .nav-wrap {
    flex-wrap: wrap;
    padding-top: 10px;
  }

  .site-nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
  }

  .lang-switch {
    order: 3;
    width: auto;
    margin-top: 8px;
  }

  .lang-switch select {
    min-width: 90px;
  }

  .nav-download-btn {
    order: 3;
    margin-top: 8px;
  }

  .trustbar {
    padding: 12px 14px;
  }
}
