/* NodeSnap — landing styles (Konstru-inspired: clean SaaS, strong hero, card grids) */

:root {
  --color-bg: #f8f9fb;
  --color-surface: #ffffff;
  --color-text: #1a1d24;
  --color-muted: #5c6370;
  --color-border: #e2e5eb;
  --color-accent: #0d6e6e;
  --color-accent-hover: #0a5a5a;
  --color-accent-soft: rgba(13, 110, 110, 0.12);
  --color-ink: #0f1419;
  --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 20, 25, 0.08);
  --shadow-lg: 0 24px 48px rgba(15, 20, 25, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --header-h: 72px;
  --max-w: 1120px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

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

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-ink);
}

p {
  margin: 0 0 1rem;
}

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow {
  max-width: 720px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 251, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.site-header.is-scrolled {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-ink);
  text-decoration: none;
}

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

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #0a4f4f 100%);
  box-shadow: 0 2px 8px rgba(13, 110, 110, 0.35);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

img {
  border-radius: 8px;
  display: inline-block;
  width: 48px;
  height: 48px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 1px;
  transition:
    transform 0.2s var(--ease),
    opacity 0.2s;
}

.nav-toggle-bar {
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -7px;
}

.nav-toggle-bar::after {
  top: 7px;
}

.site-header.nav-open .nav-toggle-bar {
  background: transparent;
}

.site-header.nav-open .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--color-border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(13, 110, 110, 0.25);
}

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

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--color-accent-soft);
  text-decoration: none;
}

.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.5rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 70% 10%,
      rgba(13, 110, 110, 0.14),
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 40% at 10% 80%,
      rgba(13, 110, 110, 0.08),
      transparent 50%
    );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 34rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  line-height: 1.15;
}

.hero-lead {
  font-size: 1.0625rem;
  color: var(--color-muted);
  margin-bottom: 1.75rem;
}

.hero-lead strong {
  color: var(--color-text);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 380px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #fafbfc 0%, #f3f4f7 100%);
  border-bottom: 1px solid var(--color-border);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5c9d1;
}

.dot:first-child {
  background: #ff5f57;
}

.dot:nth-child(2) {
  background: #febc2e;
}

.dot:nth-child(3) {
  background: #28c840;
}

.hero-card-title {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skeleton-preview {
  position: relative;
  padding: 1.25rem;
  min-height: 220px;
}

.skeleton-svg {
  width: 100%;
  height: auto;
}

.skeleton-edge {
  stroke: var(--color-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.skeleton-node {
  fill: var(--color-surface);
  stroke: var(--color-accent);
  stroke-width: 2.5;
}

.skeleton-node.pulse {
  fill: var(--color-accent-soft);
  animation: pulse-node 2.5s var(--ease) infinite;
}

@keyframes pulse-node {
  0%,
  100% {
    transform-box: fill-box;
    transform-origin: center;
  }
  50% {
    opacity: 0.7;
  }
}

.load-badges {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.35rem;
}

.badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: var(--color-ink);
  color: #fff;
  letter-spacing: 0.02em;
}

.badge:nth-child(2) {
  background: var(--color-accent);
}

.badge:nth-child(3) {
  background: #3d4f5c;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  text-decoration: none;
}

.scroll-hint:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.scroll-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }
  50% {
    transform: rotate(45deg) translateY(4px);
  }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 400;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-title.center {
  text-align: center;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.section-lead.center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-cta {
  margin-top: 2rem;
  text-align: center;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.125rem;
}

.steps h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.steps p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

/* Platforms */
.platform-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.platform-card {
  padding: 2rem 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  text-align: center;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.platform-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.platform-soon {
  opacity: 0.85;
}

.platform-name {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 0.35rem;
}

.platform-desc {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.feature-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.0625rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.feature-card strong {
  color: var(--color-text);
}

/* Quote */
.section-quote {
  background: linear-gradient(135deg, #0f1419 0%, #1a2330 100%);
  color: #e8eaef;
}

.pull-quote {
  margin: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pull-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.pull-quote footer {
  font-size: 0.875rem;
  color: rgba(232, 234, 239, 0.65);
  font-style: normal;
}

/* CTA panel */
.cta-panel {
  text-align: center;
}

.cta-panel .section-title {
  margin-bottom: 0.75rem;
}

.cta-panel .section-lead {
  margin-bottom: 2rem;
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 1rem;
}

.input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.form-footnote {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.form-footnote.success {
  color: var(--color-accent);
  font-weight: 600;
}

/* Contact / footer area */
.contact-lead {
  margin-bottom: 1rem;
}

.contact-meta {
  font-size: 0.9375rem;
  color: var(--color-muted);
  max-width: 520px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-heading {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-links a {
  color: var(--color-text);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.copyright {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.social a {
  font-weight: 600;
  font-size: 0.875rem;
}

/* Mobile nav */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

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

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

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

@media (max-width: 768px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  main {
    padding-top: var(--header-h);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    background: white;
  }

  .nav-actions {
    background: white;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 1.5rem;
    width: 100%;
    max-width: 100vw;
    transform: translateX(100%);
    transition: transform 0.25s var(--ease);
    gap: 0;
    display: flex;
    align-items: center;
    height: auto;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .site-header.nav-open .site-nav {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 0.65rem 0;
    font-size: 18px;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    width: 100%;
    box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.5);
  }

  .nav-actions .btn {
    width: 100%;
    font-size: 18px;
  }

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

  .signup-form .btn {
    width: 100%;
  }
}

@media (min-width: 901px) and (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
