@import url("/styles/shared-ui.css");

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

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

:root {
  --bg: #09090b;
  --surface: #0f0f12;
  --surface-2: #16161a;
  --surface-3: #1c1c21;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #ededef;
  --text-2: #9ca3af;
  --text-3: #717888;
  --primary: #818cf8;
  --green: #34d399;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.012;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 28px;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--border);
}

nav .inner {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links a:focus-visible,
.content a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.page-header {
  padding: 140px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.page-header p {
  color: var(--text-2);
  font-size: 1.1rem;
}

.content {
  padding-bottom: 100px;
  font-size: 1.05rem;
  color: var(--text-2);
}

.content h2 {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
}

.content h3 {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 32px 0 12px;
}

.content p {
  margin-bottom: 20px;
}

.content ul {
  margin-bottom: 20px;
  padding-left: 24px;
}

.content li {
  margin-bottom: 8px;
}

.content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border-2);
  transition: text-decoration-color 0.2s;
}

.content a:hover {
  text-decoration-color: var(--primary);
}

.highlight-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
}

.highlight-box h3 {
  margin-top: 0;
  color: var(--green);
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

footer {
  padding: 60px 0;
  background: rgba(15, 15, 18, 0.4);
}

.footer-left {
  gap: 16px;
}

.footer-logo {
  font-size: 0.9rem;
}

.fl-icon {
  width: 24px;
  height: 24px;
}

.footer-sep {
  background: var(--border);
}

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

.footer-links { gap: 24px; }

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-2);
  transition: color 0.2s;
}

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

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
  }
}
