:root {
  color-scheme: dark;
  --bg: #0c1314;
  --panel: #101a1d;
  --panel-2: #142126;
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef6f2;
  --muted: #9fb0ad;
  --accent: #4deeb0;
  --accent-2: #6ec6ff;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #d8b4fe;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

p {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-width: 320px;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(110, 198, 255, 0.75);
  outline-offset: 3px;
}

main {
  min-height: calc(100vh - 126px);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(12, 19, 20, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img,
.login-logo {
  display: block;
  height: 42px;
}

.main-nav,
.hero-actions,
.toolbar-row,
.status-row,
.row-actions,
.form-actions,
.modal-footer,
.tabs,
.email-actions,
.modal-status,
.retranslate-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.form-actions {
  margin: 20px 0px 0px 0px;
}

.main-nav {
  gap: 10px;
}

.main-nav a,
.user-menu > span {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--accent);
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  transition: 0.18s ease;
  position: relative;
  white-space: nowrap;
}

.main-nav a.active {
  color: #06120d;
  transform: translateY(-1px);
  z-index: 1;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  inset: auto 14px 5px;
  height: 2px;
  border-radius: 999px;
  background: #dff7ee;
}

.main-nav a:hover:not(.active) {
  background: rgba(77, 238, 176, 0.08);
}

.nav-register {
  padding: 9px 13px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--accent), #39c88e);
  color: #0b1b15 !important;
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.18s ease;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.user-menu:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a {
  display: block;
  padding: 10px;
  border-radius: 6px;
  color: var(--text);
}

.user-dropdown a:hover {
  background: rgba(77, 238, 176, 0.08);
  color: var(--accent);
}

.btn {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(77, 238, 176, 0.35);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn.primary {
  background: linear-gradient(180deg, var(--accent), #39c88e);
  color: #0b1b15;
}

.btn.success {
  background: linear-gradient(180deg, var(--success), #149447);
  color: white;
}

.btn.danger {
  background: linear-gradient(180deg, var(--danger), #c92d2d);
  color: white;
}

.btn.ghost {
  background: transparent;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.2fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  /* min-height: 74vh; */
  padding: clamp(34px, 6vw, 80px) clamp(18px, 4vw, 48px);
  background:
    linear-gradient(120deg, rgba(77, 238, 176, 0.12), transparent 42%),
    linear-gradient(180deg, #111b1e, var(--bg));
}

.hero-copy {
  display: grid;
  gap: 14px;
}

.hero h1 {
  max-width: 780px;
  margin: 14px 0;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.02;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(130, 214, 196, 0.055) 0 4%, transparent 4% 11%, rgba(130, 214, 196, 0.045) 11% 15%, transparent 15% 21%, rgba(130, 214, 196, 0.04) 21% 25%, transparent 25% 33%, rgba(130, 214, 196, 0.03) 33% 37%, transparent 37% 100%);
  opacity: 0.5;
  z-index: -2;
}

.hero::after {
  height: 220px;
  top: auto;
  bottom: -2px;
  background: linear-gradient(180deg, rgba(7, 16, 24, 0), rgba(7, 16, 21, 0.9) 62%, #071015 100%);
  z-index: -1;
}

.hero-copy {
  display: grid;
  gap: 18px;
  max-width: 830px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 780px;
  margin: 8px 0 10px;
  font-size: clamp(48px, 5.2vw, 86px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #ecf5f3;
  text-wrap: balance;
}

.hero p,
.section p,
.feature-card p,
.pricing-card p,
.email-main p,
.legal-page p {
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow,
.lang-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(77, 238, 176, 0.28);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.eyebrow::before {
  content: "*";
  margin-right: 8px;
  font-size: 14px;
  line-height: 1;
}

.hero-stats,
.preview-mini-grid,
.tech-grid,
.tech-detail,
.pricing-detail {
  display: grid;
  gap: 14px;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

.hero-stats article,
.tech-card,
.tech-panel,
.pricing-formula {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.hero-stats article {
  padding: 14px 16px;
}

.hero-stats strong {
  display: block;
  margin-bottom: 4px;
  font-size: 22px;
  color: var(--accent);
}

.hero-stats span,
.preview-mini-grid p,
.tech-panel p,
.pricing-formula p {
  color: var(--muted);
}

.preview-panel,
.tool-surface,
.settings-page,
.legal-page {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
}

.preview-panel,
.tool-surface,
.settings-card,
.email-row,
.modal-box,
.feature-card,
.pricing-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.preview-panel,
.tool-surface,
.settings-card,
.feature-card,
.pricing-card {
  padding: 20px;
}

.panel-title,
.surface-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.email-preview-grid,
.feature-grid,
.pricing-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid-3,
.pricing-grid-topup {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.preview-mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.sample-carousel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.sample-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sample-file-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sample-clickable {
  position: relative;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  cursor: zoom-in;
}

.sample-clickable img,
.mini-sample-thumb img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.sample-clickable img {
  max-height: 140px;
}

.sample-clickable-wide img {
  max-height: 360px;
}

.sample-image-label {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(9, 18, 21, 0.8);
  color: #dff7ee;
  font-size: 11px;
  font-weight: 700;
}

.mini-sample-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.mini-sample-thumb {
  position: relative;
  width: 100%;
  padding: 0;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.24);
  cursor: zoom-in;
}

.mini-sample-thumb img {
  aspect-ratio: 16 / 9;
}

.mini-sample-compare .mini-sample-thumb {
  margin-bottom: 0;
}

.email-preview-grid article,
.result-box,
.html-result,
.drop-zone,
.email-input,
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--text);
}

.email-preview-grid article {
  padding: 16px;
}

.email-preview-grid .highlight {
  border-color: rgba(77, 238, 176, 0.36);
}

.section {
  padding: 52px clamp(18px, 4vw, 48px);
}

.section-workflows {
  position: relative;
  overflow: hidden;
  padding-top: clamp(62px, 7vw, 94px);
  padding-bottom: clamp(58px, 7vw, 84px);
  background:
    radial-gradient(circle at 8% 6%, rgba(68, 243, 192, 0.17), transparent 30%),
    radial-gradient(circle at 92% 14%, rgba(58, 188, 255, 0.16), transparent 28%),
    radial-gradient(circle at 50% 72%, rgba(44, 148, 210, 0.12), transparent 40%),
    linear-gradient(180deg, #071015 0%, #050a0f 100%);
}

.section-workflows::before,
.section-workflows::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.35;
}

.section-workflows::before {
  left: -220px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(62, 247, 207, 0.46), transparent 65%);
}

.section-workflows::after {
  right: -180px;
  top: -210px;
  background: radial-gradient(circle, rgba(70, 170, 255, 0.46), transparent 65%);
}

.workflow-header {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
}

.workflow-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid rgba(77, 238, 176, 0.36);
  background: linear-gradient(180deg, rgba(77, 238, 176, 0.08), rgba(77, 238, 176, 0.03));
  color: #6df3d2;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 14px;
  font-weight: 800;
}

.workflow-kicker::before {
  content: "✦";
  font-size: 14px;
}

.workflow-title {
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.workflow-title-accent {
  background: linear-gradient(110deg, #5af2c6 0%, #4fcff9 60%, #89f4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.workflow-grid {
  position: relative;
  z-index: 1;
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 26px);
}

.workflow-card {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 24px;
  border: 1px solid rgba(208, 231, 239, 0.2);
  background:
    linear-gradient(160deg, rgba(112, 224, 255, 0.07), rgba(5, 11, 19, 0.75) 45%, rgba(10, 22, 18, 0.9)),
    rgba(8, 15, 22, 0.78);
  backdrop-filter: blur(6px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.workflow-card::after {
  content: "";
  position: absolute;
  top: 106px;
  left: 118px;
  width: 52px;
  height: 20px;
  border-radius: 999px;
  background: radial-gradient(circle, currentColor 0%, transparent 62%);
  opacity: 0.4;
}

.workflow-card h3 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 2.2vw, 53px);
  line-height: 1.22;
}

.workflow-card p {
  margin: 0;
  color: #b3c6cc;
  /* font-size: clamp(17px, 1.05vw, 25px); */
  line-height: 1.55;
}

.workflow-card-aqua {
  color: #54efd3;
}

.workflow-card-blue {
  color: #5bbcff;
}

.workflow-card-green {
  color: #91f26e;
}

.workflow-icon {
  width: 56px;
  height: 56px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  color: inherit;
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.14);
}

.workflow-icon svg {
  width: 54px;
  height: 54px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.workflow-index {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid currentColor;
  color: inherit;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
}

.workflow-divider {
  height: 1px;
  margin: 28px 0 22px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
}

.workflow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 800;
}

.workflow-link span {
  line-height: 1;
}

.section-tech,
.section-pricing {
  background:
    radial-gradient(circle at top left, rgba(77, 238, 176, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.section h2 {
  margin-top: 0;
  font-size: 32px;
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 900px;
  margin-bottom: 20px;
}

.section-heading p {
  margin: 0;
}

.feature-grid,
.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card-lg {
  min-height: 100%;
}

.tech-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 12px;
}

.tech-card {
  padding: 18px;
}

.tech-card p {
  margin-bottom: 0;
}

.tech-detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.tech-panel {
  padding: 20px;
}

.tech-panel h3,
.pricing-formula h3 {
  margin-top: 0;
}

.tech-panel ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.tech-panel-accent {
  border-color: rgba(77, 238, 176, 0.22);
  background: linear-gradient(180deg, rgba(77, 238, 176, 0.08), rgba(255, 255, 255, 0.04));
}

.architecture-diagram {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
}

.architecture-node {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.architecture-node h3 {
  margin: 12px 0 8px;
}

.architecture-node p {
  margin: 0;
  color: var(--muted);
}

.architecture-arrow {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 26px;
  font-weight: 900;
}

.pricing-card-topup {
  display: grid;
  gap: 10px;
}

.pricing-chars {
  color: var(--accent);
  font-size: 24px;
}

.pricing-detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.pricing-formula {
  padding: 20px;
}

.pricing-formula-dark {
  background: rgba(0, 0, 0, 0.18);
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.policy-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.policy-card h2 {
  margin-top: 0;
  font-size: 20px;
}

.policy-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.policy-card-note {
  margin-top: 18px;
}

.back-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--accent);
  font-weight: 800;
}

.tabs {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 0;
}

.email-list {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 40px;
  display: grid;
  gap: 12px;
}

.email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 18px;
}

.email-main h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.email-main p {
  margin: 3px 0;
  font-size: 13px;
}

.badge,
.group-badge,
.countdown {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.badge.processed,
.badge.done,
.badge.success {
  color: var(--accent);
  border-color: rgba(77, 238, 176, 0.3);
}

.badge.loading,
.badge.uploading {
  color: var(--accent-2);
}

.badge.skipped,
.badge.error {
  color: var(--warning);
}

.badge.sent {
  color: #86efac;
}

.tool-surface {
  display: grid;
  gap: 16px;
}

.editor {
  min-height: 240px;
  padding: 12px;
  resize: vertical;
}

.editor.tall {
  min-height: 420px;
}

input,
select,
textarea {
  min-height: 40px;
  padding: 10px 12px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.result-box {
  padding: 14px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.html-result {
  min-height: 140px;
  padding: 12px;
  overflow: auto;
  color: var(--text);
}

.drop-zone {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 140px;
  padding: 20px;
  border-style: dashed;
  cursor: pointer;
  text-align: center;
}

.drop-zone.compact {
  min-height: 74px;
}

.file-list,
.attachment-box {
  display: grid;
  gap: 10px;
}

.file-row,
.log-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.modal-box {
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

.modal-box.wide {
  width: min(980px, 100%);
}

.modal-header,
.modal-footer {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
}

.modal-body {
  padding: 16px;
  overflow: auto;
}

.modal-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.email-input {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 42px;
  padding: 6px;
}

.email-input input {
  flex: 1;
  min-width: 180px;
  border: 0;
  background: transparent;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(77, 238, 176, 0.12);
  color: var(--accent);
  font-size: 12px;
}

.chip button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.settings-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.settings-page.narrow {
  width: min(680px, calc(100% - 32px));
}

.settings-page > h1 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.025em;
}

.page-intro {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.6;
}

.register-page {
  padding-top: clamp(38px, 7vw, 80px);
  padding-bottom: clamp(38px, 7vw, 80px);
}

.register-form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(circle at top right, rgba(77, 238, 176, 0.1), transparent 46%), rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
}

.auth-switch {
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 800;
}

.avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), #39c88e);
  color: #092016;
  font-weight: 900;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.login-form {
  display: grid;
  gap: 12px;
}

.form-error {
  margin: 0;
  color: #fecaca;
}

.form-success {
  margin: 0;
  color: var(--accent);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.auth-modal {
  display: grid;
  gap: 16px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  min-height: 40px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-help {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.auth-submit {
  margin-top: 6px;
  min-height: 44px;
  border-radius: 12px;
}

.auth-divider {
  position: relative;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  border-top: 1px solid var(--line);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-social {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.auth-social:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-social-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  color: #0d1b15;
  background: linear-gradient(180deg, #77f3c5, #4deeb0);
}

.empty-state {
  padding: 28px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.legal-page {
  max-width: 1040px;
  padding: 28px 0;
}

.app-footer {
  padding: 26px clamp(18px, 4vw, 48px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(10, 16, 18, 0.88);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(160px, 0.7fr));
  gap: 18px;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.footer-logo img {
  display: block;
  width: min(220px, 100%);
  height: auto;
}

.footer-brand p {
  margin: 0;
  max-width: 360px;
  line-height: 1.6;
}

.footer-menu {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer-menu a {
  color: var(--text);
}

.footer-menu a:hover {
  color: var(--accent);
}

.footer-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.credit-card {
  display: grid;
  gap: 6px;
  margin: 20px 0 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30, 173, 129, 0.14), rgba(39, 89, 180, 0.08));
}

.credit-card strong {
  font-size: 30px;
  color: var(--accent);
}

.credit-card small {
  color: var(--muted);
}

.credit-packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.credit-package {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}

.pricing-cta {
  justify-content: center;
  margin-top: auto;
}

.surface-header > div:first-child {
  display: grid;
  gap: 7px;
}

.surface-header h2,
.email-dashboard-header h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
}

.surface-header p,
.email-dashboard-header p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.55;
}

.workspace-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.character-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.email-dashboard-header {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: radial-gradient(circle at top right, rgba(110, 198, 255, 0.15), transparent 42%), rgba(255, 255, 255, 0.04);
}

.email-dashboard-header > div:first-child {
  display: grid;
  gap: 9px;
}

.queue-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.queue-summary > span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.queue-summary strong {
  color: var(--accent);
}

.account-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 26px;
}

.account-summary > div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.account-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.user-name {
  color: var(--text);
  font-weight: 700;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credit-package.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(30, 173, 129, 0.18);
}

.credit-package span {
  font-size: 22px;
  font-weight: 800;
}

.paypal-checkout {
  max-width: 420px;
  margin: 18px 0;
}

.credit-history {
  margin: 10px 0 24px;
  border-top: 1px solid var(--line);
}

.credit-history-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.credit-in { color: #198754; }
.credit-out { color: #c85a38; }

@media (max-width: 820px) {
  .hero,
  .email-preview-grid,
  .email-row,
  .sample-file-compare {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .preview-mini-grid,
  .tech-detail,
  .pricing-detail,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .mini-sample-compare {
    grid-template-columns: 1fr;
  }

  .architecture-diagram {
    grid-template-columns: 1fr;
  }

  .architecture-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }

  .app-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .email-actions {
    justify-content: flex-start;
  }

  .file-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

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

  .workflow-card::after {
    display: none;
  }

  .workflow-icon {
    width: 88px;
    height: 88px;
    border-radius: 18px;
  }

  .workflow-icon svg {
    width: 42px;
    height: 42px;
  }

  .workflow-index {
    min-height: 30px;
    font-size: 21px;
  }

  .workflow-link {
    font-size: 23px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .credit-packages {
    grid-template-columns: 1fr;
  }

  .email-dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .queue-summary {
    justify-content: flex-start;
  }

  .account-summary {
    grid-template-columns: 1fr;
  }

  .workspace-actions {
    align-items: stretch;
  }
}

/* ==========================================================================
   TranslateAI interface system — 2026 refresh
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #07100f;
  --bg-elevated: #0b1715;
  --panel: #0f1d1a;
  --panel-2: #13231f;
  --panel-3: #172a25;
  --line: rgba(220, 255, 241, 0.11);
  --line-strong: rgba(220, 255, 241, 0.2);
  --text: #f2f8f5;
  --muted: #9baca6;
  --muted-strong: #c1cec9;
  --accent: #5ee6b5;
  --accent-hover: #7bf0c7;
  --accent-ink: #052017;
  --accent-soft: rgba(94, 230, 181, 0.11);
  --blue: #79b8ff;
  --danger: #ff7e82;
  --danger-soft: rgba(255, 126, 130, 0.11);
  --success: #62dda0;
  --warning: #f5c76b;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.16);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.32);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --content: 1240px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% -10%, rgba(94, 230, 181, 0.08), transparent 30rem),
    radial-gradient(circle at 100% 10%, rgba(121, 184, 255, 0.06), transparent 32rem),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(94, 230, 181, 0.28);
  color: var(--text);
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main {
  min-height: calc(100vh - 160px);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: block;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 15, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  width: min(100%, var(--content));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
}

.brand img,
.login-logo {
  width: auto;
  height: 38px;
  object-fit: contain;
}

.main-nav {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-actions {
  flex: 0 0 auto;
  gap: 8px;
}

.main-nav a,
.user-menu summary {
  position: relative;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.main-nav a.active {
  transform: none;
}

.main-nav a.active::after {
  inset: auto 12px 3px;
  height: 2px;
  background: var(--accent);
}

.nav-register,
.main-nav .nav-register {
  padding: 10px 15px;
  border: 1px solid rgba(94, 230, 181, 0.35);
  background: var(--accent);
  color: var(--accent-ink) !important;
  box-shadow: 0 8px 24px rgba(94, 230, 181, 0.12);
}

.nav-login {
  color: var(--text) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.user-menu {
  position: relative;
}

.user-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 190px;
  list-style: none;
  cursor: pointer;
}

.user-menu summary::-webkit-details-marker { display: none; }

.user-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(94, 230, 181, 0.28);
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
}

.user-dropdown {
  top: calc(100% + 8px);
  display: grid;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(15, 29, 26, 0.98);
  box-shadow: var(--shadow-lg);
}

.user-menu:not([open]) .user-dropdown {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.user-menu[open] .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a {
  padding: 10px 12px;
  color: var(--muted-strong);
}

.btn {
  min-height: 42px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(94, 230, 181, 0.38);
  background: rgba(255, 255, 255, 0.075);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn.primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 9px 26px rgba(94, 230, 181, 0.13);
}

.btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn.ghost { background: transparent; }
.btn.success { background: var(--success); color: #062116; border-color: transparent; }
.btn.danger { background: var(--danger-soft); color: #ffc5c7; border-color: rgba(255, 126, 130, 0.25); }

.eyebrow,
.workflow-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before,
.workflow-kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

.hero {
  width: min(100%, var(--content));
  min-height: auto;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) 24px clamp(70px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: clamp(44px, 7vw, 96px);
  background: transparent;
}

.hero::before,
.hero::after { display: none; }

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-copy > p {
  max-width: 660px;
  color: var(--muted-strong);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
}

.hero-actions { gap: 12px; }
.hero-actions .btn { min-height: 48px; padding-inline: 19px; }

.hero-stats {
  width: 100%;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.hero-stats article {
  min-height: 92px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 0;
  border-radius: 0;
  background: rgba(12, 25, 22, 0.96);
}

.hero-stats strong { color: var(--text); font-size: 22px; }
.hero-stats span { color: var(--muted); font-size: 12px; }

.preview-panel {
  position: relative;
  align-self: center;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(21, 42, 36, 0.9), rgba(10, 23, 21, 0.96));
  box-shadow: var(--shadow-lg);
}

.preview-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 230, 181, 0.75), transparent);
}

.panel-title { margin-bottom: 14px; }
.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
}

.highlight,
.sample-clickable {
  border-color: var(--line);
  background: rgba(3, 12, 10, 0.48);
}

.sample-clickable {
  min-height: 250px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.sample-clickable img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  object-position: top;
}

.section {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) 24px;
  background: transparent;
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

.section-workflows,
.section-tech,
.section-pricing {
  background: transparent;
}

.section-workflows::before,
.section-workflows::after { display: none; }

.section-docs {
  display: grid;
  gap: 24px;
}

.doc-heading {
  max-width: 820px;
  margin-bottom: 16px;
}

.doc-heading > p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.72;
}

.doc-mermaid,
.doc-card,
.doc-flow-panel,
.doc-security {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(18, 35, 31, 0.9), rgba(8, 20, 17, 0.94));
}

.doc-mermaid {
  margin: 0;
  padding: clamp(16px, 3vw, 28px);
  overflow-x: auto;
}

.doc-mermaid figcaption {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mermaid-output {
  width: 100%;
  min-width: 840px;
}

.mermaid-output svg {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto;
}

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

.doc-card {
  min-width: 0;
  padding: 24px;
}

.doc-card h3,
.doc-flow-panel h3,
.doc-security h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.3;
}

.doc-card p,
.doc-security p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.72;
}

.doc-flow-panel { padding: clamp(20px, 3vw, 28px); }

.doc-flow-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.doc-flow-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.doc-flow-row strong { color: var(--accent); }

.doc-flow-row code {
  overflow-wrap: anywhere;
  color: var(--muted-strong);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  white-space: normal;
}

.doc-security {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.5fr);
  gap: 28px;
  align-items: center;
  padding: clamp(20px, 3vw, 28px);
  border-color: rgba(94, 230, 181, 0.28);
  background: linear-gradient(135deg, rgba(94, 230, 181, 0.12), rgba(11, 24, 21, 0.92));
}

.doc-security .badge {
  display: inline-flex;
  margin-bottom: 12px;
}

.contact-page {
  width: min(calc(100% - 48px), 1080px);
  margin: clamp(38px, 6vw, 82px) auto clamp(60px, 8vw, 110px);
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.35fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.contact-intro {
  position: sticky;
  top: 112px;
}

.contact-intro h1 {
  margin: 12px 0 18px;
  color: var(--text);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.contact-intro > p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.72;
}

.contact-account {
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.contact-form {
  padding: clamp(22px, 4vw, 38px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(18, 35, 31, 0.92), rgba(8, 20, 17, 0.96));
  box-shadow: var(--shadow-sm);
}

.contact-field-full { grid-column: 1 / -1; }
.contact-form textarea { padding: 14px 15px; resize: vertical; line-height: 1.65; }
.contact-form input { width: 100%; }

.contact-attachment input[type="file"] {
  min-height: 0;
  padding: 10px;
  color: var(--muted-strong);
  font-size: 12px;
}

.contact-attachment input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
}

.contact-attachment small {
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-submit {
  padding-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.contact-submit p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.contact-submit .btn { flex: 0 0 auto; }

.workflow-header,
.section-heading {
  max-width: 760px;
  margin: 0 0 42px;
  text-align: left;
  align-items: flex-start;
}

.workflow-title,
.section h2,
.settings-page > h1,
.legal-page > h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 740;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.workflow-title-accent { color: var(--accent); }

.workflow-header > p,
.section-heading p,
.page-intro {
  margin-top: 18px;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.72;
}

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

.workflow-card,
.pricing-card,
.tech-panel,
.architecture-node,
.policy-card,
.settings-card,
.credit-package {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(18, 35, 31, 0.88), rgba(11, 24, 21, 0.9));
  box-shadow: none;
}

.workflow-card {
  min-height: 390px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.workflow-card::after { display: none; }

.workflow-icon {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(94, 230, 181, 0.2);
  border-radius: 16px;
  background: var(--accent-soft);
}

.workflow-icon svg { width: 27px; height: 27px; }
.workflow-index { min-height: 0; color: var(--muted); font-size: 12px; letter-spacing: 0.12em; }
.workflow-card h3 { font-size: 24px; letter-spacing: -0.025em; }
.workflow-card p { color: var(--muted-strong); line-height: 1.7; }
.workflow-divider { margin-top: auto; background: var(--line); }
.workflow-link { color: var(--accent); font-size: 14px; font-weight: 850; }

.architecture-diagram {
  grid-template-columns: repeat(9, minmax(0, auto));
  gap: 8px;
  align-items: center;
}

.architecture-node { min-height: 175px; padding: 20px; }
.architecture-arrow { color: var(--accent); font-size: 18px; }
.tech-detail,
.pricing-detail { gap: 16px; }
.tech-panel,
.pricing-formula { padding: 24px; }
.pricing-formula-dark { background: linear-gradient(145deg, #152823, #0c1916); }

.pricing-card {
  min-height: 330px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.pricing-card h3 { font-size: 42px; letter-spacing: -0.045em; }
.pricing-chars { color: var(--accent); }
.pricing-card p { color: var(--muted-strong); line-height: 1.65; }

.tool-surface,
.settings-page,
.legal-page,
.email-dashboard-header,
.email-list {
  width: min(calc(100% - 48px), 1180px);
  margin-left: auto;
  margin-right: auto;
}

.tool-surface,
.settings-page,
.legal-page {
  margin-top: clamp(32px, 5vw, 68px);
  margin-bottom: clamp(52px, 8vw, 100px);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(11, 24, 21, 0.78);
  box-shadow: var(--shadow-sm);
}

.settings-page.narrow { max-width: 820px; }

.surface-header {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.surface-header h2,
.email-dashboard-header h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.04em;
}

.toolbar-row {
  flex: 0 0 auto;
  padding: 7px 8px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

input,
select,
textarea,
.email-input {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(2, 10, 8, 0.58);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input:hover,
select:hover,
textarea:hover { border-color: rgba(220, 255, 241, 0.27); }

input:focus,
select:focus,
textarea:focus,
.email-input:focus-within {
  border-color: rgba(94, 230, 181, 0.55);
  box-shadow: 0 0 0 3px rgba(94, 230, 181, 0.09);
  background: rgba(3, 14, 11, 0.8);
}

.editor {
  min-height: 260px;
  padding: 18px;
  line-height: 1.65;
  resize: vertical;
}

.editor.tall { min-height: 360px; }

.result-box,
.file-list,
.credit-history,
.account-summary {
  border-color: var(--line);
}

.result-box {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(2, 10, 8, 0.42);
}

.result-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.html-result { min-height: 180px; padding: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.html-result img { max-width: 100%; height: auto; }
.html-result a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.drop-zone {
  min-height: 190px;
  margin-bottom: 18px;
  display: grid;
  place-content: center;
  gap: 7px;
  border: 1px dashed rgba(94, 230, 181, 0.36);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone:focus-visible {
  border-color: var(--accent);
  background: rgba(94, 230, 181, 0.15);
}

.drop-zone.compact { min-height: 92px; }
.file-row { padding: 14px; border-color: var(--line); border-radius: 12px; }

.field {
  display: grid;
  gap: 8px;
}

.field > span,
.auth-label {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.settings-grid { gap: 16px; }
.settings-card { padding: 22px; }
.settings-card h2 { margin-top: 8px; font-size: 18px; }

.switch-row {
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.switch-row input { min-height: 0; accent-color: var(--accent); }

.form-error,
.form-success {
  padding: 11px 13px;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.55;
}

.form-error { border: 1px solid rgba(255, 126, 130, 0.25); background: var(--danger-soft); color: #ffc7c9; }
.form-success { border: 1px solid rgba(98, 221, 160, 0.24); background: rgba(98, 221, 160, 0.1); color: #a5efc9; }
.form-caution {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(245, 199, 107, 0.32);
  border-radius: 10px;
  background: rgba(245, 199, 107, 0.1);
  color: #ffe0a3;
  font-size: 0.88rem;
  line-height: 1.45;
}
.file-caution { grid-column: 1 / -1; margin-top: 2px; }
.caution-link {
  display: inline-flex;
  margin-left: 4px;
  color: #fff0c9;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.caution-link:hover { color: #ffffff; }
.caution-link:focus-visible {
  border-radius: 4px;
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.modal {
  padding: 24px;
  background: rgba(0, 7, 5, 0.78);
  backdrop-filter: blur(12px);
}

.modal-box {
  width: min(100%, 560px);
  max-height: min(88vh, 900px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #0d1b18;
  box-shadow: var(--shadow-lg);
}

.modal-box.wide { width: min(100%, 980px); }
.modal-header,
.modal-footer { padding: 16px 20px; }
.modal-body { padding: 20px; overflow: auto; overscroll-behavior: contain; }

.onboarding-intro { margin-bottom: 20px; text-align: center; }
.onboarding-intro h2 { margin: 7px 0 8px; font-size: clamp(22px, 3vw, 30px); }
.onboarding-intro p { max-width: 680px; margin: 0 auto; color: var(--muted); line-height: 1.6; }
.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.onboarding-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(3, 12, 10, 0.54);
}
.onboarding-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
  object-position: top;
}
.onboarding-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 18px; }
.onboarding-card h3 { margin: 0 0 9px; font-size: 17px; line-height: 1.35; }
.onboarding-card p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.onboarding-action { width: 100%; margin-top: auto; justify-content: center; text-align: center; }

.modal-box.onboarding-modal {
  display: flex;
  width: min(calc(100vw - 32px), 1380px);
  height: min(calc(100vh - 32px), 920px);
  height: min(calc(100dvh - 32px), 920px);
  max-height: none;
  flex-direction: column;
}
.onboarding-modal .modal-header { flex: 0 0 auto; }
.onboarding-modal .modal-body {
  display: flex;
  min-height: 0;
  overflow: hidden;
  flex: 1;
  flex-direction: column;
}
.onboarding-modal .onboarding-intro { flex: 0 0 auto; margin-bottom: 16px; }
.onboarding-modal .onboarding-grid { min-height: 0; flex: 1; }
.onboarding-modal .onboarding-card { min-height: 0; }
.onboarding-modal .onboarding-card img {
  height: auto;
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
  background: #ffffff;
  object-fit: contain;
}
.onboarding-modal .onboarding-card-body { min-height: 0; padding: 16px; }
.onboarding-modal .onboarding-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.auth-modal { max-width: 430px; margin: 0 auto; }
.auth-tabs { padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.18); }
.auth-tab { min-height: 40px; border-radius: 9px; }
.auth-tab.active { background: var(--panel-3); color: var(--text); }
.auth-input { width: 100%; }
.auth-submit { width: 100%; min-height: 46px; }

.email-dashboard-header {
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(11, 24, 21, 0.78);
}

.queue-summary > span { border-color: var(--line); background: rgba(255, 255, 255, 0.025); }
.email-list { padding: 18px 0 72px; }

.email-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(12, 26, 22, 0.8);
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.email-row:hover { transform: translateY(-1px); border-color: var(--line-strong); background: rgba(15, 31, 27, 0.9); }
.email-main h3 { font-size: 17px; }
.email-actions { justify-content: flex-end; }

.credit-card {
  padding: 24px;
  border-color: rgba(94, 230, 181, 0.24);
  background: linear-gradient(135deg, rgba(94, 230, 181, 0.13), rgba(121, 184, 255, 0.055));
}

.credit-card strong { color: var(--accent); font-size: clamp(28px, 5vw, 42px); letter-spacing: -0.04em; }
.credit-packages { gap: 14px; }
.credit-package { padding: 20px; }
.credit-package.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(94, 230, 181, 0.09); }
.credit-in { color: var(--success); }
.credit-out { color: var(--danger); }

.avatar {
  width: 68px;
  height: 68px;
  border: 1px solid rgba(94, 230, 181, 0.3);
  background: var(--accent-soft);
  color: var(--accent);
}

.policy-grid { gap: 16px; }
.policy-card { padding: 24px; }
.policy-card li { color: var(--muted-strong); line-height: 1.7; }

.app-footer {
  padding: 52px 24px 24px;
  border-top: 1px solid var(--line);
  background: #06100e;
}

.footer-inner,
.footer-meta {
  width: min(100%, var(--content));
  margin-inline: auto;
}

.footer-inner {
  grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(160px, 0.6fr));
  gap: 48px;
}

.footer-logo img { width: 190px; }
.footer-menu strong { color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
.footer-menu a { color: var(--muted); font-size: 14px; }
.footer-meta { display: flex; justify-content: space-between; gap: 24px; }

@media (max-width: 1080px) {
  .app-header { padding-inline: 18px; }
  .header-inner { min-height: 66px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    max-height: calc(100vh - 67px);
    overflow: auto;
    padding: 16px 18px 22px;
    display: none;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 16, 15, 0.98);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: grid; }
  .nav-links,
  .nav-actions { display: grid; gap: 4px; }
  .main-nav a { display: flex; min-height: 44px; align-items: center; }
  .main-nav a.active::after { inset: 10px auto 10px 3px; width: 2px; height: auto; }
  .nav-actions { padding-top: 12px; border-top: 1px solid var(--line); }
  .nav-actions .btn { width: 100%; }
  .user-menu summary { max-width: none; }
  .user-dropdown { position: static; margin-top: 4px; box-shadow: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 800px; }
  .preview-panel { max-width: 760px; }
  .architecture-diagram { grid-template-columns: 1fr; }
  .architecture-node { min-height: auto; }
  .architecture-arrow { transform: rotate(90deg); }
  .settings-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-page { grid-template-columns: 1fr; }
  .contact-intro { position: static; max-width: 760px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  .hero { padding: 52px 18px 72px; gap: 38px; }
  .hero h1 { font-size: clamp(39px, 12vw, 58px); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats article { min-height: 74px; }
  .preview-panel { padding: 13px; border-radius: 20px; }
  .preview-mini-grid { grid-template-columns: 1fr; }
  .onboarding-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 18px; }
  .workflow-grid,
  .doc-grid,
  .pricing-grid,
  .tech-detail,
  .pricing-detail,
  .policy-grid,
  .credit-packages { grid-template-columns: 1fr; }
  .workflow-card { min-height: 330px; }
  .tool-surface,
  .settings-page,
  .legal-page,
  .email-dashboard-header,
  .email-list { width: min(calc(100% - 28px), 1180px); }
  .tool-surface,
  .settings-page,
  .legal-page { padding: 20px; border-radius: 18px; }
  .surface-header,
  .email-dashboard-header { align-items: stretch; flex-direction: column; }
  .toolbar-row { width: 100%; justify-content: space-between; }
  .workspace-actions { align-items: stretch; flex-direction: column; }
  .workspace-actions .btn { width: 100%; }
  .email-row { grid-template-columns: 1fr; }
  .email-actions { justify-content: flex-start; }
  .modal { padding: 10px; }
  .modal-box { max-height: calc(100vh - 20px); border-radius: 17px; }
  .modal-header,
  .modal-footer,
  .modal-body { padding: 14px; }
  .onboarding-card { display: flex; }
  .onboarding-card img { height: auto; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--line); }
  .modal-box.onboarding-modal { width: calc(100vw - 12px); height: calc(100vh - 12px); height: calc(100dvh - 12px); border-radius: 14px; }
  .onboarding-modal .modal-header { padding: 10px 12px; }
  .onboarding-modal .modal-body { padding: 10px; }
  .onboarding-modal .onboarding-intro { margin-bottom: 8px; }
  .onboarding-modal .onboarding-intro .eyebrow,
  .onboarding-modal .onboarding-intro p { display: none; }
  .onboarding-modal .onboarding-intro h2 { margin: 0; font-size: 18px; }
  .onboarding-modal .onboarding-grid {
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .onboarding-modal .onboarding-card {
    display: grid;
    grid-template-columns: minmax(105px, 34%) 1fr;
  }
  .onboarding-modal .onboarding-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .onboarding-modal .onboarding-card-body { padding: 9px 10px; }
  .onboarding-modal .onboarding-card h3 { margin-bottom: 4px; font-size: 13px; }
  .onboarding-modal .onboarding-card p { margin-bottom: 7px; font-size: 11px; line-height: 1.35; -webkit-line-clamp: 2; }
  .onboarding-modal .onboarding-action { min-height: 32px; padding: 7px 9px; font-size: 11px; }
  .modal-footer .btn { flex: 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-meta { flex-direction: column; gap: 6px; }
  .account-summary { grid-template-columns: 1fr; }
  .doc-security { grid-template-columns: 1fr; gap: 12px; }
  .doc-flow-row { grid-template-columns: 1fr; gap: 6px; }
  .mermaid-output { min-width: 720px; }
  .contact-page { width: min(calc(100% - 28px), 1080px); margin-top: 34px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-field-full { grid-column: auto; }
  .contact-submit { align-items: stretch; flex-direction: column; }
  .contact-submit .btn { width: 100%; }
}

@media (max-width: 420px) {
  .brand img { height: 32px; max-width: 190px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .workflow-title,
  .section h2,
  .settings-page > h1,
  .legal-page > h1 { font-size: 34px; }
  .row-actions,
  .form-actions { width: 100%; }
  .row-actions .btn,
  .form-actions .btn { flex: 1; }
  .credit-history-row { align-items: flex-start; flex-direction: column; }
}

/* Free plan and translate-intent conversion layer */
.section-pricing {
  grid-template-columns: 1fr;
  gap: 30px;
}
.section-pricing > .section-heading {
  max-width: 720px;
  margin: 0;
}
.pricing-grid-topup {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pricing-card-topup {
  min-height: 390px;
}
.pricing-card-topup h2,
.pricing-card-topup h3 {
  margin: 20px 0 4px;
  font-size: 42px;
}
.pricing-card-topup.free-plan {
  border-color: rgba(85, 230, 226, 0.4);
  background: linear-gradient(155deg, rgba(10, 46, 55, 0.92), rgba(5, 18, 27, 0.94));
}
.pricing-features {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.45;
  list-style: none;
}
.pricing-features li {
  position: relative;
  padding-left: 20px;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent-cyan);
  font-weight: 800;
}
.translate-gate-dialog {
  width: min(540px, calc(100vw - 32px));
  overflow: hidden;
}
.translate-gate-dialog .modal-body {
  padding: 0;
}
.translate-gate {
  padding: 30px;
  background:
    radial-gradient(circle at 90% 0%, rgba(73, 167, 255, 0.14), transparent 38%),
    linear-gradient(155deg, rgba(8, 34, 44, 0.92), rgba(3, 16, 24, 0.98));
}
.translate-gate-badge {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid rgba(85, 230, 226, 0.46);
  border-radius: 999px;
  color: #92f4ef;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.translate-gate h3 {
  max-width: 420px;
  margin: 20px 0 10px;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.translate-gate-intro {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.65;
}
.translate-gate-benefits {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 14px;
  background: rgba(4, 19, 28, 0.72);
  list-style: none;
}
.translate-gate-benefits li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--color-text-primary);
  font-size: 14px;
}
.translate-gate-benefits span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(85, 230, 226, 0.12);
  color: var(--color-accent-cyan);
  font-size: 12px;
}
.translate-gate-primary {
  width: 100%;
  min-height: 50px;
}
.translate-gate-signin,
.translate-gate-note {
  text-align: center;
}
.translate-gate-signin {
  margin: 18px 0 0;
  color: var(--color-text-secondary);
  font-size: 14px;
}
.translate-gate-signin button {
  padding: 2px;
  border: 0;
  background: transparent;
  color: var(--color-accent-cyan);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.translate-gate-signin button:focus-visible {
  outline: 2px solid var(--color-accent-cyan);
  outline-offset: 3px;
  border-radius: 3px;
}
.translate-gate-note {
  margin: 10px 0 0;
  color: var(--color-text-tertiary);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .pricing-grid-topup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .pricing-grid-topup { grid-template-columns: 1fr; }
  .pricing-card-topup { min-height: 350px; }
  .translate-gate { padding: 24px 20px; }
  .translate-gate-benefits { padding: 16px; }
}

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

/* =========================================================
   Zero-Touch AI — dark-tech SaaS design system
   Presentation-only overrides; routes and business logic stay unchanged.
   ========================================================= */
:root {
  --color-bg-primary: #020b12;
  --color-bg-secondary: #06131d;
  --color-bg-tertiary: #091a25;
  --color-surface-1: rgba(10, 28, 40, 0.72);
  --color-surface-2: rgba(13, 35, 48, 0.88);
  --color-surface-hover: rgba(19, 48, 64, 0.92);
  --color-border-subtle: rgba(148, 190, 207, 0.14);
  --color-border-default: rgba(148, 210, 222, 0.22);
  --color-border-active: rgba(79, 224, 218, 0.62);
  --color-text-primary: #f4f8fa;
  --color-text-secondary: #a8bac4;
  --color-text-tertiary: #718791;
  --color-text-disabled: #4d626c;
  --color-accent-cyan: #55e6e2;
  --color-accent-teal: #1ec7b7;
  --color-accent-blue: #49a7ff;
  --color-accent-violet: #9c7cff;
  --color-success: #39d98a;
  --color-warning: #f9c74f;
  --color-error: #ff6b7a;
  --gradient-primary: linear-gradient(110deg, #55e6e2 0%, #49a7ff 52%, #9c7cff 100%);
  --gradient-button: linear-gradient(110deg, #75f0eb 0%, #5bc2ff 100%);
  --shadow-card: 0 18px 60px rgba(0, 0, 0, 0.24);
  --shadow-accent: 0 0 32px rgba(61, 221, 216, 0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --bg: var(--color-bg-primary);
  --panel: var(--color-surface-1);
  --panel-2: var(--color-surface-2);
  --line: var(--color-border-subtle);
  --line-strong: var(--color-border-default);
  --text: var(--color-text-primary);
  --muted: var(--color-text-secondary);
  --muted-strong: #bfd0d8;
  --accent: var(--color-accent-cyan);
  --accent-2: var(--color-accent-blue);
  --danger: var(--color-error);
  --success: var(--color-success);
  --warning: var(--color-warning);
  font-family: Inter, Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { background: var(--color-bg-primary); }

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(21, 211, 196, 0.13), transparent 28%),
    radial-gradient(circle at 52% 28%, rgba(47, 123, 255, 0.07), transparent 34%),
    var(--color-bg-primary);
  color: var(--color-text-primary);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(85, 230, 226, 0.28); color: #fff; }

h1, h2, h3, h4, strong { text-wrap: balance; }
p { color: var(--color-text-secondary); }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="tab"]:focus-visible {
  outline: 3px solid rgba(85, 230, 226, 0.82);
  outline-offset: 3px;
}

.gradient-text {
  color: var(--color-accent-cyan);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow,
.workflow-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 7px 14px;
  border: 1px solid rgba(85, 230, 226, 0.55);
  border-radius: 999px;
  background: rgba(15, 92, 101, 0.12);
  color: #8df2ee;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before,
.workflow-kicker::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
}

.btn,
.nav-register {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--color-border-default);
  border-radius: 10px;
  background: rgba(8, 25, 36, 0.78);
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn:hover:not(:disabled),
.nav-register:hover {
  transform: translateY(-2px);
  border-color: rgba(85, 230, 226, 0.5);
  background: var(--color-surface-hover);
}

.btn.primary,
.nav-register {
  border-color: transparent;
  background: var(--gradient-button);
  box-shadow: 0 10px 30px rgba(73, 167, 255, 0.17), 0 0 24px rgba(85, 230, 226, 0.12);
  color: #021017 !important;
}

.btn.primary:hover:not(:disabled),
.nav-register:hover { box-shadow: 0 14px 34px rgba(73, 167, 255, 0.24), 0 0 30px rgba(85, 230, 226, 0.17); }
.btn:disabled { color: var(--color-text-disabled); opacity: 0.62; }

input,
select,
textarea,
.email-input,
.editor {
  border-color: var(--color-border-default);
  border-radius: 10px;
  background: rgba(3, 15, 23, 0.82);
  color: var(--color-text-primary);
}

input:hover,
select:hover,
textarea:hover { border-color: rgba(85, 230, 226, 0.4); }

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid var(--color-border-subtle);
  background: rgba(2, 11, 18, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100%, var(--container));
  min-height: 72px;
  margin: 0 auto;
  gap: 28px;
}

.brand { flex: 0 0 auto; }
.brand img { width: auto; height: 46px; max-width: 184px; object-fit: contain; }
.main-nav { flex: 1; justify-content: space-between; gap: 18px; }
.nav-links { gap: 3px; justify-content: center; }
.nav-actions { gap: 10px; }

.main-nav a {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 650;
}

.main-nav a:hover { color: var(--color-text-primary); background: rgba(85, 230, 226, 0.06); }
.main-nav a.active { color: #a4fffb; background: linear-gradient(180deg, rgba(85, 230, 226, 0.15), rgba(73, 167, 255, 0.06)); }
.main-nav a.active::after { inset: auto 10px 2px; height: 2px; background: var(--gradient-primary); }
.main-nav .nav-register { padding-inline: 15px; }
.nav-login { border: 1px solid transparent; }
.user-name { min-height: 42px; border-radius: 10px; }
.user-avatar { border-color: rgba(85, 230, 226, 0.62); background: rgba(12, 62, 72, 0.72); color: #91f5ef; }
.user-dropdown { border-color: var(--color-border-default); background: rgba(5, 20, 29, 0.98); }
.nav-toggle { z-index: 53; border-color: var(--color-border-default); background: rgba(6, 25, 35, 0.9); }
.nav-toggle span { width: 22px; background: var(--color-text-primary); }
.nav-backdrop { display: none; }

/* Homepage hero */
.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: 610px;
  margin: 0 auto;
  padding: 96px max(32px, calc((100vw - var(--container)) / 2 - 200px)) 112px;
  grid-template-columns: minmax(590px, 10fr) minmax(900px, 1.12fr);
  /* padding: 96px max(32px, calc((100vw - var(--container)) / 2 - 200px)) 112px;
  grid-template-columns: minmax(590px, 10fr) minmax(800px, 1.12fr); */
  gap: clamp(48px, 6vw, 88px);
  background:
    linear-gradient(90deg, rgba(2, 11, 18, 0.9) 0%, rgba(2, 11, 18, 0.62) 48%, rgba(2, 11, 18, 0.34) 100%),
    url("/static/assets/hero-tech-background.png") center / cover no-repeat;
}

.hero::before {
  display: block;
  z-index: -1;
  inset: 6% 0 -8% 38%;
  background:
    radial-gradient(circle at 76% 48%, rgba(30, 199, 183, 0.22), transparent 35%),
    radial-gradient(circle at 40% 72%, rgba(73, 167, 255, 0.14), transparent 38%);
  filter: blur(3px);
}
.hero::after { display: none; }
.hero-copy { gap: 22px; align-content: center; }
.hero h1 { margin: 0; max-width: 620px; font-size: clamp(48px, 5vw, 64px); line-height: 1.03; letter-spacing: -0.055em; }
.hero h1 > span { display: block; }
.hero-copy > p { max-width: 620px; color: #b9cad2; font-size: 18px; line-height: 1.65; }
.hero-actions { margin-top: 8px; gap: 14px; }
.hero-actions .btn { min-height: 50px; padding-inline: 22px; font-size: 15px; }

.hero-stats {
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 0;
}

.hero-stats article {
  min-height: 64px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-right: 1px solid var(--color-border-subtle);
  border-radius: 0;
  background: transparent;
}
.hero-stats article:last-child { border-right: 0; }
.hero-stats article > div { display: grid; gap: 2px; }
.hero-stats strong { font-size: 23px; color: #fff; line-height: 1.1; }
.hero-stats span:not(.stat-icon) { font-size: 12px; color: var(--color-text-secondary); line-height: 1.35; }
.stat-icon,
.preview-tab-icon,
.architecture-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(85, 230, 226, 0.2);
  border-radius: 11px;
  background: rgba(8, 41, 53, 0.75);
  color: var(--color-accent-cyan);
}
.stat-icon svg,
.preview-tab-icon svg,
.architecture-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.preview-panel {
  position: relative;
  align-self: center;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(85, 230, 226, 0.3);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(10, 30, 42, 0.89), rgba(3, 14, 22, 0.94));
  box-shadow: var(--shadow-card), var(--shadow-accent);
}
.preview-panel::before { inset: auto -25% -48% 32%; height: 68%; pointer-events: none; background: radial-gradient(circle, rgba(30, 199, 183, 0.2), transparent 68%); }
.panel-title { min-height: 38px; margin-bottom: 12px; color: #fff; font-size: 14px; }
.panel-title .badge { padding: 7px 11px; border-color: var(--color-border-default); background: rgba(4, 17, 25, 0.72); color: var(--color-text-secondary); font-size: 12px; }
.sample-carousel { position: relative; overflow: hidden; aspect-ratio: 1.75 / 1; border: 1px solid var(--color-border-default); border-radius: 14px; background: #0a1923; }
.sample-clickable-wide { width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: transparent; color: inherit; }
.sample-clickable-wide img { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: top center; }

.preview-mini-grid { margin-top: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.preview-mini-grid button {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 1px 10px;
  min-width: 0;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  background: rgba(10, 28, 40, 0.64);
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms var(--ease-out);
}
.preview-mini-grid button:hover,
.preview-mini-grid button.active { border-color: rgba(85, 230, 226, 0.38); background: rgba(15, 42, 55, 0.9); }
.preview-mini-grid button.active { box-shadow: inset 0 2px 0 rgba(85, 230, 226, 0.7); }
.preview-mini-grid .preview-tab-icon { grid-row: 1 / 3; }
.preview-mini-grid strong { align-self: end; font-size: 14px; }
.preview-mini-grid p { overflow: hidden; color: var(--color-text-secondary); font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }

/* Homepage sections */
.section {
  width: 100%;
  max-width: none;
  padding: 112px max(32px, calc((100vw - var(--container)) / 2 - 120px));
  border-top: 1px solid var(--color-border-subtle);
  background: rgba(2, 11, 18, 0.44);
}
.section:nth-of-type(even) { background: linear-gradient(180deg, rgba(5, 18, 27, 0.56), rgba(2, 11, 18, 0.28)); }
.workflow-header,
.section-heading { max-width: 650px; margin: 0 0 48px; text-align: left; }
.section-workflows .workflow-header { margin: 0 auto 48px; text-align: center; }
.section-workflows .workflow-header > p { margin-inline: auto; }
.workflow-title,
.section-heading h1,
.section-heading h2 { margin: 14px 0 12px; color: var(--color-text-primary); font-size: clamp(34px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.04em; }
.workflow-header > p,
.section-heading > p { max-width: 620px; color: var(--color-text-secondary); font-size: 16px; line-height: 1.65; }
.workflow-title-accent { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.workflow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 20px; }
.workflow-card {
  min-height: 390px;
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-subtle);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(9, 28, 40, 0.78), rgba(5, 18, 27, 0.8));
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease-out), border-color 220ms ease, background 220ms ease;
}
.workflow-card:hover { transform: translateY(-4px); border-color: rgba(85, 230, 226, 0.38); background: var(--color-surface-hover); }
.workflow-card::after { display: none; }
.workflow-icon { width: 48px; height: 48px; border: 0; border-radius: 13px; background: var(--gradient-primary); box-shadow: 0 10px 30px rgba(73, 167, 255, 0.2); color: #041119; }
.workflow-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }
.workflow-index { margin-top: 20px; color: var(--color-text-tertiary); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.workflow-card h3 { margin: 10px 0 14px; font-size: 22px; line-height: 1.3; }
.workflow-card p { color: var(--color-text-secondary); font-size: 15px; line-height: 1.65; }
.workflow-divider { margin-top: auto; border-color: var(--color-border-subtle); }
.workflow-link { margin-top: 20px; color: var(--color-accent-cyan); font-size: 14px; font-weight: 700; }

.section-tech { display: grid; grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.architecture-heading { position: sticky; top: 112px; margin: 22px 0 0; }
.architecture-diagram { display: grid; grid-template-columns: repeat(9, minmax(20px, auto)); gap: 10px; align-items: center; }
.architecture-node { align-self: stretch; min-width: 0; min-height: 260px; height: 100%; padding: 20px 16px; display: flex; flex-direction: column; border: 1px solid var(--color-border-subtle); border-radius: 14px; background: linear-gradient(150deg, rgba(10, 31, 44, 0.88), rgba(5, 18, 27, 0.9)); }
.architecture-icon { width: 44px; height: 44px; margin-bottom: 20px; border-color: rgba(85, 230, 226, 0.25); background: linear-gradient(145deg, rgba(16, 91, 103, 0.78), rgba(25, 70, 116, 0.62)); }
.architecture-node .badge { width: fit-content; padding: 0; border: 0; background: transparent; color: #8edbdc; font-size: 12px; }
.architecture-node h3 { margin: 7px 0 12px; font-size: 18px; }
.architecture-node p { color: var(--color-text-secondary); font-size: 13px; line-height: 1.55; }
.architecture-arrow { color: rgba(85, 230, 226, 0.75); font-size: 20px; }
.tech-detail { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 2px; }
.tech-panel { min-height: 146px; padding: 22px 24px 22px 24px; border: 1px solid var(--color-border-subtle); border-radius: 14px; background: rgba(9, 28, 40, 0.62); }
.tech-panel { position: relative; }
.tech-panel h3 { margin-bottom: 6px; font-size: 17px; }
.tech-panel p { font-size: 14px; line-height: 1.6; }

.section-pricing { display: grid; grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.section-pricing > .section-heading { margin-top: 20px; }
.pricing-grid-topup { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pricing-card-topup { position: relative; min-height: 330px; padding: 26px 22px 22px; display: flex; flex-direction: column; overflow: visible; border: 1px solid var(--color-border-default); border-radius: 16px; background: linear-gradient(155deg, rgba(10, 31, 44, 0.9), rgba(5, 18, 27, 0.92)); box-shadow: var(--shadow-card); transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease; }
.pricing-card-topup.featured { transform: translateY(-7px); border-color: rgba(85, 230, 226, 0.72); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28), 0 0 32px rgba(73, 167, 255, 0.13); }
@media (hover: hover) and (pointer: fine) {
  .pricing-grid-topup:has(.pricing-card-topup:hover) .pricing-card-topup.featured:not(:hover) {
    transform: none;
    border-color: var(--color-border-default);
    box-shadow: var(--shadow-card);
  }
  .pricing-card-topup:hover {
    z-index: 2;
    transform: translateY(-7px);
    border-color: rgba(85, 230, 226, 0.72);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28), 0 0 32px rgba(73, 167, 255, 0.13);
  }
}
.pricing-grid-topup:has(.pricing-card-topup:focus-within) .pricing-card-topup.featured:not(:focus-within) {
  transform: none;
  border-color: var(--color-border-default);
  box-shadow: var(--shadow-card);
}
.pricing-card-topup:focus-within {
  z-index: 2;
  transform: translateY(-7px);
  border-color: rgba(85, 230, 226, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28), 0 0 32px rgba(73, 167, 255, 0.13);
}
.popular-badge { position: absolute; top: 0; right: 0; max-width: calc(100% - 28px); padding: 8px 15px; border-radius: 0 15px 0 12px; background: linear-gradient(110deg, rgba(30, 199, 183, 0.92), rgba(73, 167, 255, 0.84)); color: #021017; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pricing-card-topup > .badge { width: fit-content; padding: 0; border: 0; background: transparent; color: #76e9e7; font-size: 13px; }
.pricing-card-topup h3 { margin: 20px 0 4px; font-size: 42px; }
.pricing-chars { color: #8df2ee; font-size: 16px; }
.pricing-card-topup p { margin: 12px 0 20px; color: var(--color-text-secondary); font-size: 14px; line-height: 1.6; }
.pricing-cta { width: fit-content; margin-top: auto; }
.pricing-card-topup.featured .pricing-cta { border-color: transparent; background: var(--gradient-button); color: #021017; }
.pricing-detail { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pricing-formula { min-height: 152px; padding: 24px; border: 1px solid var(--color-border-subtle); border-radius: 14px; background: rgba(9, 28, 40, 0.62); }
.pricing-formula h3 { font-size: 17px; }
.pricing-formula p { font-size: 14px; line-height: 1.6; }

/* Shared application surfaces */
.tool-surface,
.settings-page,
.legal-page,
.contact-form,
.contact-card,
.doc-hero,
.doc-card,
.doc-mermaid,
.email-dashboard-header,
.email-row,
.modal-box,
.account-summary > article,
.credit-card,
.pricing-card:not(.pricing-card-topup) {
  border-color: var(--color-border-default);
  background: linear-gradient(150deg, rgba(10, 28, 40, 0.82), rgba(4, 17, 26, 0.88));
  box-shadow: var(--shadow-card);
}

.tool-surface,
.settings-page,
.legal-page,
.contact-page,
.doc-page,
.email-dashboard-header,
.email-list,
.profile-page {
  width: min(calc(100% - 64px), var(--container));
}

.tool-surface,
.settings-page,
.legal-page { margin-block: 64px 96px; padding: clamp(24px, 4vw, 48px); border-radius: 20px; }
.surface-header h1,
.settings-page > h1,
.legal-page > h1,
.contact-intro h1,
.doc-hero h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.045em; }
.settings-card,
.contact-form,
.doc-card,
.email-row,
.credit-card { border-radius: 16px; }
.drop-zone { border-color: rgba(85, 230, 226, 0.3); background: rgba(4, 20, 29, 0.6); }
.drop-zone:hover,
.drop-zone:focus-visible { border-color: var(--color-border-active); background: rgba(11, 43, 55, 0.78); }
.form-error { color: #ff9aa6; }
.form-success { color: #80eeb0; }
.form-caution { border-color: rgba(249, 199, 79, 0.35); background: rgba(79, 57, 8, 0.25); color: #ffe8a5; }
.badge { border-color: var(--color-border-default); background: rgba(8, 35, 47, 0.72); }
.tabs button.active { border-color: var(--color-border-active); background: rgba(25, 88, 101, 0.5); color: #b8fffb; }
.modal { background: rgba(0, 7, 12, 0.8); backdrop-filter: blur(8px); }
.modal-box { border-radius: 20px; }
.html-result { background: rgba(2, 13, 20, 0.78); }

/* Footer */
.app-footer { border-top: 1px solid var(--color-border-subtle); background: rgba(1, 8, 13, 0.94); }
.footer-inner { width: min(100%, var(--container)); padding: 56px 32px 36px; grid-template-columns: minmax(200px, 1fr) minmax(130px, 0.55fr) minmax(130px, 0.55fr) minmax(250px, 0.2fr); gap: 48px; }
.footer-logo img { height: 84px; width: auto; }
.footer-brand p { max-width: 360px; margin-top: 16px; color: var(--color-text-secondary); font-size: 14px; }
.footer-menu { gap: 10px; }
.footer-menu strong { margin-bottom: 4px; color: var(--color-text-primary); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-menu a { color: var(--color-text-secondary); font-size: 14px; }
.footer-menu a:hover { color: var(--color-accent-cyan); }
.footer-status {     justify-content: center; display: flex; align-items: center; min-height: 86px; padding: 18px; border: 1px solid var(--color-border-default); border-radius: 14px; background: rgba(8, 28, 39, 0.68); }
.footer-status strong { font-size: 14px; line-height: 1.5; }
.footer-meta { width: min(100%, var(--container)); padding: 18px 32px 28px; border-top: 1px solid var(--color-border-subtle); color: var(--color-text-tertiary); font-size: 13px; }
.sample-zoom-dialog { width: min(1100px, calc(100vw - 32px)); }
.sample-zoom-dialog .modal-body { display: grid; place-items: center; max-height: calc(100dvh - 150px); overflow: auto; background: var(--color-bg-primary); }

.seo-faq {
  /* width: min(calc(100% - 40px), 980px); */
  margin-inline: auto;
}

.seo-faq-list {
  display: grid;
  gap: 12px;
}

.seo-faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9, 25, 22, 0.72);
  overflow: hidden;
}

.seo-faq-item summary {
  padding: 18px 52px 18px 20px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
  position: relative;
}

.seo-faq-item summary::-webkit-details-marker { display: none; }

.seo-faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 24px;
  font-weight: 500;
}

.seo-faq-item[open] summary::after { content: "−"; }

.seo-faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.7;
}
.sample-zoom-dialog img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 190px); object-fit: contain; }

@media (max-width: 1180px) {
  .app-header { padding-inline: 24px; }
  .header-inner { gap: 18px; }
  .main-nav a { padding-inline: 9px; font-size: 13px; }
  .hero { grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr); padding-inline: 24px; gap: 42px; }
  .section { padding-inline: 24px; }
  .section-tech,
  .section-pricing { grid-template-columns: 1fr; gap: 28px; }
  .architecture-heading { position: static; margin: 0 0 8px; }
  .section-pricing > .section-heading { margin: 0 0 8px; }
}

@media (max-width: 1023px) {
  .app-header { min-height: 68px; padding-inline: 24px; }
  .header-inner { min-height: 68px; }
  .nav-toggle { display: grid; place-content: center; }
  .main-nav {
    position: fixed;
    z-index: 52;
    inset: 68px 16px auto;
    display: none;
    width: auto;
    max-height: calc(100dvh - 88px);
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--color-border-default);
    border-radius: 16px;
    background: rgba(3, 15, 23, 0.98);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  }
  .main-nav.open { display: grid; gap: 12px; }
  .nav-links,
  .nav-actions { display: grid; gap: 6px; }
  .main-nav a { min-height: 46px; padding: 11px 14px; font-size: 15px; }
  .main-nav a.active::after { inset: 11px auto 11px 3px; width: 2px; height: auto; }
  .nav-actions { padding-top: 14px; border-top: 1px solid var(--color-border-subtle); }
  .nav-actions .btn { width: 100%; }
  .nav-backdrop { position: fixed; z-index: 49; inset: 68px 0 0; display: block; width: 100%; border: 0; background: rgba(0, 7, 12, 0.72); backdrop-filter: blur(4px); }
  .user-menu summary { max-width: none; }
  .user-dropdown { position: static; margin-top: 5px; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
  .hero { grid-template-columns: 1fr; gap: 48px; min-height: auto; padding: 80px 24px 96px; }
  .hero-copy { max-width: 760px; }
  .preview-panel { width: min(100%, 800px); }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-card:last-child { grid-column: 1 / -1; }
  .architecture-diagram { grid-template-columns: repeat(9, minmax(20px, auto)); overflow-x: auto; padding-bottom: 12px; }
  .architecture-node { min-width: 150px; }
  .pricing-grid-topup { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1.2fr 0.7fr 0.7fr; }
  .footer-status { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .app-header { padding-inline: 16px; }
  .brand img { height: 40px; max-width: 170px; }
  .main-nav {
    inset: 68px 12px auto;
    max-height: calc(100dvh - 80px);
    padding: 12px;
    border-radius: 14px;
  }
  .main-nav.open { gap: 10px; }
  .nav-links,
  .nav-actions { gap: 2px; }
  .main-nav a { min-height: 42px; padding: 8px 12px; }
  .nav-actions { padding-top: 10px; }
  .hero { padding: 64px 16px 72px; gap: 40px; background-position: center, 64% center; }
  .hero h1 { font-size: clamp(40px, 12vw, 50px); line-height: 1.08; }
  .hero-copy > p { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--color-border-subtle);
    border-radius: 18px;
    background: rgba(8, 41, 53, 0.72);
  }
  .hero-stats article {
    min-height: 76px;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border-subtle);
  }
  .hero-stats article:last-child { border-bottom: 0; }
  .hero::before,
  .preview-panel::before { right: 0; }
  .preview-panel { overflow: hidden; padding: 14px; }
  .panel-title { align-items: flex-start; flex-direction: column; gap: 8px; }
  .sample-carousel { aspect-ratio: auto; }
  .preview-mini-grid { grid-template-columns: 1fr; }
  .preview-mini-grid button { min-height: 70px; }
  .section { padding: 72px 16px; }
  .workflow-header,
  .section-heading { margin-bottom: 36px; }
  .workflow-title,
  .section-heading h2 { font-size: 36px; }
  .workflow-grid,
  .tech-detail,
  .pricing-grid-topup,
  .pricing-detail { grid-template-columns: 1fr; }
  .workflow-card,
  .workflow-card:last-child { grid-column: auto; min-height: 340px; padding: 26px; }
  .architecture-diagram { position: relative; display: grid; grid-template-columns: 1fr; gap: 14px; overflow: visible; padding-left: 28px; }
  .architecture-diagram::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: 18px; width: 1px; background: linear-gradient(var(--color-accent-cyan), rgba(73, 167, 255, 0.2)); }
  .architecture-node { min-width: 0; min-height: auto; padding: 22px; }
  .architecture-arrow { position: relative; left: -26px; display: grid; width: 13px; height: 13px; place-items: center; color: var(--color-accent-cyan); font-size: 0; transform: none; }
  .architecture-arrow::after { content: ""; display: block; width: 13px; height: 13px; border: 3px solid var(--color-bg-primary); border-radius: 50%; background: var(--color-accent-cyan); }
  .pricing-card-topup.featured { transform: none; }
  .popular-badge { max-width: calc(100% - 24px); }
  .tool-surface,
  .settings-page,
  .legal-page,
  .contact-page,
  .doc-page,
  .email-dashboard-header,
  .email-list,
  .profile-page { width: min(calc(100% - 40px), var(--container)); }
  .footer-inner { padding: 48px 20px 30px; grid-template-columns: 1fr; gap: 30px; }
  .footer-status { grid-column: auto; }
  .footer-meta { padding: 18px 20px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .workflow-card:hover,
  .btn:hover:not(:disabled),
  .nav-register:hover { transform: none; }
}

/* Pricing alignment override: keep all four plans on one desktop row. */
@media (min-width: 1181px) {
  .section-pricing {
    grid-template-columns: minmax(250px, 0.29fr) minmax(0, 1fr);
    gap: 38px;
  }

  .pricing-grid-topup {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .pricing-card-topup {
    min-width: 0;
    min-height: 420px;
    padding: 22px 18px 20px;
  }

  .pricing-card-topup h2,
  .pricing-card-topup h3 {
    margin: 16px 0 4px;
    font-size: 36px;
  }

  .pricing-chars { font-size: 14px; }
  .pricing-card-topup p { margin: 10px 0 16px; font-size: 13px; }
  .pricing-features { gap: 6px; margin-bottom: 16px; font-size: 12px; }
  .pricing-cta { padding-inline: 15px; font-size: 13px; }
}

@media (min-width: 768px) and (max-width: 1180px) {
  .pricing-grid-topup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .pricing-grid-topup { grid-template-columns: 1fr; }
}

.hero-cta-trust {
  display: grid;
  gap: 5px;
  align-self: center;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
}

.hero-cta-trust > span > span {
  color: var(--color-accent-cyan);
  font-weight: 800;
}

@media (max-width: 767px) {
  .hero-cta-trust {
    align-self: flex-start;
    white-space: normal;
  }
}
