/* Borealis Software — public landing page */
:root {
  --bg: #070b14;
  --bg-2: #0a0f1c;
  --panel: rgba(18, 26, 44, 0.66);
  --border: rgba(120, 160, 220, 0.14);
  --text: #eaf1fc;
  --muted: #93a6c6;
  --accent: #34c8a3;
  --accent-2: #2f8fd0;
  --accent-3: #8a4dff;
  --radius: 18px;
  --grad: linear-gradient(100deg, #34c8a3, #2f8fd0 45%, #8a4dff);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 700px at 75% -15%, #0f2036 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}

/* Aurora backdrop */
.aurora-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; width: 62vw; height: 62vw; filter: blur(100px); opacity: 0.32; border-radius: 50%; animation: drift 24s ease-in-out infinite alternate; }
.a1 { top: -24%; left: -12%; background: radial-gradient(circle, #34c8a3, transparent 65%); }
.a2 { top: -28%; right: -8%; background: radial-gradient(circle, #2f8fd0, transparent 65%); animation-delay: -8s; }
.a3 { top: -34%; left: 38%; background: radial-gradient(circle, #8a4dff, transparent 65%); animation-delay: -15s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(5%, 9%) scale(1.16); } }

/* Buttons */
.btn { display: inline-block; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; border-radius: 12px; padding: 12px 22px; cursor: pointer; transition: transform .08s ease, filter .2s ease, background .2s ease; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); color: #06121f; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: rgba(255,255,255,0.04); border-color: var(--border); color: var(--text); }
.btn.ghost:hover { background: rgba(255,255,255,0.09); }
.btn.big { font-size: 17px; padding: 15px 30px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 16px 6vw; backdrop-filter: blur(14px); background: rgba(7,11,20,0.55); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark { width: 50px; height: auto; display: block; filter: drop-shadow(0 0 10px rgba(52,200,163,0.35)); }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: 0.3px; }
.brand-sub { font-weight: 600; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 9px 18px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text) !important; }
.nav-cta:hover { background: rgba(255,255,255,0.1); }

/* Layout */
main { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 6vw; }
.section { padding: 70px 0; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 100px 0 80px; max-width: 820px; }
.eyebrow { letter-spacing: 4px; font-size: 13px; font-weight: 700; color: var(--accent); margin: 0 0 18px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; font-weight: 900; margin: 0 0 22px; letter-spacing: -1.5px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 620px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Section head */
.section-head { margin-bottom: 30px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 6px; font-weight: 800; letter-spacing: -0.5px; }
.section-head p { margin: 0; font-size: 16px; }

/* Work grid */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.work-card { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; backdrop-filter: blur(8px); overflow: hidden; transition: transform .14s ease, border-color .2s ease; display: flex; flex-direction: column; min-height: 210px; }
.work-card:hover { transform: translateY(-4px); border-color: rgba(120,160,220,0.34); }
.work-card .accent-line { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.work-card .card-logo { height: 72px; width: auto; max-width: 100%; object-fit: contain; margin: 2px 0 12px; align-self: flex-start; }
.work-card h3 { font-size: 20px; margin: 6px 0 10px; font-weight: 700; }
.work-card .desc { color: var(--muted); font-size: 15px; flex: 1; }
.work-card .tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 18px; }
.work-card .tag { font-size: 12px; font-weight: 600; color: #cdd7ee; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 20px; padding: 4px 11px; }
.work-card .visit { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--accent); text-decoration: none; align-self: flex-start; }
.work-card .visit:hover { filter: brightness(1.15); }
.loading { color: var(--muted); padding: 30px 0; }
.work-empty { padding: 20px 0; }

/* Services cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(8px); }
.card-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 18px; background: rgba(52,200,163,0.12); color: var(--accent); margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Contact */
.contact { text-align: center; }
.contact-inner { background: var(--panel); border: 1px solid var(--border); border-radius: 24px; padding: 56px 30px; backdrop-filter: blur(8px); position: relative; overflow: hidden; }
.contact-inner h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 10px; font-weight: 800; }
.contact-inner p { margin: 0 0 26px; }

/* Footer */
.footer { position: relative; z-index: 1; max-width: 1100px; margin: 40px auto 0; padding: 30px 6vw 50px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand .brand-mark { width: 40px; }
.footer-meta { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 14px; }
.footer-meta a { color: var(--muted); text-decoration: none; }
.footer-meta a:hover { color: var(--text); }

@media (max-width: 680px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 70px 0 50px; }
}
