:root {
  color-scheme: light;
  --ink: #111318;
  --muted: #5f6673;
  --line: #dfe5ee;
  --surface: #ffffff;
  --soft: #f6f8fb;
  --glass: rgba(255, 255, 255, 0.78);
  --blue: #147efb;
  --green: #12a150;
  --amber: #b87612;
  --rose: #d84464;
  --purple: #7c55c7;
  --cyan: #008ca8;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(20, 126, 251, 0.08), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(18, 161, 80, 0.08), transparent 24%),
    var(--soft);
  color: var(--ink);
}

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

.symbol-sprite {
  display: none;
}

.sf-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: 0 0 auto;
}

.accent-blue { color: var(--blue); }
.accent-green { color: var(--green); }
.accent-amber { color: var(--amber); }
.accent-rose { color: var(--rose); }
.accent-purple { color: var(--purple); }
.accent-cyan { color: var(--cyan); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px max(20px, calc((100vw - 1180px) / 2));
  background: rgba(246, 248, 251, 0.82);
  border-bottom: 1px solid rgba(17, 19, 24, 0.08);
  box-shadow: 0 12px 40px rgba(31, 37, 51, 0.05);
  backdrop-filter: blur(22px);
}

.brand,
.site-header nav,
.hero-actions,
.summary-strip,
.endpoint-list {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 780;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(20, 126, 251, 0.2);
}

.site-header nav {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header nav a,
.endpoint-list a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.site-header nav a:hover,
.endpoint-list a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--line);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  padding: 90px max(22px, calc((100vw - 1180px) / 2)) 48px;
  background:
    linear-gradient(90deg, rgba(246, 248, 251, 0.98) 0%, rgba(246, 248, 251, 0.88) 44%, rgba(246, 248, 251, 0.22) 100%),
    url("/assets/gsign-icon.png") right 7% center / min(440px, 48vw) no-repeat,
    #f2f5f9;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(246, 248, 251, 0), var(--soft));
  pointer-events: none;
}

.hero-inner {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: 82px;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 560px;
  color: #343946;
  font-size: 22px;
  line-height: 1.45;
}

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

.primary-action,
.icon-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 720;
}

.primary-action {
  gap: 10px;
  padding: 0 18px;
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(17, 19, 24, 0.16);
}

.icon-action {
  width: 48px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--blue);
  box-shadow: 0 14px 34px rgba(31, 37, 51, 0.08);
}

.terminal-card {
  width: min(100%, 520px);
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 8px;
  background: rgba(18, 21, 28, 0.92);
  box-shadow: 0 24px 58px rgba(17, 19, 24, 0.16);
}

.terminal-bar {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.terminal-bar span:nth-child(1) { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #ffbd2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }

.terminal-bar strong {
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 650;
}

.terminal-body {
  position: relative;
  padding: 16px 18px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
}

.terminal-body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: terminal-sheen 5.8s ease-in-out infinite;
  pointer-events: none;
}

.terminal-line {
  margin: 0;
  color: rgba(232, 246, 255, 0.9);
  opacity: 0;
  transform: translateY(8px);
  animation: console-line 6s ease infinite;
}

.terminal-line span:first-child {
  display: inline-block;
  width: 18px;
  color: #7ee787;
}

.line-one { animation-delay: 0s; }
.line-two { animation-delay: 0.55s; }
.line-three { animation-delay: 1.1s; }
.line-four { animation-delay: 1.65s; }

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  margin-left: 6px;
  transform: translateY(3px);
  border-radius: 2px;
  background: #7ee787;
  animation: cursor-blink 0.9s steps(2, start) infinite;
}

.install-panel {
  position: absolute;
  z-index: 2;
  right: max(22px, calc((100vw - 1180px) / 2));
  bottom: 48px;
  width: 320px;
  padding: 18px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 68px rgba(31, 37, 51, 0.16);
}

.phone-bar,
.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.phone-bar {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.phone-bar span {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #cfd6df;
}

.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(20, 126, 251, 0.28);
}

.install-panel h2 {
  max-width: 240px;
  margin: 18px 0 22px;
  font-size: 28px;
}

.progress-row {
  color: var(--muted);
  font-size: 14px;
}

.progress-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e9f0;
}

.progress-track span {
  display: block;
  width: 96%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  animation: pulse-width 2.8s ease-in-out infinite;
}

.summary-strip,
.section,
.cta-band,
footer {
  max-width: 1180px;
  margin: 0 auto;
}

.summary-strip {
  position: relative;
  z-index: 3;
  gap: 14px;
  padding: 18px 22px;
  transform: translateY(-18px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(31, 37, 51, 0.08);
}

.summary-strip div {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  color: #252a35;
  font-weight: 680;
}

.section {
  padding: 70px 22px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 28px;
}

.section-heading p:last-child,
article p,
.cta-band p {
  color: var(--muted);
  line-height: 1.62;
}

.feature-grid,
.policy-grid {
  display: grid;
  gap: 14px;
}

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

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

article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 34px rgba(31, 37, 51, 0.05);
}

article .sf-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 24px;
}

.split {
  border-top: 1px solid var(--line);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  padding: 34px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-band h2 {
  margin-bottom: 8px;
}

.endpoint-list {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.endpoint-list a {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(17, 19, 24, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 22px 42px;
  color: var(--muted);
  font-size: 14px;
}

@keyframes pulse-width {
  0%, 100% { width: 84%; }
  50% { width: 96%; }
}

@keyframes console-line {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  12%, 78% {
    opacity: 1;
    transform: translateY(0);
  }
  94%, 100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes terminal-sheen {
  0%, 30% { transform: translateX(-120%); }
  55%, 100% { transform: translateX(120%); }
}

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

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    justify-content: flex-start;
  }

  .hero {
    display: block;
    min-height: auto;
    align-items: start;
    padding-top: 74px;
    padding-bottom: 52px;
    background:
      linear-gradient(180deg, rgba(246, 248, 251, 0.96) 0%, rgba(246, 248, 251, 0.86) 56%, rgba(246, 248, 251, 0.24) 100%),
      url("/assets/gsign-icon.png") center bottom 70px / 300px no-repeat,
      #f2f5f9;
  }

  h1 {
    font-size: 62px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-copy {
    font-size: 19px;
  }

  .install-panel {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(100%, 340px);
    margin-top: 34px;
  }

  .terminal-card {
    margin-top: 22px;
  }

  .summary-strip,
  .cta-band {
    flex-direction: column;
    align-items: stretch;
  }

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

  .endpoint-list {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .site-header nav a {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .primary-action {
    width: 100%;
  }

  .icon-action {
    width: 100%;
  }

  .terminal-body {
    padding: 14px;
    font-size: 12px;
  }

  .summary-strip,
  .section,
  .cta-band,
  footer {
    margin-left: 14px;
    margin-right: 14px;
    padding-left: 18px;
    padding-right: 18px;
  }

  article {
    padding: 20px;
  }
}
