/* ===================================================
   RX Automação de Marketing — XD Company 2.0
   Identidade Cyberpunk/Sci-Fi
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Poppins:wght@300;400;500;600;700&display=swap');

@keyframes rxam-fade-in {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

.rxam-phase {
	max-width: 980px;
	margin: 0 auto;
	animation: rxam-fade-in .5s ease both;
}

.rxam-phase.rxam-anim-restart {
	animation: rxam-fade-in .5s ease both;
}

.rxam-app {
	--rxam-bg: #05020F;
	--rxam-surface: #0D0720;
	--rxam-section: #1A0A3D;
	--rxam-section-2: #280E5A;
	--rxam-primary: #7B2FE0;
	--rxam-nova: #9D5FF5;
	--rxam-magenta: #FF2D8A;
	--rxam-cyan: #00E5FF;
	--rxam-text: #F0EAFF;
	--rxam-gradient: linear-gradient(135deg, #00E5FF 0%, #7B2FE0 50%, #FF2D8A 100%);

	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 56px clamp(20px, 5vw, 64px);
	background: var(--rxam-bg);
	color: var(--rxam-text);
	font-family: 'Poppins', sans-serif;
	font-weight: 300;
	border-radius: 0;
	overflow: hidden;
	isolation: isolate;
	min-height: 100vh;
	box-sizing: border-box;
}

.rxam-app * {
	box-sizing: border-box;
}

/* ---------- Background effects ---------- */
.rxam-app::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		linear-gradient(transparent 0%, var(--rxam-bg) 90%),
		repeating-linear-gradient(0deg, rgba(123,47,224,0.08) 0px, rgba(123,47,224,0.08) 1px, transparent 1px, transparent 40px),
		repeating-linear-gradient(90deg, rgba(0,229,255,0.06) 0px, rgba(0,229,255,0.06) 1px, transparent 1px, transparent 40px);
	transform: perspective(500px) rotateX(60deg) scale(2);
	transform-origin: center top;
	opacity: .35;
	pointer-events: none;
}

.rxam-app::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(circle at 15% 20%, rgba(123,47,224,0.35), transparent 40%),
		radial-gradient(circle at 85% 75%, rgba(255,45,138,0.25), transparent 40%),
		radial-gradient(circle at 50% 50%, rgba(0,229,255,0.12), transparent 50%);
	filter: blur(60px);
	pointer-events: none;
	animation: rxam-orbs-float 18s ease-in-out infinite alternate;
}

@keyframes rxam-orbs-float {
	0%   { transform: translate(0,0) scale(1); }
	50%  { transform: translate(20px,-30px) scale(1.08); }
	100% { transform: translate(-15px,15px) scale(0.96); }
}

/* Cursor padrão preservado em toda a interface (sem cursor customizado) */

/* ---------- Typography ---------- */
.rxam-eyebrow {
	font-family: 'Orbitron', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.25em;
	font-size: 12px;
	color: var(--rxam-cyan);
	margin-bottom: 12px;
}

.rxam-title {
	font-family: 'Orbitron', sans-serif;
	font-weight: 900;
	font-size: 36px;
	line-height: 1.2;
	margin: 0 0 16px;
	background: var(--rxam-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.rxam-title-icon {
	-webkit-text-fill-color: initial;
	color: var(--rxam-cyan);
	filter: drop-shadow(0 0 12px var(--rxam-cyan));
}

.rxam-subtitle {
	font-size: 16px;
	line-height: 1.7;
	color: rgba(240,234,255,0.75);
	max-width: 640px;
	margin-bottom: 40px;
}

.rxam-section-title {
	font-family: 'Orbitron', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-size: 16px;
	color: var(--rxam-cyan);
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(0,229,255,0.2);
}

.rxam-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 48px;
}

.rxam-header .rxam-eyebrow,
.rxam-header .rxam-subtitle {
	margin-left: auto;
	margin-right: auto;
}
.rxam-tipo-select {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 40px;
}

@media (max-width: 680px) {
	.rxam-tipo-select { grid-template-columns: 1fr; }
}

.rxam-tipo-card {
	position: relative;
	text-align: left;
	background: linear-gradient(160deg, var(--rxam-surface), var(--rxam-section));
	border: 1px solid rgba(157,95,245,0.25);
	border-radius: 16px;
	padding: 28px 24px;
	color: var(--rxam-text);
	font-family: 'Poppins', sans-serif;
	transition: all .25s ease;
	overflow: hidden;
}

.rxam-tipo-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--rxam-gradient);
	opacity: 0;
	transition: opacity .25s ease;
	z-index: -1;
}

.rxam-tipo-card:hover {
	border-color: var(--rxam-cyan);
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0,229,255,0.15);
}

.rxam-tipo-card.is-selected {
	border-color: var(--rxam-cyan);
	box-shadow: 0 0 0 1px var(--rxam-cyan), 0 0 30px rgba(0,229,255,0.25);
}

.rxam-tipo-icon {
	font-size: 28px;
	margin-bottom: 12px;
	filter: drop-shadow(0 0 10px var(--rxam-magenta));
}

.rxam-tipo-name {
	font-family: 'Orbitron', sans-serif;
	font-weight: 900;
	font-size: 18px;
	margin-bottom: 6px;
}

.rxam-tipo-desc {
	font-size: 14px;
	color: rgba(240,234,255,0.65);
	margin-bottom: 14px;
}

.rxam-tipo-tag {
	display: inline-block;
	font-family: 'Orbitron', sans-serif;
	font-weight: 700;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--rxam-nova);
	border: 1px solid rgba(157,95,245,0.4);
	border-radius: 999px;
	padding: 6px 14px;
}

/* ---------- Lead form ---------- */
.rxam-lead-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

@media (max-width: 680px) {
	.rxam-lead-form { grid-template-columns: 1fr; }
}

.rxam-field-full { grid-column: 1 / -1; }

/* Honeypot - oculto para humanos, visível para bots */
.rxam-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rxam-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--rxam-nova);
	margin-bottom: 8px;
}

.rxam-field input {
	width: 100%;
	background: var(--rxam-surface);
	border: 1px solid rgba(157,95,245,0.3);
	border-radius: 10px;
	padding: 14px 16px;
	color: var(--rxam-text);
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 400;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.rxam-field input::placeholder {
	color: rgba(240,234,255,0.35);
}

.rxam-field input:focus {
	outline: none;
	border-color: var(--rxam-cyan);
	box-shadow: 0 0 0 3px rgba(0,229,255,0.15);
}

/* ---------- Buttons ---------- */
.rxam-btn {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 15px;
	border: none;
	border-radius: 999px;
	padding: 16px 32px;
	cursor: pointer;
	transition: all .2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.rxam-btn-primary {
	background: var(--rxam-gradient);
	color: #05020F;
	font-weight: 700;
	box-shadow: 0 8px 24px rgba(123,47,224,0.4);
}

.rxam-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0,229,255,0.35);
}

.rxam-btn-ghost {
	background: transparent;
	color: var(--rxam-text);
	border: 1px solid rgba(240,234,255,0.2);
}

.rxam-btn-ghost:hover {
	border-color: var(--rxam-cyan);
	color: var(--rxam-cyan);
}

.rxam-btn-full {
	grid-column: 1 / -1;
	margin-top: 8px;
}

.rxam-btn-arrow {
	transition: transform .2s ease;
}

.rxam-btn:hover .rxam-btn-arrow {
	transform: translateX(4px);
}

.rxam-btn-cta {
	margin-top: 8px;
}

.rxam-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none !important;
}

/* ---------- Progress ---------- */
.rxam-progress-wrap {
	margin-bottom: 36px;
}

.rxam-progress-info {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 12px;
	flex-wrap: wrap;
	gap: 8px;
}

.rxam-stage-label {
	font-family: 'Orbitron', sans-serif;
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--rxam-cyan);
}

.rxam-stage-title {
	font-family: 'Orbitron', sans-serif;
	font-weight: 900;
	font-size: 20px;
	background: var(--rxam-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.rxam-progress-bar {
	height: 6px;
	border-radius: 999px;
	background: rgba(255,255,255,0.06);
	overflow: hidden;
}

.rxam-progress-fill {
	height: 100%;
	width: 0%;
	background: var(--rxam-gradient);
	border-radius: 999px;
	transition: width .35s ease;
	box-shadow: 0 0 12px var(--rxam-cyan);
}

/* ---------- Questions ---------- */
.rxam-questions {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-bottom: 32px;
}

.rxam-question {
	background: linear-gradient(160deg, var(--rxam-surface), var(--rxam-section));
	border: 1px solid rgba(157,95,245,0.2);
	border-radius: 16px;
	padding: 24px;
}

.rxam-question-text {
	font-size: 16px;
	font-weight: 500;
	margin: 0 0 16px;
	color: var(--rxam-text);
}

.rxam-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rxam-option {
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 10px;
	padding: 12px 16px;
	cursor: pointer;
	transition: all .2s ease;
	font-size: 14px;
}

.rxam-option:hover {
	border-color: var(--rxam-nova);
	background: rgba(157,95,245,0.08);
}

.rxam-option.is-checked {
	border-color: var(--rxam-cyan);
	background: rgba(0,229,255,0.08);
	box-shadow: 0 0 0 1px var(--rxam-cyan);
}

.rxam-option input {
	accent-color: var(--rxam-cyan);
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* Scale (slider) */
.rxam-scale-wrap {
	padding: 12px 4px;
}

.rxam-scale-value {
	font-family: 'Orbitron', sans-serif;
	font-weight: 900;
	font-size: 28px;
	color: var(--rxam-cyan);
	text-align: center;
	margin-bottom: 12px;
	text-shadow: 0 0 16px rgba(0,229,255,0.5);
}

.rxam-scale-slider {
	width: 100%;
	accent-color: var(--rxam-magenta);
	height: 6px;
}

.rxam-scale-labels {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: rgba(240,234,255,0.4);
	margin-top: 6px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* ---------- Nav ---------- */
.rxam-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

/* ---------- Loading (phase 3) ---------- */
.rxam-loading {
	text-align: center;
	padding: 80px 20px;
}

.rxam-loading-spinner {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 3px solid rgba(0,229,255,0.15);
	border-top-color: var(--rxam-cyan);
	margin: 0 auto 24px;
	animation: rxam-spin 1s linear infinite;
	box-shadow: 0 0 24px rgba(0,229,255,0.25);
}

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

.rxam-loading p {
	color: rgba(240,234,255,0.7);
	font-size: 15px;
}

/* ---------- Score card ---------- */
.rxam-score-card {
	display: flex;
	align-items: center;
	gap: 36px;
	background: linear-gradient(160deg, var(--rxam-surface), var(--rxam-section-2));
	border: 1px solid rgba(157,95,245,0.25);
	border-radius: 20px;
	padding: 32px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.rxam-score-ring-wrap {
	position: relative;
	width: 120px;
	height: 120px;
	flex-shrink: 0;
}

.rxam-score-ring {
	width: 120px;
	height: 120px;
	transform: rotate(-90deg);
}

.rxam-score-ring-bg {
	fill: none;
	stroke: rgba(255,255,255,0.08);
	stroke-width: 8;
}

.rxam-score-ring-fill {
	fill: none;
	stroke: var(--rxam-cyan);
	stroke-width: 8;
	stroke-linecap: round;
	stroke-dasharray: 326.7;
	stroke-dashoffset: 326.7;
	transition: stroke-dashoffset 1.2s ease, stroke 1.2s ease;
	filter: drop-shadow(0 0 8px currentColor);
}

.rxam-score-value {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Orbitron', sans-serif;
	font-weight: 900;
	font-size: 28px;
	color: var(--rxam-text);
}

.rxam-score-max {
	font-size: 14px;
	font-weight: 400;
	color: rgba(240,234,255,0.4);
	margin-left: 2px;
}

.rxam-score-info {
	flex: 1;
	min-width: 240px;
}

.rxam-score-classification {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Orbitron', sans-serif;
	font-weight: 900;
	font-size: 24px;
	margin-bottom: 10px;
}

.rxam-score-description {
	font-size: 14px;
	line-height: 1.7;
	color: rgba(240,234,255,0.75);
	margin: 0;
}

/* ---------- Pillars grid ---------- */
.rxam-pillars {
	margin-bottom: 40px;
}

.rxam-pillars-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
}

.rxam-pillar-card {
	background: var(--rxam-surface);
	border: 1px solid rgba(157,95,245,0.18);
	border-radius: 12px;
	padding: 16px;
}

.rxam-pillar-name {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(240,234,255,0.6);
	margin-bottom: 8px;
}

.rxam-pillar-score {
	font-family: 'Orbitron', sans-serif;
	font-weight: 900;
	font-size: 22px;
	margin-bottom: 8px;
}

.rxam-pillar-bar {
	height: 4px;
	border-radius: 999px;
	background: rgba(255,255,255,0.06);
	overflow: hidden;
}

.rxam-pillar-bar-fill {
	height: 100%;
	background: var(--rxam-gradient);
	border-radius: 999px;
}

/* ---------- Opportunities ---------- */
.rxam-opportunities {
	margin-bottom: 40px;
}

.rxam-opportunities-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rxam-opp-card {
	background: linear-gradient(160deg, var(--rxam-surface), var(--rxam-section));
	border: 1px solid rgba(255,45,138,0.25);
	border-radius: 16px;
	padding: 24px;
	position: relative;
}

.rxam-opp-number {
	font-family: 'Orbitron', sans-serif;
	font-weight: 900;
	font-size: 13px;
	color: var(--rxam-magenta);
	text-transform: uppercase;
	letter-spacing: 0.2em;
	margin-bottom: 10px;
}

.rxam-opp-found {
	font-size: 14px;
	color: rgba(240,234,255,0.6);
	margin-bottom: 4px;
}

.rxam-opp-found strong { color: var(--rxam-text); font-weight: 600; }

.rxam-opp-recommendation {
	font-size: 17px;
	font-weight: 600;
	margin: 8px 0 12px;
	color: var(--rxam-text);
}

.rxam-opp-tags {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.rxam-opp-tag {
	font-family: 'Orbitron', sans-serif;
	font-weight: 700;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	border-radius: 999px;
	padding: 6px 14px;
	border: 1px solid currentColor;
}

.rxam-opp-tag.complexidade { color: var(--rxam-cyan); }
.rxam-opp-tag.impacto { color: var(--rxam-magenta); }

/* ---------- CTA ---------- */
.rxam-cta {
	text-align: center;
	background: linear-gradient(160deg, var(--rxam-section), var(--rxam-section-2));
	border: 1px solid rgba(0,229,255,0.25);
	border-radius: 20px;
	padding: 40px 24px;
}

.rxam-cta h3 {
	font-family: 'Orbitron', sans-serif;
	font-weight: 900;
	font-size: 22px;
	margin: 0 0 12px;
}

.rxam-cta p {
	font-size: 14px;
	color: rgba(240,234,255,0.7);
	max-width: 520px;
	margin: 0 auto 20px;
	line-height: 1.7;
}

/* ---------- Error message ---------- */
.rxam-error {
	background: rgba(255,45,138,0.1);
	border: 1px solid var(--rxam-magenta);
	color: var(--rxam-magenta);
	border-radius: 10px;
	padding: 14px 18px;
	font-size: 14px;
	margin-bottom: 20px;
}
