@import url('../css/styles.css');

:root {
  /* NomNom project palette */
  --nn-blue:       #0494FA;
  --nn-blue-dark:  #0463E8;
  --nn-yellow:     #F0B800;
  --nn-yellow-dk:  #F09400;
  --nn-red:        #DF1313;
  --nn-green:      #2FD82F;
  --nn-bg:         #F4F6FB;
  --nn-white:      #FFFFFF;
  --nn-border:     rgba(26, 26, 46, 0.1);
  --blue-light:    #D6EDFF;
  --yellow-light:  #FFF6CC;
  --red-light:     #FFDBDB;
  --green-light:   #D4F8D4;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--nn-bg);
  color: var(--black);
}

/* Section label  */
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nn-blue);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--nn-blue);
  border-radius: 2px;
}

/* HERO */
.nn-hero {
  padding: 9rem 4rem 5rem;
  background: var(--nn-white);
  border-bottom: 1px solid var(--nn-border);
  position: relative;
  overflow: hidden;
}

.nn-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.nn-meta-divider {
  width: 1px;
  height: 16px;
  background: rgba(30, 30, 30, 0.15);
}

.nn-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nn-hero-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 2rem;
}

.nn-hero-title em {
  font-weight: 400;
  color: var(--nn-blue);
}

.nn-hero-main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; 
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.nn-hero-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--black-subtle);
  margin-bottom: 2rem; 
}

.nn-hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nn-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--nn-yellow);
  color: white;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nn-btn-primary:hover {
  background: var(--nn-blue);
  transform: translateY(-2px);
}

.nn-stats-bar {
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: start;
  border-top: 1px solid rgba(30, 30, 30, 0.1);
  border-bottom: 1px solid rgba(30, 30, 30, 0.1);
  padding: 2rem 0;
}

.nn-stat {
  padding-right: 3.5rem;
  margin-right: 3.5rem;
  border-right: 1px solid rgba(30, 30, 30, 0.1);
}

.nn-stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.nn-stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black-subtle);
  margin-bottom: 0.4rem;
}

.nn-stat-value {
  font-family: 'Raleway', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.nn-cover {
  margin-top: 0; 
  width: 100%;
  aspect-ratio: 4/3; 
  overflow: hidden;
  background: var(--blue-light);
  border-radius: var(--radius-lg);
}

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

/* BODY WRAPPER */
.nn-body {
  padding: 0 4rem;
}

/* Overview  */
.nn-overview {
  padding: 7rem 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
  border-bottom: 1px solid rgba(30, 30, 30, 0.08);
}

.nn-overview-left h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.nn-overview-left h2 em {
  font-style: italic;
  color: var(--nn-blue);
}

.nn-overview-right p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.nn-overview-right p:last-child {
  margin-bottom: 0;
}

/*  Image rows  */
.nn-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}

.nn-img-block {
  overflow: hidden;
  background: var(--blue-light);
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
}

.nn-img-block img,
.nn-img-block video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nn-img-caption {
  font-size: 0.75rem;
  color: var(--black-subtle);
  letter-spacing: 0.05em;
  margin-top: 0.75rem;
  text-align: center;
}

/*  PERSONAS SECTION */
.nn-personas {
  padding: 7rem 0;
  border-bottom: 1px solid rgba(30, 30, 30, 0.08);
}

.nn-personas-grid {
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.nn-persona-img-wrapper {
  overflow: hidden;
  background: var(--nn-white);
  border-radius: var(--radius-md);
}

.nn-persona-img {
  width: 100%;
  height: auto;
  display: block;
}

/* (Research) */
.nn-callout {
  background: var(--nn-yellow);
  border-radius: var(--radius-lg);
  padding: 6rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1.8fr; 
  gap: 5rem;
  align-items: start;
}

.nn-callout-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26, 26, 46, 0.5);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nn-callout-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: rgba(26, 26, 46, 0.35);
  border-radius: 2px;
}

.nn-callout h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2rem, 3vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* Fixed Accessibility Issue: White text on yellow had poor contrast */
.nn-callout h2 em {
  font-style: italic;
  color: var(--nn-white);
}

.nn-callout-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.nn-callout-content p:last-child {
  margin-bottom: 0;
}

.nn-constraint-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.nn-constraint-item:last-child {
  margin-bottom: 0;
}

/* Fixed Accessibility Issue: Adjusted text color for better contrast on yellow */
.nn-constraint-num {
  font-family: 'Raleway', sans-serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.488);
  line-height: 1;
  margin-top: -4px; 
  flex-shrink: 0;
}

.nn-constraint-item p {
  margin-bottom: 0;
}

/* PROCESS */
.nn-process {
  padding: 7rem 0;
  border-bottom: 1px solid rgba(30, 30, 30, 0.08);
}

.nn-section-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
  margin-bottom: 5rem;
}

.nn-section-header h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.nn-section-header h2 em {
  font-style: italic;
  color: var(--nn-blue);
}

.nn-section-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--black-subtle);
  padding-top: 0.5rem;
}

.nn-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.nn-step {
  background: var(--nn-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.nn-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.nn-step:nth-child(1)::before {
  background: var(--nn-blue);
}

.nn-step:nth-child(2)::before {
  background: var(--nn-yellow);
}

.nn-step:nth-child(3)::before {
  background: var(--nn-red);
}

.nn-step:nth-child(4)::before {
  background: var(--nn-green);
}

.nn-step-num {
  font-family: 'Raleway', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--nn-blue);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.nn-step h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.nn-step p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--black-subtle);
}

/* DARK BLOCK (HMW / Quotes) */
.nn-dark-block {
  background: var(--black);
  color: #F3F3EB;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  padding: 6rem 4rem;
}

.nn-dark-block .section-label {
  color: rgba(243, 243, 235, 0.4);
}

.nn-dark-block .section-label::before {
  background: rgba(243, 243, 235, 0.25);
}

.nn-dark-block h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2rem, 3vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}

.nn-dark-block h2 em {
  font-style: italic;
  color: var(--nn-yellow);
}

.nn-quote {
  border-left: 3px solid var(--nn-yellow);
  padding-left: 2rem;
  margin: 2.5rem 0;
}

.nn-quote p {
  font-family: 'Raleway', sans-serif;
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  color: #F3F3EB;
  margin-bottom: 1rem;
}

.nn-quote cite {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 243, 235, 0.38);
  font-style: normal;
}

.nn-hmw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.nn-hmw-item {
  border: 1px solid rgba(243, 243, 235, 0.12);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nn-hmw-item:hover {
  border-color: var(--nn-yellow);
  background: rgba(240, 184, 0, 0.06);
}

.nn-hmw-item p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(243, 243, 235, 0.78);
}

.nn-hmw-item p strong {
  color: var(--nn-yellow);
  font-weight: 500;
}

/* SOLUTION / FEATURES */
.nn-solution {
  padding: 7rem 0;
  border-bottom: 1px solid rgba(30, 30, 30, 0.08);
}

.nn-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.nn-feature-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--nn-white);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
}

.nn-feature-dot {
  width: 10px;
  height: 10px;
  background: var(--nn-blue);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.nn-feature-item h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.nn-feature-item p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--black-subtle);
}

/* DESIGN SYSTEM SECTION */
.nn-design-system {
  padding: 7rem 0;
  border-bottom: 1px solid rgba(30, 30, 30, 0.08);
}

/* Color palette swatches */
.nn-color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.nn-swatch {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.nn-swatch-color {
  height: 80px;
  width: 100%;
}

.nn-swatch-info {
  background: var(--nn-white);
  padding: 0.75rem;
}

.nn-swatch-name {
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.nn-swatch-hex {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--black-subtle);
  font-family: monospace;
}

/* Typography specimens */
.nn-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.nn-type-card {
  background: var(--nn-white);
  border-radius: var(--radius-md);
  padding: 2rem 2rem 1.75rem;
}

.nn-type-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black-subtle);
  margin-bottom: 1rem;
}

.nn-type-specimen {
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.nn-type-meta {
  font-size: 0.72rem;
  color: var(--black-subtle);
}

/* Component showcase */
.nn-components-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black-subtle);
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

.nn-components-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.nn-component-img-wrapper {
  background: var(--nn-white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; 
}

.nn-component-img {
  max-width: 400px; 
  width: 100%; 
  height: auto;
  display: block;
}

/* INSIGHTS CARDS */
.nn-insights {
  padding: 7rem 0;
  border-bottom: 1px solid rgba(30, 30, 30, 0.08);
}

.nn-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.nn-insight-card {
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
}

.nn-insight-card:nth-child(1) {
  background: var(--blue-light);
}

.nn-insight-card:nth-child(2) {
  background: var(--yellow-light);
}

.nn-insight-card:nth-child(3) {
  background: var(--green-light);
}

.nn-insight-icon {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  display: block;
}

.nn-insight-card h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.nn-insight-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--black-subtle);
}

/* RESULTS (blue bg) */
.nn-results {
  background: var(--nn-blue-dark);
  color: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: 2rem 0 0;
  padding: 6rem 4rem;
  position: relative;
  overflow: hidden;
}

.nn-results::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--nn-yellow);
  border-radius: 0 0 var(--radius-pill) var(--radius-pill);
}

.nn-results .section-label {
  color: rgba(255, 255, 255, 0.5);
}

.nn-results .section-label::before {
  background: rgba(255, 255, 255, 0.3);
}

.nn-results h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 4rem;
}

.nn-results h2 em {
  font-style: italic;
  color: var(--black);
}

.nn-metrinn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 4rem;
}

.nn-metric {
  text-align: center;
}

.nn-metric-num {
  font-family: 'Raleway', sans-serif;
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.nn-metric-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.nn-learnings p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
}


/* RESPONSIVE */
@media (max-width: 1024px) {

  .nn-hero {
    padding: 8rem 2.5rem 4rem;
  }
  .nn-hero-main {
    grid-template-columns: 1fr; 
    gap: 3rem;
  }
  .nn-cover {
    aspect-ratio: 16/9; 
  }
  .nn-body {
    padding: 0 2.5rem;
  }
  .nn-stats-bar {
    grid-template-columns: repeat(2, auto);
    gap: 2rem;
  }
  .nn-stat {
    padding-right: 2.5rem;
    margin-right: 2.5rem;
  }
  .nn-overview {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 5rem 0;
  }
  .nn-callout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem 2.5rem;
  }
  .nn-section-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
  .nn-process-steps {
    grid-template-columns: 1fr 1fr;
  }
  .nn-personas-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nn-color-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .nn-insights-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nn-dark-block {
    padding: 4rem 2.5rem;
  }
  .nn-hmw-grid {
    grid-template-columns: 1fr;
  }
  .nn-feature-list {
    grid-template-columns: 1fr;
  }
  .nn-type-grid {
    grid-template-columns: 1fr;
  }
  .nn-results {
    padding: 4rem 2.5rem;
  }
  .nn-metrinn-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {  

  .nn-hero {
    padding: 7rem 1.5rem 3rem;
  }
  .nn-body {
    padding: 0 1.5rem;
  }
  .nn-hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  .nn-stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .nn-stat {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    border-bottom: 1px solid rgba(30, 30, 30, 0.1);
    padding-bottom: 1.5rem;
  }
  .nn-stat:nth-child(odd) {
    border-right: 1px solid rgba(30, 30, 30, 0.1);
    padding-right: 1rem;
  }
  .nn-stat:last-child, 
  .nn-stat:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }
  .nn-cover {
    aspect-ratio: 4/3;
  }
  .nn-overview, 
  .nn-process, 
  .nn-insights, 
  .nn-solution, 
  .nn-personas, 
  .nn-design-system {
    padding: 4rem 0;
  }
  .nn-process-steps {
    grid-template-columns: 1fr;
  }
  .nn-insights-grid {
    grid-template-columns: 1fr;
  }
  .nn-personas-grid {
    grid-template-columns: 1fr;
  }
  .nn-color-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .nn-type-grid {
    grid-template-columns: 1fr;
  }
  .nn-components-grid {
    grid-template-columns: 1fr;
  }
  .nn-image-row {
    grid-template-columns: 1fr;
  }
  .nn-callout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3.5rem 1.5rem;
    border-radius: var(--radius-md);
  }
  .nn-dark-block {
    padding: 3.5rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
  }
  .nn-results {
    padding: 4rem 1.5rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin: 1rem 0 0;
  }
  .nn-metrinn-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

}