/* OraxPointer — site-wide design system. Brand: logo red/blue. Light default + dark. EN default + AR RTL. */
:root {
	--red: #e30613;
	--red-dark: #8e1414;
	--blue: #1d4f7c;
	--sky: #2e9bd6;

	--bg: #fafbfd;
	--bg-2: #f0f3f8;
	--panel: #ffffff;
	--border: rgba(15, 25, 50, 0.10);
	--text: #0f1526;
	--muted: #5a617a;
	--accent: var(--blue);
	--accent-soft: rgba(29, 79, 124, 0.08);
	--ok: #1d9e5f;
	--bad: #d63031;
	--radius: 14px;
	--shadow: 0 10px 36px rgba(20, 30, 70, 0.10);
	--shadow-lg: 0 24px 70px rgba(20, 30, 70, 0.16);
	--code-bg: #0e1322;
	--code-text: #d5dcec;
}

html[data-theme="dark"] {
	--bg: #0a0c12;
	--bg-2: #10131c;
	--panel: #151926;
	--border: rgba(255, 255, 255, 0.09);
	--text: #e9ecf5;
	--muted: #98a0b8;
	--accent: var(--sky);
	--accent-soft: rgba(46, 155, 214, 0.12);
	--shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
	--shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	background: var(--bg);
	color: var(--text);
	font-family: 'Inter', system-ui, sans-serif;
	line-height: 1.7;
	overflow-x: hidden;
	transition: background 0.25s, color 0.25s;
}
html[lang="ar"] body { font-family: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif; }
code, pre, kbd { font-family: 'JetBrains Mono', monospace; }
a { color: var(--accent); }

/* ================= nav ================= */
.nav {
	position: sticky; top: 0; z-index: 90;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
}
.nav-inner {
	max-width: 1180px; margin: 0 auto; padding: 11px 24px;
	display: flex; align-items: center; gap: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 18px; }
.brand-logo { width: 27px; height: 27px; object-fit: contain; }
.brand-accent { color: var(--red); }
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.icon-btn {
	background: var(--panel); color: var(--text); border: 1px solid var(--border);
	border-radius: 9px; padding: 6px 11px; font-size: 13px; cursor: pointer;
	font-family: inherit; font-weight: 600; transition: background 0.15s;
}
.icon-btn:hover { background: var(--bg-2); }
.nav-signin { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 10px; }
.nav-user { color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 700; padding: 6px 10px; }

/* ================= buttons ================= */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	text-decoration: none; font-weight: 650; cursor: pointer; font-family: inherit;
	border: none; border-radius: 11px; padding: 12px 26px; font-size: 15px;
	transition: transform 0.15s, box-shadow 0.15s, background 0.15s, opacity 0.15s;
}
.btn-primary {
	background: linear-gradient(135deg, var(--sky), var(--blue) 60%);
	color: #fff;
	box-shadow: 0 4px 20px rgba(29, 79, 124, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(29, 79, 124, 0.45); }
.btn-red {
	background: linear-gradient(135deg, var(--red), var(--red-dark));
	color: #fff;
	box-shadow: 0 4px 20px rgba(227, 6, 19, 0.30);
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(227, 6, 19, 0.40); }
.btn-ghost { color: var(--text); border: 1px solid var(--border); background: var(--panel); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 16px 38px; font-size: 17px; }
.btn[disabled] { opacity: 0.55; cursor: wait; transform: none; }

/* ================= hero ================= */
.hero { position: relative; padding: 86px 24px 60px; text-align: center; }
.hero-glow {
	position: absolute; inset: -220px 0 auto; height: 640px; pointer-events: none;
	background:
		radial-gradient(640px 320px at 72% 18%, rgba(46, 155, 214, 0.18), transparent 70%),
		radial-gradient(520px 300px at 28% 10%, rgba(227, 6, 19, 0.10), transparent 70%);
}
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; }
.hero-badge {
	display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
	border: 1px solid var(--border); border-radius: 100px; padding: 6px 18px;
	background: var(--panel); margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 { font-size: clamp(34px, 5.6vw, 62px); font-weight: 800; line-height: 1.16; letter-spacing: -0.5px; }
.grad {
	background: linear-gradient(90deg, var(--red), var(--sky));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: 18.5px; max-width: 680px; margin: 24px auto 0; }
.hero-sub b { color: var(--text); }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 50px; justify-content: center; margin-top: 46px; flex-wrap: wrap; }
.stat span { font-size: 27px; font-weight: 800; color: var(--text); display: block; }
.stat .ok { color: var(--ok); }
.stat label { color: var(--muted); font-size: 13px; }

/* ================= editor mock + mascot ================= */
.hero-showcase {
	position: relative; max-width: 940px; margin: 60px auto 0;
	display: flex; align-items: flex-end; justify-content: center;
}
.editor-mock {
	direction: ltr; text-align: left;
	flex: 1; max-width: 740px;
	background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius);
	box-shadow: var(--shadow-lg); overflow: hidden;
}
.editor-bar {
	display: flex; align-items: center; gap: 7px; padding: 11px 16px;
	border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04);
}
.editor-bar i { width: 11px; height: 11px; border-radius: 50%; }
.editor-bar i:nth-child(1) { background: #ff5f57; }
.editor-bar i:nth-child(2) { background: #febc2e; }
.editor-bar i:nth-child(3) { background: #28c840; }
.editor-bar span { color: #8a92aa; font-size: 12px; margin-left: 10px; font-family: 'JetBrains Mono', monospace; }
.editor-code { padding: 22px 26px; font-size: 13.5px; line-height: 1.75; color: var(--code-text); position: relative; }
.editor-code .k { color: #c792ea; }
.editor-code .f { color: #82aaff; }
.editor-code .t { color: #ffcb6b; }
.editor-code .s { color: #c3e88d; }
.editor-code .ghost { color: #5c6480; font-style: italic; }
.tabhint {
	position: absolute; bottom: 18px; right: 22px;
	font-size: 11px; color: var(--sky);
	border: 1px solid rgba(46, 155, 214, 0.45); border-radius: 6px; padding: 3px 10px;
	background: rgba(46, 155, 214, 0.10);
}
.mascot-wrap { position: relative; margin-inline-start: -34px; z-index: 2; }
.mascot { height: 305px; width: auto; filter: drop-shadow(0 14px 24px rgba(20, 30, 70, 0.25)); }
.mascot-bubble {
	position: absolute; top: -14px; inset-inline-end: -8px;
	background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
	padding: 8px 14px; font-size: 12.5px; font-weight: 600; color: var(--text);
	box-shadow: var(--shadow); white-space: nowrap;
}
.mascot-bubble::after {
	content: ''; position: absolute; bottom: -7px; inset-inline-start: 26px;
	width: 12px; height: 12px; background: var(--panel);
	border-bottom: 1px solid var(--border); border-inline-start: 1px solid var(--border);
	transform: rotate(-45deg);
}

/* ================= sections ================= */
.section { max-width: 1180px; margin: 0 auto; padding: 92px 24px; }
.section h2 { font-size: clamp(27px, 3.8vw, 42px); text-align: center; margin-bottom: 18px; letter-spacing: -0.4px; }
.section-lead { text-align: center; color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto 52px; }
.section-alt { max-width: none; background: var(--bg-2); border-block: 1px solid var(--border); }
.section-alt > * { max-width: 1180px; margin-inline: auto; }

/* feature split rows (cursor.com style) */
.feature-row {
	display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center;
	padding: 46px 0;
}
.feature-row.rev > .feature-visual { order: -1; }
.feature-copy h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 14px; letter-spacing: -0.3px; }
.feature-copy p { color: var(--muted); font-size: 16px; }
.feature-copy .link { display: inline-block; margin-top: 16px; font-weight: 650; text-decoration: none; }
.feature-visual {
	background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 22px; min-height: 240px;
}
.feature-visual.codey { background: var(--code-bg); color: var(--code-text); direction: ltr; text-align: left; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.8; }

/* cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.card {
	background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 28px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.card.featured { border-color: var(--red); background: linear-gradient(160deg, rgba(227, 6, 19, 0.06), var(--panel) 55%); }
.card-ico { font-size: 26px; margin-bottom: 14px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }
.card p b { color: var(--text); }
.card code { background: var(--bg-2); padding: 1px 7px; border-radius: 5px; font-size: 12.5px; }

/* compare table */
.table-wrap { overflow-x: auto; padding: 0 24px; }
.compare {
	width: 100%; max-width: 900px; margin: 0 auto; border-collapse: collapse;
	background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
	overflow: hidden; font-size: 14.5px; box-shadow: var(--shadow);
}
.compare th, .compare td { padding: 13px 20px; text-align: center; border-bottom: 1px solid var(--border); }
.compare td:first-child, .compare th:first-child { text-align: start; }
.compare thead th { background: var(--bg-2); font-size: 15px; }
.compare th.us, .compare td.us { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.compare tbody tr:last-child td { border-bottom: none; }
.note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 22px; padding: 0 24px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 38px; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step-n {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%; font-weight: 700;
	background: linear-gradient(135deg, var(--red), var(--sky)); color: #fff; margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }
.step code { font-size: 12px; background: var(--bg-2); padding: 2px 8px; border-radius: 6px; }

.code-block {
	direction: ltr; max-width: 660px; margin: 0 auto;
	background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow);
}
.code-title { padding: 11px 18px; font-size: 12.5px; color: #8a92aa; border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); }
html[lang="ar"] .code-title { direction: rtl; }
.code-block pre { padding: 20px 24px; font-size: 13.5px; color: #c8e0ff; overflow-x: auto; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 1020px; margin: 0 auto; }
.plan {
	background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
	padding: 34px 30px; display: flex; flex-direction: column; gap: 0;
	transition: transform 0.2s, box-shadow 0.2s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); position: relative; }
.plan-flag {
	position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(-50%);
	background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff;
	font-size: 12px; font-weight: 700; border-radius: 100px; padding: 4px 16px; white-space: nowrap;
}
html[lang="ar"] .plan-flag { transform: translateX(50%); }
.plan h3 { font-size: 19px; }
.plan .price { font-size: 38px; font-weight: 800; margin: 12px 0 2px; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan .desc { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; flex: 1; }
.plan li { font-size: 14px; padding-inline-start: 26px; position: relative; }
.plan li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--ok); font-weight: 700; }
.plan li.no::before { content: '—'; color: var(--muted); }

/* auth forms */
.auth-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 40px 18px; }
.auth-card {
	width: 100%; max-width: 420px; background: var(--panel);
	border: 1px solid var(--border); border-radius: 18px; padding: 38px 34px;
	box-shadow: var(--shadow-lg);
}
.auth-card .auth-logo { width: 54px; display: block; margin: 0 auto 16px; }
.auth-card h1 { font-size: 23px; text-align: center; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input {
	width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
	color: var(--text); padding: 11px 14px; font-size: 14.5px; font-family: inherit;
	transition: border-color 0.15s;
}
.field input:focus { outline: none; border-color: var(--accent); }
.auth-error {
	display: none; background: rgba(214, 48, 49, 0.08); color: var(--bad);
	border: 1px solid rgba(214, 48, 49, 0.25); border-radius: 10px;
	font-size: 13.5px; padding: 10px 14px; margin-bottom: 16px;
}
.auth-alt { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 22px; }
.auth-alt a { font-weight: 650; text-decoration: none; }

/* dashboard */
.dash { max-width: 980px; margin: 0 auto; padding: 48px 24px 90px; }
.dash h1 { font-size: 27px; margin-bottom: 4px; }
.dash .dash-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 34px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 26px; }
.dash-stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.dash-stat .v { font-size: 25px; font-weight: 800; }
.dash-stat .l { color: var(--muted); font-size: 12.5px; }
.dash-panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.dash-panel h3 { font-size: 16px; margin-bottom: 14px; }
.key-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.key-box {
	flex: 1; min-width: 240px; direction: ltr; text-align: left;
	background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
	font-family: 'JetBrains Mono', monospace; font-size: 13px; padding: 11px 14px;
	overflow-x: auto; white-space: nowrap;
}
.budget-bar { height: 10px; background: var(--bg-2); border-radius: 5px; overflow: hidden; margin-top: 10px; }
.budget-bar i { display: block; height: 100%; border-radius: 5px; background: var(--ok); transition: width 0.5s; }
.dash-note { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* download */
.dl-card {
	max-width: 660px; margin: 0 auto; text-align: center;
	background: var(--panel); border: 1px solid var(--accent); border-radius: var(--radius);
	padding: 42px 34px; box-shadow: var(--shadow);
}
.dl-logo { width: 88px; height: auto; margin-bottom: 20px; }
.dl-meta { color: var(--muted); font-size: 14px; margin-top: 16px; }
.dl-hash { direction: ltr; display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.dl-hash span { font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 3px 9px; }
.dl-hash code { font-size: 11px; color: var(--accent); word-break: break-all; }
.dl-note { color: var(--muted); font-size: 12.5px; margin-top: 22px; }
.dl-warn {
	margin-top: 20px; padding: 14px 18px; border-radius: 12px;
	border: 1px solid color-mix(in srgb, #d97706 35%, var(--border));
	background: color-mix(in srgb, #d97706 8%, var(--card));
	text-align: start; font-size: 13.5px; line-height: 1.55;
}
.dl-warn strong { color: #d97706; }
.dl-warn ol { margin: 10px 0 0 1.2rem; padding: 0; }
.dl-warn li { margin: 6px 0; }
.dl-hash button {
	font-size: 11px; border: 1px solid var(--border); border-radius: 6px;
	padding: 3px 9px; background: var(--card); color: var(--muted); cursor: pointer;
}
.dl-hash button:hover { color: var(--text); border-color: var(--accent); }

/* docs */
.docs { max-width: 860px; margin: 0 auto; padding: 56px 24px 100px; }
.docs h1 { font-size: 32px; margin-bottom: 10px; }
.docs h2 { font-size: 21px; margin: 40px 0 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.docs p, .docs li { color: var(--muted); font-size: 15px; }
.docs ul, .docs ol { padding-inline-start: 24px; margin: 10px 0; }
.docs code { background: var(--bg-2); padding: 1px 8px; border-radius: 6px; font-size: 13px; color: var(--text); }
.docs pre { direction: ltr; text-align: left; background: var(--code-bg); color: #c8e0ff; border-radius: 12px; padding: 18px 22px; font-size: 13px; overflow-x: auto; margin: 14px 0; }
.docs pre code { background: none; color: inherit; padding: 0; }

/* CTA band */
.cta-band { text-align: center; padding: 90px 24px; }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 26px; }

/* ================= footer ================= */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-inner {
	max-width: 1180px; margin: 0 auto; padding: 52px 24px 40px;
	display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px;
}
.footer-brand p { color: var(--muted); font-size: 13px; margin-top: 10px; }
.madeby { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px !important; }
.oraxsoft-link { display: inline-flex; align-items: center; gap: 5px; color: var(--text); text-decoration: none; font-weight: 700; }
.oraxsoft-link img { width: 18px; height: 18px; object-fit: contain; }
.oraxsoft-link:hover { color: var(--accent); }
.footer-col h4 { font-size: 13px; margin-bottom: 14px; color: var(--text); }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.footer-col a:hover { color: var(--text); }
.footer-base {
	max-width: 1180px; margin: 0 auto; padding: 18px 24px 30px;
	border-top: 1px solid var(--border);
	display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
	color: var(--muted); font-size: 12.5px;
}

@media (max-width: 880px) {
	.feature-row { grid-template-columns: 1fr; gap: 26px; }
	.feature-row.rev > .feature-visual { order: 0; }
	.footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	.nav-links { display: none; }
	.hero { padding-top: 56px; }
	.hero-stats { gap: 28px; }
	.mascot-wrap { display: none; }
}
