:root {
  color-scheme: dark;
  --page: #0b1918;
  --surface: #132421;
  --surface-light: #1b302b;
  --border: rgba(215, 245, 223, 0.13);
  --text: #f4f8f1;
  --muted: #b0c2b8;
  --accent: #c4f58f;
  --ink: #182622;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse 58% 32% at 72% 4%, rgba(82, 143, 102, 0.19), transparent 85%),
    radial-gradient(ellipse 50% 28% at 4% 38%, rgba(31, 99, 74, 0.12), transparent 85%),
    var(--page);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: #e1ffbb;
}

:focus-visible {
  outline: 3px solid #9ee967;
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.page-shell {
  width: min(100% - 64px, 1200px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 106px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(212, 255, 169, 0.55);
  border-radius: 12px;
  background: linear-gradient(140deg, #d5ffad, #77c879);
  box-shadow: 0 6px 24px rgba(149, 229, 122, 0.18);
}

.brand-play {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #173625;
}

.brand-name {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.brand-name > span {
  color: var(--accent);
}

.brand-name small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.7vw, 36px);
  margin-left: auto;
}

.site-nav a,
.header-cta {
  color: #d7e4da;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.header-cta:hover {
  color: var(--accent);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: 16px;
  padding: 10px 16px;
  border: 1px solid rgba(196, 245, 143, 0.4);
  border-radius: 9px;
  color: var(--accent);
}

.header-cta span {
  font-size: 17px;
  line-height: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 535px);
  align-items: stretch;
  gap: clamp(36px, 5vw, 72px);
  padding: 78px 0 110px;
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 30px 0 12px;
}

.hero-copy::after {
  position: absolute;
  z-index: -1;
  right: -9%;
  bottom: 7%;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(195, 243, 168, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(195, 243, 168, 0.025), 0 0 0 132px rgba(195, 243, 168, 0.018);
  content: "";
  pointer-events: none;
}

.eyebrow,
.section-kicker,
.card-topline,
.step-number,
.help-index,
.preview-card figcaption span,
.hero-footer {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 29px;
  color: var(--accent);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  margin: 5px 0 5px 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(196, 245, 143, 0.14);
}

.hero h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(44px, 5.05vw, 72px);
  font-weight: 800;
  letter-spacing: -0.067em;
  line-height: 1.06;
}

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

.hero-description {
  max-width: 490px;
  margin: 30px 0 0;
  color: #c1d2c7;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
}

.hero-facts {
  display: grid;
  gap: 18px;
  margin-top: 48px;
}

.hero-facts > div {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14px;
  font-weight: 600;
}

.fact-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid rgba(196, 245, 143, 0.22);
  border-radius: 8px;
  background: rgba(196, 245, 143, 0.08);
  color: var(--accent);
  font-size: 17px;
  line-height: 1;
}

.hero-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 62px;
  color: #93ae9e;
  font-size: 10px;
}

.hero-footer-line {
  width: 36px;
  height: 1px;
  background: var(--accent);
}

.builder-card {
  min-width: 0;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid #edf4e8;
  border-radius: 22px;
  background: #f8faf6;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.26), 0 0 0 8px rgba(225, 255, 208, 0.025);
  color: var(--ink);
  color-scheme: light;
}

.card-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  color: #39785a;
  font-size: 10px;
}

.card-topline-icon {
  font-size: 18px;
  line-height: 1;
}

.card-topline-count {
  margin-left: auto;
  color: #82958a;
}

.builder-card h2 {
  margin: 0 0 5px;
  font-size: clamp(26px, 2.7vw, 34px);
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.form-intro {
  margin: 0 0 30px;
  color: #68776e;
  font-size: 14px;
}

.field {
  min-width: 0;
  margin-top: 21px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: 16px;
}

.field-row .field {
  margin-top: 0;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 750;
}

.required {
  color: #328454;
}

.field input[type="text"],
.field select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d7e2d8;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.field input[type="text"]::placeholder {
  color: #9ca9a0;
}

.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%233c5944' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 8px;
}

.field input[type="text"]:focus,
.field select:focus,
.field input[type="file"]:focus {
  border-color: #5eac70;
  outline: none;
  box-shadow: 0 0 0 3px rgba(111, 195, 111, 0.16);
}

.field input[type="file"]:focus-visible {
  outline: 3px solid #5eac70;
  outline-offset: 3px;
}

.field small {
  display: block;
  margin-top: 7px;
  color: #78867b;
  font-size: 11px;
  line-height: 1.5;
}

.field small a,
.help-card a {
  color: #28764b;
  font-weight: 700;
}

.field small a:hover,
.help-card a:hover {
  color: #17492f;
}

.file-field input[type="file"] {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px dashed #b8cdb8;
  border-radius: 9px;
  background: #f0f5ec;
  color: #54665a;
  font-size: 12px;
  cursor: pointer;
}

.file-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 11px;
  border: 1px solid #c9d8c9;
  border-radius: 6px;
  background: #fff;
  color: #263e2d;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.file-field input[type="file"]:hover::file-selector-button {
  border-color: #75a878;
}

.optional {
  margin-left: 6px;
  color: #829389;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.form-actions {
  margin-top: 29px;
  padding-top: 22px;
  border-top: 1px solid #e4ebe2;
}

#submit_button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border: 0;
  border-radius: 9px;
  background: #bceb88;
  color: #203620;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}

#submit_button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #d0f7a7;
}

#submit_button:disabled {
  opacity: 0.6;
  cursor: wait;
}

#submit_button svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

#warn_message {
  margin: 12px 0 0;
  color: #68786d;
  font-size: 11px;
  text-align: center;
}

.working-icon {
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: #375b43;
  font-size: 13px;
  font-weight: 700;
}

.result-area:empty {
  display: none;
}

.result-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding: 16px;
  border-radius: 9px;
  font-size: 13px;
}

.result-message--success {
  border: 1px solid #b9dfb3;
  background: #ecf8e9;
  color: #245b36;
}

.result-message--error {
  display: block;
  border: 1px solid #eebcb6;
  background: #fff1ed;
  color: #82362d;
}

.result-message p {
  margin: 7px 0;
}

.result-message ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

#download_link {
  padding: 9px 12px;
  border-radius: 6px;
  background: #2b7447;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

#download_link:hover {
  background: #205635;
}

#build_info {
  width: 100%;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #e0e9df;
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
}

#build_info table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

#build_info td {
  padding: 11px;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

#build_info tr + tr {
  border-top: 1px solid #edf0ec;
}

#build_info td:first-child {
  width: 95px;
  color: #607066;
  font-weight: 700;
}

#build_info img {
  height: auto;
  vertical-align: middle;
}

.section-block {
  margin-bottom: 105px;
  scroll-margin-top: 30px;
}

.section-heading {
  max-width: 670px;
  margin-bottom: 30px;
}

.section-kicker {
  display: block;
  margin: 0 0 12px;
  color: var(--accent);
}

.section-heading h2 {
  margin: 0 0 9px;
  font-size: clamp(30px, 4vw, 49px);
  letter-spacing: -0.055em;
  line-height: 1.15;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.steps-grid,
.preview-grid,
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.step-card,
.help-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: linear-gradient(130deg, rgba(31, 56, 46, 0.92), rgba(20, 38, 35, 0.98));
}

.step-card {
  min-height: 214px;
  padding: 29px 32px;
}

.step-number {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid rgba(196, 245, 143, 0.25);
  border-radius: 999px;
  background: rgba(196, 245, 143, 0.08);
  color: var(--accent);
}

.step-card h3,
.help-card h3 {
  margin: 24px 0 8px;
  font-size: 22px;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.step-card p,
.help-card p {
  max-width: 490px;
  margin: 0;
  color: #bfcec3;
  font-size: 14px;
  line-height: 1.75;
}

.alternate-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 21px;
  color: #b6c8ba;
  font-size: 13px;
}

.alternate-paths p {
  margin: 0;
}

.alternate-paths a {
  font-weight: 750;
  white-space: nowrap;
}

.preview-card {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #142622;
}

.preview-image {
  display: grid;
  min-height: 192px;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(rgba(10, 24, 22, 0.25), rgba(10, 24, 22, 0.25)),
    url("img/android_bg.jpg") center / cover,
    #1e342e;
}

.preview-image img {
  width: 275px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.preview-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 16px;
  padding: 17px 24px;
}

.preview-card figcaption span {
  color: var(--accent);
  font-size: 10px;
}

.preview-card figcaption strong {
  font-size: 14px;
}

.help-card {
  padding: 27px 30px 31px;
}

.help-index {
  color: var(--accent);
  font-size: 10px;
}

.help-card h3 {
  margin-top: 20px;
  font-size: 20px;
}

.help-card a {
  color: #c4f58f;
}

.help-card a:hover {
  color: #e1ffbb;
}

.help-card code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #30473a;
  color: #e6f7d9;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.toggle-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 23px;
  padding: 14px;
  border: 1px solid #d7e2d8;
  border-radius: 9px;
  background: #f0f5ec;
}

.toggle-option input {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin: 1px 0 0;
  accent-color: #368558;
  cursor: pointer;
}

.toggle-option label {
  cursor: pointer;
}

.toggle-option strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
}

.toggle-option label span {
  display: block;
  margin-top: 3px;
  color: #728075;
  font-size: 11px;
  line-height: 1.5;
}

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

.intent-example {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: linear-gradient(130deg, rgba(31, 56, 46, 0.92), rgba(20, 38, 35, 0.98));
}

.intent-example h3 {
  margin: 19px 0 18px;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.intent-example code {
  display: block;
  padding: 14px;
  border: 1px solid rgba(196, 245, 143, 0.11);
  border-radius: 8px;
  background: #0d1b19;
  color: #d7f0c1;
  font-size: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  user-select: all;
}

.intent-example p {
  margin: 12px 0 0;
  color: #bfcec3;
  font-size: 12px;
  line-height: 1.6;
}

.intent-rules {
  margin: 19px 0 0;
  color: #bfcec3;
  font-size: 13px;
  line-height: 1.8;
}

.intent-rules code {
  color: var(--accent);
  font-size: 0.95em;
}

.changelog-section details {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #142622;
}

.changelog-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 30px;
  list-style: none;
  cursor: pointer;
}

.changelog-section summary::-webkit-details-marker {
  display: none;
}

.changelog-section summary .section-kicker {
  margin-bottom: 3px;
  font-size: 10px;
}

.changelog-section summary strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.summary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.summary-action span {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  font-size: 0;
}

.summary-action span::before,
.summary-action span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.summary-action span::before {
  width: 14px;
  height: 2px;
}

.summary-action span::after {
  width: 2px;
  height: 14px;
}

details[open] .summary-action span {
  transform: rotate(45deg);
}

.changelog-content {
  padding: 0 30px 28px;
}

#tbl_changelog {
  width: 100%;
  border-collapse: collapse;
  color: #c7d5ca;
  font-size: 13px;
  line-height: 1.6;
}

#tbl_changelog th,
#tbl_changelog td {
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

#tbl_changelog th {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#tbl_changelog td:first-child {
  width: 155px;
  color: #eff5eb;
  font-weight: 700;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 25px;
  min-height: 118px;
  border-top: 1px solid var(--border);
  color: #96afa0;
  font-size: 12px;
}

.footer-brand .brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.footer-brand .brand-play {
  border-top-width: 7px;
  border-bottom-width: 7px;
  border-left-width: 11px;
}

.footer-brand .brand-name {
  font-size: 15px;
}

.site-footer > a:last-child {
  margin-left: auto;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(42px, 5.3vw, 60px);
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 21px;
  }

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

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 36px, 620px);
  }

  .site-header {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 80px;
    padding: 15px 0 13px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    gap: 22px;
    margin-left: 0;
  }

  .site-nav a {
    font-size: 12px;
  }

  .header-cta {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 65px 0 80px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    max-width: 600px;
    font-size: clamp(44px, 8.2vw, 64px);
  }

  .hero-description {
    margin-top: 22px;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 35px;
  }

  .hero-facts > div {
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.35;
  }

  .hero-footer {
    display: none;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  }

  .section-block {
    margin-bottom: 78px;
  }

  .help-grid {
    gap: 12px;
  }

  .help-card {
    padding: 22px;
  }

  .intent-examples {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 580px) {
  .page-shell {
    width: min(100% - 32px, 480px);
  }

  .site-header {
    gap: 10px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-icon {
    width: 37px;
    height: 37px;
  }

  .header-cta {
    gap: 5px;
    padding: 8px 9px;
    font-size: 11px;
  }

  .hero {
    gap: 31px;
    padding: 53px 0 70px;
  }

  .hero h1 {
    font-size: clamp(40px, 10.5vw, 54px);
  }

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

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 27px;
  }

  .hero-facts > div {
    align-items: center;
    font-size: 13px;
  }

  .builder-card {
    padding: 25px 20px;
    border-radius: 17px;
  }

  .field-row,
  .steps-grid,
  .preview-grid,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .section-block {
    margin-bottom: 72px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .step-card {
    min-height: 0;
    padding: 25px;
  }

  .step-card h3 {
    margin-top: 17px;
  }

  .preview-image {
    min-height: 170px;
  }

  .help-grid {
    gap: 12px;
  }

  .changelog-section summary {
    padding: 20px;
  }

  .changelog-content {
    padding: 0 20px 20px;
  }

  #tbl_changelog,
  #tbl_changelog tbody,
  #tbl_changelog tr,
  #tbl_changelog td {
    display: block;
    width: 100%;
  }

  #tbl_changelog thead {
    display: none;
  }

  #tbl_changelog tr {
    padding: 15px 0;
    border-top: 1px solid var(--border);
  }

  #tbl_changelog td {
    padding: 0;
    border: 0;
  }

  #tbl_changelog td:first-child {
    width: auto;
    margin-bottom: 4px;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 22px 0 30px;
  }

  .site-footer > span {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 380px) {
  .changelog-section summary {
    gap: 8px;
    padding: 16px;
  }

  .changelog-section summary strong {
    font-size: 19px;
  }

  .summary-action {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
