@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
@import url("./white-background.css?v=20261018-pure-white1");

/* ui-polish.css — site-wide refinement layer. Loads LAST so it wins ties and
   unifies motion, focus, elevation and micro-interactions across all pages. */

:root {
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 1px 2px rgba(17, 17, 20, .04), 0 1px 3px rgba(17, 17, 20, .06);
  --shadow-md: 0 4px 12px rgba(17, 17, 20, .06), 0 2px 4px rgba(17, 17, 20, .04);
  --shadow-lg: 0 18px 40px rgba(17, 17, 20, .10), 0 6px 14px rgba(17, 17, 20, .05);
  --ring: 0 0 0 3px rgba(239, 17, 24, .18);
}

/* Type & color system — one cohesive family, refined neutrals, better contrast. */
:root {
  --ink: #0f1115;
  --muted: #565b66;
  --line: #e6e8ec;
  --soft: #f6f7f9;
  --body-size: 14px;
}
body {
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  letter-spacing: -0.006em;
}
h1, h2, h3, h4 {
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.022em;
}
h2 { text-wrap: balance; }
p { letter-spacing: -0.004em; }
.hero-wireframe h1 {
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  letter-spacing: -0.032em;
}
/* Unify the scattered display-heading faces onto the single Inter system. */
.services-section .section-heading h2,
#main-content > section h2,
.industries-section > .container > .section-heading h2,
.reason-title-block h2,
.hero-wireframe .hero-description,
.hero-wireframe .hero-corner-action {
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; }

::selection { background: var(--red); color: #fff; }

/* Refined focus: clearly visible, less heavy than the raw 3px block. */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; box-shadow: var(--ring); border-radius: 4px; }

/* Subtle, neutral scrollbar for a cleaner viewport edge. */
* { scrollbar-width: thin; scrollbar-color: #d4d4d8 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 999px; border: 3px solid #fff; }
*::-webkit-scrollbar-thumb:hover { background: #b9b9c0; }
*::-webkit-scrollbar-track { background: transparent; }

/* Buttons — micro-interaction: lift on hover, press on active, tinted glow on primary. */
.button { transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
.button svg { transition: transform .2s var(--ease); }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(.99); }
.button:hover svg, .text-link:hover svg { transform: translateX(3px); }
.button-primary { box-shadow: 0 6px 16px rgba(239, 17, 24, .20); }
.button-primary:hover { box-shadow: 0 10px 24px rgba(206, 11, 18, .28); transform: translateY(-2px); }
.button-secondary:hover { box-shadow: var(--shadow-sm); }
.button:disabled, .button[aria-disabled="true"] { box-shadow: none; transform: none; opacity: .6; }

.text-link svg { transition: transform .2s var(--ease); }

/* Cards — soft resting elevation and a consistent hover lift. */
.service-card,
.product-card,
.work-card,
.platform-card,
.technology-grid article {
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.service-card:hover,
.product-card:hover,
.work-card:hover,
.platform-card:hover,
.technology-grid article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #dcdce1;
}

/* Section labels — lift the smallest type off the 10px floor for legibility. */
.section-kicker { font-size: 11px; letter-spacing: 1.2px; }

/* Footer — clearer separation, hover affordance, readable type. */
.site-footer { border-top: 1px solid var(--line); }
.site-footer nav a { transition: color .18s var(--ease); }

.site-footer nav a:hover { color: var(--red-deep); }
.site-footer nav { font-size: 12px; }
.site-footer small { font-size: 11px; }

/* Dialog form controls — brand focus ring consistent with the rest of the site. */
.contact-dialog input:focus-visible,
.contact-dialog textarea:focus-visible,
.contact-dialog select:focus-visible {
  outline: none;
  border-color: var(--red);
  box-shadow: var(--ring);
}

/* One consistent, clear select control for forms, filters and profile editors. */
body select:not(.education-select-native) {
  min-height: 46px !important;
  padding: 0 44px 0 14px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid #dce2ea !important;
  border-radius: 12px !important;
  color: #253044 !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%23677385' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 16px 16px !important;
  box-shadow: 0 1px 2px rgba(25, 38, 58, .035), 0 3px 9px rgba(25, 38, 58, .035) !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
body select:not(.education-select-native):hover:not(:disabled) {
  border-color: #bec8d6 !important;
  box-shadow: 0 2px 5px rgba(25, 38, 58, .05), 0 5px 14px rgba(25, 38, 58, .055) !important;
}
body select:not(.education-select-native):focus-visible {
  border-color: #d83850 !important;
  outline: 2px solid rgba(216, 56, 80, .16) !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(216, 56, 80, .10) !important;
}
body select:not(.education-select-native):disabled {
  color: #8791a0 !important;
  background-color: #f2f4f7 !important;
  box-shadow: none !important;
  cursor: not-allowed;
}
body select:not(.education-select-native):required:invalid { color: #8a94a3 !important; }
body select:not(.education-select-native) option { color: #253044; background: #fff; }
.more-category-filter select { min-height: 40px !important; border-radius: 10px !important; }

/* Respect reduced-motion: strip the added movement, keep the color/shadow cues. */
@media (prefers-reduced-motion: reduce) {
  .button, .button svg, .text-link svg,
  .service-card, .product-card, .work-card, .platform-card, .technology-grid article {
    transition: none;
  }
  .button:hover, .button:active,
  .button:hover svg, .text-link:hover svg,
  .service-card:hover, .product-card:hover, .work-card:hover,
  .platform-card:hover, .technology-grid article:hover {
    transform: none;
  }
}

/* Crystal-white neumorphic system shared by every ELVRONAi page. */
:root {
  --crystal-white: #fff;
  --crystal-edge: #e7edf4;
  --crystal-shadow: 10px 12px 26px rgba(71, 91, 120, .11), -6px -6px 18px rgba(255, 255, 255, .98), inset 0 1px 0 rgba(255, 255, 255, .98);
  --crystal-shadow-sm: 5px 6px 14px rgba(71, 91, 120, .10), -4px -4px 12px rgba(255, 255, 255, .98), inset 0 1px 0 rgba(255, 255, 255, .98);
  --crystal-inset: inset 3px 4px 9px rgba(105, 124, 151, .12), inset -3px -3px 9px rgba(255, 255, 255, .98);
}

html,
body {
  background: #fff !important;
  color: #202b3d;
}

/* Main content surfaces: clean white faces, cool edges, and restrained depth. */
.site-header .header-inner,
.talent-header,
.profile-site-header,
.client-public-nav,
.marketplace-card,
.marketplace-empty,
.experts-directory-shell,
.experts-featured-group,
.experts-page .expert-card,
.experts-page .expertise-toolbar,
.expertise-directory,
.expertise-directory .expert-card,
.service-card,
.product-card,
.work-card,
.platform-card,
.technology-grid article,
.industry-card,
.reason-card,
.process-grid li,
.talent-card,
.talent-directory,
.portal-card,
.profile-header-card,
.profile-tabs,
.profile-content-card,
.settings-card,
.worker-profile-card,
.social-feed-panel,
.catalog-soft > .container,
.catalog-intro,
.catalog-filters,
.custom-layout,
.about-section,
.top-expertise-section > .container,
.audience-path,
.client-public-card,
.expert-profile-dialog,
.profile-loading,
.profile-not-found,
.custom-callout,
.marketplace-note,
.marketplace-service-notice,
#worker-dashboard-view .social-preview-notice,
.site-footer,
.profile-site-footer {
  border: 1px solid var(--crystal-edge) !important;
  background: #fff !important;
  box-shadow: var(--crystal-shadow) !important;
}

.site-header .header-inner,
.talent-header,
.profile-site-header,
.client-public-nav,
.marketplace-tabs,
.profile-tabs,
.site-footer {
  border-radius: 20px !important;
}

.marketplace-card,
.marketplace-empty,
.experts-featured-group,
.experts-page .expert-card,
.expertise-directory .expert-card,
.service-card,
.product-card,
.work-card,
.platform-card,
.technology-grid article,
.industry-card,
.reason-card,
.process-grid li,
.talent-card,
.profile-content-card,
.settings-card,
.worker-profile-card,
.social-feed-panel,
.catalog-intro,
.catalog-filters,
.custom-layout,
.audience-path,
.expert-profile-dialog,
.custom-callout,
.marketplace-note,
.marketplace-service-notice,
#worker-dashboard-view .social-preview-notice {
  border-radius: 20px !important;
}

.marketplace-note,
.marketplace-service-notice,
#worker-dashboard-view .social-preview-notice {
  color: #526078 !important;
}

/* Controls sit slightly inset from the white surfaces; focus remains brand-visible. */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
body select:not(.education-select-native),
.expert-search input,
.marketplace-people-search input,
.custom-select-trigger,
.site-select-trigger {
  border-color: #e5ebf2 !important;
  background-color: #fff !important;
  box-shadow: var(--crystal-inset) !important;
}

.button-secondary,
.marketplace-button:not(.is-primary),
.profile-button-secondary,
.account-edit-button,
.view-profile,
.expert-action:not(.expert-action-primary),
.expert-filter:not(.active),
.filter-chip:not(.active),
.category-chip:not(.active),
.catalog-reset,
.menu-toggle,
.motion-control,
.profile-account-menu summary {
  border-color: var(--crystal-edge) !important;
  background: #fff !important;
  box-shadow: var(--crystal-shadow-sm) !important;
}

.button-secondary:hover,
.marketplace-button:not(.is-primary):hover,
.profile-button-secondary:hover,
.account-edit-button:hover,
.view-profile:hover,
.expert-action:not(.expert-action-primary):hover,
.expert-filter:not(.active):hover,
.filter-chip:not(.active):hover,
.category-chip:not(.active):hover,
.catalog-reset:hover {
  box-shadow: var(--crystal-inset) !important;
}

/* Keep signature red actions and status colors; convert secondary dark panels to white. */
.experts-contact-cta,
.audience-path-freelancer,
.profile-availability,
.settings-hero {
  border-color: var(--crystal-edge) !important;
  color: #202b3d !important;
  background: #fff !important;
  box-shadow: var(--crystal-shadow) !important;
}

.experts-contact-cta h2,
.audience-path-freelancer strong,
.profile-availability h2,
.settings-hero h1 {
  color: #202b3d !important;
}

.experts-contact-cta p,
.audience-path-freelancer p,
.profile-availability > p:not(.profile-card-kicker),
.settings-hero p:last-child {
  color: #687386 !important;
}

.profile-availability .profile-text-link {
  color: var(--red-deep) !important;
}

.settings-hero .profile-kicker,
.profile-availability .profile-card-kicker {
  color: var(--red) !important;
}

.audience-path-freelancer .audience-path-action {
  color: #fff !important;
  background: linear-gradient(145deg, #f22945, #cf1029) !important;
}

.profile-cover,
.social-profile-cover,
.workspace-profile-header .social-profile-cover {
  border-color: var(--crystal-edge) !important;
  background: linear-gradient(145deg, #fff, #f7f9fc) !important;
  box-shadow: var(--crystal-shadow-sm) !important;
}

.profile-cover-label,
.workspace-cover-label,
.profile-cover-spark {
  color: #526078 !important;
}

.profile-orbit,
.profile-cover::before {
  border-color: rgba(112, 132, 160, .16) !important;
  box-shadow: 0 0 0 44px rgba(112, 132, 160, .035), 0 0 0 88px rgba(112, 132, 160, .025) !important;
}

/* Replace legacy dark/cream UI panels with the same crystal-white treatment. */
.expertise-join,
.software-section,
.software-group,
.process-section,
.process-grid li:last-child,
.expert-floating-header {
  border-color: var(--crystal-edge) !important;
  background: #fff !important;
  color: #202b3d !important;
  box-shadow: var(--crystal-shadow-sm) !important;
}

.expertise-join strong,
.software-section h2,
.software-group h3,
.process-section h2,
.process-grid li h3,
.expert-floating-header h2,
.expert-floating-header p:last-child {
  color: #202b3d !important;
}

.expertise-join p,
.software-section p,
.software-group p,
.process-section p,
.process-grid li p,
.expert-floating-presence {
  color: #687386 !important;
}

.software-section .section-heading > p,
.software-section .list-label,
.software-section .section-end > p,
.software-group li {
  color: #687386 !important;
}

.expertise-section,
.experts-page .expert-empty {
  border-color: var(--crystal-edge) !important;
  background: #fff !important;
  box-shadow: var(--crystal-shadow-sm) !important;
}

.expert-floating-header .marketplace-eyebrow,
.expertise-join-label {
  color: var(--red-deep) !important;
}

.expert-floating-avatar {
  border-color: var(--crystal-edge) !important;
  background: #f5f7fb !important;
  color: #202b3d !important;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service-card:hover,
  .product-card:hover,
  .work-card:hover,
  .platform-card:hover,
  .technology-grid article:hover,
  .industry-card:hover,
  .reason-card:hover,
  .marketplace-card:hover,
  .expertise-directory .expert-card:hover {
    transform: translateY(-2px);
    box-shadow: 13px 16px 30px rgba(71, 91, 120, .15), -7px -7px 19px rgba(255, 255, 255, .98) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .product-card,
  .work-card,
  .platform-card,
  .technology-grid article,
  .industry-card,
  .reason-card,
  .marketplace-card,
  .expertise-directory .expert-card {
    transition: none !important;
  }
}
