* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 50% -10%,
      #1b2635 0,
      transparent 42%
    ),
    var(--bg);

  color: var(--text);

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

:root {
  --bg: #06090d;
  --panel: rgba(12, 16, 22, 0.92);
  --panel2: #10151d;
  --border: rgba(255,255,255,.08);
  --text: #f4f7fb;
  --muted: #7e8796;
  --green: #65e6a5;
  --purple: #b99cff;
}

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

button,
a {
  -webkit-user-select: none;
  user-select: none;
}

.bg-grid {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100%;

  pointer-events: none;

  opacity: .15;

  background-image:
    linear-gradient(
      rgba(255,255,255,.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.035) 1px,
      transparent 1px
    );

  background-size: 40px 40px;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  position: relative;
  z-index: 5;

  width: min(1180px, calc(100% - 32px));

  margin: auto;

  min-height: 76px;

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

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

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

  font-weight: 800;
  font-size: 18px;

  white-space: nowrap;
}

.brand-icon {
  font-size: 23px;
}

.navbar nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.navbar nav a,
.github-small {
  color: #9ca5b3;
  font-size: 14px;
  transition: .2s;
  white-space: nowrap;
}

.navbar nav a:hover,
.github-small:hover {
  color: white;
}

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

.hero {
  width: min(1180px, calc(100% - 32px));

  margin: auto;

  padding: 110px 0 90px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

  gap: 70px;

  align-items: center;
}

.hero-content {
  min-width: 0;
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;

  color: var(--green);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: .08em;

  min-width: 0;
}

.status > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status > span:first-child {
  flex-shrink: 0;

  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: var(--green);

  box-shadow: 0 0 14px var(--green);
}

.hero h1 {
  margin: 22px 0;

  font-size: clamp(46px, 6vw, 78px);

  line-height: .98;

  letter-spacing: -4px;

  overflow-wrap: break-word;
}

.hero h1 strong {
  display: block;

  font-weight: 800;

  background:
    linear-gradient(
      90deg,
      #fff,
      #9fa9ba
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.hero-text {
  max-width: 650px;

  color: var(--muted);

  font-size: 17px;

  line-height: 1.7;

  overflow-wrap: break-word;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: 30px;

  min-width: 0;
}

.btn {
  min-height: 50px;

  padding: 0 20px;

  border-radius: 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  font-weight: 700;

  transition:
    transform .15s,
    background .15s;

  max-width: 100%;

  overflow-wrap: anywhere;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: white;
  color: #070a0e;
}

.btn.secondary {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.035);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;

  gap: 18px;

  margin-top: 22px;

  color: #697383;

  font-size: 12px;
}

/* =========================
   TERMINAL
========================= */

.terminal {
  width: 100%;
  min-width: 0;

  overflow: hidden;

  background: #080b10;

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

  border-radius: 22px;

  box-shadow:
    0 30px 80px rgba(0,0,0,.5),
    inset 0 1px rgba(255,255,255,.04);
}

.terminal-top {
  height: 48px;

  display: flex;
  align-items: center;

  gap: 14px;

  padding: 0 16px;

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

  color: #778190;

  font-size: 12px;

  min-width: 0;
}

.terminal-top > span:not(.terminal-live) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-dots {
  display: flex;
  gap: 6px;

  flex-shrink: 0;
}

.terminal-dots i {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #424a56;
}

.terminal-live {
  margin-left: auto;

  color: var(--green);

  white-space: nowrap;
}

.terminal-body {
  min-height: 390px;

  padding: 24px;

  font-family:
    "Cascadia Code",
    "SFMono-Regular",
    Consolas,
    monospace;

  font-size: 13px;

  line-height: 1.8;

  overflow: hidden;
}

.terminal-line {
  margin-bottom: 6px;

  overflow-wrap: anywhere;
}

.prompt,
.value,
.success {
  color: var(--green);
}

.muted {
  color: #555f6e;
}

.terminal-button {
  margin: 18px 0;

  padding: 11px 15px;

  border: 1px solid rgba(101,230,165,.25);

  border-radius: 10px;

  background: rgba(101,230,165,.08);

  color: var(--green);

  cursor: pointer;

  font: inherit;
  font-weight: 700;

  max-width: 100%;
}

.terminal-button:hover {
  background: rgba(101,230,165,.14);
}

.terminal-button:disabled {
  opacity: .5;
  cursor: wait;
}

.scan-output {
  min-height: 130px;

  max-width: 100%;

  overflow: hidden;
}

.scan-line {
  opacity: 0;

  animation: terminalIn .25s forwards;

  overflow-wrap: anywhere;
}

@keyframes terminalIn {
  to {
    opacity: 1;
  }
}

.terminal-cursor {
  display: flex;

  gap: 8px;

  margin-top: 10px;
}

.terminal-cursor i {
  width: 7px;
  height: 17px;

  flex-shrink: 0;

  background: var(--green);

  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* =========================
   SECTIONS
========================= */

.section {
  width: min(1180px, calc(100% - 32px));

  margin: auto;

  padding: 100px 0;

  min-width: 0;
}

.section-heading {
  max-width: 720px;

  margin-bottom: 50px;
}

.eyebrow {
  color: var(--green);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: .14em;
}

.section-heading h2 {
  margin: 15px 0;

  font-size: clamp(34px, 5vw, 55px);

  line-height: 1.05;

  letter-spacing: -2px;

  overflow-wrap: break-word;
}

.section-heading h2 span,
.project-box h2 span,
.download-content h2 span {
  color: #858e9d;
}

.section-heading p {
  color: var(--muted);

  line-height: 1.7;

  overflow-wrap: break-word;
}

/* =========================
   FEATURES
========================= */

.features {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 14px;
}

.feature-card {
  min-height: 280px;

  position: relative;

  padding: 26px;

  background: var(--panel);

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

  border-radius: 20px;

  min-width: 0;
}

.feature-number {
  position: absolute;

  right: 20px;
  top: 20px;

  color: #3e4652;

  font-size: 12px;
}

.feature-icon {
  font-size: 30px;

  margin-bottom: 30px;
}

.feature-card h3 {
  margin: 0 0 12px;

  font-size: 20px;

  overflow-wrap: break-word;
}

.feature-card p {
  color: var(--muted);

  line-height: 1.6;

  font-size: 14px;

  overflow-wrap: break-word;
}

.feature-card code {
  display: inline-block;

  max-width: 100%;

  margin-top: 15px;

  padding: 6px 9px;

  border-radius: 7px;

  background: #090d12;

  color: #9ba5b4;

  font-size: 10px;

  overflow-wrap: anywhere;
}

/* =========================
   TECHNOLOGY
========================= */

.tech-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 15px;
}

.tech-panel,
.code-panel {
  background: var(--panel);

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

  border-radius: 20px;

  overflow: hidden;

  min-width: 0;
}

.panel-title,
.code-header {
  display: flex;

  justify-content: space-between;

  gap: 15px;

  padding: 18px 20px;

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

  color: #8993a1;

  font-size: 11px;
}

.panel-title span,
.panel-title small,
.code-header span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tech-row {
  display: flex;

  justify-content: space-between;

  gap: 15px;

  padding: 18px 20px;

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

  font-size: 14px;

  min-width: 0;
}

.tech-row:last-child {
  border-bottom: 0;
}

.tech-row span {
  color: var(--muted);
}

.tech-row strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.code-panel pre {
  margin: 0;

  padding: 30px;

  overflow-x: auto;

  max-width: 100%;

  color: #d8dde6;

  line-height: 1.8;
}

.purple {
  color: var(--purple);
}

.number {
  color: var(--green);
}

/* =========================
   PYTHON DASHBOARD
========================= */

.python-dashboard {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 12px;

  margin-bottom: 16px;
}

.dashboard-card {
  min-height: 105px;

  padding: 20px;

  background: var(--panel);

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

  border-radius: 16px;

  min-width: 0;

  overflow: hidden;
}

.dashboard-card span {
  display: block;

  margin-bottom: 12px;

  color: var(--muted);

  font-size: 10px;

  letter-spacing: .1em;

  white-space: nowrap;
}

.dashboard-card strong {
  display: block;

  font-size: 17px;

  overflow-wrap: anywhere;
}

/* =========================
   CLONE
========================= */

.clone-panel {
  display: grid;

  grid-template-columns:
    minmax(0, .7fr)
    minmax(0, 1.3fr);

  gap: 20px;

  padding: 24px;

  margin-bottom: 16px;

  background: var(--panel);

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

  border-radius: 20px;

  min-width: 0;
}

.clone-info {
  min-width: 0;
}

.clone-info h3 {
  margin: 10px 0 6px;

  overflow-wrap: break-word;
}

.clone-info p {
  margin: 0;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.6;

  overflow-wrap: break-word;
}

.clone-command {
  display: flex;
  align-items: center;

  gap: 10px;

  min-width: 0;

  padding: 8px;

  background: #070a0e;

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

  border-radius: 12px;
}

.clone-command code {
  flex: 1;

  min-width: 0;

  overflow-x: auto;

  padding: 10px;

  color: var(--green);

  font-size: 12px;

  white-space: nowrap;
}

.copy-btn {
  flex-shrink: 0;

  padding: 10px 13px;

  border: 0;

  border-radius: 8px;

  background: #202731;

  color: white;

  cursor: pointer;

  font-size: 11px;

  font-weight: 700;

  white-space: nowrap;
}

.copy-btn:hover {
  background: #2c3440;
}

/* =========================
   NETWORK
========================= */

.network-demo {
  overflow: hidden;

  background: var(--panel);

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

  border-radius: 20px;

  min-width: 0;
}

.network-demo-header {
  display: flex;

  justify-content: space-between;

  gap: 15px;

  padding: 18px 20px;

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

  color: #8c95a3;

  font-size: 11px;

  min-width: 0;
}

.network-demo-header span {
  overflow-wrap: anywhere;
}

.network-list {
  display: grid;

  min-width: 0;
}

.network-item {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr)
    100px;

  gap: 15px;

  padding: 18px 20px;

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

  animation: terminalIn .25s forwards;

  min-width: 0;
}

.network-item:last-child {
  border-bottom: 0;
}

.network-ip {
  color: white;

  font-family: monospace;

  overflow-wrap: anywhere;
}

.network-name {
  color: var(--muted);

  overflow-wrap: anywhere;
}

.network-port {
  color: var(--green);

  text-align: right;

  font-family: monospace;

  overflow-wrap: anywhere;
}

.network-empty {
  padding: 40px 20px;

  color: var(--muted);

  text-align: center;
}

/* =========================
   PROJECT
========================= */

.project-section {
  width: min(1180px, calc(100% - 32px));

  margin: auto;

  padding: 30px 0 100px;
}

.project-box {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 40px;

  padding: 50px;

  background:
    linear-gradient(
      120deg,
      rgba(255,255,255,.06),
      rgba(255,255,255,.015)
    );

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

  border-radius: 26px;

  min-width: 0;
}

.project-box > div {
  min-width: 0;
}

.project-box h2 {
  margin: 15px 0;

  font-size: clamp(35px, 5vw, 52px);

  line-height: 1;

  overflow-wrap: break-word;
}

.project-box p {
  max-width: 620px;

  color: var(--muted);

  line-height: 1.7;

  overflow-wrap: break-word;
}

/* =========================
   LICENSE
========================= */

.license-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(0, .5fr);

  gap: 15px;
}

.license-main,
.license-side {
  background: var(--panel);

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

  border-radius: 20px;

  padding: 30px;

  min-width: 0;
}

.license-badge {
  display: inline-block;

  max-width: 100%;

  padding: 8px 10px;

  border-radius: 8px;

  background: rgba(101,230,165,.08);

  color: var(--green);

  font-size: 10px;

  font-weight: 800;
}

.license-main h3 {
  font-size: 25px;

  overflow-wrap: break-word;
}

.license-main p {
  color: var(--muted);

  line-height: 1.7;

  overflow-wrap: break-word;
}

.license-side {
  display: grid;

  gap: 10px;

  padding: 15px;
}

.mini-card {
  padding: 18px;

  background: #0a0e13;

  border-radius: 13px;

  min-width: 0;
}

.mini-card span {
  display: block;

  margin-bottom: 7px;

  color: var(--muted);

  font-size: 10px;
}

.mini-card strong {
  font-size: 17px;

  overflow-wrap: anywhere;
}

/* =========================
   DOWNLOAD
========================= */

.download-section {
  width: min(1180px, calc(100% - 32px));

  margin: auto;

  padding: 30px 0 100px;

  text-align: center;
}

.download-content {
  padding: 80px 30px;

  background:
    radial-gradient(
      circle,
      rgba(255,255,255,.07),
      transparent 60%
    );

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

  border-radius: 28px;

  min-width: 0;

  overflow: hidden;
}

.download-content h2 {
  margin: 15px 0;

  font-size: clamp(40px, 6vw, 65px);

  letter-spacing: -3px;

  overflow-wrap: break-word;
}

.download-content p {
  color: var(--muted);

  overflow-wrap: break-word;
}

.download-content .hero-buttons {
  justify-content: center;
}

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

footer {
  width: min(1180px, calc(100% - 32px));

  margin: auto;

  padding: 35px 0 50px;

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

  text-align: center;

  color: var(--muted);

  font-size: 13px;
}

.footer-brand {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 9px;

  color: white;

  font-size: 18px;
}

.footer-links {
  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 20px;

  margin: 20px 0;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  color: #505966;
}

/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

  .navbar {
    gap: 15px;
  }

  .navbar nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;

    padding-top: 70px;

    gap: 50px;
  }

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

  .python-dashboard {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .clone-panel {
    grid-template-columns: 1fr;
  }

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

}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .navbar {
    width: calc(100% - 20px);

    min-height: 64px;

    justify-content: space-between;
  }

  .navbar nav {
    display: none;
  }

  .github-small {
    display: none;
  }

  .hero,
  .section,
  .project-section,
  .download-section,
  footer {
    width: calc(100% - 20px);
    max-width: 100%;
  }

  .hero {
    padding: 55px 0 65px;

    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 58px);

    letter-spacing: -2.5px;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-buttons {
    width: 100%;

    flex-direction: column;

    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-meta {
    gap: 10px 15px;
  }

  .terminal {
    width: 100%;

    border-radius: 18px;
  }

  .terminal-top {
    padding: 0 12px;

    gap: 9px;
  }

  .terminal-body {
    min-height: 340px;

    padding: 17px;

    font-size: 11px;

    line-height: 1.7;
  }

  .terminal-button {
    width: 100%;
  }

  .section {
    padding: 75px 0;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .section-heading h2 {
    font-size: clamp(32px, 9vw, 45px);

    letter-spacing: -1.5px;
  }

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

  .feature-card {
    min-height: auto;
  }

  .tech-layout {
    grid-template-columns: 1fr;
  }

  .python-dashboard {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .dashboard-card:last-child {
    grid-column: span 2;
  }

  .clone-panel {
    grid-template-columns: 1fr;

    padding: 18px;
  }

  .clone-command {
    flex-direction: column;

    align-items: stretch;

    width: 100%;
  }

  .clone-command code {
    width: 100%;

    max-width: 100%;
  }

  .copy-btn {
    width: 100%;
  }

  .network-demo-header {
    flex-direction: column;

    gap: 7px;

    padding: 16px;
  }

  .network-item {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);

    gap: 8px 15px;

    padding: 16px;
  }

  .network-port {
    text-align: left;
  }

  .project-section {
    padding-bottom: 75px;
  }

  .project-box {
    flex-direction: column;

    align-items: stretch;

    padding: 28px;

    gap: 25px;
  }

  .project-box .btn {
    width: 100%;
  }

  .license-main,
  .license-side {
    padding: 22px;
  }

  .download-section {
    padding-bottom: 70px;
  }

  .download-content {
    padding: 55px 18px;
  }

  .download-content h2 {
    font-size: clamp(38px, 11vw, 55px);

    letter-spacing: -2px;
  }

  .footer-links {
    gap: 14px;
  }

}

/* =========================
   MOBILE PEQUEÑO
========================= */

@media (max-width: 380px) {

  .navbar {
    width: calc(100% - 16px);
  }

  .hero,
  .section,
  .project-section,
  .download-section,
  footer {
    width: calc(100% - 16px);
  }

  .hero {
    padding-top: 45px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .status {
    font-size: 10px;
  }

  .terminal-body {
    padding: 15px;

    font-size: 10px;
  }

  .terminal-top {
    font-size: 10px;
  }

  .python-dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard-card:last-child {
    grid-column: auto;
  }

  .network-item {
    grid-template-columns: 1fr;

    gap: 6px;
  }

  .network-port {
    text-align: left;
  }

  .tech-row {
    flex-direction: column;

    gap: 6px;
  }

  .tech-row strong {
    text-align: left;
  }

  .download-content {
    padding: 45px 15px;
  }

}

/* =========================
   PANTALLAS MUY GRANDES
========================= */

@media (min-width: 1400px) {

  .hero,
  .section,
  .project-section,
  .download-section,
  footer,
  .navbar {
    max-width: 1240px;
  }

}
