/* ===========================
   Silarche Inc. — style.css
   Draft 3 dark/inverted cleanup
   =========================== */

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

:root {
  --color-bg: #070708;
  --color-bg-deep: #0f0f12;
  --color-surface: #121216;
  --color-surface-soft: #18181d;
  --color-border: rgba(255, 255, 255, 0.11);
  --color-text-primary: #f5f3ef;
  --color-text-secondary: #b7b1aa;
  --color-text-muted: #827b75;
  --color-accent: #f5f3ef;
  --color-accent-soft: rgba(255, 255, 255, 0.07);
  --color-link: #f5f3ef;
  --color-brand-purple: #8b5cf6;
  --color-brand-purple-strong: #7c3aed;
  --color-brand-purple-soft: rgba(139, 92, 246, 0.16);

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

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

  --shadow-card: 0 1px 3px rgba(0,0,0,0.28), 0 12px 36px rgba(0,0,0,0.22);
  --shadow-card-hover: 0 8px 20px rgba(0,0,0,0.34), 0 18px 52px rgba(0,0,0,0.32);

  --max-width: 960px;
  --section-gap: 120px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 50% -12%, rgba(139, 92, 246, 0.16), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.055), transparent 22%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%);
  color: var(--color-text-primary);
  line-height: 1.6;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

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

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: var(--section-gap) 0;
}

/* ---- Nav ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 7, 8, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

nav.scrolled {
  background: rgba(7, 7, 8, 0.90);
  border-bottom-color: var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
}

.nav-logo span {
  color: var(--color-text-muted);
  font-weight: 400;
}

.brand-a,
.nav-logo .brand-a,
.footer-logo .brand-a {
  display: inline;
  color: var(--color-brand-purple);
  font-weight: inherit;
  letter-spacing: inherit;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

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

/* ---- Hero ---- */
#hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(64px + 112px);
  padding-bottom: var(--section-gap);
  text-align: center;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 88px 50% auto auto;
  width: min(600px, 86vw);
  height: min(600px, 86vw);
  transform: translateX(50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.18), transparent 56%),
    radial-gradient(circle at 64% 36%, rgba(245, 243, 239, 0.10), transparent 35%);
  pointer-events: none;
  z-index: -1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.hero-heading {
  max-width: 780px;
  margin: 0 auto 24px;
}

.hero-sub {
  max-width: 520px;
  margin: 0 auto 48px;
  font-size: 1.1rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: #08080a;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.hero-cta:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(245, 243, 239, 0.12);
}

.hero-divider {
  width: 48px;
  height: 2px;
  background: var(--color-border);
  margin: 72px auto 0;
  border-radius: 2px;
}

/* ---- Section labels ---- */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* ---- About ---- */
#about {
  background: rgba(18, 18, 22, 0.72);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-heading {
  margin-bottom: 20px;
}

.about-body {
  margin-bottom: 16px;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-item {
  padding: 20px 24px;
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.value-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text-primary);
}

.value-item p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ---- Focus ---- */
.focus-heading {
  margin-bottom: 12px;
}

.focus-intro {
  max-width: 560px;
  margin-bottom: 56px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.focus-card {
  position: relative;
  overflow: hidden;
  min-height: 248px;
  background:
    linear-gradient(135deg, rgba(24, 24, 29, 0.98) 0%, rgba(18, 18, 22, 0.98) 68%, rgba(139, 92, 246, 0.11) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.focus-card::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--color-brand-purple-soft);
  filter: blur(18px);
  opacity: 0.75;
  pointer-events: none;
}

.focus-card:hover {
  border-color: rgba(139, 92, 246, 0.32);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.focus-number {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-brand-purple);
  margin-bottom: 42px;
}

.focus-card h3,
.focus-card p {
  position: relative;
  z-index: 1;
}

.focus-card h3 {
  margin-bottom: 12px;
}

.focus-card p {
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ---- Contact ---- */
#contact {
  background: rgba(18, 18, 22, 0.72);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.contact-heading {
  margin-bottom: 16px;
}

.contact-sub {
  max-width: 420px;
  margin: 0 auto 36px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 28px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.contact-email:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #08080a;
  transform: translateY(-1px);
}

.contact-email svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* ---- Footer ---- */
footer {
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: -0.02em;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ---- Fade-in animation ---- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  :root {
    --section-gap: 80px;
  }

  .container {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-links {
    gap: 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .focus-card {
    min-height: auto;
    padding: 28px 24px;
  }

  .focus-number {
    margin-bottom: 32px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  #hero {
    padding-top: calc(64px + 76px);
  }

  .nav-links {
    display: none;
  }
}
