@import url('https://fonts.googleapis.com/css2?family=Offside&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg-deep:        #030D1C;
  --bg-surface:     #07172E;
  --bg-card:        rgba(10, 37, 64, 0.5);
  --border:         rgba(10, 37, 64, 0.9);
  --border-subtle:  rgba(33, 150, 243, 0.12);

  --azure-vivid:    #2196F3;
  --azure-mid:      #64B5F6;
  --azure-pale:     #90CAF9;
  --azure-ghost:    #E3F2FD;
  --azure-deep:     #1565C0;
  --azure-deeper:   #0D47A1;

  --text-primary:   #E3F2FD;
  --text-secondary: #90CAF9;
  --text-muted:     rgba(100, 181, 246, 0.55);
  --text-label:     #2196F3;

  --font-display: 'Offside', cursive;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Blazor ─────────────────────────────────────────────────── */
#blazor-error-ui { display: none; }

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* ── Body & background ──────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(21, 101, 192, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 85% 85%, rgba(33, 150, 243, 0.08) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ── Page layout ────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(3, 13, 28, 0.85);
  border-bottom: 0.5px solid var(--border);
  padding: 0 2rem;
}

.navbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--azure-pale);
  letter-spacing: 0.03em;
  transition: opacity var(--transition);
}
.nav-brand:hover { opacity: 0.75; }

.nav-logo-mark { width: 28px; height: 28px; flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 0.1rem; list-style: none; }

.nav-links a {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover { color: var(--azure-mid); }
.nav-links a.active { color: var(--azure-vivid); }

/* ── Hero — base ────────────────────────────────────────────── */
/* Single column by default (Home, Apps, About).
   Add hero-two-col on the InStock page for the split layout. */
.hero {
  padding: 6.5rem 2rem 4.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ── Hero eyebrow (blue — Home/Apps/About) ───────────────────── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}

.hero-eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--azure-vivid);
  display: block;
  opacity: 0.7;
}

/* ── Hero badge (magenta — InStock page) ─────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C939A8;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}

.hero-badge::before {
  content: '';
  width: 20px;
  height: 1px;
  background: #C939A8;
  display: block;
  opacity: 0.7;
}

/* ── Hero title ─────────────────────────────────────────────── */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.2s;
}

.hero-title em {
  font-style: italic;
  color: var(--azure-mid);
}

/* ── Hero sub ───────────────────────────────────────────────── */
.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 2.75rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.35s;
}

/* ── Hero actions ───────────────────────────────────────────── */
.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.5s;
}

/* ── Hero icon (InStock app icon) ───────────────────────────── */
.hero-icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.3s;
}

.app-icon {
  width: 240px;
  height: 240px;
  border-radius: 28px;
  background: linear-gradient(135deg, #1E1640 0%, #2D1B69 100%);
  border: 1px solid rgba(124, 58, 237, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.25);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--azure-deep);
  color: var(--azure-ghost);
}
.btn-primary:hover {
  background: var(--azure-vivid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--azure-mid);
  border: 0.5px solid var(--azure-deep);
}
.btn-ghost:hover {
  color: var(--azure-pale);
  border-color: rgba(33, 150, 243, 0.4);
  background: rgba(33, 150, 243, 0.06);
}

/* ── Disabled store buttons ──────────────────────────────────── */
.btn-disabled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: not-allowed;
  border: 0.5px solid rgba(124, 58, 237, 0.15);
  background: rgba(124, 58, 237, 0.08);
  color: var(--text-muted);
  pointer-events: none;
}

.coming-soon-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  align-self: center;
  padding-left: 0.25rem;
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 0 2rem;
  opacity: 0.6;
}

/* ── Section ─────────────────────────────────────────────────── */
.section {
  padding: 4.5rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 0.6rem;
  opacity: 0.85;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  opacity: 0.65;
  max-width: 520px;
}

/* ── Cards (Apps page) ───────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: border-color var(--transition), transform var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--azure-deeper), var(--azure-vivid));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: rgba(33, 150, 243, 0.25);
  transform: translateY(-2px);
}
.card:hover::after { opacity: 1; }

.card-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 0.6rem;
  opacity: 0.85;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-body {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  opacity: 0.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.1rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--azure-mid);
  transition: gap var(--transition), color var(--transition);
}
.card-link:hover { gap: 10px; color: var(--azure-pale); }

/* ── Three-panel strip (Home page) ──────────────────────────── */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  opacity: 0.85;
}

.strip-item {
  padding: 1.25rem 1.5rem;
  border-right: 0.5px solid var(--border);
  transition: background var(--transition);
}
.strip-item:last-child { border-right: none; }
a.strip-item:hover { background: rgba(33, 150, 243, 0.05); cursor: pointer; }

.strip-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 0.4rem;
}

.strip-body {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Screenshots (InStock page) ──────────────────────────────── */
.screenshots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.screenshot-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 0.5px solid rgba(124, 58, 237, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  aspect-ratio: 9 / 19;
}

.screenshot-wrap:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 20px 48px rgba(124, 58, 237, 0.2);
}

.screenshot-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Feature cards (InStock page) ───────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.feature {
  background: rgba(30, 22, 64, 0.55);
  border: 0.5px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.feature::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #7C3AED, #C939A8);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}
.feature:hover::after { opacity: 1; }

.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  color: #C4B5FD;
  display: block;
  flex-shrink: 0;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.feature-body {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── Platform badges (InStock page) ─────────────────────────── */
.platform-strip {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: 0.5px solid rgba(124, 58, 237, 0.2);
  background: rgba(30, 22, 64, 0.55);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  border-top: 0.5px solid var(--border);
  padding: 1.75rem 2rem;
  margin-top: auto;
  opacity: 0.7;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-two-col { grid-template-columns: 1fr; gap: 2rem; }
  .hero-icon-wrap { order: -1; }
  .screenshots { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .strip-item { border-right: none; border-bottom: 0.5px solid var(--border); }
  .strip-item:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
  .hero { padding: 4.5rem 1.25rem 3rem; }
  .section { padding: 3rem 1.25rem; }
  .navbar { padding: 0 1.25rem; }
  .divider { margin: 0 1.25rem; }
}

/* ── About page ──────────────────────────────────────────────── */

/* Profile prose */
.about-prose {
  max-width: 640px;
}

.about-prose p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.about-placeholder {
  font-style: italic;
  opacity: 0.4;
}

/* Skills grid */
.cv-skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 3.5rem;
  margin-top: 1.5rem;
}

.cv-skill-group {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}

.cv-skill-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 0.4rem;
}

.cv-skill-body {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* CV timeline */
.cv-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cv-entry {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 0.5px solid var(--border);
  opacity: 0.9;
}

.cv-entry:last-child {
  border-bottom: none;
}

.cv-entry-meta {
  padding-top: 0.15rem;
}

.cv-date {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.cv-role {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.cv-org {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--azure-mid);
  margin-bottom: 0.4rem;
}

.cv-tech {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.cv-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cv-bullets li {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
}

.cv-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* Interests grid */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.interest-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}

.interest-card:hover {
  border-color: rgba(33, 150, 243, 0.25);
  transform: translateY(-2px);
}

.interest-icon {
  width: 32px;
  height: 32px;
  color: var(--azure-mid);
  display: block;
  margin-bottom: 1rem;
}

.interest-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.interest-body {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Contact block */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-email {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--azure-mid);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

.contact-email:hover {
  color: var(--azure-pale);
}

.contact-location {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* About page responsive */
@media (max-width: 768px) {
  .cv-skills { grid-template-columns: 1fr; }
  .cv-entry { grid-template-columns: 1fr; gap: 0.5rem; }
  .interests-grid { grid-template-columns: 1fr; }
}
