/* ===== NESTUA — Website Styles ===== */
:root {
  --graphite-900: #2D3034;
  --graphite-800: #3a3f44;
  --graphite-700: #474d53;
  --slate-700: #535A5C;
  --slate-500: #7a8285;
  --slate-400: #949b9e;
  --orange: #D58240;
  --orange-light: #e09555;
  --orange-glow: rgba(213, 130, 64, 0.15);
  --orange-subtle: rgba(213, 130, 64, 0.08);
  --surface: #EEF2F3;
  --surface-alt: #E4E9EB;
  --white: #FFFFFF;
  --text-dark: #1a1d20;
  --text-body: #3a3f44;
  --text-muted: #6b7280;
  --border-light: #dce1e3;
  --border: #c8cfd2;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1140px;
  --section-gap: 120px;
}

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

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

body {
  background: var(--white);
  color: var(--text-body);
  font-family: var(--font-main);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--orange-light);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  transition: padding 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border-light);
}

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

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 56px;
  width: auto;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  margin-bottom: 12px;
  display: block;
}

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

.nav-links a {
  color: var(--slate-700);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 8px 20px !important;
  background: var(--orange);
  color: var(--white) !important;
  border-radius: 4px;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--orange-light) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--graphite-900);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  padding: 180px 0 var(--section-gap);
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--orange);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--graphite-900);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: var(--font-main);
}

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

.btn-primary:hover {
  background: var(--orange-light);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--graphite-900);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--graphite-800);
}

/* Trust chips */
.trust-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-700);
  letter-spacing: 0.02em;
}

.trust-chip::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ===== SECTIONS ===== */
section {
  padding: var(--section-gap) 0;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--graphite-900);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 56px;
}

/* ===== PROBLEM ===== */
.problem-section {
  background: var(--white);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.problem-card {
  padding: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.problem-card.problem {
  background: #fef7f3;
  border-color: #f0d4c0;
}

.problem-card.solution {
  background: var(--white);
  border-color: var(--border-light);
}

.problem-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.problem-card.problem .problem-card-label {
  color: #c06030;
}

.problem-card.solution .problem-card-label {
  color: var(--orange);
}

.problem-card h3 {
  font-size: 1.3rem;
  color: var(--graphite-900);
  margin-bottom: 12px;
  line-height: 1.3;
}

.problem-card p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.problem-card ul {
  list-style: none;
}

.problem-card ul li {
  color: var(--text-body);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.925rem;
}

.problem-card.problem ul li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--slate-400);
}

.problem-card.solution ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ===== PILLARS ===== */
.pillars-section {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.pillar-card {
  padding: 28px 20px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  text-align: center;
  transition: border-color 0.3s;
}

.pillar-card:hover {
  border-color: var(--orange);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border-radius: 8px;
  background: var(--orange-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.pillar-card h3 {
  font-size: 0.95rem;
  color: var(--graphite-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.pillar-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== HOW IT WORKS ===== */
.how-section {
  background: var(--white);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.how-step {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--surface);
  position: relative;
}

.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

.how-step h3 {
  font-size: 1.1rem;
  color: var(--graphite-900);
  margin-bottom: 10px;
}

.how-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.how-step-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-subtle);
  border-radius: 100px;
  font-family: var(--font-mono);
}

/* ===== FEATURES ===== */
.features-section {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 0.3s;
}

.feature-card:hover {
  border-color: var(--orange);
}

.feature-card h3 {
  font-size: 1.05rem;
  color: var(--graphite-900);
  margin-bottom: 10px;
}

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

.feature-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-subtle);
  border-radius: 100px;
  font-family: var(--font-mono);
}

/* ===== SECURITY ===== */
.security-section {
  background: var(--graphite-900);
  color: var(--white);
}

.security-section .section-label {
  color: var(--orange);
}

.security-section .section-title {
  color: var(--white);
}

.security-section .section-desc {
  color: var(--slate-400);
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.security-card {
  padding: 28px 24px;
  border: 1px solid var(--graphite-700);
  border-radius: 8px;
  background: var(--graphite-800);
}

.security-card h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 8px;
}

.security-card p {
  font-size: 0.88rem;
  color: var(--slate-400);
  line-height: 1.6;
}

/* ===== TECH PROOF ===== */
.tech-strip {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--graphite-700);
}

.tech-tag {
  padding: 6px 14px;
  border: 1px solid var(--graphite-700);
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--slate-400);
  letter-spacing: 0.02em;
}

/* ===== USE CASES ===== */
.usecases-section {
  background: var(--white);
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.usecase-card {
  padding: 32px 24px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.3s, transform 0.3s;
}

.usecase-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}

.usecase-icon {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.usecase-card h3 {
  font-size: 1rem;
  color: var(--graphite-900);
  margin-bottom: 10px;
}

.usecase-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-section {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.faq-list {
  max-width: 700px;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--graphite-900);
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--orange);
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: '\2013';
}

.faq-answer {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

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

.cta-section .section-desc {
  margin: 0 auto 36px;
  max-width: 440px;
}

.cta-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

.cta-form input {
  flex: 1;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.2s;
}

.cta-form input::placeholder {
  color: var(--slate-500);
}

.cta-form input:focus {
  border-color: var(--orange);
}

.cta-form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--graphite-900);
  color: var(--slate-400);
  padding: 60px 0 36px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-brand {
  max-width: 280px;
}

.footer .footer-logo-img {
  /* uses pre-inverted logo-light.png */
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--slate-500);
}

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

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

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

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

.footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--graphite-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--slate-500);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  :root {
    --section-gap: 80px;
  }

  .hero {
    padding-top: 140px;
  }

  .problem-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

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

  .how-steps {
    grid-template-columns: 1fr;
  }

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

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

  .footer-content {
    flex-direction: column;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

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

  .nav-links a {
    font-size: 1.1rem;
    color: var(--graphite-900);
  }

  .nav-toggle {
    display: block;
    z-index: 101;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

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

  .trust-chips {
    flex-direction: column;
  }

  .cta-form {
    flex-direction: column;
  }

  .tech-strip {
    gap: 10px;
  }
}
