:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #e9ecef;
  background: #070a12;
  --bg: #070a12;
  --surface: rgba(18, 24, 38, 0.92);
  --surface-strong: rgba(14, 18, 30, 0.98);
  --border: rgba(255, 255, 255, 0.08);
  --muted: #94a3b8;
  --accent: #7c3aed;
  --accent-soft: rgba(124, 58, 237, 0.16);
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 28%),
              radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 22%),
              var(--bg);
  color: var(--text);
}

body:before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.14), transparent 26%),
              radial-gradient(circle at 80% 30%, rgba(14, 165, 233, 0.08), transparent 28%);
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(7, 10, 18, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 8vw, 8rem) 0 5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05), transparent 20%),
              radial-gradient(circle at 65% 80%, rgba(186, 230, 253, 0.06), transparent 18%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.88), rgba(10, 16, 29, 0.92));
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.hero-accents {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.brush-stroke,
.brush-splash {
  position: absolute;
  display: block;
  border-radius: 999px;
  opacity: 0.55;
  transform-origin: center;
  filter: blur(0.6px);
}

.brush-stroke {
  width: 520px;
  height: 180px;
  top: 36%;
  left: -10%;
  background: linear-gradient(125deg, rgba(196, 181, 253, 0.24), rgba(124, 58, 237, 0.35), rgba(255, 255, 255, 0.12));
  transform: rotate(-18deg) skewX(-10deg);
  animation: brushWave 12s ease-in-out infinite;
}

.brush-splash {
  width: 260px;
  height: 160px;
  top: 62%;
  left: 70%;
  background: radial-gradient(circle, rgba(248, 113, 113, 0.18), transparent 50%);
  transform: rotate(8deg);
  animation: splashDrift 18s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  display: grid;
  gap: 1.5rem;
  animation: contentFade 0.9s ease forwards;
}

@keyframes brushWave {
  0%, 100% { transform: translate(0, 0) rotate(-18deg) skewX(-10deg); }
  50% { transform: translate(22px, -10px) rotate(-19deg) skewX(-8deg); }
}

@keyframes splashDrift {
  0%, 100% { transform: translate(0, 0) rotate(8deg); }
  50% { transform: translate(-12px, 18px) rotate(6deg); }
}

@keyframes contentFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-shadow: 0 24px 80px rgba(7, 10, 18, 0.36);
  animation: textReveal 1.1s ease forwards;
}

.hero p {
  max-width: 55ch;
  line-height: 1.9;
  color: var(--muted);
  font-size: 1.05rem;
  opacity: 0.92;
}

.hero-actions {
  opacity: 0;
  animation: fadeInButtons 1.3s ease 0.4s forwards;
}

@keyframes textReveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInButtons {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6, #38bdf8);
  font-weight: 700;
  box-shadow: 0 20px 45px rgba(56, 189, 248, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(56, 189, 248, 0.24);
}

.btn.ghost {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
}

.section {
  padding: 5rem 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-copy {
  color: var(--muted);
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.about-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.status-pill {
  display: inline-flex;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.16);
  color: #d8b4fe;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.about-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.about-card li {
  padding-left: 1.15rem;
  color: var(--muted);
  position: relative;
}

.about-card li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.filter {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #eef2ff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter:hover,
.filter:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.4);
}

.filter.active {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(124, 58, 237, 0.6);
  color: #ffffff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(800px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.card:focus-within {
  transform: perspective(800px) translateY(-8px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 28px 80px rgba(14, 165, 233, 0.2);
}

.card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(92, 45, 150, 0.88), rgba(36, 115, 255, 0.72));
  position: relative;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 20%),
                    radial-gradient(circle at 80% 30%, rgba(232, 121, 249, 0.12), transparent 18%),
                    linear-gradient(135deg, rgba(92, 45, 150, 0.92), rgba(36, 115, 255, 0.74));
}

.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500"><path fill="none" stroke="rgba(255,255,255,0.06)" stroke-width="40" d="M30 120 C180 40 290 220 460 120"/></svg>') center/cover no-repeat;
  opacity: 0.75;
  pointer-events: none;
}

.card-copy {
  padding: 1.4rem 1.4rem 1.6rem;
}

.card-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card h3 {
  margin: 0.85rem 0 0;
  font-size: 1.4rem;
}

/* share button on card */
.card { position: relative; }
/* redesigned circular share button */
.share-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  z-index: 40;
  backdrop-filter: blur(6px);
  transition: transform .12s ease, box-shadow .12s ease;
}
.share-btn svg{ width:18px; height:18px; display:block; }
.share-btn:focus{ outline:2px solid rgba(124,58,237,0.18); }
.share-btn:hover{ transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.45); }

/* floating share popup (reused) */
.share-popup{
  position:fixed;
  z-index:100;
  display:flex;
  gap:8px;
  padding:8px;
  background: linear-gradient(180deg, rgba(10,12,20,0.95), rgba(6,8,12,0.98));
  border:1px solid rgba(255,255,255,0.04);
  border-radius:10px;
  box-shadow:0 18px 60px rgba(2,6,23,0.6);
  transform-origin: right bottom;
}
.share-popup a{ display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:8px; text-decoration:none; color:var(--muted); background:transparent; border:1px solid rgba(255,255,255,0.02); }
.share-popup a svg{ width:18px; height:18px; }
.share-popup a:hover{ color:#fff; background:var(--accent-soft); border-color:rgba(124,58,237,0.18); }


/* Modal styles */
.modal { display: none; position: fixed; inset: 0; z-index: 60; align-items:center; justify-content:center; }
.modal[aria-hidden="false"]{ display:flex; }
.modal-overlay { position: absolute; inset:0; background: rgba(3,6,12,0.6); }
.modal-body { position: relative; width: min(1100px, 96%); max-height: 86vh; overflow:hidden; border-radius:18px; background: linear-gradient(180deg, rgba(10,14,24,0.96), rgba(6,8,14,0.98)); border:1px solid rgba(255,255,255,0.04); box-shadow: 0 40px 120px rgba(2,6,23,0.6); z-index: 61; }
.modal-close{ position:absolute; right:14px; top:10px; background:transparent;border:0;color:var(--muted);font-size:1.2rem;padding:0.6rem;cursor:pointer }
.modal-grid{ display:grid; grid-template-columns: 1fr 420px; gap:0; align-items:stretch; }
.modal-media{ position:relative; background:#02040a; display:flex; align-items:center; justify-content:center; }
.media-stage{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.media-stage img, .media-stage video{ max-width:100%; max-height:82vh; display:block }
.media-prev, .media-next{ position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,0.5); color:#fff; border:0;padding:0.6rem 0.9rem;border-radius:8px;cursor:pointer }
.media-prev{ left:14px }
.media-next{ right:14px }
.modal-content{ padding:2rem; overflow:auto }
.modal-title{ margin:0 0 0.25rem 0 }
.modal-subtitle{ margin:0 0 1rem 0; color:var(--muted) }
.modal-desc{ color:var(--muted); margin-bottom:1rem; }
.modal-conclusion{ margin-top:1.2rem; font-weight:700; color:#f8fafc }
.share-inline{ display:flex; gap:0.5rem; margin-top:1rem }
.share-link{ padding:0.5rem 0.75rem; background:rgba(255,255,255,0.02); color:var(--muted); border-radius:8px; text-decoration:none }
.share-link:hover{ color:#fff; background:var(--accent-soft) }

@media (max-width:860px){ .modal-grid{ grid-template-columns: 1fr } .modal-content{ padding:1rem } }

.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.05);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #ffffff;
  padding: 1rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.site-foot {
  padding: 2rem 0 4rem;
  color: var(--muted);
}

.site-foot p {
  margin: 0;
}

.glass-card {
  backdrop-filter: blur(18px);
}

@media (max-width: 860px) {
  .about-grid,
  .contact-panel,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5rem;
  }
}

@media (max-width: 640px) {
  .site-nav {
    position: fixed;
    right: 0;
    top: 72px;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
    background: rgba(7, 10, 18, 0.95);
    backdrop-filter: blur(16px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    width: min(260px, 90vw);
    visibility: hidden;
    opacity: 0;
  }

  .site-nav.active {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
  }

  .nav-toggle {
    display: inline-flex;
  }
}
