/* PhaseHarbor Web Design System — Modern, Responsive, Zero-Tracker */

:root {
  --bg-primary: #0a0d12;
  --bg-surface: #121721;
  --bg-surface-elevated: #1a2230;
  --border-subtle: #242f42;
  --border-focus: #38bdf8;
  --text-primary: #e6edf3;
  --text-secondary: #8b9bb4;
  --text-muted: #5e6d82;
  --accent-cyan: #38bdf8;
  --accent-teal: #2dd4bf;
  --accent-glow: rgba(56, 189, 248, 0.12);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background-color: rgba(10, 13, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

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

.logo-img {
  width: 32px;
  height: 32px;
  display: block;
}

.logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #8b9bb4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tm {
  font-size: 0.6em;
  vertical-align: super;
  line-height: 0;
  font-weight: 500;
  opacity: 0.85;
  margin-left: 2px;
  -webkit-text-fill-color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

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

/* Hero Section */
.hero-section {
  padding: 100px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 360px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, rgba(10, 13, 18, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.badge-wrapper {
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-teal);
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Status Indicator Box */
.status-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px 28px;
  max-width: 580px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.status-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.status-pulse {
  position: relative;
  width: 10px;
  height: 10px;
  background-color: var(--accent-teal);
  border-radius: 50%;
  display: inline-block;
}

.status-pulse::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent-teal);
  border-radius: 50%;
  opacity: 0.6;
  animation: pulse-ring 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

.status-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-teal);
}

.status-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Pillars Section */
.pillars-section {
  padding: 60px 0 80px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.pillar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
}

.card-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.pillar-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.pillar-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Notice / Disclaimer Section */
.notice-section {
  padding: 20px 0 60px;
}

.notice-inner {
  border-top: 1px solid var(--border-subtle);
  padding-top: 36px;
}

.disclaimer-box {
  background-color: rgba(18, 23, 33, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px 24px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.disclaimer-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.disclaimer-text strong {
  color: var(--text-secondary);
}

/* Legal Page Content Styles */
.legal-main {
  padding: 60px 0 80px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
}

.legal-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-body {
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 28px;
  line-height: 1.7;
}

.legal-body h2 {
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 12px;
}

.legal-body ul, .legal-body ol {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-body code {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--accent-cyan);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: auto;
}

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

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

@media (max-width: 640px) {
  .hero-section {
    padding: 60px 0 40px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}
