/* ==========================================================================
   NORTHFIELD SOFTWARE LTD — Design System
   Bespoke Dark Architectural Studio Aesthetic
   ========================================================================== */

:root {
  --bg: #06080f;
  --bg-elevated: #0c101b;
  --bg-card: rgba(14, 19, 32, 0.72);
  --bg-card-hover: rgba(20, 27, 45, 0.88);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --accent: #818cf8;
  --accent-strong: #6366f1;
  --accent-cyan: #38bdf8;
  --accent-emerald: #34d399;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, 0.65);
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max-w: 1140px;
  --nav-h: 74px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(99, 102, 241, 0.2), transparent 65%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(56, 189, 248, 0.1), transparent 60%);
  overflow-x: hidden;
}

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

img, svg {
  display: block;
}

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

.section {
  padding: 88px 0;
  position: relative;
}

.section-sm {
  padding: 56px 0;
}

/* Subtle Architectural Grid Overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 25%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 25%, #000 20%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(6, 8, 15, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 20px -6px rgba(99, 102, 241, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--text);
  background: rgba(129, 140, 248, 0.14);
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.25);
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.28);
  margin-bottom: 22px;
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #c7d2fe 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.lead {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 60ch;
}

.mono {
  font-family: var(--font-mono);
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 10px 30px -8px rgba(99, 102, 241, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -8px rgba(99, 102, 241, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
}

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

/* Hero Section */
.hero {
  position: relative;
  padding: 88px 0 76px;
  overflow: hidden;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

/* Glass / Studio Spec Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.card-hover:hover {
  border-color: rgba(129, 140, 248, 0.35);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.studio-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 24, 42, 0.9) 0%, rgba(10, 14, 24, 0.94) 100%);
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg), 0 0 60px -24px rgba(99, 102, 241, 0.45);
}

.studio-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.studio-panel-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #a7f3d0;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.spec-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.045);
}

.spec-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.spec-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

/* Feature Bento Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(129, 140, 248, 0.28);
  color: #c7d2fe;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Section Headers */
.section-header {
  max-width: 680px;
  margin-bottom: 44px;
}

/* Highlight Banner */
.callout-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 44px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(14, 19, 32, 0.92) 55%, rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(129, 140, 248, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Corporate Details Grid */
.corp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.corp-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.corp-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.corp-label {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}

.corp-value {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.copy-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.1);
}

.copy-btn.copied {
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.14);
}

/* Apps Portfolio Empty/Upcoming Showcase */
.app-showcase-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(16, 22, 38, 0.9), rgba(10, 14, 24, 0.95));
  border: 1px solid rgba(129, 140, 248, 0.22);
}

.app-icon-placeholder {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(56, 189, 248, 0.16));
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #c7d2fe;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

/* Privacy Policy Layout */
.policy-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 44px;
  align-items: start;
}

.policy-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.policy-toc-title {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}

.policy-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.policy-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.policy-toc a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.prose {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.prose h2 {
  margin: 34px 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-muted);
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
}

.notice-box {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.28);
  color: #e0e7ff;
  font-size: 0.92rem;
  margin: 18px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(4, 6, 12, 0.85);
  padding: 56px 0 36px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-heading {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.16s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-legal {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-subtle);
}

/* Subtle Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-layout,
  .grid-3,
  .corp-grid,
  .policy-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .policy-toc {
    position: static;
  }

  .callout-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }

  .nav-badge {
    display: none;
  }
}

@media (max-width: 720px) {
  .grid-2,
  .app-showcase-card {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 22px;
    background: rgba(6, 8, 15, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .section {
    padding: 60px 0;
  }

  .prose {
    padding: 26px 22px;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #111827;
  }
  .site-header, .site-footer, .policy-toc, .copy-btn {
    display: none !important;
  }
  .prose {
    background: transparent;
    border: none;
    padding: 0;
  }
  .prose h2, .prose p, .prose li, .prose strong {
    color: #111827;
  }
}
