/*
Theme Name: Quantum Security Solutions
Theme URI: https://example.com/quantum-security
Author: ChatGPT & User
Description: Single-page futuristic theme for Quantum Security Solutions with quantum-era cyber security content.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: quantum-security
*/

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

:root {
  --bg: #020617;
  --bg-alt: #02091f;
  --card: #020c24;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.2);
  --accent-strong: rgba(56, 189, 248, 0.45);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(148, 163, 184, 0.4);
  --danger: #f97373;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.85);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #0b1220 0, #020617 40%, #000 100%);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* HEADER */

.q-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.7), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1rem;
  text-transform: uppercase;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: radial-gradient(circle at top left, #38bdf8, #0ea5e9 40%, #0369a1 100%);
  color: #0b1120;
  box-shadow: 0 20px 45px rgba(56, 189, 248, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 60px rgba(56, 189, 248, 0.65);
}

.btn-outline {
  border-color: var(--accent-soft);
  color: var(--text);
  background: rgba(15, 23, 42, 0.5);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.9);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: rgba(148, 163, 184, 0.5);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn.full-width {
  width: 100%;
}

.mt {
  margin-top: 1rem;
}

/* HERO */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero-text h1 span {
  background: linear-gradient(to right, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0 1.8rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  font-size: 0.85rem;
}

.hero-meta h4 {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
}

.hero-meta p {
  margin: 0;
  color: var(--muted);
}

/* HERO VISUAL */

.hero-visual {
  position: relative;
}

.grid-sphere {
  position: relative;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.2), transparent 60%),
    radial-gradient(circle at bottom, rgba(34, 197, 94, 0.18), transparent 60%),
    #020617;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.grid-sphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  mix-blend-mode: screen;
}

.sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, #e0f2fe, #38bdf8 35%, #0ea5e9 55%, #0369a1 80%);
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 40px rgba(56, 189, 248, 0.8),
    0 0 90px rgba(56, 189, 248, 0.9);
}

.orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
}

.orbit-1 {
  width: 220px;
  height: 220px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(18deg);
}

.orbit-2 {
  width: 260px;
  height: 260px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
}

.orbit-3 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(36deg);
}

.node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #e0f2fe;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.9);
}

.node-1 {
  top: 26%;
  left: 62%;
}

.node-2 {
  bottom: 24%;
  left: 32%;
}

.node-3 {
  bottom: 18%;
  right: 26%;
}

.hero-card {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 320px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 20px;
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.hero-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.hero-card p {
  margin: 0 0 0.4rem;
  color: var(--muted);
}

.hero-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

/* TRUST BAR */

.trust-bar {
  padding: 0.4rem 0 0.6rem;
}

.trust-flex {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.trust-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.9);
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.trust-logos span {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.8);
}

/* SECTIONS */

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 1));
}

.section-head {
  text-align: left;
  margin-bottom: 2.2rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 32rem;
}

/* CARDS */

.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.98));
  border-radius: var(--radius-xl);
  padding: 1.2rem 1.2rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.card.mini {
  background: rgba(15, 23, 42, 0.95);
}

/* PLATFORM */

.platform-grid {
  display: grid;
  gap: 2.3rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.pill {
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.8);
  color: var(--muted);
}

.platform-diagram {
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 1));
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.85rem;
}

.layer {
  border-radius: 16px;
  padding: 0.7rem 0.7rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  margin-bottom: 0.7rem;
}

.layer h4 {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
}

.layer p {
  margin: 0;
  color: var(--muted);
}

.layer ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

/* RESOURCES */

.resources-grid .card {
  min-height: 160px;
}

/* CONTACT */

.contact-section {
  position: relative;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.14), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.contact-grid {
  position: relative;
  display: grid;
  gap: 2.4rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: flex-start;
}

.contact-points {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-points li {
  margin-bottom: 0.35rem;
}

/* FORM */

.contact-form {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 22px;
  padding: 1.4rem 1.3rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: var(--shadow-soft);
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  padding: 0.6rem 0.7rem;
  font-size: 0.85rem;
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.2rem 0 1.5rem;
  background: linear-gradient(to top, #020617, rgba(2, 6, 23, 0.9));
}

.footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-grid,
  .platform-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.6rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 0.9rem auto 0;
  }

  .platform-diagram {
    margin-top: -0.3rem;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .nav.open {
    position: absolute;
    inset: 100% 0 auto 0;
    background: rgba(2, 6, 23, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.5);
    display: flex;
    flex-direction: column;
    padding: 0.8rem 1.3rem 1.1rem;
    gap: 0.7rem;
  }

  .nav.open a {
    font-size: 0.95rem;
  }

  .burger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 2.8rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-flex {
    justify-content: flex-start;
  }

  .footer-flex {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}
