/* MindFrame - base visual e institucional */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  --bg: #0f1117;
  --bg-soft: #131720;
  --surface: #181d27;
  --surface-strong: #202735;
  --text: #f4f7fb;
  --muted: #a9b4c3;
  --primary: #5da9ff;
  --primary-strong: #2f7ed8;
  --accent: #55d6a7;
  --warning: #f4b860;
  --danger: #ff6b6b;
  --border: #2b3444;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --container: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(93, 169, 255, 0.07), transparent 420px),
    var(--bg);
  color: var(--text);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.site-shell {
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 17, 23, 0.9);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand-link,
.logo-area-v7 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.brand-logo,
.logotipo-site {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-name,
.logo-text-v7 {
  font-size: 1.1rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--primary);
}

.nav-login-link {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.btn,
.btn-cta-v7,
.btn-secondary-v7 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.btn:hover,
.btn-cta-v7:hover,
.btn-secondary-v7:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.btn-primary,
.btn-cta-v7 {
  background: var(--primary);
  color: #07101f;
  box-shadow: 0 10px 28px rgba(93, 169, 255, 0.24);
}

.btn-primary:hover,
.btn-cta-v7:hover {
  background: #7bbaff;
}

.btn-secondary,
.btn-secondary-v7 {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover,
.btn-secondary-v7:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-link {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: underline;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 56px;
  padding: 82px 0 54px;
}

.eyebrow,
.tagline-v7 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 640px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.proof-item {
  border-left: 2px solid var(--primary);
  padding-left: 14px;
}

.proof-item strong {
  display: block;
  color: var(--text);
  font-size: 1.4rem;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.code-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.code-panel-header {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
}

.code-dot:nth-child(2) {
  background: var(--warning);
}

.code-dot:nth-child(3) {
  background: var(--accent);
}

.code-panel pre {
  overflow-x: auto;
  padding: 24px;
  color: #d7e9ff;
  font: 600 0.95rem/1.8 "Consolas", monospace;
}

.token-key {
  color: var(--primary);
}

.token-value {
  color: var(--accent);
}

.section {
  padding: 92px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-header {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-title-v7,
.section-header h2,
.form-title {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-header p,
.form-intro,
.muted {
  color: var(--muted);
  margin-top: 14px;
}

.about-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.profile-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.profile-frame img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
}

.bio-card {
  display: grid;
  gap: 18px;
}

.badge {
  width: fit-content;
  border: 1px solid rgba(85, 214, 167, 0.4);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.social-links a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
  text-decoration: none;
}

.social-links a:hover {
  border-color: var(--primary);
  background: rgba(93, 169, 255, 0.08);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 22px;
}

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

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

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

.service-card,
.tech-card,
.feedback-card,
.process-step,
.security-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
}

.service-card i,
.tech-card i,
.security-card i {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.service-card h3,
.tech-card h3,
.security-card h3,
.process-step h3,
.feedback-card h3 {
  color: var(--text);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p,
.tech-card p,
.security-card p,
.process-step p,
.feedback-card p {
  color: var(--muted);
}

.tech-card {
  text-align: center;
}

.tech-card i {
  display: block;
  margin-inline: auto;
}

.process-number {
  display: block;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 14px;
}

.stars {
  color: var(--warning);
  margin-bottom: 14px;
}

.feedback-meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.form-section {
  background: var(--bg-soft);
}

.form-card {
  width: min(100%, 760px);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label,
.checkbox-row {
  color: var(--text);
  font-weight: 700;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #10141c;
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

.form-row select {
  color-scheme: dark;
}

.form-row select option {
  background: #10141c;
  color: var(--text);
}

.form-row select option:disabled {
  color: var(--muted);
}

.form-row textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(93, 169, 255, 0.12);
}

.form-row input.error,
.form-row select.error,
.form-row textarea.error {
  border-color: var(--danger);
}

.field-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 0.84rem;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.form-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.form-status.error {
  color: var(--danger);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.confirmation-message {
  display: none;
  text-align: center;
}

.confirmation-message.active {
  display: grid;
  place-items: center;
  gap: 18px;
}

.confirmation-logo {
  width: 96px;
  margin: 0 auto;
}

.footer-cta {
  padding: 76px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0d12;
  text-align: center;
}

.footer-cta h2 {
  max-width: 780px;
  margin: 0 auto 22px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 26px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  width: min(100%, 420px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.modal-icon {
  color: var(--accent);
  font-size: 3rem;
  margin-bottom: 14px;
}

.legal-content {
  width: min(100% - 32px, 900px);
  margin: 0 auto;
  padding: 70px 0;
}

.legal-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.legal-content h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0 20px;
}

.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.js-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Home pública: estética inspirada em interfaces AI elegantes */
.marketing-page {
  --marketing-bg: #05060a;
  --marketing-ink: #f8f7ff;
  --marketing-muted: #b8bccd;
  --marketing-panel: rgba(31, 35, 55, 0.74);
  --marketing-panel-strong: rgba(52, 58, 90, 0.62);
  --marketing-line: rgba(255, 255, 255, 0.14);
  --marketing-violet: #9d8cff;
  --marketing-blue: #77a7d8;
  --marketing-aqua: #8bd0cb;
  --marketing-rose: #d9a6c2;
  background:
    linear-gradient(180deg, #11131e 0, var(--marketing-bg) 470px),
    var(--marketing-bg);
  color: var(--marketing-ink);
  overflow-x: hidden;
}

.marketing-page .site-shell {
  overflow: hidden;
}

.ambient-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 32%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1.4px);
  background-size: 18px 18px;
  background-position: 0 0;
  mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 58%, transparent 92%);
  opacity: 0.28;
}

.ambient-band {
  position: absolute;
  left: -16vw;
  width: 132vw;
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.72;
  will-change: transform;
}

.ambient-band-a {
  top: 76px;
  height: 240px;
  background:
    linear-gradient(102deg, transparent 0%, rgba(120, 92, 210, 0.54) 22%, rgba(91, 128, 189, 0.42) 48%, transparent 76%);
  transform: rotate(-5deg);
}

.ambient-band-b {
  top: 138px;
  height: 220px;
  background:
    linear-gradient(96deg, transparent 8%, rgba(72, 113, 180, 0.28) 26%, rgba(129, 205, 202, 0.46) 58%, rgba(154, 113, 201, 0.3) 86%, transparent 100%);
  transform: rotate(4deg);
}

.ambient-band-c {
  top: 224px;
  height: 170px;
  background:
    linear-gradient(90deg, transparent 4%, rgba(66, 91, 166, 0.32) 28%, rgba(28, 41, 71, 0.42) 50%, rgba(130, 103, 190, 0.24) 78%, transparent 100%);
  transform: rotate(-2deg);
}

.marketing-page .site-shell,
.marketing-page > header,
.marketing-page > main,
.marketing-page > footer,
.marketing-page .site-header {
  position: relative;
  z-index: 1;
}

.marketing-page .site-header {
  z-index: 50;
}

.marketing-page .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 10, 0.68);
  backdrop-filter: blur(24px);
}

.marketing-page .brand-link {
  font-weight: 900;
}

.marketing-page .brand-name {
  color: var(--marketing-ink);
}

.marketing-page .site-nav a {
  color: rgba(248, 247, 255, 0.72);
}

.marketing-page .site-nav a:hover,
.marketing-page .site-nav a:focus-visible {
  color: #ffffff;
}

.marketing-page .btn {
  min-height: 44px;
  border-radius: 999px;
  letter-spacing: 0;
}

.marketing-page .btn-primary {
  background: #f6f5f1;
  color: #171821;
  box-shadow: 0 18px 40px rgba(245, 243, 236, 0.14);
}

.marketing-page .btn-primary:hover {
  background: #ffffff;
}

.marketing-page .btn-secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(248, 247, 255, 0.88);
}

.marketing-page .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.marketing-page .marketing-hero {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: calc(100vh - 76px);
  padding: 84px 0 70px;
  overflow: hidden;
  background: transparent;
}

.marketing-page .marketing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1.4px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 44%);
  background-position:
    center 8px,
    center top;
  background-size:
    18px 18px,
    100% 100%;
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 64%, transparent 94%);
  opacity: 0.42;
}

.marketing-page .marketing-hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  top: 58px;
  z-index: -2;
  height: 360px;
  background:
    linear-gradient(
      102deg,
      transparent 0%,
      rgba(118, 101, 206, 0.34) 17%,
      rgba(93, 128, 186, 0.3) 38%,
      rgba(115, 184, 190, 0.24) 60%,
      rgba(148, 112, 197, 0.32) 82%,
      transparent 100%
    );
  filter: blur(34px);
  transform: skewY(-5deg);
  opacity: 0.92;
}

.marketing-page .hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: 52px;
}

.marketing-page .hero-copy {
  padding-top: 26px;
}

.marketing-page .eyebrow {
  color: rgba(248, 247, 255, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.marketing-page .hero h1 {
  max-width: 640px;
  margin-top: 18px;
  color: var(--marketing-ink);
  font-size: 5.1rem;
  line-height: 0.94;
  letter-spacing: 0;
}

.marketing-page .hero h1::after {
  content: "Software claro, seguro e feito para evoluir.";
  display: block;
  max-width: 520px;
  margin-top: 16px;
  color: rgba(248, 247, 255, 0.62);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
}

.marketing-page .hero-lead {
  max-width: 590px;
  color: var(--marketing-muted);
  font-size: 1.08rem;
}

.marketing-page .prompt-showcase {
  position: relative;
}

.marketing-page .prompt-card {
  position: relative;
  min-height: 280px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(79, 70, 116, 0.72), rgba(33, 45, 72, 0.82) 54%, rgba(24, 27, 43, 0.88)),
    var(--marketing-panel);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.marketing-page .prompt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.11), transparent 32%),
    linear-gradient(220deg, rgba(139, 208, 203, 0.13), transparent 42%);
  pointer-events: none;
}

.marketing-page .prompt-question {
  position: relative;
  padding: 28px 30px 0;
  color: rgba(248, 247, 255, 0.78);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.34;
}

.marketing-page .prompt-spacer {
  min-height: 92px;
}

.marketing-page .prompt-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 30px 28px;
}

.marketing-page .prompt-plus,
.marketing-page .prompt-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 247, 255, 0.72);
  font-size: 1.5rem;
}

.marketing-page .prompt-icon {
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}

.marketing-page .prompt-segment {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 16px;
  background: rgba(12, 14, 22, 0.34);
  color: rgba(248, 247, 255, 0.72);
  font-weight: 800;
  white-space: nowrap;
}

.marketing-page .prompt-segment.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.marketing-page .prompt-suggestions {
  display: block;
  margin: 18px 8px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.marketing-page .prompt-suggestions-track {
  width: max-content;
  display: flex;
  gap: 10px;
  will-change: transform;
}

.marketing-page .prompt-suggestions span {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(248, 247, 255, 0.84);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.marketing-page .prompt-suggestions i {
  flex: 0 0 auto;
}

.marketing-page .hero-proof {
  margin-top: 28px;
}

.marketing-page .proof-item {
  border-left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 0 0;
}

.marketing-page .proof-item strong {
  color: var(--marketing-ink);
  font-size: 1.18rem;
}

.marketing-page .proof-item span {
  color: rgba(248, 247, 255, 0.62);
}

.marketing-page .section {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.marketing-page .section:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.015);
}

.marketing-page .section-header h2,
.marketing-page .form-title,
.marketing-page .footer-cta h2 {
  color: var(--marketing-ink);
}

.marketing-page .section-header p,
.marketing-page .form-intro,
.marketing-page .muted {
  color: rgba(248, 247, 255, 0.66);
}

.marketing-page .profile-frame,
.marketing-page .service-card,
.marketing-page .feedback-card,
.marketing-page .process-step,
.marketing-page .security-card,
.marketing-page .form-card,
.marketing-page .modal-content {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(14, 16, 24, 0.82);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.marketing-page .service-card,
.marketing-page .feedback-card,
.marketing-page .process-step,
.marketing-page .security-card {
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.marketing-page .service-card:hover,
.marketing-page .feedback-card:hover,
.marketing-page .process-step:hover,
.marketing-page .security-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(20, 23, 34, 0.9);
}

.marketing-page .service-card i,
.marketing-page .tech-card i,
.marketing-page .security-card i {
  color: var(--marketing-aqua);
}

.marketing-page .badge {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(248, 247, 255, 0.78);
  background: rgba(255, 255, 255, 0.05);
}

.marketing-page .process-number,
.marketing-page .stars,
.marketing-page .modal-icon {
  color: var(--marketing-rose);
}

.marketing-page .social-links a {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(248, 247, 255, 0.82);
}

.marketing-page .social-links a:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.marketing-page .form-section,
.marketing-page .footer-cta {
  background: rgba(7, 8, 13, 0.78);
}

.marketing-page .form-row input,
.marketing-page .form-row select,
.marketing-page .form-row textarea {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.045);
}

.marketing-page .form-row select option {
  background: #171b27;
  color: #f7f8ff;
}

.marketing-page .form-row select option:disabled {
  color: #9aa4b8;
}

.marketing-page .form-row input:focus,
.marketing-page .form-row select:focus,
.marketing-page .form-row textarea:focus {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(157, 140, 255, 0.12);
}

.marketing-page .footer-links a:hover {
  color: #ffffff;
}

.marketing-page.gsap-ready .prompt-card,
.marketing-page.gsap-ready .marketing-hero::after {
  animation: none;
}

.client-login-open .site-shell,
.client-login-open > header,
.client-login-open > main,
.client-login-open > footer {
  filter: blur(10px) saturate(0.78);
  transform: scale(0.992);
  transition:
    filter 0.24s ease,
    transform 0.24s ease;
}

.client-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 6, 10, 0.48);
  backdrop-filter: blur(4px);
}

.client-login-overlay.active {
  display: flex;
}

.client-login-modal {
  position: relative;
  width: min(100%, 430px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(14, 16, 24, 0.86);
  padding: 34px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(24px);
}

.client-login-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 16px;
}

.client-login-modal h2 {
  margin-top: 10px;
  color: var(--marketing-ink, var(--text));
  font-size: 2rem;
  line-height: 1.08;
}

.client-login-modal .form-grid {
  margin-top: 24px;
}

.client-login-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.client-login-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.subpage-page {
  min-height: 100vh;
}

.subpage-page .site-header {
  background: rgba(5, 6, 10, 0.72);
}

.subpage-page .form-section,
.subpage-page .legal-content {
  position: relative;
  z-index: 1;
}

.subpage-page .form-section {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 72px 0;
  background: transparent;
}

.subpage-page .form-card,
.subpage-page .legal-content {
  backdrop-filter: blur(20px);
}

.subpage-page .legal-content {
  margin-top: 34px;
  margin-bottom: 70px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(14, 16, 24, 0.82);
  padding: clamp(28px, 5vw, 58px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

@media (prefers-reduced-motion: no-preference) {
  .marketing-page .marketing-hero::after {
    animation: hero-band 14s ease-in-out infinite alternate;
  }
}

@keyframes hero-band {
  from {
    transform: skewY(-5deg) translateX(-24px);
  }
  to {
    transform: skewY(-5deg) translateX(24px);
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 76px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .site-nav.active {
    display: flex;
  }

  .site-nav a {
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-login-link {
    display: block;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .header-actions:not(.always-visible) {
    display: none;
  }

  .hero,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .marketing-page .hero-inner {
    grid-template-columns: 1fr;
  }

  .marketing-page .hero h1 {
    font-size: 4rem;
  }

  .hero {
    min-height: auto;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .hero-proof {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header-inner {
    min-height: 68px;
  }

  .site-nav {
    inset: 68px 12px auto 12px;
  }

  .hero,
  .section {
    padding: 56px 0;
  }

  .hero-actions,
  .form-actions,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .marketing-page .marketing-hero {
    padding: 58px 0;
  }

  .marketing-page .hero h1 {
    font-size: 3rem;
  }

  .marketing-page .prompt-card {
    min-height: 240px;
  }

  .marketing-page .prompt-question {
    padding: 22px 20px 0;
    font-size: 1.2rem;
  }

  .marketing-page .prompt-toolbar {
    flex-wrap: wrap;
    padding: 0 20px 22px;
  }

  .marketing-page .prompt-icon {
    margin-left: 0;
  }

  .ambient-band {
    left: -38vw;
    width: 176vw;
    filter: blur(30px);
  }

  .btn,
  .btn-cta-v7,
  .btn-secondary-v7 {
    width: 100%;
  }

  .header-actions.always-visible {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .header-actions.always-visible .btn,
  .header-actions.always-visible .btn-secondary,
  .header-actions.always-visible .btn-primary {
    width: auto;
  }

  .code-panel pre {
    font-size: 0.82rem;
  }
}
