/* =============================
   UNENTROPY - Common Styles
   Shared across all pages
============================== */

/* ---------------------------
   Design System Variables
---------------------------- */
:root {
  /* Core Colors */
  --bg: #0b1220;
  --surface: rgba(255,255,255,0.06);
  --surface-2: rgba(255,255,255,0.08);
  --card: rgba(255,255,255,0.07);
  --card-border: rgba(255,255,255,0.12);

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --muted-2: rgba(255,255,255,0.52);

  /* Brand Colors */
  --primary: #60a5fa;
  --primary-strong: #3b82f6;
  --accent: #22d3ee;
  --success: #34d399;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Layout */
  --container: 1160px;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 12px;

  /* Shadows */
  --shadow: 0 18px 60px rgba(0,0,0,0.35);
  --shadow-soft: 0 12px 32px rgba(0,0,0,0.18);

  /* Typography */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
}

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

html {
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 700px at 20% -10%, rgba(96,165,250,0.35), transparent 55%),
              radial-gradient(900px 600px at 90% 10%, rgba(34,211,238,0.25), transparent 55%),
              radial-gradient(900px 700px at 50% 110%, rgba(59,130,246,0.25), transparent 55%),
              var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ---------------------------
   Container
---------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------
   Accessible Focus
---------------------------- */
:focus-visible {
  outline: 3px solid rgba(34,211,238,0.85);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ---------------------------
   Header / Navigation
---------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(11,18,32,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    radial-gradient(16px 16px at 30% 30%, rgba(34,211,238,.9), transparent 70%),
    radial-gradient(18px 18px at 70% 70%, rgba(96,165,250,.9), transparent 70%),
    linear-gradient(135deg, rgba(96,165,250,0.75), rgba(34,211,238,0.55));
  box-shadow: 0 10px 24px rgba(59,130,246,0.25);
  border: 1px solid rgba(255,255,255,0.14);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-full-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.95);
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-family: 'Courier Prime', 'Courier New', monospace;
  text-transform: uppercase;
  position: relative;
  padding: 0 12px;
}

.brand-text::before {
  content: '{';
  font-size: 48px;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  line-height: 1;
  font-family: 'Rosario', sans-serif;
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
}

.brand-text::after {
  content: '}';
  font-size: 48px;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  line-height: 1;
  font-family: 'Rosario', sans-serif;
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
}

.brand-tagline {
  display: block;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.75);
  text-align: center;
  margin-top: 1px;
  font-family: 'Courier Prime', 'Courier New', monospace;
  text-transform: uppercase;
}

.brand-tagline-footer {
  display: block;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.75);
  text-align: center;
  margin-top: 1px;
  font-family: 'Courier Prime', 'Courier New', monospace;
  text-transform: uppercase;
  margin-left: 21px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
  line-height: 1.1;
}

.brand-tag {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------------------------
   Buttons
---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 750;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
}

.btn-primary {
  border-color: rgba(96,165,250,0.35);
  background: linear-gradient(135deg, rgba(59,130,246,0.95), rgba(34,211,238,0.65));
  box-shadow: 0 18px 45px rgba(59,130,246,0.22);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
}

/* ---------------------------
   Mobile Navigation
---------------------------- */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 0 18px;
}

.mobile-drawer ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.mobile-drawer a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text);
  font-weight: 650;
}

.mobile-drawer a span {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

header[data-open="true"] .mobile-drawer {
  display: block;
}

/* ---------------------------
   Footer
---------------------------- */
footer {
  padding: 28px 0 44px;
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.foot-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,0.85);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.footer-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.foot-brand small {
  display: block;
  color: rgba(255,255,255,0.58);
  font-weight: 600;
  letter-spacing: 0;
  margin-top: 2px;
}

.foot-links {
  list-style: none;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.68);
  font-weight: 650;
  font-size: 13px;
}

.foot-links a {
  padding: 8px 10px;
  border-radius: 10px;
}

.foot-links a:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}

/* ---------------------------
   Responsive Breakpoints
---------------------------- */
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  
  .nav-cta .btn {
    display: none;
  }
  
  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
