/* ============================================================
   SYNENT NEXUS — STARK EDITORIAL MINIMALIST THEME
   An agency aesthetic utilizing negative space, high contrast,
   serif italics, crisp borders, and neon lime green accents.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --bg-page:           #F9FAFB;
  --bg-surface:        #FFFFFF;
  --bg-surface-sub:    #F3F4F6;
  --text-main:         #0B0F19;
  --text-sub:          #374151;
  --text-muted:        #6B7280;
  --accent-lime:       #C5FF41;
  --accent-lime-dark:  #A5EA22;
  --border-fine:       #E5E7EB;
  --border-dark:       #9CA3AF;
  --black:             #0B0F19;
  --white:             #FFFFFF;

  /* Typography */
  --font-sans:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:        'Playfair Display', Georgia, serif;

  /* Layout */
  --container-max:     1200px;
  --section-pad:       110px;
  --header-h:          76px;

  /* Border Radius */
  --radius-xs:         2px;
  --radius-sm:         6px;
  --radius-md:         10px;
  --radius-lg:         16px;
  --radius-full:       9999px;

  /* Transitions */
  --t:                 all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-slow:            all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark mode definitions - editorial high contrast */
[data-theme="dark"] {
  --bg-page:           #0B0F19;
  --bg-surface:        #111827;
  --bg-surface-sub:    #1F2937;
  --text-main:         #F9FAFB;
  --text-sub:          #E5E7EB;
  --text-muted:        #9CA3AF;
  --border-fine:       #1F2937;
  --border-dark:       #4B5563;
  --white:             #0B0F19;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* Elegant custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-main); }

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}
.section-pad { padding: var(--section-pad) 0; }
.page-content { padding-top: var(--header-h); }

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

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }
.items-center { align-items: center; }

.text-center  { text-align: center; }
.w-full       { width: 100%; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Horizontal rule divider */
hr { border: none; border-top: 1px solid var(--border-fine); }

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
.display-editorial {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-main);
}
.display-editorial em, .font-serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.display-lg {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.display-md {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.heading-lg { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; }
.heading-md { font-size: 1.05rem; font-weight: 600; }
.body-lg    { font-size: 1.05rem; line-height: 1.8; color: var(--text-sub); }
.body-md    { font-size: 0.92rem; line-height: 1.75; color: var(--text-sub); }
.body-sm    { font-size: 0.82rem; line-height: 1.7; color: var(--text-muted); }

/* Section Eyebrow Label */
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}
.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--accent-lime);
  border-radius: 50%;
  border: 1.5px solid var(--text-main);
}

/* Standard Section Header */
.section-header {
  max-width: 600px;
  margin-bottom: 56px;
}
.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-header p {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--text-sub);
}

/* ============================================================
   5. BADGES & BADGE WRAPPERS
   ============================================================ */
.badge-editorial {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--text-main);
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
  box-shadow: 2px 2px 0px var(--text-main);
}
.badge-lime {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-lime);
  border: 1px solid var(--text-main);
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--black);
}
.badge-lime-dot {
  width: 6px; height: 6px;
  background: var(--black);
  border-radius: 50%;
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

/* ============================================================
   6. BUTTONS (Stark Editorial Shadows)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--t);
  border: 1px solid var(--text-main);
}
.btn-dark {
  background: var(--text-main);
  color: var(--bg-page);
}
.btn-dark:hover {
  background: var(--accent-lime);
  color: var(--black);
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0px var(--text-main);
}
.btn-outline {
  background: transparent;
  color: var(--text-main);
}
.btn-outline:hover {
  background: var(--bg-surface-sub);
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0px var(--text-main);
}
.btn:disabled {
  background: var(--border-fine) !important;
  color: var(--text-muted) !important;
  border-color: var(--border-dark) !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none !important;
}
.btn-lime {
  background: var(--accent-lime);
  color: var(--black);
}
.btn-lime:hover {
  background: var(--accent-lime-dark);
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0px var(--text-main);
}
.btn-sm { padding: 8px 18px; font-size: 0.72rem; }
.btn-lg { padding: 18px 40px; font-size: 0.9rem; }

/* ============================================================
   7. STICKY NAV HEADER & MOBILE NAV drawer
   ============================================================ */
#main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(249, 250, 251, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-fine);
  transition: var(--t);
  height: var(--header-h);
}
[data-theme="dark"] #main-header {
  background: rgba(11, 15, 25, 0.95);
}
#main-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  height: calc(var(--header-h) - 8px);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-main);
}
.logo-icon {
  background: var(--accent-lime);
  color: var(--black);
  border: 1.5px solid var(--text-main);
  width: 32px; height: 32px;
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
}
.logo-text span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-sub);
  position: relative;
  transition: var(--t);
}
.nav-link:hover {
  color: var(--text-main);
}
.nav-link.active {
  color: var(--text-main);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 3px;
  background: var(--accent-lime);
  border: 1px solid var(--text-main);
}

/* Header Action buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger menu toggle */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--text-main);
  background: var(--bg-surface);
  border-radius: var(--radius-xs);
  transition: var(--t);
}
.hamburger:hover {
  background: var(--accent-lime);
}
.hamburger-line {
  width: 18px; height: 2px;
  background: var(--text-main);
  transition: var(--t);
}
.hamburger.open .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.open .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Slide out Mobile Drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-nav-link {
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-sub);
  padding: 10px 40px;
  border: 1px solid transparent;
  transition: var(--t);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--text-main);
  background: var(--accent-lime);
  border-color: var(--text-main);
}
.mobile-close {
  position: absolute;
  top: 24px; right: 32px;
  width: 40px; height: 40px;
  border: 1px solid var(--text-main);
  border-radius: var(--radius-xs);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
  background: var(--bg-surface);
}
.mobile-close:hover {
  background: var(--accent-lime);
}

/* ============================================================
   8. CARD LAYOUTS (Stark flat boxes)
   ============================================================ */
.editorial-card {
  background: var(--bg-surface);
  border: 1px solid var(--text-main);
  border-radius: var(--radius-xs);
  padding: 32px;
  transition: var(--t);
}
.editorial-card:hover {
  transform: translate(-6px, -6px);
  box-shadow: 6px 6px 0px var(--text-main);
}

/* Numeric Feature Box styling */
.feature-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.8rem;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 20px;
  border-bottom: 1.5px solid var(--accent-lime);
  display: inline-block;
  padding-bottom: 4px;
}

/* Clean Tag Pill list items */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tag-item {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--bg-surface-sub);
  border: 1px solid var(--border-fine);
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  color: var(--text-sub);
}

/* ============================================================
   9. BREADCRUMBS & INNER HERO
   ============================================================ */
.page-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-fine);
  padding: 80px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: var(--text-sub);
  transition: var(--t);
}
.breadcrumb a:hover {
  color: var(--text-main);
}
.breadcrumb-sep {
  color: var(--border-dark);
}

/* ============================================================
   10. FORMS & INPUTS (Stark Editorial Boxes)
   ============================================================ */
.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--text-main);
  border-radius: var(--radius-xs);
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: var(--t);
  outline: none;
}
.form-control:focus {
  background: var(--bg-surface);
  transform: translate(-3px, -3px);
  box-shadow: 3px 3px 0px var(--text-main);
}
.form-control::placeholder {
  color: var(--text-muted);
}
.form-control.error {
  border-color: #EF4444 !important;
  background: rgba(239, 68, 68, 0.03);
}
.form-control.success {
  border-color: #10B981 !important;
}
.form-error {
  font-size: 0.75rem;
  font-weight: 600;
  color: #EF4444;
  margin-top: 6px;
  display: none;
}
.form-error.visible {
  display: block;
}

/* Custom visual checkbox styles */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.checkbox-group input {
  margin-top: 4px;
}

/* ============================================================
   11. ACCORDIONS (Crisp Separator Lines)
   ============================================================ */
.accordion-wrapper {
  border-top: 1px solid var(--text-main);
}
.accordion-item {
  border-bottom: 1px solid var(--text-main);
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 8px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  user-select: none;
  transition: var(--t);
}
.accordion-header:hover {
  background: var(--bg-surface-sub);
}
.accordion-icon {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  transition: var(--t);
}
.accordion-header.open .accordion-icon {
  transform: rotate(45deg);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.accordion-body.open {
  max-height: 300px;
}
.accordion-body-inner {
  padding: 0 8px 24px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-sub);
}

/* ============================================================
   12. TOAST NOTIFICATIONS (Stark White Alert Panel)
   ============================================================ */
.toast-container {
  position: fixed;
  top: 90px; right: 32px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  background: var(--bg-surface);
  border: 2.5px solid var(--text-main);
  border-radius: var(--radius-xs);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 300px;
  max-width: 400px;
  transform: translateX(130%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: all;
  box-shadow: 4px 4px 0px var(--text-main);
}
.toast.show { transform: translateX(0); }
.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-title { font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-main); }
.toast-body  { font-size: 0.78rem; color: var(--text-sub); margin-top: 2px; }
.toast.success { border-left-width: 8px; border-left-color: var(--accent-lime); }
.toast.error   { border-left-width: 8px; border-left-color: #EF4444; }
.toast.info    { border-left-width: 8px; border-left-color: var(--text-muted); }

/* ============================================================
   13. SCROLL REVEAL TRIGGERS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.1s; }
.reveal-delay-3 { transition-delay: 0.15s; }
.reveal-delay-4 { transition-delay: 0.2s; }

/* ============================================================
   14. FOOTER (Crisp Asymmetric Columns)
   ============================================================ */
#main-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--text-main);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-fine);
}
.footer-brand p {
  color: var(--text-sub);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 260px;
}
.footer-social { display: flex; gap: 8px; margin-top: 24px; }
.social-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--text-main);
  background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--t);
  border-radius: var(--radius-xs);
}
.social-btn:hover {
  background: var(--accent-lime);
  transform: translate(-3px, -3px);
  box-shadow: 3px 3px 0px var(--text-main);
}
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.85rem; color: var(--text-sub); transition: var(--t); font-weight: 500; }
.footer-links a:hover { color: var(--text-main); text-decoration: underline; }

/* Newsletter stark subscription */
.newsletter-form { display: flex; gap: 6px; margin-top: 16px; }
.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-page);
  border: 1px solid var(--text-main);
  border-radius: var(--radius-xs);
  color: var(--text-main);
  font-size: 0.8rem;
  outline: none;
}
.newsletter-btn {
  padding: 10px 18px;
  background: var(--text-main);
  color: var(--bg-page);
  font-weight: 700;
  transition: var(--t);
  border-radius: var(--radius-xs);
  border: 1px solid var(--text-main);
}
.newsletter-btn:hover {
  background: var(--accent-lime);
  color: var(--black);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a {
  color: var(--text-muted);
  transition: var(--t);
}
.footer-bottom a:hover {
  color: var(--text-main);
}

/* ============================================================
   15. RESPONSIVE MEDIA QUERIES
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; }
  .nav-links, .header-actions .btn { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
}

/* style(css): fine-tune responsive breakpoints and focus outline borders */
