/* ==========================================================================
   DYGON AI Official Website V1.0 — Base Styles, Typography & Accessibility
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-void);
  color: var(--ink-1);
  overflow-x: hidden;
  position: relative;
}

/* Subtle architectural space backdrop */
.site-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 72% 46% at 50% -10%, rgba(125, 153, 242, 0.14) 0%, rgba(149, 136, 245, 0.06) 38%, rgba(6, 7, 11, 0) 74%),
    radial-gradient(ellipse 46% 36% at 86% 18%, rgba(149, 136, 245, 0.07) 0%, rgba(6, 7, 11, 0) 70%);
}

.site-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 85% 60% at 50% 18%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.14) 58%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 18%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.14) 58%, transparent 92%);
}

/* Accessibility skip link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--cta-bg);
  color: var(--cta-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--ease-ui);
}
.skip-link:focus {
  top: 14px;
  outline: 2px solid var(--cobalt-bright);
  outline-offset: 2px;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--cobalt-bright);
  outline-offset: 2px;
}

/* Reset & text hierarchy */
h1, h2, h3, h4, p, ul, ol, figure, blockquote {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

code, pre, .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* Container & section rhythm */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
  position: relative;
  z-index: 1;
}

.section-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 20%, rgba(125, 153, 242, 0.22) 50%, rgba(255, 255, 255, 0.08) 80%, transparent 100%);
  position: relative;
  z-index: 1;
}

/* Eyebrow & section headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt-bright);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(125, 153, 242, 0.08);
  border: 1px solid rgba(125, 153, 242, 0.22);
  box-shadow: var(--specular-soft);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cobalt-bright);
  box-shadow: 0 0 10px rgba(155, 179, 252, 0.85);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.06em;
  color: var(--cobalt-bright);
  margin-bottom: 16px;
}

.section-kicker .idx {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--line-base);
  background: rgba(255, 255, 255, 0.03);
}

.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.028em;
  color: var(--ink-1);
}

.section-lead {
  font-size: clamp(15px, 1.35vw, 17.5px);
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 640px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -0.005em;
  transition: transform var(--ease-ui), background var(--ease-ui), border-color var(--ease-ui), box-shadow var(--ease-ui), color var(--ease-ui);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--cta-bg);
  color: var(--cta-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(125, 153, 242, 0.16);
}

.btn-primary:hover {
  background: var(--cta-hover);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), 0 14px 36px rgba(125, 153, 242, 0.24);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-1);
  border: 1px solid var(--line-strong);
  box-shadow: var(--specular-soft);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-sm {
  height: 36px;
  padding: 0 15px;
  font-size: 13.5px;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--ease-reveal), transform var(--ease-reveal);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 20px;
  }
}
