/* Silicon Relay — glass / purple-green theme */
:root {
  --bg-deep: #0f0d18;
  --bg-mid: #16132a;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --purple: #9b7bff;
  --purple-dim: #7c5cff;
  --green: #3dd68c;
  --green-dim: #2ab86f;
  --text: #e8e6f2;
  --text-muted: #a8a3bc;
  --error: #ff6b8a;
  --success: #3dd68c;
  --radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --shadow-glow: 0 0 60px rgba(124, 92, 255, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(124, 92, 255, 0.35), transparent 50%),
    radial-gradient(ellipse 60% 40% at 85% 70%, rgba(61, 214, 140, 0.2), transparent 45%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
  pointer-events: none;
}

.shape-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: -1;
  animation: float 18s ease-in-out infinite;
  pointer-events: none;
}

.shape-blob--1 {
  width: 320px;
  height: 320px;
  background: var(--purple-dim);
  top: 15%;
  left: -5%;
}

.shape-blob--2 {
  width: 280px;
  height: 280px;
  background: var(--green);
  bottom: 20%;
  right: -8%;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -20px) scale(1.05); }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--purple);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
}

.glass-bar {
  background: rgba(15, 13, 24, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.logo:hover { color: var(--text); }

.logo-mark { border-radius: 8px; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.75rem;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--text);
  box-shadow: 0 6px 0 var(--text), 0 -6px 0 var(--text);
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

.primary-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15, 13, 24, 0.95);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
}

.primary-nav.is-open .nav-list {
  display: flex;
}

@media (min-width: 900px) {
  .primary-nav { position: static; }
  .primary-nav .nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    background: transparent;
    padding: 0;
    border: none;
    gap: 1.25rem;
  }
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-list a:hover { color: var(--text); }

.nav-cta {
  padding: 0.45rem 1rem !important;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-dim), var(--green-dim));
  color: #fff !important;
}

.nav-cta:hover { opacity: 0.92; color: #fff !important; }

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.page-hero {
  margin-bottom: 3rem;
}

.page-hero--split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .page-hero--split { grid-template-columns: 1fr 1fr; }
}

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 42ch;
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--glass-border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple-dim), #5a8fff 50%, var(--green-dim));
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.service-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.service-card h3 { margin: 0 0 0.5rem; }

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.section {
  margin: 4rem 0;
}

.section-title {
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 55ch;
  margin-bottom: 2rem;
}

.quote-block {
  padding: 2rem;
  border-left: 3px solid var(--purple);
  margin: 2rem 0;
}

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
}

.site-footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.footer-tag {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 520px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideUp 0.4s ease;
}

@media (min-width: 600px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    left: auto;
    right: 1.5rem;
  }
}

.cookie-banner--hidden {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s, transform 0.35s;
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.inline-error {
  color: var(--error);
  background: rgba(255, 107, 138, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.form-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .form-layout { grid-template-columns: 1fr 1.2fr; }
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

input, select, textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--purple-dim);
  outline-offset: 2px;
}

.input-invalid {
  border-color: var(--error);
}

.field-error {
  font-size: 0.85rem;
  color: var(--error);
  margin: 0.25rem 0 0.75rem;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.form-status--success {
  background: rgba(61, 214, 140, 0.15);
  color: var(--success);
}

.form-status--error {
  background: rgba(255, 107, 138, 0.15);
  color: var(--error);
}

.form-status--info { display: none; }

.form-status[hidden] { display: none !important; }

.contact-block {
  padding: 1.5rem;
}

.contact-block p { margin-bottom: 0.5rem; }

.legal-page h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.legal-page th, .legal-page td {
  border: 1px solid var(--glass-border);
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.legal-page th {
  background: rgba(255, 255, 255, 0.04);
}

.blog-list article {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.blog-list h2 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.blog-list h2 a {
  color: var(--text);
  text-decoration: none;
}

.blog-list h2 a:hover { color: var(--green); }

.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-cover {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  border: 1px solid var(--glass-border);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th, .pricing-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--glass-border);
  text-align: left;
}

.pricing-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.process-step {
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.process-step .step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--purple);
  opacity: 0.6;
  margin-bottom: 0.25rem;
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
}

.team-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 600px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

.not-found {
  text-align: center;
  padding: 4rem 1rem;
}

.not-found h1 { font-size: 4rem; opacity: 0.5; }

.fade-in {
  animation: fadeIn 0.8s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
