@font-face {
  font-family: 'Vazirmatn Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/vazirmatn/vazirmatn-arabic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: 'Vazirmatn Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/vazirmatn/vazirmatn-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #090c17;
  --panel: rgba(18, 22, 37, 0.86);
  --panel-solid: #14182a;
  --line: rgba(168, 177, 213, 0.14);
  --line-strong: rgba(151, 163, 215, 0.3);
  --text: #f8f5f1;
  --muted: #989fb4;
  --accent: #ff8b62;
  --accent-soft: #ffc06e;
  --cyan: #62d9bd;
  --blue: #7888ff;
  --violet: #a979ff;
  --danger: #ff7185;
  --warning: #f9b85a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  font-family: 'Vazirmatn Variable', Vazirmatn, Tahoma, system-ui, sans-serif;
  font-optical-sizing: auto;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(120, 136, 255, 0.17), transparent 34rem),
    radial-gradient(circle at 88% 82%, rgba(255, 139, 98, 0.09), transparent 34rem),
    linear-gradient(145deg, #090c17 0%, #0b1020 52%, #080b15 100%);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.hidden { display: none !important; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.ambient { position: fixed; z-index: -1; border-radius: 999px; filter: blur(2px); pointer-events: none; }
.ambient-one { width: 420px; height: 420px; top: -220px; right: 7%; background: rgba(120, 136, 255, 0.14); }
.ambient-two { width: 520px; height: 520px; bottom: -330px; left: -120px; background: rgba(255, 139, 98, 0.08); }

.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(255, 139, 98, 0.32); border-radius: 13px; background: linear-gradient(145deg, rgba(255, 139, 98, 0.14), rgba(120, 136, 255, 0.11)); box-shadow: inset 0 0 22px rgba(255, 139, 98, 0.06), 0 10px 35px rgba(0, 0, 0, .18); }
.brand-mark svg { width: 32px; height: 32px; overflow: visible; }
.brand-bit { fill: var(--blue); }
.brand-bit-two, .brand-bit-three { opacity: .58; }
.brand-bit-lead { fill: var(--accent); filter: drop-shadow(0 0 8px rgba(255, 139, 98, .35)); }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font: 800 19px/1.15 ui-sans-serif, system-ui, sans-serif; letter-spacing: -.025em; }
.brand-copy strong i { color: var(--accent); font-style: normal; }
.brand-copy small { color: var(--muted); font-size: 10px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.secure-badge { display: inline-flex; align-items: center; gap: 8px; color: #aebbd0; font-size: 12px; }
.secure-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

.main-shell { min-height: calc(100vh - 155px); display: grid; align-items: center; padding-block: 50px; }
.auth-landing { width: 100%; padding-bottom: 28px; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .72fr); align-items: center; gap: clamp(56px, 8vw, 110px); }
.eyebrow, .card-kicker { color: var(--accent); font: 800 11px/1.7 'Vazirmatn Variable', Vazirmatn, Tahoma, sans-serif; letter-spacing: 0; }
.hero-copy h1 { max-width: 710px; margin: 20px 0 18px; font-size: clamp(42px, 5.2vw, 72px); line-height: 1.16; letter-spacing: -.045em; }
.hero-copy h1 em { color: transparent; font-style: normal; background: linear-gradient(95deg, var(--accent), var(--accent-soft) 46%, #a995ff 92%); -webkit-background-clip: text; background-clip: text; }
.hero-copy > p { max-width: 600px; color: #a6b4c8; font-size: 16px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; color: #747d93; font-size: 11px; }
.hero-proof i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .8; }

.card { border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(18, 29, 47, 0.92), rgba(10, 17, 29, 0.88)); box-shadow: var(--shadow); backdrop-filter: blur(24px); }
.auth-card { width: 100%; scroll-margin-top: 30px; padding: 10px 30px 30px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 26px; padding: 5px; border-radius: 14px; background: rgba(5, 10, 18, .65); }
.auth-tab { min-height: 42px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; transition: .2s ease; }
.auth-tab.active { color: var(--text); background: rgba(98, 131, 199, .16); box-shadow: inset 0 0 0 1px rgba(135, 170, 235, .12); }
.form-heading { margin-bottom: 22px; }
.form-heading h2 { margin: 0 0 7px; font-size: 24px; }
.form-heading p, .credentials-dialog p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.auth-form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span { color: #bdc8d8; font-size: 12px; }
.field > small { color: #697990; font-size: 10px; line-height: 1.7; }
.field input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; outline: none; padding: 0 14px; color: var(--text); background: rgba(5, 10, 18, .58); transition: border-color .18s, box-shadow .18s; }
.field input::placeholder { color: #59677a; }
.field input:focus { border-color: rgba(255, 139, 98, .5); box-shadow: 0 0 0 3px rgba(255, 139, 98, .08); }
.subdomain-field { display: flex; align-items: stretch; min-width: 0; }
.subdomain-field input { min-width: 0; border-radius: 12px 0 0 12px; text-align: left; }
.subdomain-field > span { display: flex; max-width: 55%; align-items: center; overflow: hidden; border: 1px solid var(--line); border-left: 0; border-radius: 0 12px 12px 0; padding: 0 12px; color: #7f91aa; background: rgba(5, 10, 18, .82); font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 12px; padding: 0 18px; text-decoration: none; cursor: pointer; transition: transform .18s, filter .18s, background .18s; }
.button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.button:disabled { opacity: .55; cursor: progress; transform: none; }
.button-primary { color: #1a0d08; font-weight: 800; background: linear-gradient(100deg, var(--accent), var(--accent-soft)); box-shadow: 0 12px 32px rgba(255, 139, 98, .18); }
.button-secondary { color: var(--text); border: 1px solid var(--line-strong); background: rgba(91, 140, 255, .09); }
.button-ghost { color: #b8c4d6; border: 1px solid var(--line); background: transparent; }
.button-full { width: 100%; margin-top: 3px; }
.fine-print { margin: -3px 0 0; color: #627087; font-size: 10px; text-align: center; }
.form-error { margin: -3px 0; border-right: 2px solid var(--danger); padding: 7px 10px; color: #ff9cab; font-size: 12px; background: rgba(255, 113, 133, .06); }
.is-busy { opacity: .72; }

.story-section, .steps-section { margin-top: clamp(84px, 11vw, 140px); }
.section-heading { max-width: 720px; }
.section-heading h2, .closing-cta h2 { margin: 12px 0 14px; font-size: clamp(30px, 4vw, 50px); line-height: 1.3; letter-spacing: -.035em; }
.section-heading p, .closing-cta p { margin: 0; color: #9da6ba; font-size: 15px; line-height: 2; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.promise-card { min-height: 210px; border: 1px solid var(--line); border-radius: 21px; padding: 25px; background: linear-gradient(145deg, rgba(23, 27, 45, .78), rgba(12, 15, 27, .62)); }
.promise-card > span { color: var(--accent); font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.promise-card h3 { margin: 34px 0 8px; font-size: 18px; }
.promise-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.steps-section { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(420px, 1fr); align-items: start; gap: clamp(44px, 8vw, 100px); padding: clamp(30px, 5vw, 55px); border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg, rgba(20, 24, 41, .82), rgba(11, 14, 25, .7)); }
.steps-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.steps-list li { display: grid; grid-template-columns: 43px 1fr; gap: 17px; min-height: 92px; position: relative; }
.steps-list li:not(:last-child)::after { content: ''; position: absolute; top: 40px; right: 20px; bottom: 8px; width: 1px; background: linear-gradient(var(--accent), rgba(120, 136, 255, .2)); }
.steps-list b { position: relative; z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255, 139, 98, .27); border-radius: 13px; color: var(--accent); background: #171a2b; font-size: 13px; }
.steps-list div { display: grid; align-content: start; gap: 6px; padding-top: 4px; }
.steps-list strong { font-size: 15px; }
.steps-list span { color: var(--muted); font-size: 12px; line-height: 1.8; }
.closing-cta { margin-top: clamp(84px, 11vw, 140px); padding: clamp(48px, 8vw, 88px) 24px; border: 1px solid rgba(255, 139, 98, .15); border-radius: 30px; text-align: center; background: radial-gradient(circle at 50% 100%, rgba(255, 139, 98, .12), transparent 50%), rgba(14, 17, 29, .72); }
.closing-cta p { max-width: 590px; margin-inline: auto; }
.closing-cta .button { margin-top: 27px; }

.center-card { justify-self: center; min-width: min(420px, 90vw); padding: 38px; text-align: center; }
.spinner { width: 28px; height: 28px; display: inline-block; border: 2px solid rgba(255,255,255,.12); border-top-color: var(--cyan); border-radius: 50%; animation: spin .75s linear infinite; }
.status-card p { color: var(--muted); }

.dashboard { align-self: stretch; padding-top: 10px; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.dashboard-heading h1 { margin: 9px 0 5px; font-size: clamp(30px, 4vw, 48px); }
.dashboard-heading p { margin: 0; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(249, 184, 90, .25); border-radius: 999px; padding: 9px 14px; color: var(--warning); background: rgba(249, 184, 90, .08); font-size: 12px; }
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status-ready { color: var(--cyan); border-color: rgba(77, 225, 207, .25); background: rgba(77, 225, 207, .07); }
.status-failed, .status-deleted { color: var(--danger); border-color: rgba(255, 113, 133, .25); background: rgba(255, 113, 133, .07); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: 22px; }
.service-card, .details-card { padding: 28px; }
.service-topline { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.service-icon { width: 48px; height: 48px; display: grid; grid-template-columns: repeat(2, 9px); grid-template-rows: repeat(2, 9px); place-content: center; gap: 4px; border-radius: 14px; background: rgba(255, 139, 98, .07); box-shadow: inset 0 0 0 1px rgba(255, 139, 98, .14); }
.service-icon span { display: block; border-radius: 3px; background: var(--blue); }
.service-icon span:nth-child(2), .service-icon span:nth-child(3) { opacity: .5; }
.service-icon span:last-child { background: var(--accent); box-shadow: 0 0 12px rgba(255, 139, 98, .3); }
.service-topline h2, .details-card h2 { margin: 4px 0 0; font-size: 20px; }
.provisioning-state { min-height: 310px; display: grid; place-items: center; align-content: center; text-align: center; }
.provisioning-state h3 { margin: 22px 0 8px; }
.provisioning-state p { max-width: 450px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.pulse-orbit { position: relative; width: 78px; height: 78px; display: grid; place-items: center; border: 1px solid rgba(77, 225, 207, .2); border-radius: 50%; }
.pulse-orbit::before { content: ''; position: absolute; inset: 12px; border: 1px dashed rgba(91, 140, 255, .35); border-radius: 50%; animation: spin 8s linear infinite; }
.pulse-orbit span { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(145deg, var(--cyan), var(--blue)); box-shadow: 0 0 30px rgba(77, 225, 207, .45); }
.pulse-orbit i { position: absolute; inset: -1px; border: 1px solid var(--cyan); border-radius: 50%; animation: pulse 2s ease-out infinite; }
.progress-track { width: min(320px, 80%); height: 3px; margin-top: 26px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.progress-track span { width: 8%; height: 100%; display: block; position: relative; overflow: hidden; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .5s ease; }
.progress-track span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: progress 1.8s ease-in-out infinite; }
.progress-stage { min-height: 22px; margin-top: 12px; color: #b9c6d8; font-size: 11px; }
.ready-state { padding-top: 24px; }
.ready-banner { display: flex; align-items: center; gap: 10px; color: var(--cyan); }
.ready-banner i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(77, 225, 207, .12); font-style: normal; }
.instance-url { display: grid; gap: 8px; margin: 24px 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(5, 10, 18, .45); }
.instance-url span { color: var(--muted); font-size: 11px; }
.instance-url a { overflow: hidden; color: #b7cfff; font: 600 13px ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.ready-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.failed-state { min-height: 280px; display: grid; place-items: center; align-content: center; text-align: center; }
.failed-state h3 { margin: 14px 0 5px; }
.failed-state p { max-width: 440px; color: var(--muted); line-height: 1.8; }
.failed-icon { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255, 113, 133, .25); border-radius: 50%; color: var(--danger); background: rgba(255, 113, 133, .08); font-size: 24px; }

.details-card h2 { margin-bottom: 26px; }
.event-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.event-list li { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 11px; min-height: 64px; }
.event-list li:not(:last-child)::before { content: ''; position: absolute; top: 13px; right: 5px; bottom: -3px; width: 1px; background: var(--line-strong); }
.event-list i { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 3px; border: 2px solid var(--panel-solid); border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 1px rgba(77, 225, 207, .3); }
.event-list .event-warning i { background: var(--warning); }
.event-list .event-error i { background: var(--danger); }
.event-list div { display: grid; align-content: start; gap: 5px; }
.event-list strong { font-size: 12px; line-height: 1.65; }
.event-list small { color: #627087; font-size: 10px; }
.meta-list { display: grid; gap: 10px; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.meta-list div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.meta-list code { color: #b5c3d7; font-size: 10px; }

.credentials-dialog { width: min(520px, calc(100% - 30px)); border: 1px solid var(--line-strong); border-radius: 22px; padding: 0; color: var(--text); background: #101a2a; box-shadow: 0 40px 120px rgba(0,0,0,.65); }
.credentials-dialog::backdrop { background: rgba(2, 6, 12, .72); backdrop-filter: blur(9px); }
.credentials-dialog form { position: relative; display: grid; gap: 17px; padding: 30px; }
.credentials-dialog h2 { margin: -5px 0 -8px; }
.dialog-close { position: absolute; top: 15px; left: 15px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.03); cursor: pointer; font-size: 22px; }
.credentials-result { display: grid; gap: 10px; margin-top: 4px; padding-top: 17px; border-top: 1px solid var(--line); }
.credentials-result div { display: grid; grid-template-columns: 75px 1fr auto; align-items: center; gap: 8px; min-height: 46px; padding: 8px 10px; border-radius: 11px; background: rgba(4, 9, 16, .55); }
.credentials-result span { color: var(--muted); font-size: 11px; }
.credentials-result code { overflow: hidden; color: #d8e4f6; text-overflow: ellipsis; white-space: nowrap; }
.credentials-result button { border: 0; color: var(--cyan); background: transparent; cursor: pointer; font-size: 11px; }

.site-footer { min-height: 66px; display: flex; align-items: center; justify-content: center; gap: 10px; border-top: 1px solid var(--line); color: #5f6c7e; font-size: 10px; }
.footer-dot { color: var(--accent); font-size: 6px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(.75); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes progress { from { transform: translateX(210%); } to { transform: translateX(-310%); } }

@media (max-width: 900px) {
  .auth-layout, .dashboard-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .auth-card { max-width: 520px; margin-inline: auto; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise-card { min-height: 0; }
  .promise-card h3 { margin-top: 22px; }
  .steps-section { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 24px, 1160px); }
  .site-header { min-height: 72px; }
  .brand-copy small, .secure-badge { display: none; }
  .main-shell { padding-block: 30px; }
  .auth-layout { gap: 34px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { display: grid; }
  .hero-proof { gap: 7px; }
  .story-section, .steps-section, .closing-cta { margin-top: 70px; }
  .steps-section { padding: 24px 20px; border-radius: 22px; }
  .closing-cta { padding: 50px 18px; border-radius: 24px; }
  .auth-card, .service-card, .details-card { padding: 20px; border-radius: 20px; }
  .auth-card { padding-top: 8px; }
  .dashboard-heading { align-items: start; flex-direction: column; }
  .ready-actions { display: grid; }
  .site-footer { text-align: center; }
}

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