:root {
  --ink: #07111f;
  --ink-soft: #142236;
  --paper: #f4f7f8;
  --white: #ffffff;
  --blue: #24a4f2;
  --blue-dark: #087ec3;
  --lime: #c7f56b;
  --line: #cfdae1;
  --muted: #647383;
  --danger: #d9424e;
  --shadow: 0 24px 70px rgba(7, 17, 31, 0.14);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.brand > span:last-child > span { color: var(--blue-dark); }

.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid var(--ink);
  transform: rotate(-3deg);
}

.brand-mark svg { width: 18px; }

.site-header nav {
  display: flex;
  gap: 36px;
  color: #435164;
  font-size: 14px;
  font-weight: 600;
}

.site-header nav a, .header-action { transition: color .2s ease, transform .2s ease; }
.site-header nav a:hover { color: var(--blue-dark); }

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.header-action:hover { transform: translateY(-2px); }
.header-action svg { width: 16px; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 655px;
  padding: 90px max(40px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 90px;
  align-items: center;
  color: var(--white);
  background-color: var(--ink);
  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: 42px 42px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: -190px;
  top: -190px;
  border: 72px solid rgba(36, 164, 242, .13);
  border-radius: 50%;
}

.hero::after {
  content: "X";
  position: absolute;
  left: -18px;
  bottom: -135px;
  color: rgba(255,255,255,.025);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 450px;
  line-height: 1;
  pointer-events: none;
}

.hero-copy, .download-panel { position: relative; z-index: 1; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #aebdca;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.eyebrow span {
  width: 24px;
  height: 2px;
  background: var(--lime);
}

h1 {
  max-width: 650px;
  margin-bottom: 24px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(56px, 6vw, 88px);
  line-height: .98;
  letter-spacing: -5px;
}

h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero-description {
  max-width: 550px;
  margin-bottom: 34px;
  color: #b7c4d0;
  font-size: 18px;
  line-height: 1.65;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: #d5dee6;
  font-size: 13px;
  font-weight: 600;
}

.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; color: var(--lime); }

.download-panel {
  padding: 30px;
  color: var(--ink);
  background: var(--white);
  border-top: 5px solid var(--blue);
  box-shadow: var(--shadow);
}

.panel-topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.panel-topline span {
  color: var(--blue-dark);
  font-size: 12px;
}

.panel-topline p { margin: 0; }
.panel-topline svg { width: 18px; }

label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
}

.input-shell {
  height: 61px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 17px;
  background: #f6f8f9;
  border: 1px solid #cbd5dc;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.input-shell:focus-within {
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 3px rgba(36, 164, 242, .14);
}

.input-shell > svg {
  width: 18px;
  color: var(--muted);
  flex: 0 0 auto;
}

.input-shell input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.input-shell input::placeholder { color: #94a0ab; }

.paste-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  border: 0;
  color: #344255;
  background: #e7edf1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.paste-button:hover { background: #dbe5eb; }
.paste-button svg { width: 15px; }

.primary-button {
  width: 100%;
  height: 58px;
  margin-top: 14px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  color: var(--ink);
  background: var(--lime);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.primary-button:hover { background: #d5ff82; transform: translateY(-2px); }
.primary-button:disabled { opacity: .65; cursor: wait; transform: none; }
.primary-button svg { width: 19px; }
.primary-button.loading svg { animation: spin 1s linear infinite; }

.form-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 13px;
}

.form-message.success { color: #27813b; }

.panel-note {
  display: flex;
  gap: 10px;
  padding-top: 20px;
  margin-top: 9px;
  border-top: 1px solid #e3e9ed;
  color: var(--muted);
}

.panel-note svg {
  width: 16px;
  flex: 0 0 auto;
}

.panel-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.result-section, .how-it-works, .faq {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.result-section { padding: 85px 0 20px; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.section-number {
  padding: 6px 8px;
  color: var(--white);
  background: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover { color: var(--ink); }
.text-button svg { width: 15px; }

.result-card {
  display: grid;
  grid-template-columns: 44% 1fr;
  min-height: 335px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(7, 17, 31, .08);
}

.media-preview {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: #121b27;
}

.media-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7,17,31,.2);
}

.media-preview > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.duration-badge {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  padding: 5px 8px;
  color: white;
  background: rgba(7,17,31,.85);
  font-size: 11px;
  font-weight: 700;
}

.preview-icon {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.preview-icon svg {
  width: 20px;
  fill: currentColor;
}

.result-content {
  padding: 38px;
  display: flex;
  flex-direction: column;
}

.author {
  display: flex;
  align-items: center;
  gap: 11px;
}

.author img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  background: #e8eef2;
}

.author div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.author strong { font-size: 14px; }
.author span { color: var(--muted); font-size: 12px; }
.verified { width: 17px; color: var(--blue-dark); }

.tweet-text {
  margin: 24px 0;
  color: #39475a;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.download-options {
  margin-top: auto;
  display: grid;
  gap: 9px;
}

.download-option {
  min-height: 58px;
  padding: 10px 13px 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
}

.download-option > svg {
  width: 18px;
  color: var(--blue-dark);
}

.option-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.option-meta strong { font-size: 13px; }
.option-meta span { color: var(--muted); font-size: 11px; }

.download-link {
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.download-link:hover { background: var(--blue-dark); }
.download-link svg { width: 15px; }

.how-it-works {
  padding: 120px 0;
  display: grid;
  grid-template-columns: .8fr 1.5fr;
  gap: 90px;
}

.kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(36px, 4vw, 53px);
  line-height: 1.08;
  letter-spacing: -2.6px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps li {
  position: relative;
  padding: 38px 25px 0;
  border-left: 1px solid var(--line);
}

.steps li:last-child { border-right: 1px solid var(--line); }

.step-number {
  position: absolute;
  top: -12px;
  left: 20px;
  padding: 3px 7px;
  color: var(--white);
  background: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.steps svg {
  width: 27px;
  height: 27px;
  margin-bottom: 25px;
  color: var(--blue-dark);
}

.steps h3 {
  margin-bottom: 10px;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.faq {
  padding: 80px 0;
  display: grid;
  grid-template-columns: .8fr 1.5fr;
  gap: 90px;
  border-top: 1px solid var(--line);
}

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

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

summary {
  padding: 21px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }
summary svg { width: 18px; transition: transform .2s ease; }
details[open] summary svg { transform: rotate(45deg); }

details p {
  max-width: 600px;
  padding: 0 35px 20px 0;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.legal-page {
  min-height: calc(100vh - 206px);
  padding: 70px max(22px, calc((100vw - 920px) / 2)) 90px;
  background:
    radial-gradient(circle at top right, rgba(36, 164, 242, .10), transparent 360px),
    var(--paper);
}

.legal-card {
  padding: clamp(28px, 5vw, 58px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 55px rgba(7, 17, 31, .08);
}

.legal-card h1 {
  max-width: 780px;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 70px);
  letter-spacing: -3.8px;
}

.legal-card h2 {
  margin: 34px 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -1.4px;
}

.legal-card p,
.legal-card li {
  color: #3d4b5d;
  font-size: 16px;
  line-height: 1.75;
}

.legal-card a {
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-card ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.contact-box {
  margin: 28px 0;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  background: #f3f8fb;
  border-left: 4px solid var(--blue-dark);
}

.contact-box svg {
  width: 24px;
  color: var(--blue-dark);
}

.contact-box strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Manrope", sans-serif;
}

.contact-box p {
  margin-bottom: 6px;
  font-size: 13px;
}

footer {
  min-height: 120px;
  padding: 30px max(40px, calc((100vw - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  color: #93a1b1;
  background: var(--ink);
  font-size: 12px;
}

.footer-brand { color: var(--white); }
footer p { margin: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-links a {
  color: #c7d2df;
  font-weight: 700;
}

.footer-links a:hover { color: var(--lime); }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-top: 70px;
    padding-bottom: 80px;
  }

  .hero-copy { max-width: 700px; }
  .download-panel { width: min(100%, 600px); }
  .how-it-works, .faq { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 700px) {
  .site-header {
    width: min(100% - 28px, 1180px);
    height: 72px;
  }

  .site-header nav { display: none; }
  .header-action { padding: 10px; }
  .header-action svg { display: none; }
  .hero { padding: 60px 18px 65px; }
  h1 { font-size: clamp(49px, 15vw, 68px); letter-spacing: -3.8px; }
  .hero-description { font-size: 16px; }
  .download-panel { padding: 22px; }
  .paste-button span { display: none; }
  .trust-row { gap: 13px; }
  .result-section, .how-it-works, .faq { width: min(100% - 30px, 1180px); }
  .result-section { padding-top: 65px; }
  .result-card { grid-template-columns: 1fr; }
  .media-preview { min-height: 235px; max-height: 320px; }
  .result-content { padding: 25px 20px; }
  .tweet-text { margin: 20px 0; }
  .how-it-works { padding: 90px 0; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li, .steps li:last-child {
    padding: 30px 22px;
    border: 1px solid var(--line);
    border-bottom: 0;
  }
  .steps li:last-child { border-bottom: 1px solid var(--line); }
  .step-number { top: 20px; right: 20px; left: auto; }
  .faq { padding: 65px 0; }
  .legal-page { padding-top: 34px; }
  footer {
    padding: 35px 20px;
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
