:root {
  color-scheme: dark;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  background: #030907;
  color: #e9fff2;
  accent-color: #66f09a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.6;
  background:
    linear-gradient(rgba(102, 240, 154, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 240, 154, 0.026) 1px, transparent 1px);
  background-size: 28px 28px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 62% 12%, rgba(0, 145, 255, 0.18), transparent 34%),
    radial-gradient(circle at 16% 78%, rgba(102, 240, 154, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(3, 9, 7, 0.28), rgba(3, 9, 7, 0.72));
  pointer-events: none;
}

.matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.5;
  background: #030907;
  pointer-events: none;
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(6, 15, 12, 0.92);
  border-bottom: 1px solid rgba(102, 240, 154, 0.22);
  backdrop-filter: blur(14px);
}

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

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #66f09a;
  box-shadow: 0 0 18px rgba(102, 240, 154, 0.85);
}

.nav {
  gap: 6px;
}

.nav a {
  padding: 8px 12px;
  border: 1px solid transparent;
  color: #b7d4c2;
  font-size: 0.95rem;
}

.nav a:hover {
  color: #ffffff;
  border-color: rgba(102, 240, 154, 0.3);
  background: rgba(102, 240, 154, 0.08);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(102, 240, 154, 0.24);
  border-radius: 6px;
  background: rgba(3, 9, 7, 0.42);
}

.lang-btn {
  min-width: 34px;
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #b7d4c2;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.lang-btn:hover,
.lang-btn.is-active {
  color: #06100c;
  background: #66f09a;
}

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(102, 240, 154, 0.18);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 35%, rgba(0, 145, 255, 0.16), transparent 30%),
    linear-gradient(120deg, rgba(6, 16, 13, 0.88), rgba(7, 16, 13, 0.72));
  z-index: 1;
}

.hero-layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.84fr);
  gap: 52px;
  align-items: center;
  padding: 110px 0 96px;
}

.hero-screen {
  position: relative;
  width: 100%;
  min-height: 360px;
  background: rgba(4, 13, 10, 0.86);
  border: 1px solid rgba(102, 240, 154, 0.38);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.52), 0 0 70px rgba(102, 240, 154, 0.16);
  backdrop-filter: blur(8px);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  background: #101b17;
  border-bottom: 1px solid rgba(102, 240, 154, 0.26);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #66f09a;
}

.window-bar span:nth-child(2) {
  background: #ffcf5a;
}

.window-bar span:nth-child(3) {
  background: #ff6b6b;
}

.window-bar strong {
  margin-left: 8px;
  color: #d9fbe6;
  font-size: 0.88rem;
  font-weight: 650;
}

.terminal-lines {
  padding: 34px;
  font-family: Consolas, "Courier New", monospace;
  color: #bdf7cf;
}

.terminal-lines p {
  margin: 0 0 18px;
}

.terminal-lines span {
  display: inline-block;
  width: 82px;
  color: #66f09a;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: #66f09a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.hero p,
.lead,
.contact-copy p {
  color: #c3d8cb;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(102, 240, 154, 0.42);
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
  color: #06100c;
  background: #66f09a;
  border-color: #66f09a;
  box-shadow: 0 0 24px rgba(102, 240, 154, 0.22);
}

.btn-primary:hover {
  background: #93ffb8;
}

.btn-primary:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.btn-secondary {
  color: #e9fff2;
  background: rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
  background: rgba(102, 240, 154, 0.1);
}

.section {
  position: relative;
  z-index: 2;
  padding: 76px 0;
}

.section:not(.section-dark) {
  background:
    linear-gradient(180deg, rgba(4, 13, 10, 0.78), rgba(6, 24, 18, 0.7));
  backdrop-filter: blur(7px);
}

.hero + .section {
  border-top: 1px solid rgba(102, 240, 154, 0.1);
}

.section-head {
  margin-bottom: 26px;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.contact-form,
.contact-panel,
.steps {
  border: 1px solid rgba(135, 255, 183, 0.18);
  background: rgba(5, 18, 14, 0.82);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.card {
  padding: 24px;
  border-radius: 8px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  margin-bottom: 18px;
  border: 1px solid rgba(102, 240, 154, 0.4);
  color: #66f09a;
  font-weight: 900;
  font-size: 0.86rem;
}

.card p {
  margin-bottom: 0;
  color: #b8d1c2;
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(3, 9, 7, 0.88), rgba(5, 21, 16, 0.78));
  border-top: 1px solid rgba(102, 240, 154, 0.1);
  border-bottom: 1px solid rgba(102, 240, 154, 0.1);
  backdrop-filter: blur(10px);
}

.split,
.contact-grid {
  display: grid;
  gap: 42px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.steps {
  margin: 0;
  padding: 22px;
  list-style: none;
  border-radius: 8px;
}

.steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(102, 240, 154, 0.14);
  color: #d9fbe6;
  line-height: 1.55;
  min-height: 0;
}

.steps li:last-child {
  border-bottom: 0;
}

.steps li > span:first-child {
  flex: 0 0 28px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #66f09a;
  color: #06100c;
  font-weight: 900;
  line-height: 1;
}

.steps li > span:last-child {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-panel {
  margin-top: 24px;
  padding: 20px;
  border-radius: 8px;
}

.contact-panel p {
  margin-bottom: 10px;
}

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

.contact-panel a {
  color: #66f09a;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
}

.form-status {
  padding: 10px 12px;
  border: 1px solid rgba(102, 240, 154, 0.28);
  background: rgba(102, 240, 154, 0.08);
  color: #d9fbe6;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
}

.form-status[data-type="success"] {
  border-color: rgba(102, 240, 154, 0.75);
  background: rgba(102, 240, 154, 0.16);
}

.form-status[data-type="error"] {
  border-color: rgba(255, 107, 107, 0.7);
  background: rgba(255, 107, 107, 0.12);
  color: #ffd6d6;
}

.form-status[data-type="pending"] {
  border-color: rgba(255, 207, 90, 0.7);
  color: #ffe6a3;
}

.contact-form label {
  color: #d9fbe6;
  font-weight: 750;
  font-size: 0.94rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(102, 240, 154, 0.26);
  border-radius: 6px;
  background: #07100d;
  color: #e9fff2;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #66f09a;
  box-shadow: 0 0 0 3px rgba(102, 240, 154, 0.14);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  margin-top: 8px;
  justify-self: start;
}

.privacy-section {
  padding-top: 24px;
}

.privacy-card {
  max-width: 900px;
  padding: 28px;
  border: 1px solid rgba(102, 240, 154, 0.24);
  border-radius: 8px;
  background: rgba(5, 17, 13, 0.86);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.privacy-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.privacy-card p {
  color: #c3d8cb;
}

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

.privacy-card a {
  color: #66f09a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer {
  position: relative;
  z-index: 2;
  padding: 30px 0;
  color: #a9c4b4;
  background: #030907;
  border-top: 1px solid rgba(102, 240, 154, 0.18);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: #66f09a;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    padding: 84px 0 64px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-screen {
    width: 100%;
  }

  .cards,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar,
  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero-screen {
    min-height: 300px;
  }

  .terminal-lines {
    padding: 22px;
    font-size: 0.9rem;
  }

  .terminal-lines span {
    width: 68px;
  }

  .section {
    padding: 52px 0;
  }
}
