/* ============================================================
   Sylphi — Corporate Site Styles
   Shared design tokens with Synastrix.
   ============================================================ */

:root {
  --bg:           #0a0514;
  --bg-surface:   #0e0528;
  --bg-card:      rgba(20, 12, 50, 0.55);
  --border:       rgba(255, 255, 255, 0.08);
  --violet:       #8B5CF6;
  --violet-light: #A78BFA;
  --teal:         #2DD4BF;
  --teal-light:   #5EEAD4;
  --text:         #FFFFFF;
  --subtext:      rgba(255, 255, 255, 0.65);
  --muted:        rgba(255, 255, 255, 0.4);

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

  --font: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Soft radial glow behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(139, 92, 246, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(45, 212, 191, 0.10), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-light); text-decoration: underline; }

h1, h2, h3 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-top: 32px; margin-bottom: 12px; }
h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }

p { color: var(--subtext); }

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* --- Header --- */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 3, 26, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo:hover { text-decoration: none; }

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--violet-light), var(--violet) 55%, #3b1f7a 100%);
  box-shadow:
    0 0 20px rgba(139, 92, 246, 0.55),
    inset 0 0 10px rgba(255, 255, 255, 0.25);
}

.logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.14em;
}

/* --- Hero --- */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--violet-light);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  max-width: 720px;
  margin: 0 auto 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--violet-light), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lede {
  max-width: 600px;
  margin: 0 auto 36px;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--subtext);
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--violet);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

/* --- Products --- */
.section {
  padding: 56px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 { margin-top: 0; }

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s, background 0.2s;
}

.product-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.product-card h3 { margin-bottom: 0; }

.product-card p { font-size: 0.9375rem; }

.product-card a.product-link {
  align-self: flex-start;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* --- Contact --- */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-card h2 { margin-top: 0; }

.contact-email {
  display: inline-block;
  margin-top: 16px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--teal);
}

/* --- Footer --- */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--subtext);
  font-size: 0.875rem;
}

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

.footer-meta {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* --- Prose pages (privacy, terms) --- */
.prose-page main { padding: 48px 0 32px; }

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.prose-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--subtext);
}

.prose h1 { margin-bottom: 8px; }

.prose-date {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 32px;
}

.prose h2 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 10px;
}

.prose p, .prose ul, .prose ol {
  color: var(--subtext);
  margin-bottom: 16px;
}

.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 6px; }

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0 16px;
}

/* --- Responsive --- */
@media (min-width: 720px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .footer-row { flex-direction: row; justify-content: space-between; }
}
