/* ==========================================================================
   Nomisoft Brand Website - Styles
   Color Palette from Brand Guide:
     Graphite: #484848
     Mint:     #64BBB4
     Frost:    #EFF7F7
     Slate:    #A3BDBB
     Navy:     #243747
     White:    #FFFFFF
   Typography:
     Headlines: Alliance No.2 (fallback: Montserrat)
     Body: Montserrat
   ========================================================================== */

/* --- Fonts --- */

/* Alliance No.2 — Headlines (per brand guide) */
@font-face {
  font-family: 'Alliance No.2';
  src: url('assets/fonts/alliance-no-2-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Alliance No.2';
  src: url('assets/fonts/alliance-no-2-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Alliance No.2';
  src: url('assets/fonts/alliance-no-2-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Alliance No.2';
  src: url('assets/fonts/alliance-no-2-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Montserrat — Body copy (per brand guide) */
@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --graphite: #484848;
  --mint: #64BBB4;
  --frost: #EFF7F7;
  --slate: #A3BDBB;
  --navy: #243747;
  --white: #FFFFFF;

  --mint-light: #A2D6D2;
  --mint-dark: #509690;
  --navy-light: #5F7282;
  --graphite-light: #666666;
  --frost-dark: #DAE5E4;
}

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

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

h1, h2, h3, h4 {
  font-family: 'Alliance No.2', 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--graphite);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--mint);
  color: var(--white);
  border-color: var(--mint);
}

.btn-primary:hover {
  background: var(--mint-dark);
  border-color: var(--mint-dark);
}

.btn-outline {
  background: transparent;
  color: var(--graphite);
  border-color: var(--graphite);
}

.btn-outline:hover {
  background: var(--graphite);
  color: var(--white);
}

.btn-nav {
  padding: 10px 24px;
  background: var(--mint);
  color: var(--white);
  border-color: var(--mint);
  font-size: 0.875rem;
}

.btn-nav:hover {
  background: var(--mint-dark);
  border-color: var(--mint-dark);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.0625rem;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  border-bottom-color: var(--frost-dark);
  box-shadow: 0 1px 12px rgba(36, 55, 71, 0.06);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  color: var(--graphite);
}

.logo-svg {
  height: 44px;
  width: auto;
  display: block;
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--graphite);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--mint);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 10000;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--graphite);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--white);
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
}

.hero-circle-1 {
  width: 700px;
  height: 700px;
  right: -200px;
  top: -100px;
  background: var(--frost);
}

.hero-circle-2 {
  width: 400px;
  height: 400px;
  right: 100px;
  bottom: -60px;
  background: var(--mint);
  opacity: 0.12;
}

.hero-circle-3 {
  width: 180px;
  height: 180px;
  left: 8%;
  bottom: 15%;
  background: var(--slate);
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 80px 0;
}

.hero-content h1 {
  margin-bottom: 24px;
  color: var(--navy);
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--graphite-light);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section-frost {
  background: var(--frost);
}

.section-navy {
  background: var(--navy);
}

.section-navy h2,
.section-navy h3,
.section-navy p {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mint);
  margin-bottom: 12px;
}

.section-label-light {
  color: var(--mint-light);
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--graphite-light);
  margin-top: 16px;
  line-height: 1.7;
}

.section-header-light .section-desc {
  color: var(--slate);
}

/* --- Split Layout (About) --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-text h2 {
  margin-bottom: 24px;
}

.split-text .section-label {
  display: block;
  margin-bottom: 16px;
}

.split-text p {
  color: var(--graphite-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.lead-text {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--graphite) !important;
  margin-bottom: 32px !important;
}

.split-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-shape {
  position: relative;
  width: 320px;
  height: 320px;
}

.about-circle-outer {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--mint);
  opacity: 0.2;
}

.about-circle-inner {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 60px;
  left: 60px;
  border-radius: 50%;
  background: var(--mint);
  opacity: 0.35;
}

.about-dot {
  position: absolute;
  width: 32px;
  height: 32px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--mint);
}

/* --- Mission Grid --- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 8px;
}

.mission-item {
  padding: 20px 24px;
  background: var(--white);
  border-radius: 12px;
  border-left: 3px solid var(--mint);
}

.mission-item h4 {
  color: var(--mint-dark);
  margin-bottom: 6px;
  font-size: 0.75rem;
}

.mission-item p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* --- Origin Story --- */
.story-grid {
  max-width: 800px;
  margin: 0 auto;
}

.story-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.story-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.story-card p {
  color: var(--graphite-light);
  line-height: 1.8;
  font-size: 1rem;
}

.story-card p strong {
  color: var(--graphite);
}

.story-conclusion {
  padding: 32px;
  background: var(--frost);
  border-radius: 16px;
  text-align: center;
}

.story-conclusion p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--graphite);
  margin-bottom: 12px;
}

.story-conclusion p:last-child {
  margin-bottom: 0;
  color: var(--graphite-light);
}

/* --- Problem / Solution --- */
.problem-solution {
  max-width: 800px;
  margin: 0 auto;
}

.ps-block {
  padding: 40px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(163, 189, 187, 0.15);
}

.ps-block h3 {
  font-size: 1.375rem;
  margin-bottom: 16px;
  color: var(--mint-light);
}

.ps-block p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--slate) !important;
  margin-bottom: 12px;
}

.ps-block p:last-child {
  margin-bottom: 0;
}

.ps-block-solution {
  background: rgba(100, 187, 180, 0.08);
  border-color: rgba(100, 187, 180, 0.2);
}

.ps-block-solution h3 {
  color: var(--mint) !important;
}

.ps-block-solution p strong {
  color: var(--mint);
}

.ps-divider {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.ps-arrow {
  width: 24px;
  height: 48px;
}

/* --- Cards (Products) --- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--white);
  border: 1px solid var(--frost-dark);
  border-radius: 16px;
  padding: 40px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(36, 55, 71, 0.08);
}

.card-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mint-dark);
  background: rgba(100, 187, 180, 0.12);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 16px;
  font-size: 1.375rem;
}

.card p {
  color: var(--graphite-light);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-highlight {
  font-weight: 600;
  color: var(--mint-dark) !important;
  font-size: 0.875rem !important;
  padding-top: 8px;
  border-top: 1px solid var(--frost-dark);
}

/* --- Values Grid --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  border: 1px solid var(--frost-dark);
}

.value-card-wide {
  grid-column: 1 / -1;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.value-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

.value-card-wide .value-icon {
  margin: 0 auto 16px;
}

.value-card h4 {
  color: var(--graphite);
  margin-bottom: 8px;
  font-size: 0.8125rem;
}

.value-card p {
  color: var(--graphite-light);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* --- Differentiation --- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.diff-card {
  padding: 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(163, 189, 187, 0.12);
  transition: background 0.3s;
}

.diff-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.diff-card:nth-child(4),
.diff-card:nth-child(5) {
  grid-column: span 1;
}

.diff-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--mint);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 16px;
}

.diff-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: var(--white);
}

.diff-card p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--slate) !important;
}

/* --- CTA --- */
.section-cta {
  background: var(--frost);
  text-align: center;
}

.cta-content {
  max-width: 580px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--graphite-light);
  font-size: 1.0625rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  padding: 64px 0 32px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--slate);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--slate);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--mint);
}

.footer-bottom {
  border-top: 1px solid rgba(163, 189, 187, 0.15);
  padding-top: 24px;
}

.footer-bottom p {
  color: var(--navy-light);
  font-size: 0.8125rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .split-visual {
    order: -1;
  }

  .about-shape {
    width: 240px;
    height: 240px;
  }

  .about-circle-outer {
    width: 240px;
    height: 240px;
  }

  .about-circle-inner {
    width: 150px;
    height: 150px;
    top: 45px;
    left: 45px;
  }

  .cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-card-wide {
    grid-column: 1 / -1;
  }

  .diff-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #FFFFFF;
    padding: 16px 32px 32px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #dde8e7;
  }

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

  .nav-links li {
    border-bottom: 1px solid #dde8e7;
  }

  .nav-links li:last-child {
    border-bottom: none;
    margin-top: 8px;
  }

  .nav-links li a {
    display: block;
    padding: 16px 0;
    font-size: 1.0625rem;
  }

  .nav-links li:last-child a.btn-nav {
    text-align: center;
  }

  .navbar.menu-open {
    background: #FFFFFF;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-circle-1 {
    width: 400px;
    height: 400px;
    right: -150px;
    top: -50px;
  }

  .hero-circle-2 {
    width: 200px;
    height: 200px;
    right: 20px;
    bottom: -40px;
  }

  .section {
    padding: 72px 0;
  }

  .story-card {
    flex-direction: column;
    gap: 16px;
  }

  .ps-block {
    padding: 28px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    flex-direction: column;
    gap: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
