/* Nymera Stylesheet - Modern Centered Architecture */
:root {
  --ny-bg-primary: #fafafa;
  --ny-bg-card: #ffffff;
  --ny-bg-secondary: #f4f4f5;
  --ny-color-primary: #18181b;
  --ny-color-secondary: #27272a;
  --ny-color-muted: #71717a;
  --ny-color-border: #e4e4e7;
  --ny-color-accent: #f97316;
  --ny-color-accent-hover: #ea580c;
  --ny-color-accent-soft: #fff7ed;
  --ny-color-success: #10b981;
  --ny-font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ny-font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ny-radius-sm: 6px;
  --ny-radius-md: 10px;
  --ny-radius-lg: 16px;
  --ny-shadow-subtle: 0 1px 3px rgba(24, 24, 27, 0.06), 0 1px 2px rgba(24, 24, 27, 0.04);
  --ny-shadow-card: 0 4px 6px -1px rgba(24, 24, 27, 0.08), 0 2px 4px -2px rgba(24, 24, 27, 0.05);
  --ny-shadow-hover: 0 10px 15px -3px rgba(24, 24, 27, 0.1), 0 4px 6px -4px rgba(24, 24, 27, 0.06);
  --ny-transition: all 0.2s ease-in-out;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--ny-font-body);
  background-color: var(--ny-bg-primary);
  color: var(--ny-color-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ny-font-heading);
  color: var(--ny-color-primary);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--ny-color-secondary);
}

p.ny-lead {
  font-size: 1.2rem;
  color: var(--ny-color-muted);
  line-height: 1.6;
}

a {
  color: var(--ny-color-accent);
  text-decoration: none;
  transition: var(--ny-transition);
}

a:hover, a:focus {
  color: var(--ny-color-accent-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.ny-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.ny-section {
  padding: 5rem 0;
}

.ny-section-alt {
  background-color: var(--ny-bg-secondary);
}

.ny-section-dark {
  background-color: var(--ny-color-primary);
  color: #ffffff;
}

.ny-section-dark h2,
.ny-section-dark h3,
.ny-section-dark p {
  color: #ffffff;
}

.ny-section-dark p {
  opacity: 0.88;
}

.ny-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: var(--ny-color-accent-soft);
  color: var(--ny-color-accent-hover);
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.ny-center-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

/* Header & Navigation */
.ny-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--ny-color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ny-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.ny-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ny-font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ny-color-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.ny-brand:hover {
  text-decoration: none;
  color: var(--ny-color-accent);
}

.ny-brand-tag {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--ny-color-accent-soft);
  color: var(--ny-color-accent-hover);
  padding: 0.2rem 0.5rem;
  border-radius: var(--ny-radius-sm);
  text-transform: uppercase;
}

.ny-nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.ny-nav-link {
  font-weight: 500;
  color: var(--ny-color-secondary);
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.ny-nav-link:hover,
.ny-nav-link.ny-active {
  color: var(--ny-color-accent);
  text-decoration: none;
}

.ny-nav-link.ny-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--ny-color-accent);
  border-radius: 2px;
}

.ny-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.4rem;
  background-color: var(--ny-color-accent);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--ny-radius-sm);
  text-decoration: none !important;
  transition: var(--ny-transition);
}

.ny-nav-btn:hover {
  background-color: var(--ny-color-accent-hover);
}

.ny-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ny-color-border);
  padding: 0.5rem 0.75rem;
  border-radius: var(--ny-radius-sm);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  color: var(--ny-color-primary);
  font-weight: 600;
}

/* Hero Section (Modern Centered) */
.ny-hero {
  padding: 4.5rem 0 3.5rem 0;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, #fff7ed 0%, #fafafa 70%);
}

.ny-hero-content {
  max-width: 860px;
  margin: 0 auto 3rem auto;
}

.ny-hero-title {
  margin-bottom: 1.25rem;
}

.ny-hero-subtitle {
  font-size: 1.2rem;
  color: var(--ny-color-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* 3-Column Key Advantages Grid */
.ny-advantages-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 3.5rem;
  text-align: left;
}

.ny-advantage-card {
  flex: 1 1 calc(33.333% - 1.25rem);
  min-width: 280px;
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--ny-radius-md);
  border: 1px solid var(--ny-color-border);
  box-shadow: var(--ny-shadow-subtle);
  transition: var(--ny-transition);
}

.ny-advantage-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ny-shadow-hover);
  border-color: #fdba74;
}

.ny-adv-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ny-radius-sm);
  background-color: var(--ny-color-accent-soft);
  color: var(--ny-color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* Quiz Module Container */
.ny-quiz-box {
  background: #ffffff;
  border-radius: var(--ny-radius-lg);
  border: 1px solid var(--ny-color-border);
  box-shadow: var(--ny-shadow-card);
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.ny-quiz-progress-bar-wrap {
  height: 6px;
  background-color: var(--ny-bg-secondary);
  border-radius: 9999px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.ny-quiz-progress-bar {
  height: 100%;
  width: 25%;
  background-color: var(--ny-color-accent);
  transition: width 0.3s ease;
}

.ny-quiz-step {
  display: none;
}

.ny-quiz-step.ny-step-active {
  display: block;
  animation: nyFadeIn 0.3s ease;
}

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

.ny-quiz-step-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.ny-quiz-step-desc {
  color: var(--ny-color-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.ny-quiz-options {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ny-option-label {
  display: flex;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background-color: var(--ny-bg-secondary);
  border: 2px solid transparent;
  border-radius: var(--ny-radius-md);
  cursor: pointer;
  transition: var(--ny-transition);
  font-weight: 500;
  min-height: 48px;
}

.ny-option-label:hover {
  background-color: #ffffff;
  border-color: #cbd5e1;
}

.ny-option-label.ny-selected {
  background-color: var(--ny-color-accent-soft);
  border-color: var(--ny-color-accent);
  color: var(--ny-color-primary);
  font-weight: 600;
}

.ny-option-input {
  margin-right: 1rem;
  accent-color: var(--ny-color-accent);
  width: 18px;
  height: 18px;
}

.ny-quiz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ny-color-border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.ny-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--ny-radius-sm);
  cursor: pointer;
  transition: var(--ny-transition);
  border: none;
  text-decoration: none;
}

.ny-btn-primary {
  background-color: var(--ny-color-accent);
  color: #ffffff;
}

.ny-btn-primary:hover {
  background-color: var(--ny-color-accent-hover);
  color: #ffffff;
  text-decoration: none;
}

.ny-btn-secondary {
  background-color: var(--ny-bg-secondary);
  color: var(--ny-color-secondary);
}

.ny-btn-secondary:hover {
  background-color: #e4e4e7;
  color: var(--ny-color-primary);
  text-decoration: none;
}

/* Quiz Result Card */
.ny-quiz-result {
  display: none;
  background-color: #ffffff;
  animation: nyFadeIn 0.3s ease;
}

.ny-quiz-result.ny-step-active {
  display: block;
}

.ny-result-header {
  padding: 1.5rem;
  background-color: var(--ny-color-accent-soft);
  border-radius: var(--ny-radius-md);
  margin-bottom: 2rem;
  border-left: 4px solid var(--ny-color-accent);
}

.ny-result-header h3 {
  margin-bottom: 0.5rem;
  color: var(--ny-color-accent-hover);
}

/* Grid & Content Cards */
.ny-grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
}

.ny-grid-2 > * {
  flex: 1 1 calc(50% - 1.5rem);
  min-width: 300px;
}

.ny-grid-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.ny-grid-3 > * {
  flex: 1 1 calc(33.333% - 1.5rem);
  min-width: 280px;
}

.ny-grid-4 {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.ny-grid-4 > * {
  flex: 1 1 calc(25% - 1.25rem);
  min-width: 240px;
}

.ny-card {
  background-color: #ffffff;
  border: 1px solid var(--ny-color-border);
  border-radius: var(--ny-radius-md);
  padding: 2rem;
  box-shadow: var(--ny-shadow-subtle);
  transition: var(--ny-transition);
}

.ny-card:hover {
  box-shadow: var(--ny-shadow-hover);
  border-color: #cbd5e1;
}

.ny-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--ny-radius-sm);
  margin-bottom: 1.5rem;
}

.ny-article-meta {
  font-size: 0.85rem;
  color: var(--ny-color-muted);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
}

/* Forms */
.ny-form-group {
  margin-bottom: 1.5rem;
}

.ny-form-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--ny-color-primary);
}

.ny-form-control {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ny-color-border);
  border-radius: var(--ny-radius-sm);
  font-family: var(--ny-font-body);
  font-size: 1rem;
  color: var(--ny-color-primary);
  background-color: #ffffff;
  transition: var(--ny-transition);
}

.ny-form-control:focus {
  outline: none;
  border-color: var(--ny-color-accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

textarea.ny-form-control {
  min-height: 120px;
  resize: vertical;
}

/* Honeypot hidden input */
.ny-field-guard {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Entity Details Box (Verified Sync) */
.ny-entity-box {
  background-color: #ffffff;
  border: 1px solid var(--ny-color-border);
  border-radius: var(--ny-radius-md);
  padding: 2.25rem;
  box-shadow: var(--ny-shadow-subtle);
}

.ny-entity-item {
  display: flex;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--ny-color-border);
  padding-bottom: 1rem;
}

.ny-entity-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ny-entity-label {
  width: 180px;
  font-weight: 600;
  color: var(--ny-color-muted);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.ny-entity-value {
  color: var(--ny-color-primary);
  font-weight: 500;
}

/* Breadcrumbs */
.ny-breadcrumbs {
  padding: 1.25rem 0;
  background-color: var(--ny-bg-secondary);
  border-bottom: 1px solid var(--ny-color-border);
  font-size: 0.9rem;
}

.ny-breadcrumbs ol {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.ny-breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--ny-color-muted);
}

.ny-breadcrumbs a {
  color: var(--ny-color-muted);
}

.ny-breadcrumbs a:hover {
  color: var(--ny-color-accent);
}

.ny-breadcrumbs li:last-child {
  color: var(--ny-color-primary);
  font-weight: 500;
}

/* Footer */
.ny-footer {
  background-color: #18181b;
  color: #a1a1aa;
  padding: 4.5rem 0 2rem 0;
  margin-top: auto;
  border-top: 1px solid #27272a;
}

.ny-footer h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.ny-footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.ny-footer-grid > div:first-child {
  flex: 2 1 320px;
}

.ny-footer-grid > div:not(:first-child) {
  flex: 1 1 200px;
}

.ny-footer-brand-title {
  color: #ffffff;
  font-family: var(--ny-font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.ny-footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #a1a1aa;
  margin-bottom: 1.25rem;
}

.ny-footer-links {
  list-style: none;
}

.ny-footer-links li {
  margin-bottom: 0.75rem;
}

.ny-footer-links a {
  color: #a1a1aa;
  font-size: 0.9rem;
  transition: var(--ny-transition);
}

.ny-footer-links a:hover {
  color: #ffffff;
  text-decoration: none;
}

.ny-footer-contact-item {
  font-size: 0.875rem;
  color: #a1a1aa;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.ny-footer-bottom {
  border-top: 1px solid #27272a;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #71717a;
}

.ny-footer-disclaimer {
  font-size: 0.8rem;
  color: #71717a;
  margin-top: 1rem;
  line-height: 1.5;
}

/* Cookie Banner (Consent Mode v2) */
.ny-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #18181b;
  color: #ffffff;
  padding: 1.25rem;
  z-index: 9999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  border-top: 2px solid var(--ny-color-accent);
  display: none;
}

.ny-cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.ny-cookie-text {
  font-size: 0.9rem;
  color: #d4d4d8;
  max-width: 820px;
  margin-bottom: 0;
}

.ny-cookie-text a {
  color: var(--ny-color-accent);
  text-decoration: underline;
}

.ny-cookie-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.ny-cookie-btn {
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--ny-radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--ny-transition);
}

.ny-cookie-btn-accept {
  background-color: var(--ny-color-accent);
  color: #ffffff;
}

.ny-cookie-btn-accept:hover {
  background-color: var(--ny-color-accent-hover);
}

.ny-cookie-btn-settings {
  background-color: #27272a;
  color: #ffffff;
  border: 1px solid #3f3f46;
}

.ny-cookie-btn-settings:hover {
  background-color: #3f3f46;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .ny-advantages-grid > *,
  .ny-grid-2 > *,
  .ny-grid-3 > *,
  .ny-grid-4 > * {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .ny-nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--ny-color-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  .ny-nav-menu.ny-nav-open {
    display: flex;
  }
  .ny-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .ny-footer-grid > div {
    flex: 1 1 100% !important;
  }
  .ny-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .ny-quiz-box {
    padding: 1.5rem;
  }
  .ny-cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .ny-cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
