/* =========================================================
   BYNODE — CLEAN PROFESSIONAL WHITE
   ========================================================= */

:root {
  --background: #ffffff;
  --surface: #f7f8fa;
  --surface-soft: #fbfcfd;
  --border: #e4e8ec;

  --text: #111418;
  --text-soft: #5f6872;
  --text-light: #8a949e;

  --accent: #246bfe;
  --accent-soft: #edf3ff;
  --accent-dark: #174db8;

  --success: #1ba56f;
  --danger: #db4b4b;

  --shadow-sm: 0 8px 30px rgba(17, 20, 24, 0.06);
  --shadow-md: 0 24px 70px rgba(17, 20, 24, 0.09);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;

  --container: 1180px;
}


/* =========================================================
   RESET
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--background);
  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.6;

  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

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


/* =========================================================
   GLOBAL
   ========================================================= */

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.section-label,
.small-label {
  display: inline-block;

  color: var(--accent);

  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 55px;
}

.section-heading h2 {
  margin-top: 14px;

  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading h2 span {
  color: var(--text-light);
}

.section-heading p {
  max-width: 650px;
  margin-top: 20px;

  color: var(--text-soft);

  font-size: 1.05rem;
}

.centered-heading {
  margin-inline: auto;
  text-align: center;
}

.centered-heading p {
  margin-inline: auto;
}


/* =========================================================
   BUTTON
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 50px;
  padding: 0 22px;

  border: 1px solid var(--text);
  border-radius: 100px;

  background: var(--text);
  color: #ffffff;

  font-size: 0.92rem;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 20, 24, 0.18);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;

  font-size: 0.82rem;
}

.button-secondary {
  border-color: var(--border);

  background: #ffffff;
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface);
}

.button-dark {
  flex-shrink: 0;

  border-color: #ffffff;

  background: #ffffff;
  color: var(--text);
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  border-bottom: 1px solid rgba(228, 232, 236, 0.8);

  background: rgba(255, 255, 255, 0.88);

  backdrop-filter: blur(16px);
}

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

  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-weight: 800;
}

.brand-icon {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  border-radius: 10px;

  background: var(--text);
  color: #ffffff;

  font-size: 0.9rem;
}

.brand-name {
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.desktop-nav {
  display: flex;
  gap: 34px;

  color: var(--text-soft);

  font-size: 0.88rem;
  font-weight: 600;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--text);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  min-height: calc(100vh - 74px);
  padding: 90px 0;

  display: flex;
  align-items: center;

  overflow: hidden;
}

.hero::before {
  content: "";

  position: absolute;
  top: -300px;
  right: -260px;

  width: 700px;
  height: 700px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(36, 107, 254, 0.09),
      rgba(36, 107, 254, 0) 70%
    );

  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 80px;
}

.eyebrow {
  margin-bottom: 20px;

  color: var(--text-soft);

  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-badge {
  width: fit-content;

  display: flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 20px;
  padding: 8px 12px;

  border: 1px solid #d8efe7;
  border-radius: 999px;

  background: #f3fbf8;
  color: #24775a;

  font-size: 0.75rem;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--success);

  box-shadow: 0 0 0 5px rgba(27, 165, 111, 0.1);
}

.hero h1 {
  max-width: 650px;

  font-size: clamp(3.3rem, 7vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero h1 span {
  color: var(--text-light);
}

.hero-tagline {
  margin-top: 28px;

  font-size: 1.35rem;
  font-weight: 700;
}

.hero-description {
  max-width: 650px;
  margin-top: 14px;

  color: var(--text-soft);

  font-size: 1.05rem;
}

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

  margin-top: 32px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 42px;

  margin-top: 50px;
  padding-top: 25px;

  border-top: 1px solid var(--border);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 0.9rem;
}

.hero-stats span {
  color: var(--text-light);

  font-size: 0.72rem;
}


/* =========================================================
   ARCHITECTURE VISUAL
   ========================================================= */

.architecture-card {
  position: relative;

  min-height: 520px;
  padding: 24px;

  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  background:
    linear-gradient(rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.93)),
    radial-gradient(circle at 1px 1px, #ced5dc 1px, transparent 0);

  background-size:
    auto,
    24px 24px;

  box-shadow: var(--shadow-md);

  overflow: hidden;
}

.architecture-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.architecture-header > div:first-child {
  display: flex;
  flex-direction: column;
}

.architecture-header strong {
  margin-top: 4px;

  font-size: 0.95rem;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 7px;

  color: var(--success);

  font-size: 0.68rem;
  font-weight: 800;
}

.live-indicator span {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--success);
}

.architecture-map {
  position: relative;

  min-height: 390px;
  margin-top: 15px;
}

.system-node {
  position: absolute;
  z-index: 2;

  width: 130px;
  min-height: 92px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.96);

  box-shadow: var(--shadow-sm);
}

.system-node strong {
  margin-top: 5px;

  font-size: 0.83rem;
}

.system-node small {
  color: var(--text-light);

  font-size: 0.65rem;
}

.node-icon {
  color: var(--accent);

  font-size: 1.2rem;
}

.node-network {
  top: 35px;
  left: 0;
}

.node-security {
  top: 35px;
  right: 0;
}

.node-ai {
  bottom: 10px;
  left: 35px;
}

.node-automation {
  right: 35px;
  bottom: 10px;
}

.node-center {
  top: 50%;
  left: 50%;

  width: 145px;
  height: 145px;

  border-color: rgba(36, 107, 254, 0.28);

  transform: translate(-50%, -50%);
}

.core-ring {
  display: grid;
  place-items: center;

  width: 60px;
  height: 60px;

  border: 1px solid rgba(36, 107, 254, 0.25);
  border-radius: 50%;

  background: var(--accent-soft);
}

.core-logo {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;

  border-radius: 12px;

  background: var(--accent);
  color: #ffffff;

  font-weight: 800;
}

.connector {
  position: absolute;
  z-index: 1;

  top: 50%;
  left: 50%;

  width: 80%;
  height: 80%;

  border: 1px dashed rgba(36, 107, 254, 0.22);
  border-radius: 50%;

  transform: translate(-50%, -50%);
}

.connector-two {
  width: 55%;
  height: 55%;
}

.architecture-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-top: 15px;

  border-top: 1px solid var(--border);

  color: var(--text-light);

  font-size: 0.68rem;
}

.architecture-footer div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pulse {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--success);

  animation: pulse 1.7s infinite;
}


/* =========================================================
   PROBLEM & SOLUTION
   ========================================================= */

#solutions {
  background: var(--surface-soft);
}

.problem-solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.comparison-card {
  padding: 34px;

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  background: #ffffff;

  box-shadow: var(--shadow-sm);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 16px;

  margin-bottom: 34px;
}

.card-heading h3 {
  margin-top: 2px;

  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.card-icon {
  display: grid;
  place-items: center;

  width: 45px;
  height: 45px;

  flex-shrink: 0;

  border-radius: 14px;

  font-size: 1.1rem;
  font-weight: 800;
}

.chaos-card .card-icon {
  background: #fff1f1;
  color: var(--danger);
}

.solution-card .card-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;

  padding: 24px 0;

  border-top: 1px solid var(--border);
}

.feature-list li > span {
  color: var(--text-light);

  font-size: 0.7rem;
  font-weight: 700;
}

.feature-list strong {
  font-size: 0.95rem;
}

.feature-list p {
  margin-top: 5px;

  color: var(--text-soft);

  font-size: 0.88rem;
}


/* =========================================================
   CAPABILITIES
   ========================================================= */

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

.capability-card {
  position: relative;

  padding: 34px;

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  background: #ffffff;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.capability-card:hover {
  transform: translateY(-8px);

  border-color: rgba(36, 107, 254, 0.3);

  box-shadow: var(--shadow-md);
}

.capability-number {
  position: absolute;
  top: 24px;
  right: 24px;

  color: var(--text-light);

  font-size: 0.68rem;
  font-weight: 800;
}

.capability-icon {
  display: grid;
  place-items: center;

  width: 52px;
  height: 52px;

  margin-bottom: 30px;

  border-radius: 16px;

  background: var(--accent-soft);
  color: var(--accent);

  font-size: 1.35rem;
}

.capability-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.capability-card p {
  margin-top: 12px;

  color: var(--text-soft);

  font-size: 0.9rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;

  margin-top: 26px;
}

.tags span {
  padding: 6px 10px;

  border: 1px solid var(--border);
  border-radius: 999px;

  color: var(--text-soft);

  font-size: 0.66rem;
  font-weight: 700;
}


/* =========================================================
   SIMULATION
   ========================================================= */

.simulation-section {
  background: var(--surface);
}

.simulation-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 80px;
}

.simulation-copy h2 {
  margin-top: 15px;

  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.045em;
}

.simulation-copy > p {
  max-width: 500px;
  margin-top: 18px;

  color: var(--text-soft);
}

.scenario-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;

  margin-top: 30px;
}

.scenario-button {
  width: 100%;
  max-width: 370px;

  display: flex;
  align-items: center;
  gap: 14px;

  padding: 16px 18px;

  border: 1px solid var(--border);
  border-radius: var(--radius-sm);

  background: #ffffff;
  color: var(--text);

  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.scenario-button span {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;

  border-radius: 9px;

  background: var(--surface);
}

.scenario-button:hover,
.scenario-button.active {
  transform: translateX(5px);

  border-color: rgba(36, 107, 254, 0.35);

  background: var(--accent-soft);
}

.scenario-button.active span {
  background: var(--accent);
  color: #ffffff;
}


/* =========================================================
   CHAT
   ========================================================= */

.chat-window {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  background: #ffffff;

  box-shadow: var(--shadow-md);

  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 76px;
  padding: 14px 20px;

  border-bottom: 1px solid var(--border);
}

.chat-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar,
.message-avatar {
  display: grid;
  place-items: center;

  flex-shrink: 0;

  background: var(--text);
  color: #ffffff;

  font-weight: 800;
}

.chat-avatar {
  width: 40px;
  height: 40px;

  border-radius: 12px;
}

.chat-profile > div:last-child {
  display: flex;
  flex-direction: column;
}

.chat-profile strong {
  font-size: 0.84rem;
}

.chat-profile span {
  display: flex;
  align-items: center;
  gap: 5px;

  color: var(--text-light);

  font-size: 0.65rem;
}

.chat-profile i {
  display: inline-block;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--success);
}

.chat-status {
  padding: 6px 10px;

  border: 1px solid var(--border);
  border-radius: 100px;

  color: var(--text-light);

  font-size: 0.62rem;
}

.chat-body {
  min-height: 410px;
  max-height: 410px;
  padding: 24px;

  display: flex;
  flex-direction: column;
  gap: 18px;

  overflow-y: auto;
}

.message {
  display: flex;
  align-items: flex-end;
  gap: 9px;

  max-width: 85%;

  animation: messageIn 0.35s ease;
}

.message-avatar {
  width: 27px;
  height: 27px;

  border-radius: 8px;

  font-size: 0.65rem;
}

.message-bubble {
  padding: 13px 15px;

  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;

  background: var(--surface);

  font-size: 0.82rem;
}

.user-message {
  margin-left: auto;

  justify-content: flex-end;
}

.user-message .message-bubble {
  border-color: var(--accent);

  border-radius: 16px 16px 4px 16px;

  background: var(--accent);
  color: #ffffff;
}

.typing-message .message-bubble {
  display: flex;
  align-items: center;
  gap: 7px;

  color: var(--text-light);
}

.typing-dots {
  display: flex;
  gap: 3px;
}

.typing-dots span {
  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: var(--text-light);

  animation: typing 1s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.chat-footer {
  min-height: 70px;
  padding: 12px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-top: 1px solid var(--border);

  background: var(--surface-soft);
}

.chat-input {
  color: var(--text-light);

  font-size: 0.75rem;
}

.send-button {
  display: grid;
  place-items: center;

  width: 36px;
  height: 36px;

  border-radius: 10px;

  background: var(--text);
  color: #ffffff;
}


/* =========================================================
   CTA
   ========================================================= */

.cta-section {
  padding: 40px 0 110px;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;

  padding: 60px;

  border-radius: var(--radius-lg);

  background: var(--text);
  color: #ffffff;
}

.cta-box .section-label {
  color: #8aacff;
}

.cta-box h2 {
  max-width: 700px;
  margin-top: 14px;

  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.cta-box h2 span {
  color: #8e979f;
}

.cta-box p {
  max-width: 600px;
  margin-top: 18px;

  color: #b1b7bd;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-container {
  min-height: 110px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  color: var(--text-light);

  font-size: 0.75rem;
}

.footer-brand {
  color: var(--text);
}

.site-footer > .container > a:last-child {
  color: var(--text);

  font-weight: 700;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(27, 165, 111, 0.32);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(27, 165, 111, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(27, 165, 111, 0);
  }
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
  .hero-grid,
  .simulation-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-grid {
    gap: 60px;
  }

  .hero-visual {
    max-width: 650px;
  }

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

  .simulation-grid {
    gap: 50px;
  }

  .scenario-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .scenario-button {
    max-width: none;

    justify-content: center;
  }

  .scenario-button:hover,
  .scenario-button.active {
    transform: translateY(-3px);
  }
}


@media (max-width: 760px) {
  .section {
    padding: 80px 0;
  }

  .desktop-nav {
    display: none;
  }

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

  .architecture-card {
    min-height: 470px;
  }

  .system-node {
    width: 105px;
  }

  .node-center {
    width: 125px;
    height: 125px;
  }

  .scenario-buttons {
    grid-template-columns: 1fr;
  }

  .scenario-button {
    justify-content: flex-start;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;

    padding: 40px;
  }

  .footer-container {
    padding: 28px 0;

    flex-direction: column;

    text-align: center;
  }
}


@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header .button-small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 65px 0 75px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 17vw, 4.8rem);
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stats div {
    flex: 1 1 120px;
  }

  .architecture-card {
    min-height: 430px;
    padding: 18px;
  }

  .system-node {
    width: 90px;
    min-height: 80px;
  }

  .node-network {
    top: 25px;
  }

  .node-security {
    top: 25px;
  }

  .node-ai {
    left: 8px;
  }

  .node-automation {
    right: 8px;
  }

  .node-center {
    width: 110px;
    height: 110px;
  }

  .architecture-footer span:last-child {
    display: none;
  }

  .comparison-card,
  .capability-card {
    padding: 25px;
  }

  .chat-status {
    display: none;
  }

  .chat-body {
    min-height: 380px;
    max-height: 380px;
    padding: 18px;
  }

  .message {
    max-width: 92%;
  }

  .cta-box {
    padding: 34px 26px;
  }

  .button-dark {
    width: 100%;
  }
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.email-link:hover {
  opacity: 0.7;
}
