/* ============================================================
   UFP500° SHARED STYLES
   Applies to both ufp500.com and ufp500.org
   ============================================================ */

/* 0. GOOGLE FONTS
   ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:ital,wght@0,300;0,400;0,500;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');


/* 1. CUSTOM PROPERTIES — DARK THEME (default)
   ---------------------------------------------------------- */
:root {
  --bg:          #0F1014;
  --bg-2:        #15171C;
  --bg-3:        #1C1F27;
  --surface:     #232730;
  --border:      #2A2E38;
  --border-2:    #2E3545;
  --cyan:        #00B4D8;
  --cyan-dim:    #0090AC;
  --cyan-glow:   rgba(0,180,216,0.12);
  --cyan-mid:    rgba(0,180,216,0.3);
  --steel:       #E8ECF0;
  --steel-dim:   #C8D0DA;
  --mid:         #8A9BAE;
  --dim:         #4A5568;
  --mono:        'IBM Plex Mono', monospace;
  --sans:        'Space Grotesk', sans-serif;
  --body:        'Inter', sans-serif;
  --speed:       0.2s;
}


/* 2. LIGHT THEME
   ---------------------------------------------------------- */
[data-theme="light"] {
  --bg:          #F7F8FC;
  --bg-2:        #ECEEF5;
  --bg-3:        #E2E5EF;
  --surface:     #D5DAE8;
  --border:      #C0C8D8;
  --border-2:    #A8B4C8;
  --cyan:        #0090AC;
  --cyan-dim:    #007088;
  --cyan-glow:   rgba(0,144,172,0.1);
  --cyan-mid:    rgba(0,144,172,0.25);
  --steel:       #0F1116;
  --steel-dim:   #2A3040;
  --mid:         #4A5570;
  --dim:         #8090A8;
}


/* 3. RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--steel);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--speed), color var(--speed);
}


/* 4. NAVIGATION
   ---------------------------------------------------------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(15,16,20,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--speed);
}
[data-theme="light"] nav {
  background: rgba(247,248,252,0.92);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-decoration: none;
  flex-shrink: 0;
  transition: color var(--speed);
}
.nav-tld {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--mid);
  letter-spacing: 0.12em;
}
.nav-right {
  display: flex; align-items: center; gap: 20px;
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--speed);
}
.nav-links a:hover { color: var(--steel); }

.nav-cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--bg) !important;
  background: var(--cyan);
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--speed), transform 0.15s;
}
.nav-cta:hover { background: #00C8F0 !important; transform: translateY(-1px); }

.nav-com-link {
  color: var(--mid) !important;
  border: 1px solid var(--border) !important;
  padding: 7px 18px;
  border-radius: 4px;
  transition: border-color var(--speed), color var(--speed) !important;
}
.nav-com-link:hover { border-color: var(--mid) !important; color: var(--steel) !important; }


/* 5. THEME TOGGLE
   ---------------------------------------------------------- */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--mid);
  flex-shrink: 0;
  transition: border-color var(--speed), color var(--speed);
}
.theme-toggle:hover { border-color: var(--mid); color: var(--steel); }
.theme-toggle svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Dark mode: show moon (current state indicator) */
.icon-sun  { display: none;  }
.icon-moon { display: block; }
/* Light mode: show sun */
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none;  }


/* 6. COMMON SECTION STYLES
   ---------------------------------------------------------- */
section { padding: 96px 48px; }

.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--sans);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--steel);
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 680px;
}
.section-lead {
  font-size: 17px;
  color: var(--mid);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 56px;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 48px;
  transition: background var(--speed);
}

/* Hero h1 — shared base, same size both sites */
.hero h1 {
  font-family: var(--sans);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--steel);
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: normal;
  color: var(--cyan);
}


/* 7. BUTTONS
   ---------------------------------------------------------- */
.btn-primary {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: #0F1014;
  background: var(--cyan);
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background var(--speed), transform 0.15s;
}
.btn-primary:hover { background: #00C8F0; transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  background: transparent;
  border: 1px solid var(--border);
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: border-color var(--speed), color var(--speed);
}
.btn-secondary:hover { border-color: var(--mid); color: var(--steel); }


/* 8. TAGS
   ---------------------------------------------------------- */
.tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--cyan);
  background: var(--cyan-glow);
  border: 1px solid rgba(0,180,216,0.2);
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
[data-theme="light"] .tag {
  border-color: rgba(0,144,172,0.25);
}


/* 9. FOOTER
   ---------------------------------------------------------- */
footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  transition: border-color var(--speed);
}
.footer-left {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  line-height: 1.7;
}
.footer-left span, .footer-left a { color: var(--cyan); text-decoration: none; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px;
  color: var(--dim);
  text-decoration: none;
  transition: color var(--speed);
}
.footer-links a:hover { color: var(--mid); }


/* 10. ANIMATIONS
   ---------------------------------------------------------- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}


/* 11. RESPONSIVE — shared
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-right { gap: 12px; }
  .nav-links { display: none; }
  section { padding: 64px 24px; }
  .divider { margin: 0 24px; }
  footer { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
