/* ==========================================================================
   Quantum Horizon Solutions — base styles
   ========================================================================== */

:root {
  --bg-deep:      #060917;
  --bg-base:      #0b1023;
  --bg-panel:     #10162e;
  --bg-panel-2:   #141b38;
  --border-soft:  rgba(255, 255, 255, 0.08);

  --text-primary:   #eef1fb;
  --text-secondary: #a8b0d3;
  --text-muted:     #6f7aa8;

  --accent-cyan:    #4fd6e8;
  --accent-violet:  #8b6bf2;
  --accent-magenta: #d565e0;

  --gradient-brand: linear-gradient(120deg, var(--accent-cyan), var(--accent-violet) 55%, var(--accent-magenta));

  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-glow: 0 0 60px rgba(139, 107, 242, 0.25);
  --container-w: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--text-primary);
}

p { color: var(--text-secondary); margin: 0 0 1em; }

a { color: var(--accent-cyan); text-decoration: none; }

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

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin: 0 0 0.75em;
}

.eyebrow.center,
.section-title.center,
.section-lede.center { text-align: center; }

.section-title { font-size: clamp(1.75rem, 2.5vw, 2.4rem); }

.section-lede {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
}

/* ---- Starfield background ---- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg-deep);
  pointer-events: none;
}

.starfield canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #05070f;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 107, 242, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-soft);
}

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

.btn-block { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 9, 23, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.brand-text em {
  font-style: normal;
  color: var(--accent-violet);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 18px rgba(139, 107, 242, 0.55);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg-base);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.main-nav .nav-cta {
  background: rgba(139, 107, 242, 0.12);
  border: 1px solid rgba(139, 107, 242, 0.4);
  color: var(--text-primary);
  padding: 0.5em 1.1em;
  border-radius: 999px;
}

.main-nav .nav-cta:hover {
  background: rgba(139, 107, 242, 0.22);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--text-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.hero-glow-a {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--accent-violet), transparent 70%);
  top: -180px;
  right: -120px;
}

.hero-glow-b {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
  bottom: -160px;
  left: -140px;
  opacity: 0.35;
}

.hero-inner {
  text-align: center;
  max-width: 780px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  background: linear-gradient(120deg, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 2.2em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5em;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stats strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Services
   ========================================================================== */

.services { padding: 90px 0; }

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

.service-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 107, 242, 0.4);
  box-shadow: var(--shadow-glow);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 18px;
  background: var(--gradient-brand);
  position: relative;
  opacity: 0.9;
}

.service-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: var(--bg-panel);
  -webkit-mask: var(--icon-svg) center / 22px no-repeat;
          mask: var(--icon-svg) center / 22px no-repeat;
  opacity: 0;
}

/* simple distinct fills per icon so cards don't look identical */
.icon-wired      { background: linear-gradient(135deg, var(--accent-cyan), #2a7f92); }
.icon-wireless   { background: linear-gradient(135deg, var(--accent-violet), #4a3a99); }
.icon-voip       { background: linear-gradient(135deg, var(--accent-magenta), #8a2f95); }
.icon-integration{ background: linear-gradient(135deg, #6bd6a8, #2a8f6b); }

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4em;
}

.service-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================================================
   VoIP Spotlight
   ========================================================================== */

.voip-spotlight {
  padding: 90px 0;
  background: linear-gradient(180deg, transparent, var(--bg-panel), transparent);
}

.voip-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 10px rgba(79, 214, 232, 0.5);
}

.voip-visual {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-core {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 50px rgba(139, 107, 242, 0.6);
  z-index: 2;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(139, 107, 242, 0.35);
}

.ring-1 { width: 180px; height: 180px; animation: spin 14s linear infinite; }
.ring-2 { width: 260px; height: 260px; border-color: rgba(79, 214, 232, 0.25); animation: spin 22s linear infinite reverse; }

.ring-1::before,
.ring-2::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  top: -5px;
  left: calc(50% - 5px);
  box-shadow: 0 0 12px var(--accent-cyan);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Why Us
   ========================================================================== */

.why-us { padding: 90px 0; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.why-card {
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-panel-2));
}

.why-card h3 {
  font-size: 1.05rem;
  color: var(--accent-cyan);
}

.why-card p {
  font-size: 0.92rem;
  margin: 0;
}

/* ==========================================================================
   About
   ========================================================================== */

.about { padding: 90px 0; }

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

.about-inner p { font-size: 1.02rem; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 107, 242, 0.25), transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(60px);
  z-index: 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 1.5em 0 0;
  display: grid;
  gap: 14px;
}

.contact-details li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.contact-details span {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 60px;
}

.contact-form {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg-base);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
}

.form-row select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.form-alert-success {
  background: rgba(107, 214, 168, 0.12);
  border: 1px solid rgba(107, 214, 168, 0.4);
  color: #9fe8c8;
}

.form-alert-error {
  background: rgba(213, 101, 101, 0.12);
  border: 1px solid rgba(213, 101, 101, 0.4);
  color: #f0a8a8;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 60px 0 30px;
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .brand-text {
  display: block;
  margin-top: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .voip-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .voip-visual { height: 220px; order: -1; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-toggle { display: flex; }

  .footer-inner { grid-template-columns: 1fr; }
}
