/* ============================================================
   Orion / Nameless Tech -- shared stylesheet
   Two distinct "brand frequencies" over one component system:
   [data-brand="orion"]     -> cyber-cyan, monospace-accented
   [data-brand="nameless"]  -> emerald + gold, editorial serif-accented
   Plain CSS, no build step, no framework.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

:root {
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Brand: Orion ---------- */
[data-brand="orion"] {
  --bg: #05070d;
  --bg-alt: #0a0f1c;
  --fg: #e8f4ff;
  --muted: #93a6c4;
  --primary: #22d3ee;
  --primary-2: #7c5cff;
  --primary-fg: #04141a;
  --card: rgba(20, 30, 48, 0.5);
  --border: rgba(34, 211, 238, 0.22);
  --font-heading: "Space Grotesk", "Outfit", sans-serif;
  --font-brand: "Playfair Display", Georgia, serif;
  --radius: 20px;
  --glow: 0 0 32px rgba(34, 211, 238, 0.35);
}

/* ---------- Brand: Nameless Tech ---------- */
[data-brand="nameless"] {
  --bg: #06090a;
  --bg-alt: #0c1210;
  --fg: #f2f4f0;
  --muted: #9aa79f;
  --primary: #21c58a;
  --primary-2: #d4af5a;
  --primary-fg: #06120c;
  --card: rgba(20, 32, 27, 0.5);
  --border: rgba(33, 197, 138, 0.22);
  --font-heading: "Space Grotesk", "Outfit", sans-serif;
  --font-brand: "Playfair Display", Georgia, serif;
  --radius: 20px;
  --glow: 0 0 32px rgba(33, 197, 138, 0.3);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-heading); margin: 0 0 0.5em; line-height: 1.12; font-weight: 600; }
p { margin: 0 0 1em; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
::selection { background: var(--primary); color: var(--primary-fg); }

/* Ambient grid backdrop */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(circle at 15% -10%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 55%),
              radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--primary-2) 14%, transparent), transparent 50%);
}

/* Glassmorphism */
.glass {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Scroll-reveal animation (progressive enhancement) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
nav.site-nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
nav.site-nav .brand { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--primary); letter-spacing: 0.02em; }
nav.site-nav .links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
nav.site-nav .links a { padding: 4px 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
nav.site-nav .links a:hover { color: var(--primary); border-color: var(--primary); }

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding: 100px 24px 90px; }
.hero .avatar-wrap { position: relative; width: 176px; height: 176px; margin: 0 auto 28px; }
.hero .avatar-ring {
  position: absolute; inset: -10px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), var(--primary-2), var(--primary));
  animation: spin 8s linear infinite;
  opacity: 0.7;
}
.hero .avatar {
  position: relative; width: 176px; height: 176px; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--bg);
  box-shadow: var(--glow);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero .brandmark { font-family: var(--font-brand); font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--primary); margin-bottom: 6px; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); background: linear-gradient(120deg, var(--fg), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .tagline { max-width: 620px; margin: 0 auto 8px; color: var(--muted); font-size: 1.12rem; }
.hero .status-line { color: var(--primary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 32px; font-weight: 600; }
.hero .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem;
  border: 1px solid var(--border);
  cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: linear-gradient(120deg, var(--primary), var(--primary-2)); color: var(--primary-fg); border: none; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-outline { background: transparent; color: var(--fg); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* Premium animated Telegram button */
.btn-telegram {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: var(--primary-fg); border: none;
  box-shadow: 0 0 0 rgba(33, 197, 138, 0.6);
  animation: telegram-glow 2.6s ease-in-out infinite;
}
.btn-telegram::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn-telegram:hover::before { transform: translateX(120%); }
.btn-telegram:hover { transform: translateY(-3px) scale(1.03); }
@keyframes telegram-glow {
  0%, 100% { box-shadow: 0 0 12px 0 color-mix(in srgb, var(--primary) 55%, transparent); }
  50% { box-shadow: 0 0 32px 6px color-mix(in srgb, var(--primary) 65%, transparent); }
}

/* ---------- Sections ---------- */
.section { padding: 80px 24px; }
.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 36px; }
.section .eyebrow { color: var(--primary); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; margin-bottom: 10px; }
.section-divider { height: 1px; background: var(--border); max-width: 1040px; margin: 0 auto; }

/* Profile info grid */
.profile-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.profile-item {
  padding: 20px 22px;
}
.profile-item .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
.profile-item .value { font-size: 1.05rem; font-weight: 600; }

/* Pills */
.pill-list { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { padding: 10px 18px; border-radius: 999px; font-size: 0.88rem; }
.replit-badge {
  display: none !important;
}

/* Cards / grid */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { padding: 28px; transition: transform 0.25s ease, border-color 0.25s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--primary); }
.card .icon { font-size: 1.5rem; margin-bottom: 12px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.94rem; }

/* Quotes */
.quote-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote { padding: 30px; font-family: var(--font-brand); font-size: 1.15rem; font-style: italic; position: relative; }
.quote::before { content: "\201C"; font-size: 3rem; color: var(--primary); opacity: 0.4; line-height: 0; position: absolute; top: 26px; left: 18px; }
.quote p { position: relative; z-index: 1; margin: 0; padding-left: 20px; }

/* Mission */
.mission { text-align: center; padding: 60px 24px; }
.mission p { max-width: 680px; margin: 0 auto; font-size: 1.25rem; color: var(--fg); }

/* Contact */
.contact-wrap { text-align: center; }
.contact-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 30px 0; }
.contact-link { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 18px 26px; transition: transform 0.2s ease, border-color 0.2s ease; }
.contact-link:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.contact-link .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.contact-link .value { font-weight: 600; }

/* Footer */
footer.site-footer { padding: 50px 24px 60px; text-align: center; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border); }
footer.site-footer .foot-tagline { color: var(--primary); font-weight: 600; letter-spacing: 0.08em; margin-bottom: 8px; text-transform: uppercase; font-size: 0.8rem; }

/* 404 */
.empty-state { text-align: center; padding: 140px 24px; color: var(--muted); }
.empty-state h1 { color: var(--fg); }

@media (max-width: 640px) {
  nav.site-nav { padding: 16px 20px; flex-direction: column; gap: 12px; align-items: flex-start; }
  nav.site-nav .links { gap: 14px; }
  .hero { padding: 70px 20px 60px; }
  .section { padding: 56px 20px; }
}
