/*
   ramDevX visual refinement layer
   Intentional override-only stylesheet: keeps the existing Razor components,
   routes, endpoint handlers and interaction hooks intact while elevating polish.
*/
:root {
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 34px;
    --shadow-sm: 0 2px 8px rgba(11, 18, 48, .055), 0 1px 2px rgba(11, 18, 48, .04);
    --shadow-lg: 0 32px 80px -38px rgba(11, 18, 48, .34), 0 12px 28px -18px rgba(11, 18, 48, .16);
    --ease-premium: cubic-bezier(.2, .75, .25, 1);
}

html { scroll-behavior: smooth; }
body {
    background-image: radial-gradient(ellipse at 50% -35rem, color-mix(in srgb, var(--blue) 5%, transparent), transparent 58%);
}
::selection { color: #fff; background: color-mix(in srgb, var(--primary) 82%, var(--violet)); }

/* Clearer hierarchy and more breathing room. */
h1, h2, h3, h4 { letter-spacing: -.035em; }
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4 { letter-spacing: 0; }
.lead { line-height: 1.72; }
.section { padding-block: clamp(64px, 8vw, 116px); }
.section-head { margin-block-end: clamp(36px, 5vw, 64px); }
.page-label { display: inline-flex; align-items: center; gap: 9px; letter-spacing: .08em; text-transform: uppercase; }
.page-label::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand-gradient); }

/* Navigation: quieter glass surface, confident active and hover states. */
.site-header {
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    border-block-end-color: color-mix(in srgb, var(--line) 78%, transparent);
    box-shadow: 0 8px 28px -24px rgba(11, 18, 48, .4);
}
.site-header__bar { min-height: clamp(68px, 6vw, 78px); }
.brand { gap: 12px; }
.brand__mark { filter: drop-shadow(0 3px 8px rgba(59, 130, 246, .14)); }
.site-nav > a:not(.button), .nav-menu__link { font-weight: 600; }
.site-nav > a:not(.button):hover,
.nav-menu:hover .nav-menu__link,
.nav-menu.is-open .nav-menu__link { background: var(--primary-soft); color: var(--primary); }
.site-nav > a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.nav-menu__panel { border-radius: 0 0 24px 24px; }
.menu-item { border-radius: 18px; }
.menu-item:hover, .menu-item:focus-within { box-shadow: var(--shadow-sm); }
.header-chip { border: 1px solid transparent; }
.header-chip:hover { border-color: var(--line); }
.icon-btn { transition: transform .2s var(--ease-premium), background-color .2s var(--ease-premium), border-color .2s var(--ease-premium); }
.icon-btn:hover { transform: translateY(-1px); }

/* Buttons and controls share one deliberate interaction language. */
.button {
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: -.01em;
    transition: transform .2s var(--ease-premium), box-shadow .2s var(--ease-premium), background-color .2s var(--ease-premium), border-color .2s var(--ease-premium);
}
.button--primary {
    box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--primary) 75%, transparent), inset 0 1px 0 rgba(255,255,255,.16);
}
.button--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px color-mix(in srgb, var(--primary) 72%, transparent); }
.button--ghost:hover { transform: translateY(-1px); border-color: var(--primary); }
button, input, select, textarea { accent-color: var(--primary); }
input, select, textarea { border-radius: 12px; }
input:focus, select:focus, textarea:focus { box-shadow: var(--ring); }

/* Home hero: editorial split layout with a soft, layered product stage. */
.hero {
    isolation: isolate;
    padding-block: clamp(58px, 7.5vw, 104px) clamp(48px, 6vw, 82px);
    background:
        radial-gradient(700px 420px at 88% 5%, color-mix(in srgb, var(--blue) 16%, transparent), transparent 72%),
        radial-gradient(620px 440px at 2% 0%, color-mix(in srgb, var(--violet) 12%, transparent), transparent 72%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 55%, transparent), transparent 78%);
}
.hero__grid { gap: clamp(38px, 5.5vw, 84px); }
.hero__copy h1 { max-width: 17ch; font-size: clamp(2.65rem, 4.1vw + .6rem, 4.45rem); line-height: 1.035; letter-spacing: -.055em; }
body.rtl .hero__copy h1 { max-width: 16ch; line-height: 1.28; letter-spacing: 0; }
.hero__copy .lead { max-width: 54ch; font-size: clamp(1.08rem, .45vw + 1rem, 1.22rem); }
.hero__badge { padding: 8px 15px 8px 13px; box-shadow: var(--shadow-sm); }
.hero__badge:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.hero__actions { gap: 14px; }
.hero__stack { margin-block-start: 42px; }
.hero__stack ul { gap: 8px; }
.hero__stack li { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 76%, transparent); }
.hero__visual { min-width: 0; perspective: 1200px; }
.showcase {
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
    border-radius: 26px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    box-shadow: 0 34px 90px -42px rgba(11, 18, 48, .42), 0 8px 24px -16px rgba(11, 18, 48, .18);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform: rotateY(-2deg) rotateX(1deg);
    transition: transform .45s var(--ease-premium), box-shadow .45s var(--ease-premium);
}
[dir="rtl"] .showcase { transform: rotateY(2deg) rotateX(1deg); }
.showcase:hover { transform: translateY(-5px) rotateY(0) rotateX(0); box-shadow: 0 42px 100px -42px rgba(11, 18, 48, .48); }
.showcase__tabs { gap: 8px; }
.showcase__tab { border-radius: 14px; transition: background-color .2s var(--ease-premium), border-color .2s var(--ease-premium), transform .2s var(--ease-premium); }
.showcase__tab[aria-selected="true"] { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.device--hero { border-radius: 16px; box-shadow: 0 18px 46px -26px rgba(11, 18, 48, .38); }
.device__bar { height: 42px; }
.showcase__caption { padding: 14px 6px 4px; }

/* Cards and content surfaces. */
.pcard, .more-card, .channel, .service-card, .feature-card, .step-card {
    transition: transform .25s var(--ease-premium), border-color .25s var(--ease-premium), box-shadow .25s var(--ease-premium);
}
.pcard { border-radius: 24px; overflow: clip; box-shadow: 0 12px 34px -28px rgba(11, 18, 48, .38); }
.pcard:hover { transform: translateY(-5px); box-shadow: 0 26px 54px -34px rgba(11, 18, 48, .42); }
.pcard__shot { border-radius: 16px 16px 0 0; }
.more-card { border-radius: 20px; }
.more-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.faq__item summary { transition: color .2s var(--ease-premium); }
.faq__item[open] { padding-inline: 14px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 74%, transparent); }

/* Forms, domain tools, tables and utility panels. */
.form-card, .contact-card, .domain-card, .account-card, .transfer-card {
    border-radius: 22px;
    box-shadow: 0 18px 48px -38px rgba(11, 18, 48, .42);
}
input, select, textarea { min-height: 46px; }
textarea { min-height: 132px; }
table { border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 16px; }
th { font-weight: 700; }
tr:hover td { background: color-mix(in srgb, var(--primary-soft) 42%, transparent); }

/* Footer and floating actions feel anchored, not bolted on. */
.site-footer { border-block-start: 1px solid var(--line); }
.fab { box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .38); transition: transform .2s var(--ease-premium), box-shadow .2s var(--ease-premium); }
.fab:hover { transform: translateY(-3px) scale(1.025); box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .42); }

/* Motion is decorative only and always respects the user's system preference. */
@keyframes premium-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.hero__copy > * { animation: premium-rise .65s var(--ease-premium) both; }
.hero__copy > :nth-child(2) { animation-delay: .06s; }
.hero__copy > :nth-child(3) { animation-delay: .12s; }
.hero__copy > :nth-child(4) { animation-delay: .18s; }

@media (max-width: 960px) {
    .hero { padding-block-start: 48px; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__copy h1 { max-width: 18ch; }
    .hero__visual { width: min(760px, 100%); margin-inline: auto; }
    .showcase, [dir="rtl"] .showcase { transform: none; }
}
@media (max-width: 600px) {
    .section { padding-block: 58px; }
    .hero { padding-block: 38px 42px; }
    .hero__copy h1 { font-size: clamp(2.45rem, 11vw, 3.5rem); }
    .hero__badge { max-width: 100%; font-size: .78rem; line-height: 1.45; }
    .hero__actions { display: grid; grid-template-columns: 1fr; }
    .hero__actions .button { justify-content: center; }
    .showcase { padding: 8px; border-radius: 19px; }
    .showcase__tabs { gap: 5px; }
    .showcase__tab { padding: 8px; }
    .pcard { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero__copy > * { animation: none !important; }
    .showcase, .pcard, .more-card, .button, .fab { transition: none !important; }
}
html[data-theme="dark"] body {
    background-image: radial-gradient(ellipse at 50% -35rem, rgba(59, 130, 246, .1), transparent 60%);
}
html[data-theme="dark"] .showcase {
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    border-color: color-mix(in srgb, var(--line-strong) 80%, transparent);
    box-shadow: 0 34px 90px -42px rgba(0, 0, 0, .85);
}
html[data-theme="dark"] .hero__stack li { background: color-mix(in srgb, var(--surface) 88%, transparent); }
